stdint: Improve support for Android.
[gnulib.git] / ChangeLog
1 2012-01-24  Bruno Haible  <bruno@clisp.org>
2
3         stdint: Improve support for Android.
4         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5         Reported by Simon Josefsson <simon@josefsson.org>.
6
7 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8
9         doc: omit trailing empty lines from INSTALL etc.
10         * doc/Makefile (INSTALL): Omit trailing empty lines.
11         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
12         omit trailing empty lines.  This simplifies the build procedure.
13
14 2012-01-23  Jim Meyering  <meyering@redhat.com>
15
16         tests: avoid spurious warnings about gl_sockets_startup
17         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
18         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
19         reporting a "statement with no effect".
20         * tests/test-accept.c (main): Mark as "(void)".
21         * tests/test-accept4.c (main): Likewise.
22         * tests/test-bind.c (main): Likewise.
23         * tests/test-connect.c (main): Likewise.
24         * tests/test-getpeername.c (main): Likewise.
25         * tests/test-getsockname.c (main): Likewise.
26         * tests/test-getsockopt.c (main): Likewise.
27         * tests/test-listen.c (main): Likewise.
28         * tests/test-recv.c (main): Likewise.
29         * tests/test-recvfrom.c (main): Likewise.
30         * tests/test-send.c (main): Likewise.
31         * tests/test-sendto.c (main): Likewise.
32         * tests/test-setsockopt.c (main): Likewise.
33         * tests/test-shutdown.c (main): Likewise.
34
35 2012-01-21  Bruno Haible  <bruno@clisp.org>
36
37         locale-fr.m4: Fix for Android.
38         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
39         failure of the test program on Bionic libc.
40
41 2012-01-21  Jim Meyering  <meyering@redhat.com>
42
43         bootstrap: fail when bootstrap_post_import_hook fails
44         Otherwise, it's far too easy to miss diagnostics emitted
45         between gnulib-tool's output and that of running configure.
46         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
47
48 2012-01-17  Jim Meyering  <meyering@redhat.com>
49
50         maint: enable sc_trailing_blank
51         * build-aux/pmccabe.css: Remove trailing blanks.
52         * doc/acl-cygwin.txt: Likewise.
53         * doc/gnu-oids.texi: Likewise
54         * cfg.mk: Enable sc_trailing_blank.
55         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
56
57 2012-01-17  Jim Meyering  <meyering@redhat.com>
58
59         maint: enable sc_prohibit_openat_without_use
60         * cfg.mk: Enable sc_prohibit_openat_without_use.
61         Exempt lib/selinux-at.c.
62
63 2012-01-17  Jim Meyering  <meyering@redhat.com>
64
65         maint: enable sc_prohibit_cloexec_without_use
66         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
67         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
68
69 2012-01-17  Jim Meyering  <meyering@redhat.com>
70
71         maint: enable sc_prohibit_intprops_without_use
72         * cfg.mk: Enable sc_prohibit_intprops_without_use
73         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
74
75 2012-01-17  Jim Meyering  <meyering@redhat.com>
76
77         maint: enable sc_prohibit_hash_pjw_without_use
78         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
79         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
80         to match any use of \<hash_pjw\>, i.e., not necessarily with a
81         following " (".
82
83 2012-01-17  Jim Meyering  <meyering@redhat.com>
84
85         maint: enable double-word-prohibiting rule
86         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
87         Exempt three files.
88
89 2012-01-17  Jim Meyering  <meyering@redhat.com>
90
91         maint: remove empty lines at EOF, but excluding modules/*
92         Apply syntax rules at home as well as abroad.  Most changes
93         were induced by running this:
94           make srcdir=. _build-aux=build-aux -f top/maint.mk \
95             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
96             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
97         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
98         Exempt modules/* and two binary files.
99         Also exempt doc/INSTALL*, per request from Bruno Haible.
100         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
101         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
102         * doc/Copyright/request-assign.future: Likewise.
103         * doc/Copyright/request-disclaim.changes: Likewise.
104         * doc/INSTALL: Likewise.
105         * doc/INSTALL.ISO: Likewise.
106         * doc/INSTALL.UTF-8: Likewise.
107         * doc/acl-cygwin.txt: Likewise.
108         * doc/acl-resources.txt: Likewise.
109         * doc/fdl-1.2.texi: Likewise.
110         * doc/fdl-1.3.texi: Likewise.
111         * doc/fdl.texi: Likewise.
112         * lib/argp-pin.c: Likewise.
113         * lib/round.c: Likewise.
114         * lib/unicase/u16-totitle.c: Likewise.
115         * lib/unictype/block_test.c: Likewise.
116         * lib/uninorm/canonical-decomposition.c: Likewise.
117         * m4/README: Likewise.
118         * m4/relocatable-lib.m4: Likewise.
119         * tests/test-isnand-nolibm.c: Likewise.
120         * tests/test-isnand.c: Likewise.
121         * tests/uninorm/NormalizationTest.txt: Likewise.
122
123 2012-01-17  Jim Meyering  <meyering@redhat.com>
124
125         maint: add framework to run syntax-check rules against gnulib sources
126         * cfg.mk: New file, to disable all currently-failing tests.
127         We'll enable them one by one, as they are made to pass.
128         * Makefile (sc_maint): New rule.
129
130 2012-01-21  Bruno Haible  <bruno@clisp.org>
131
132         stdint: Add support for Android.
133         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
134         include the system's <stdint.h>.
135         Reported by Simon Josefsson <simon@josefsson.org>.
136
137 2012-01-19  Jim Meyering  <meyering@redhat.com>
138
139         bootstrap: add bootstrap_post_import_hook
140         Bison does still need something like the gnulib_mk_hook whose
141         invocation I had to remove along with slurp in commit 767ccd40.
142         Technically, we could get along without it, but doing so would
143         have required living with a warning and a mandatory post-bootstrap
144         automake rerun.
145         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
146         (bootstrap_post_import_hook): New function.
147         Invoke it after gnulib-tool --import and before autoreconf.
148
149 2012-01-18  Jim Meyering  <meyering@redhat.com>
150
151         gitlog-to-changelog: don't use "no_"-prefixed variable name
152         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
153         to enable both --cluster and --no-cluster.  Change variable name,
154         s/\$no_cluster/$cluster/, and reverse usage to match.
155
156         gitlog-to-changelog: use "||", not "or" in expressions
157         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
158         expressions.
159
160 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
161
162         gitlog-to-changelog: new option --no-cluster
163         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
164         clustering of adjacent commit messages.
165
166 2012-01-17  Jim Meyering  <meyering@redhat.com>
167
168         maint: spell file systems with two words, not one
169         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
170         two words, not one.
171
172 2012-01-16  Jim Meyering  <meyering@redhat.com>
173
174         bootstrap: add a FIXME comment to ensure we eventually remove the hack
175         * build-aux/bootstrap (gnulib_tool_options): Add comment.
176
177 2012-01-16  Eric Blake  <eblake@redhat.com>
178
179         bootstrap: cater to autoconf 2.59
180         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
181         is not available.
182
183         bootstrap: properly check for libtool
184         * build-aux/bootstrap (libtoolize): Also run libtool when older
185         usage is detected.
186
187 2012-01-15  Bruno Haible  <bruno@clisp.org>
188
189         Improve support for MSVC 9.
190         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
191         clashes on MSVC.
192         * lib/fcntl.in.h: Likewise.
193         * lib/stdlib.in.h: Likewise.
194         * lib/sys_stat.in.h: Likewise.
195
196 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
197
198         gnupload: we hold the master copy of this script now
199         For motivation and more information, see:
200         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
201         * build-aux/gnupload: Make it clear in the heading comments that the
202         master copy of this file is maintained by gnulib.  Since we are at
203         it, bump its copyright year and ...
204         ($scriptversion): ... the date in its version.
205         ($usage): Patches and bug reports should be sent to the gnulib list,
206         not the automake one.
207         * config/srclist.txt: Don't try to sync 'gnupload' from automake
208         anymore.
209
210 2012-01-15  Bruno Haible  <bruno@clisp.org>
211
212         Fix module 'random'.
213         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
214         initstate, setstate are declared.
215
216 2012-01-14  Bruno Haible  <bruno@clisp.org>
217
218         Tests for module 'random'.
219         * modules/random-tests: New file.
220         * tests/test-random.c: New file, based on tests/test-random_r.c.
221
222         New module 'random'.
223         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
224         declarations.
225         * lib/random.c: New file, based on glibc/stdlib/random.c.
226         * m4/random.m4: New file.
227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
228         HAVE_RANDOM.
229         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
230         * modules/random: New file.
231         * config/srclist.txt: Add an entry for random.c.
232         * doc/posix-functions/random.texi: Mention the 'random' module.
233         * doc/posix-functions/initstate.texi: Likewise.
234         * doc/posix-functions/setstate.texi: Likewise.
235         * doc/posix-functions/srandom.texi: Likewise.
236
237 2012-01-12  Bruno Haible  <bruno@clisp.org>
238
239         random_r: Use common idioms.
240         * lib/random_r.c: Include <stdlib.h> first.
241
242         random_r: Override incompatible API on AIX, OSF/1.
243         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
244         Override the system function if REPLACE_RANDOM_R is 1.
245         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
246         and OSF/1, set REPLACE_RANDOM_R.
247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
248         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
249         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
250         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
251         * doc/glibc-functions/random_r.texi: Likewise.
252         * doc/glibc-functions/setstate_r.texi: Likewise.
253
254         random_r: Support for MSVC 9.
255         * lib/random_r.c: Include stdint.h, not inttypes.h.
256
257 2012-01-12  Eric Blake  <eblake@redhat.com>
258
259         inet_ntop: guard extra work by IF_LINT
260         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
261         better code generation when not checking for warnings.
262         Suggested by Paul Eggert and Jim Meyering.
263
264         strptime: fix regression on mingw
265         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
266         Fix regression.  Reported by Bruno Haible.
267
268 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
269             Bruno Haible  <bruno@clisp.org>
270
271         copy-file: add error-code-returning variant.
272         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
273         (qcopy_file_preserving): New declaration.
274         * lib/copy-file.c (qcopy_file_preserving): Renamed from
275         copy_file_preserving. Change return type to 'int'. Don't emit an error
276         message here.
277         (copy_file_preserving): New function.
278         * tests/test-copy-file.c: Include <stdlib.h>.
279         (main): Test qcopy_file_preserving if the environment variable
280         NO_STDERR_OUTPUT is set.
281         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
282         with NO_STDERR_OUTPUT
283         * tests/test-copy-file-2.sh: Likewise.
284
285 2012-01-10  Bruno Haible  <bruno@clisp.org>
286
287         copy-file: Use 'quote' module consistently.
288         * lib/copy-file.c (copy_file_preserving): Use quote().
289
290         copy-file: Refactor.
291         * lib/copy-file.c: Include quote.h.
292         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
293         message here.
294         * modules/copy-file (Depends-on): Add quote.
295
296         acl: Export qcopy_acl.
297         * lib/acl.h (qcopy_acl): New declaration.
298         * lib/copy-acl.c (qcopy_acl): Make non-static.
299
300         acl: Rename a local variable.
301         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
302
303         acl: Align return values of copy_acl and qcopy_acl.
304         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
305         maybe < -1.
306
307 2012-01-11  Eric Blake  <eblake@redhat.com>
308
309         strptime: silence gcc warnings
310         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
311         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
312         Reported by Daniel P. Berrange.
313
314         inet_ntop: silence gcc warning
315         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
316         Reported by Daniel P. Berrange.
317
318 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
319
320         getloadavg test: skip the test on GNU/Linux without /proc mounted
321         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
322         file.  When /proc is not mounted, it always fails with ENOENT.
323         * tests/test-getloadavg.c (main): Treat ENOENT return code from
324         getloadavg(3) the same way as ENOSYS and ENOTSUP.
325
326 2012-01-10  Bruno Haible  <bruno@clisp.org>
327
328         regex: Avoid link error on MSVC 9.
329         * modules/regex (Depends-on): Add wctype.
330
331 2012-01-10  Bruno Haible  <bruno@clisp.org>
332
333         doc: Mention --with-tests option.
334         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
335         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
336         --with-tests.
337         Reported by Reuben Thomas.
338
339 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
340
341         users.txt: order package names lexicographically.
342         * users.txt: Order package names lexicographically.
343
344 2012-01-10  Jim Meyering  <meyering@redhat.com>
345
346         maint.mk: fix description in comment
347         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
348
349         ignore-value: remove deprecated ignore_ptr function
350         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
351         * NEWS: Note this.
352
353 2012-01-09  Jim Meyering  <meyering@redhat.com>
354
355         test-init.sh: avoid a subshell
356         * tests/test-init.sh: Remove protective subshell.
357         Suggested by Bernhard Voelker.  While a subshell is normally
358         required to protect against older shells (Solaris, FreeBSD) that
359         warn about a missing program before performing redirection, the
360         shell-selection tests performed by init.sh probably exclude any
361         offending shell.
362
363 2012-01-08  Bruno Haible  <bruno@clisp.org>
364
365         setlocale tests: Avoid test failure on Solaris 11 2011-11.
366         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
367         variable.
368
369 2012-01-08  Bruno Haible  <bruno@clisp.org>
370
371         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
372         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
373         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
374         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
375         macro.
376         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
377         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
378         * lib/spawn_faction_addopen.c: Add workaround implementation if
379         HAVE_WORKING_POSIX_SPAWN.
380         * modules/spawn (Makefile): Substitute
381         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
382         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
383         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
384         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
385         (Depends-on): Update conditions.
386         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
387         the Solaris 11 bug.
388
389 2012-01-08  Bruno Haible  <bruno@clisp.org>
390
391         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
392         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
393         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
394         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
395         macro.
396         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
397         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
398         * lib/spawn_faction_adddup2.c: Add workaround implementation if
399         HAVE_WORKING_POSIX_SPAWN.
400         * modules/spawn (Makefile): Substitute
401         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
402         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
403         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
404         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
405         (Depends-on): Update conditions.
406         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
407         the Solaris 11 bug.
408
409 2012-01-08  Bruno Haible  <bruno@clisp.org>
410
411         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
412         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
413         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
414         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
415         HAVE_WORKING_POSIX_SPAWN.
416         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
417         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
418         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
419         * lib/spawn_faction_addclose.c: Add workaround implementation if
420         HAVE_WORKING_POSIX_SPAWN.
421         * modules/spawn (Makefile): Substitute
422         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
423         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
424         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
425         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
426         (Depends-on): Update conditions.
427         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
428         the Solaris 11 bug.
429
430 2012-01-08  Bruno Haible  <bruno@clisp.org>
431
432         doc: Update for Solaris 11 2011-11.
433         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
434         * m4/printf.m4: Update comments.
435
436 2012-01-08  Bruno Haible  <bruno@clisp.org>
437
438         mktime: Avoid compilation error on Solaris 11.
439         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
440
441 2012-01-08  Bruno Haible  <bruno@clisp.org>
442
443         doc: Small fix.
444         * doc/posix-headers/nl_types.texi: Correct platforms list.
445
446 2012-01-08  Simon Josefsson  <simon@josefsson.org>
447
448         Add lgpl-3.0 module.
449         * MODULES.html.sh (Support for building documentation): Add
450         lgpl-3.0.
451         * modules/lgpl-3.0: New file.
452
453 2012-01-08  Jim Meyering  <meyering@redhat.com>
454
455         select.c: indent with spaces, not TABs
456         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
457
458 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
459
460         quotearg: do not use grave accent for left quote
461         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
462         locale_quoting_style.
463         (quotearg_buffer_restyled): Fix example.
464         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
465
466 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
467
468         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
469         Most programs do not have translation catalogs for English and much
470         less separate catalogs for British and American English.  Drop the
471         suggestion to translators about these two, and provide it
472         automatically for Unicode locales.  Like most programs, even those
473         using American English, we use single quotation marks.  This conflicts
474         with the American typographic convention, but works better when you
475         cite the entire error message within double quotes.  It also tries not
476         to clash with established practice and with what non-gnulib programs
477         will usually do.
478         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
479         using an UTF-8 or GB-18030 locale.  The list of other locales with
480         quotes was provided by Bruno Haible.
481         (quotearg_buffer_restyled): Adjust instructions to translators.
482         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
483         text, since this would be wrong when using Unicode.
484         * modules/quotearg: Depend on c-strcaseeq.
485
486 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
487
488         quotearg: fix Wikipedia link
489         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
490
491 2012-01-07  Simon Josefsson  <simon@josefsson.org>
492
493         Fix for mingw with MSVC9.
494         * m4/ld-version-script.m4: Check that compiler rejects version
495         scripts with syntax errors.  Reported by Bruno Haible
496         <bruno@clisp.org>.
497
498 2012-01-06  Bruno Haible  <bruno@clisp.org>
499
500         Talk about "native Windows API", not "Woe32".
501         * lib/accept4.c: Update comments to mention native Windows.
502         * lib/execute.c: Likewise.
503         * lib/fatal-signal.c: Likewise.
504         * lib/localcharset.c: Likewise.
505         * lib/nanosleep.c: Likewise.
506         * lib/nl_langinfo.c: Likewise.
507         * lib/pclose.c: Likewise.
508         * lib/pipe-filter-gi.c: Likewise.
509         * lib/pipe-filter-ii.c: Likewise.
510         * lib/pipe.c: Likewise.
511         * lib/pipe2.c: Likewise.
512         * lib/popen.c: Likewise.
513         * lib/progreloc.c: Likewise.
514         * lib/relocatable.c: Likewise.
515         * lib/sigaction.c: Likewise.
516         * lib/sigprocmask.c: Likewise.
517         * lib/spawn-pipe.h: Likewise.
518         * lib/spawn-pipe.c: Likewise.
519         * lib/spawni.c: Likewise.
520         * lib/stat-time.h: Likewise.
521         * lib/w32spawn.h: Likewise.
522         * tests/test-isatty.c: Likewise.
523         * lib/config.charset: More comments.
524         * doc/gnulib-intro.texi: Mention native Windows.
525         * doc/posix-functions/_Exit_C99.texi: Likewise.
526         * doc/posix-headers/fcntl.texi: Likewise.
527
528 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
529
530         argp: Avoid crash if translator uses % characters in a translation.
531         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
532         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
533
534 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
535
536         doc: C11 and C++11 are now official
537         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
538         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
539         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
540         * modules/stdalign:
541         Replace references to draft C1X to C11, and to draft C++0X to C++11.
542
543 2012-01-06  Bruno Haible  <bruno@clisp.org>
544
545         uc-is-grapheme-break tests: Tweak.
546         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
547         message.
548
549 2012-01-06  Bruno Haible  <bruno@clisp.org>
550
551         test-init.sh: correct the test for diff -u
552         * tests/test-init.sh: Also redirect stdout to /dev/null.
553
554 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
555
556         Use ', not `, for quoting output.
557         * build-aux/announce-gen (usage, sizes, print_news_deltas)
558         (print_changelog_deltas, get_tool_versions, main program):
559         * build-aux/git-version-gen:
560         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
561         * build-aux/move-if-change (help):
562         * build-aux/useless-if-before-free (usage, main program):
563         * check-module (parse_module_file, usage)
564         (find_included_lib_files, check_module):
565         * lib/argmatch.c (main) [TEST]:
566         * lib/argp-help.c (_help):
567         * lib/getopt1.c (main) [TEST]:
568         * lib/git-merge-changelog.c (usage):
569         * lib/xstrtol-error.c (xstrtol_error):
570         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
571         * m4/argz.m4 (gl_FUNC_ARGZ):
572         * m4/bison.m4 (gl_BISON):
573         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
574         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
575         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
576         * m4/fpending.m4 (gl_PREREQ_FPENDING):
577         * m4/gc-random.m4 (gl_GC_RANDOM):
578         * m4/intl.m4 (gt_CHECK_DECL):
579         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
580         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
581         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
582         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
583         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
584         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
585         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
586         * tests/test-dirname.c (main):
587         * tests/test-getpass.c (main):
588         * tests/test-iconvme.c (main):
589         * tests/test-parse-datetime.c (LOG):
590         * tests/test-xstrtoimax.sh:
591         * tests/test-xstrtol.sh:
592         * tests/test-xstrtoll.sh:
593         * tests/test-xstrtoumax.sh:
594         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
595         * top/GNUmakefile (abort-due-to-no-makefile):
596         Quote 'like this', not `like this', as per the recent change to
597         the GNU coding standards.
598
599 2012-01-05  Bruno Haible  <bruno@clisp.org>
600
601         strtoimax: Don't force a replacement on systems where intmax_t is int.
602         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
603         'intmax_t' is not larger than 'int'.
604         Reported by Pádraig Brady <P@draigBrady.com>.
605
606 2012-01-05  Bruno Haible  <bruno@clisp.org>
607
608         doc: Mention NetBSD bugs.
609         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
610         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
611
612 2012-01-05  Bruno Haible  <bruno@clisp.org>
613
614         strtoumax tests: Enhance tests.
615         * tests/test-strtoumax.c (main): Add tests for large values.
616
617 2012-01-05  Bruno Haible  <bruno@clisp.org>
618
619         strtoimax: Work around AIX 5.1 bug.
620         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
621         definition.
622         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
623         Set HAVE_STRTOIMAX.
624         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
625         REPLACE_STRTOIMAX.
626         * modules/inttypes-incomplete (Makefile.am): Substitute
627         REPLACE_STRTOIMAX.
628         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
629         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
630         (Depends-on): Update conditions.
631         * tests/test-strtoimax.c (main): Add tests for large values.
632         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
633
634 2012-01-05  Bruno Haible  <bruno@clisp.org>
635
636         inttypes: Modernize.
637         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
638         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
639         (Makefile.am): Update inttypes.h rule.
640
641 2012-01-05  Jim Meyering  <meyering@redhat.com>
642
643         init.sh: don't waste a subshell just to redirect stderr
644         * tests/init.sh: In testing for diff -u and diff -c, use a
645         stderr-redirecting exec inside `...` rather than a subshell.
646
647         test-init.sh: avoid failure on HP-UX 11.00
648         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
649         resolves to diff -c or cmp.  Reported by Bruno Haible.
650
651 2012-01-05  Bruno Haible  <bruno@clisp.org>
652
653         Tests for module 'strtoull'.
654         * modules/strtoull-tests: New file.
655         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
656
657 2012-01-05  Bruno Haible  <bruno@clisp.org>
658
659         Tests for module 'strtoll'.
660         * modules/strtoll-tests: New file.
661         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
662
663 2012-01-05  Bruno Haible  <bruno@clisp.org>
664
665         Tests for module 'strtoul'.
666         * modules/strtoul-tests: New file.
667         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
668
669 2012-01-05  Bruno Haible  <bruno@clisp.org>
670
671         Tests for module 'strtol'.
672         * modules/strtol-tests: New file.
673         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
674
675 2012-01-04  Jim Meyering  <meyering@redhat.com>
676
677         test-init.sh: accommodate Solaris 5.10's different diff -u output
678         * tests/test-init.sh: Also exempt @@ lines from the comparison
679         of diff output, since Solaris 5.10 and GNU diff formats differ.
680         Reported by Stefano Lattarini.
681
682 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
683
684         test-posixtm: don't assume signed integer wraparound
685         * tests/test-posixtm.c (main): Don't assume wraparound semantics
686         after signed integer overflow.  Inspired by (though it may not
687         fix) Bruno Haible's bug report in
688         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
689
690         Spell out "Windows 9x" and "Windows XP".
691         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
692         "Windows 9x" and "WinXP" with "Windows XP".
693
694 2012-01-04  Jim Meyering  <meyering@redhat.com>
695
696         test-vc-list-files-cvs.sh: remove obsolete comment
697         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
698         double exit.  Now that's all encapsulated via skip_ and Exit.
699
700 2012-01-04  Bruno Haible  <bruno@clisp.org>
701
702         Talk about "native Windows API", not "Win32".
703         * lib/classpath.c: Update comments to mention native Windows.
704         * lib/csharpexec.c: Likewise.
705         * lib/dup2.c: Likewise.
706         * lib/error.c: Likewise.
707         * lib/fcntl.c: Likewise.
708         * lib/filename.h: Likewise.
709         * lib/findprog.c: Likewise.
710         * lib/get-rusage-as.c: Likewise.
711         * lib/get-rusage-data.c: Likewise.
712         * lib/getpagesize.c: Likewise.
713         * lib/javaexec.c: Likewise.
714         * lib/msvc-inval.c: Likewise.
715         * lib/msvc-nothrow.c: Likewise.
716         * lib/nanosleep.c: Likewise.
717         * lib/nonblocking.c: Likewise.
718         * lib/printf-parse.c: Likewise.
719         * lib/setlocale.c: Likewise.
720         * lib/sigaction.c: Likewise.
721         * lib/strerror_r.c: Likewise.
722         * lib/tmpdir.c: Likewise.
723         * lib/vasnprintf.c: Likewise.
724         * lib/w32spawn.h: Likewise.
725         * lib/waitpid.c: Likewise.
726         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
727         * m4/locale-ar.m4: Likewise.
728         * m4/locale-fr.m4: Likewise.
729         * m4/locale-ja.m4: Likewise.
730         * m4/locale-tr.m4: Likewise.
731         * m4/locale-zh.m4: Likewise.
732         * m4/printf.m4: Likewise.
733         * tests/test-cloexec.c: Likewise.
734         * tests/test-copy-acl.sh: Likewise.
735         * tests/test-copy-file.sh: Likewise.
736         * tests/test-file-has-acl.sh: Likewise.
737         * tests/test-set-mode-acl.sh: Likewise.
738         * tests/test-dup-safer.c: Likewise.
739         * tests/test-dup2.c: Likewise.
740         * tests/test-dup3.c: Likewise.
741         * tests/test-fcntl.c: Likewise.
742         * tests/test-nonblocking-pipe.h: Likewise.
743         * tests/test-nonblocking-socket.h: Likewise.
744         * tests/test-pipe.c: Likewise.
745         * tests/test-pipe2.c: Likewise.
746         * tests/test-spawn-pipe-child.c: Likewise.
747         * doc/acl-resources.txt: Likewise.
748         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
749         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
750         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
751         * lib/localcharset.c: Update comments to mention native Windows.
752         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
753         * lib/localename.c: Likewise.
754         * lib/progreloc.c: Likewise.
755         * lib/relocatable.c: Likewise.
756         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
757         (windows_compute_revents): Renamed from win32_compute_revents.
758         (windows_compute_revents_socket): Renamed from
759         win32_compute_revents_socket.
760         * lib/select.c: Update comments to mention native Windows.
761         (windows_poll_handle): Renamed from win32_poll_handle.
762         * m4/threadlib.m4: Update comments to mention native Windows.
763         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
764         --enable-threads=windows instead of --enable-threads=win32. Set
765         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
766         * lib/glthread/lock.h: Update comments to mention native Windows.
767         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
768         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
769         USE_WIN32_THREADS.
770         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
771         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
772         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
773         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
774         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
775         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
776         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
777         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
778         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
779         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
780         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
781         * tests/test-tls.c: Likewise.
782         Rationale:
783         Microsoft renamed the "Win32 API" to "Windows API", as it is available
784         on both 32-bit and 64-bit Windows systems.
785         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
786         line of distinction is between "native Windows" on one side and Unix/
787         POSIX systems on the other side. More details in
788         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
789         Suggested by Paul Eggert.
790
791 2012-01-03  Bruno Haible  <bruno@clisp.org>
792
793         isatty: Support for MSVC 9.
794         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
795         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
796         (_isatty_nothrow): New function.
797         (isatty): Use it instead of _isatty.
798         (IsConsoleHandle): Add comment, from Paolo Bonzini.
799         * lib/poll.c (IsConsoleHandle): Likewise.
800         * lib/select.c (IsConsoleHandle): Likewise.
801         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
802         (gl_PREREQ_ISATTY): New macro.
803         * modules/isatty (Depends-on): Add msvc-inval.
804         (configure.ac): Invoke gl_PREREQ_ISATTY.
805
806 2012-01-03  Jim Meyering  <meyering@redhat.com>
807
808         maint.mk: remove temporary transition aid from over 1.5 years ago
809         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
810         purpose was to aid in the transition (avoiding silent malfunction)
811         from that old name to the new _sc_search_regexp.  This shim was
812         added by commit 219c504b.
813
814         init.sh: do not try to accommodate compare arguments starting with "-"
815         * tests/init.sh (compare_dev_null_): Do not try to accommodate
816         compare arguments that start with "-".  Besides, we do not worry
817         about this when invoking diff or cmp; why start now with sed?
818         Using "--" to separate options from argument would trigger sed
819         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
820         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
821
822 2012-01-02  Bruno Haible  <bruno@clisp.org>
823
824         Enhance tests for module 'isatty'.
825         * modules/isatty-tests (Depends-on): Add pipe-posix.
826         * tests/test-isatty.c: Include <fcntl.h>.
827         (DEV_NULL): New macro.
828         (main): Test the resut of isatty() also on regular files, pipes, and
829         /dev/null.
830
831         New module 'isatty'.
832         * lib/unistd.in.h (isatty): New declaration.
833         * lib/isatty.c: New file, based on an idea of
834         Bastien Roucariès <roucaries.bastien@gmail.com>.
835         * m4/isatty.m4: New file.
836         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
837         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
838         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
839         REPLACE_ISATTY.
840         * modules/isatty: New file.
841         * doc/posix-functions/isatty.texi: Mention the new module.
842         Suggested by Paolo Bonzini.
843
844 2012-01-02  Bruno Haible  <bruno@clisp.org>
845
846         canonicalize: Tweak 2011-12-29 commit.
847         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
848         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
849
850 2012-01-02  Jim Meyering  <meyering@redhat.com>
851
852         gitlog-to-changelog: describe input syntax in --help output
853         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
854
855         gitlog-to-changelog: fix typo in --help: show backslash before email @
856         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
857         in sources, but not in actual output.
858
859 2011-12-30  Jim Meyering  <meyering@redhat.com>
860
861         gitlog-to-changelog: don't malfunction when name contains %-directive
862         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
863         in a name string cause trouble.  E.g., with a user name of "%s",
864         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
865
866 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
867
868         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
869         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
870         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
871         the "  (tiny change)" notation that is appended to the standard
872         ChangeLog "date  name  email" header line.
873
874 2012-01-01  Jim Meyering  <meyering@redhat.com>
875
876         test-framework-sh: init.sh: fix "make dist" failure
877         When using gnulib-tool's --with-tests option and any module that
878         depends on test-framework-sh, "make dist" would fail due to the
879         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
880         in the gltests directory, and not in the gllib/ directory.
881         One way to work around that is to move the EXTRA_DIST += init.sh
882         from the primary module to the -tests one:
883         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
884         * modules/test-framework-sh (Makefile.am): ...not here.
885         Reported by Tom G. Christensen in
886         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
887
888         version-etc: update copyright year reported by --version
889         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
890
891 2011-12-31  Pádraig Brady  <P@draigBrady.com>
892
893         canonicalize: only stat() if required
894         * lib/canonicalize.c (canonicalize_filename_mode):
895         Avoid calling l?stat() when both CAN_MISSING,
896         and CAN_NOLINKS are set, as we neither need
897         to resolve symlinks or test component existence.
898
899 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
900
901         doc: cover st_ino issues once; add OpenVMS etc.
902         * doc/posix-functions/stat.texi (stat):
903         * doc/posix-functions/lstat.texi (lstat):
904         * doc/posix-functions/fstatat.texi (fstatat):
905         * doc/posix-functions/fstat.texi (fstat):
906         Move general 'struct stat' stuff to sys_stat.texi,
907         leaving behind a pointer.
908         * doc/posix-headers/sys_stat.texi (sys/stat.h):
909         Merge duplicate info about 'struct stat' problems into here.
910         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
911         and suggest partial workarounds.
912
913         same-inode: port to OpenVMS
914         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
915         three st_ino values.
916
917 2011-12-30  Pádraig Brady  <P@draigBrady.com>
918
919         canonicalize: fix references to stat() and lstat()
920         * lib/canonicalize.c (canonicalize_filename_mode):
921         Ensure references always resolve to a replacement
922         function if required (even via a macro).
923
924 2011-12-30  Jim Meyering  <meyering@redhat.com>
925
926         gitlog-to-changelog: remove a little duplication
927         * build-aux/gitlog-to-changelog (main): Grep @lines once,
928         rather than twice.
929
930 2011-12-29  Pádraig Brady  <P@draigBrady.com>
931
932         canonicalize: add support for not resolving symlinks
933         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
934         indicate we don't want to follow symlinks.  Also
935         provide CAN_MODE_MASK to aid setting these existing
936         mutually exclusive values.
937         * lib/canonicalize.c (canonicalize_filename_mode):
938         Extract the flags from can_mode parameter, which
939         are currently just used to select between stat()
940         and lstat().  Also ensure that mutually exclusive
941         values are flagged immediately as invalid.
942         * tests/test-canonicalize.c: Verify symlinks are
943         not followed, and that invalid flag combinations
944         are diagnosed.
945
946 2011-12-25  Jim Meyering  <meyering@redhat.com>
947
948         gitlog-to-changelog: do not clump multi-paragraph entries
949         Identical header lines (date,name,email+coauthors) are suppressed,
950         thus putting all entries with those same characteristics under
951         a single header.  However, when a log entry consists of two or
952         more paragraphs, it may not be clear where it starts and ends.
953         This change makes it so that such an entry is always separated
954         from others by a header line, even when that header would
955         otherwise be suppressed.
956         * build-aux/gitlog-to-changelog: Implement the above.
957         Inspired by a related request from Stefano Lattarini in
958         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
959
960 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
961
962         announce-gen: fix `cmd' typo in diagnostic
963         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
964         diagnostic: a missing '$' meant that the command was not output.
965
966 2011-12-23  Jim Meyering  <meyering@redhat.com>
967
968         test-framework-sh: distribute init.sh
969         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
970         Otherwise, "make -C gnulib-tests check" (at least in grep) would
971         fail due to the lack of init.sh.
972
973         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
974         * modules/atexit-tests: Rather than listing tests/init.sh,
975         now that there's a module for it, simply depend on that new module.
976         * modules/closein-tests: Likewise.
977         * modules/exclude-tests: Likewise.
978         * modules/getcwd-tests: Likewise.
979         * modules/perror-tests: Likewise.
980         * modules/pread-tests: Likewise.
981         * modules/pwrite-tests: Likewise.
982         * modules/vc-list-files-tests: Likewise.
983         * modules/verify-tests: Likewise.
984         * modules/xalloc-die-tests: Likewise.
985         * modules/xstrtoimax-tests: Likewise.
986         * modules/xstrtol-tests: Likewise.
987         * modules/xstrtoll-tests: Likewise.
988         * modules/xstrtoumax-tests: Likewise.
989         * modules/yesno-tests: Likewise.
990
991 2011-12-22  Jim Meyering  <meyering@redhat.com>
992
993         test-framework-sh: add minimal tests of init.sh's compare function
994         * modules/test-framework-sh-tests: New file.
995         * tests/test-init.sh: New file.
996
997         test-framework-sh: new module
998         * modules/test-framework-sh: New file.
999         * MODULES.html.sh (Support for maintaining and releasing projects):
1000         List it.
1001
1002         init.sh: do not emit simulated diff output to stderr
1003         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
1004
1005 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1006
1007         .gitignore: ignore gnulib.dvi and regex.info
1008         * doc/.gitignore:add gnulib.dvi and regex.info
1009
1010 2011-12-22  Jim Meyering  <meyering@redhat.com>
1011
1012         init.sh: correct previous change
1013         * tests/init.sh (compare): My previous change was wrong.
1014         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
1015
1016         init.sh: avoid unwarranted test failure when using "set -e"
1017         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
1018         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
1019         a use like "compare exp out" would get evoke an unconditional failure.
1020
1021 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
1022
1023         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
1024         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
1025         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
1026         autoreconf that did not.
1027         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
1028         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1029
1030 2011-12-17  Jim Meyering  <meyering@redhat.com>
1031
1032         bootstrap: remove some now-unneeded code
1033         This script arose back when gnulib-tool was young.
1034         Since then, it has seen improvements that render much of this
1035         script unnecessary.  In particular, it can now make symlinks
1036         to the files it uses.  Also, I no longer see as much value in
1037         marking files as read-only via comments.
1038         If you relied on the symlink-creation feature of the preceding
1039         version of this script, you can get most of that functionality
1040         by adding the --symlink option to the definition of
1041         gnulib_tool_option_extras in your bootstrap.conf file.
1042         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1043         Run autopoint and libtoolize *before* gnulib-tool.
1044         After it, run an abbreviated autoreconf, rather than a loop around
1045         all tools.
1046         (slirp, bt_mark_as_generated): Remove functions.
1047
1048 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1049
1050         ftoastr: fix typo
1051         * lib/ftoastr.h: Fix misspelling in comment.
1052
1053 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1054
1055         * top/README-release: fix punctuation.
1056
1057 2011-12-17  Jim Meyering  <meyering@redhat.com>
1058
1059         bootstrap: correct the recent buildreq change
1060         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
1061         had no effect.
1062         * build-aux/bootstrap (buildreq): Bracket each search term with
1063         "*...*", so that the shell "case" statement works as intended.
1064         Add comments.
1065
1066 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1067
1068         build: let bootstrap resort to wget when downloading .po files
1069         * build-aux/bootstrap (download_po_files): Fallback to wget when
1070         downloading the .po files via rsync fails.  This is necessary to
1071         bootstrap from behind a strict firewall.
1072
1073 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1074
1075         stdint: don't assume C++11 when compiling with g++
1076         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1077         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1078         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1079         work also in C++ before C++11, as that improperly inhibits
1080         generating a substitute stdint.h for that case.
1081
1082 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1083
1084         alloca: protect comment from gnulib-tool
1085         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1086         that gnulib-tool doesn't think it's a license, and munge it to
1087         say "GCC version 3".
1088
1089 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1090
1091         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1092         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1093         $(abs_top_builddir) instead of $(top_builddir).
1094
1095 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1096
1097         strftime-tests: also test nanoseconds
1098         * tests/test-strftime.c (T): Add a test of %N.
1099
1100 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1101
1102         inttypes, stdint: add C++11 support
1103         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1104         when including inttypes.h and stdint.h.  Support this change to
1105         the standard.
1106         * doc/posix-headers/inttypes.texi (inttypes.h):
1107         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1108         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1109         Define if not defined already, for the benefit of pre-C++11 hosts.
1110         Define the standard format macros (e.g., PRId8) always.
1111         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1112         Likewise, if __cpluspus.  Define the standard constant and limit
1113         macros (e.g., INT8_C, INT8_MAX) always.
1114         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1115         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1116         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1117         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1118         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1119         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1120         Likewise.
1121
1122 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1123
1124         nonblocking tests: Fix test failure on Linux/PPC.
1125         Suggested by Prerna Saxena in
1126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1127         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1128         Set to 1100000.
1129
1130 2011-12-12  Jim Meyering  <meyering@redhat.com>
1131
1132         argmatch: don't hard-code `' when listing valid option arguments
1133         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1134         use the quote function to add quotes.  Use fputs rather than
1135         fprintf for the format string with no format directive.
1136
1137 2011-12-07  Eric Blake  <eblake@redhat.com>
1138
1139         bootstrap: detect tools required by gnulib-tool
1140         * build-aux/bootstrap (buildreq): Provide minimum implicit
1141         dependencies.
1142         * DEPENDENCIES: Mention patch as a prereq.
1143
1144 2011-12-04  Bruno Haible  <bruno@clisp.org>
1145
1146         sethostname: Port to Windows platforms.
1147         * lib/sethostname.c: Provide an alternate implementation for Windows
1148         platforms.
1149         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1150         (main): Skip the test if sethostname() fails with EPERM. On Windows
1151         platforms, don't check the result of gethostname().
1152
1153 2011-12-04  Bruno Haible  <bruno@clisp.org>
1154             Jim Meyering  <meyering@redhat.com>
1155
1156         tests: Avoid spurious error message on platforms without mktemp program.
1157         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1158
1159 2011-12-04  Bruno Haible  <bruno@clisp.org>
1160
1161         sethostname: Fix documentation.
1162         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1163         "not fixed" section.
1164
1165 2011-12-03  Bruno Haible  <bruno@clisp.org>
1166
1167         gnulib-tool: Verify that the License field is present and non-empty.
1168         * gnulib-tool (func_get_license_raw): New function, extracted from
1169         func_get_license.
1170         (func_get_license): Use it. Warn if the module is not a test module and
1171         has no license.
1172         Suggested by Jim Meyering.
1173
1174 2011-12-03  Bruno Haible  <bruno@clisp.org>
1175
1176         sethostname tests: Fix link error on mingw.
1177         * tests/test-sethostname1.c: New file, extracted from
1178         tests/test-sethostname.c.
1179         * tests/test-sethostname2.c: New file, extracted from
1180         tests/test-sethostname.c.
1181         * tests/test-sethostname.c: Remove file.
1182         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1183         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1184         (Depends-on): Add gethostname.
1185         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1186         Link the latter with $(GETHOSTNAME_LIB).
1187
1188         sethostname tests: Fix compilation error on mingw.
1189         * tests/test-sethostname.c: Don't include <sys/types.h>.
1190         (geteuid): Use a dummy value without uid_t.
1191         * modules/sethostname-tests (Depends-on): Remove sys_types.
1192
1193         sethostname tests: Avoid a gcc warning.
1194         * tests/test-sethostname.c (main): Remove an unused variable.
1195
1196         Tweak last commit.
1197         * modules/sethostname-tests (Files): Sort by decreasing importance.
1198         (configure.ac): Check for geteuid.
1199         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1200         the test when there's nothing to test. Drop an unnecessary cast.
1201         Improve an error message. Verify that the final sethostname() call
1202         succeeds.
1203
1204 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1205
1206         Add a test suite for the sethostname module.
1207         * modules/sethostname-tests: New file.  A test program
1208         for the sethostname module.
1209         * tests/test-sethostname.c: Likewise.
1210
1211 2011-12-03  Bruno Haible  <bruno@clisp.org>
1212
1213         Tweak last commit.
1214         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1215         Fix preprocessor directives indentation. Fix typos.
1216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1217         * modules/unistd (Makefile): Likewise.
1218
1219 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1220
1221         Integrate the sethostname module into unistd.
1222         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1223         into the unistd.h header.
1224         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1225         preprocessor directives.
1226         * modules/unistd: Setup the Makefile substitutions of the
1227         SETHOSTNAME preprocessor directives.
1228
1229 2011-12-03  Bruno Haible  <bruno@clisp.org>
1230
1231         Tweak last commit.
1232         * lib/sethostname.c: Don't include <string.h>.
1233         (sethostname): No need to copy the argument string to the stack. Don't
1234         call clearerr. Preserve errno when fprintf failed.
1235         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1236         Don't invoke AC_REPLACE_FUNCS.
1237         * modules/sethostname (Link): Remove empty section.
1238         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1239         failure problem.
1240
1241 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1242
1243         New module 'sethostname'.
1244         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1245         for systems that lack it.
1246         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1247         sethostname declaration and function.
1248         * modules/sethostname: New file.  Define the sethostname module.
1249
1250 2011-12-03  Bruno Haible  <bruno@clisp.org>
1251
1252         Tweak last commit.
1253         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1254
1255 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1256
1257         Split the HOST_NAME_MAX detection into a separate m4 macro.
1258         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1259         macro so it can be used by the pending sethostname module.
1260
1261 2011-12-03  Bruno Haible  <bruno@clisp.org>
1262
1263         Fix module descriptions syntax.
1264         * modules/argv-iter (License): Fix syntax.
1265         * modules/di-set (License): Likewise.
1266         * modules/ino-map (License): Likewise.
1267         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1268
1269 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1270
1271         stdalign: port to Clang 3.0
1272         Problem reported by Simon Josefsson in
1273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1274         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1275         which has <stdalign.h> but which does not define alignof.
1276         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1277
1278 2011-12-01  Eric Blake  <eblake@redhat.com>
1279
1280         mktempd: silence dd usage
1281         * build-aux/mktempd (rand_bytes): Silence dd.
1282
1283 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1284
1285         manywarnings: Don't mention gcc version in docstring.
1286         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1287         Jim Meyering <meyering@redhat.com>.
1288
1289 2011-11-30  Jim Meyering  <meyering@redhat.com>
1290
1291         hash: mark a few floating point constants with "f" suffix
1292         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1293         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1294         floating point constants with "f", since they're destined to be
1295         saved/used as "float"s.
1296
1297 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1298
1299         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1300         * tests/test-float.c (test_long_double): Correct and re-enable the
1301         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1302
1303 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1304
1305         Avoid subtracting two pointers that don't point into the same block.
1306         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1307         only pointers into the same memory block are subtracted. We cannot
1308         assume that sizeof (ptrdiff_t) == sizeof (void *).
1309
1310 2011-11-29  Eric Blake  <eblake@redhat.com>
1311
1312         maint.mk: add syntax check for use of compare from init.sh
1313         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1314         moved here from coreutils.
1315
1316         manywarnings: drop -Wunsuffixed-float-constants
1317         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1318         '1.0D', which is the only way to silence this warning for 'double'.
1319
1320 2011-11-29  Jim Meyering  <meyering@redhat.com>
1321
1322         hash: mark compute_bucket_size with the pure attribute
1323         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1324
1325         quotearg, propername: correct pragma guard expression
1326         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1327         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1328
1329 2011-11-28  Jim Meyering  <meyering@redhat.com>
1330
1331         propername: do not mark proper_name with the const attribute
1332         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1333         since it examines data pointed to by its parameter.
1334         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1335         the suggestion from -Wsuggest-attribute=const.
1336
1337         propername: mark one more function as const
1338         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1339
1340 2011-11-27  Jim Meyering  <meyering@redhat.com>
1341
1342         mark functions with const and pure attributes
1343
1344         Mark functions per suggestions from gcc-4.6 when using these options:
1345         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1346         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1347         Follow these guidelines: when possible, apply the attribute to
1348         an extern declaration, not to its definition.  Apply it to the
1349         definition only when the definition is static.
1350         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1351         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1352         * lib/base64.h (isbase64): Likewise.
1353         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1354         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1355         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1356         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1357         (c_tolower, c_toupper): Likewise.
1358         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1359         * lib/chdir-long.c (find_non_slash): Likewise.
1360         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1361         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1362         * lib/file-type.h (file_type): Likewise.
1363         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1364         * lib/filevercmp.c (verrevcmp): Likewise.
1365         * lib/freadahead.h (freadahead): Likewise.
1366         * lib/fts.c (fts_maxarglen): Likewise.
1367         * lib/hash-pjw.h (hash_pjw): Likewise.
1368         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1369         * lib/hash.c (is_prime, next_prime): Likewise.
1370         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1371         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1372         (hash_table_ok, hash_get_first, hash_string): Likewise.
1373         (compute_bucket_size): Likewise.
1374         * lib/i-ring.h (i_ring_empty): Likewise.
1375         * lib/isnan.c (isnanl): Likewise.
1376         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1377         * lib/memcasecmp.h (memcasecmp): Likewise.
1378         * lib/memchr2.h (memchr2): Likewise.
1379         * lib/memcmp2.h (memcmp2): Likewise.
1380         * lib/parse-datetime.y (lookup_zone): Likewise.
1381         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1382         [!WINDOWS_SOCKETS]: Likewise.
1383         * lib/strnlen1.h (strnlen1): Likewise.
1384         * lib/uniwidth.in.h (uc_width): Likewise.
1385         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1386         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1387         (quoting_options_from_style): Add a comment.
1388         * lib/propername.h (proper_name): Add a comment.
1389
1390 2011-11-27  Bruno Haible  <bruno@clisp.org>
1391
1392         Remove unused macros from !_LIBC code in glibc-borrowed files.
1393         * lib/fnmatch.c (STRCOLL): Remove macro.
1394         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1395         * lib/glob.c (__stat, __readdir64): Remove macros.
1396         * lib/tempname.c (__open64, __xstat64): Remove macros.
1397         Suggested by Paul Eggert.
1398
1399 2011-11-27  Bruno Haible  <bruno@clisp.org>
1400
1401         getcwd: Fix link error on MSVC 9.
1402         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1403
1404 2011-11-27  Bruno Haible  <bruno@clisp.org>
1405
1406         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1407         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1408         HAVE_OPENDIR is 0.
1409         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1410         HAVE_CLOSEDIR is 0.
1411         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1412         is 0.
1413         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1414
1415 2011-11-27  Bruno Haible  <bruno@clisp.org>
1416
1417         getcwd: Fix bug from 2011-08-17.
1418         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1419         platforms that need it.
1420         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1421         code of 4 to be a failure, not a success. This ensures that
1422         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1423
1424 2011-11-27  Bruno Haible  <bruno@clisp.org>
1425
1426         binary-io tests: Avoid test failure on mingw when libtool is used.
1427         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1428         Don't verify the size of t-bin-out1.tmp here.
1429         * tests/test-binary-io.sh: Verify it here.
1430         Reported by Simon Josefsson.
1431
1432 2011-11-26  Bruno Haible  <bruno@clisp.org>
1433
1434         Fix conflict between two instantiations of module 'unistd'.
1435         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1436         ${include_guard_prefix} also in the autoconf snippet.
1437         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1439         GNULIB_UNISTD_H_GETOPT.
1440         * modules/getopt-posix (configure.ac): Set the
1441         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1442         * modules/getopt-gnu (configure.ac): Likewise.
1443         * modules/unistd (Makefile.am): Change the substitution value of
1444         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1445         Reported by Simon Josefsson.
1446
1447 2011-11-25  Bruno Haible  <bruno@clisp.org>
1448
1449         pagealign_alloc: Doc and comments.
1450         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1451         module.
1452         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1453
1454 2011-11-25  Jim Meyering  <meyering@redhat.com>
1455
1456         test-update-copyright.sh: avoid false-positive failure
1457         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1458         around false positive failure on Cygwin/Windows.  The latter was
1459         matching erroneously-created files with names like
1460         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1461
1462 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1463
1464         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1465         * m4/valgrind-tests.m4: Check that the parameters that will be
1466         used works, not just a subset of them.  Reported by Bruno Haible
1467         <bruno@clisp.org>.
1468
1469 2011-11-24  Jim Meyering  <meyering@redhat.com>
1470
1471         test-stdalign.c: comment out long double tests
1472         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1473         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1474         error: '_Alignas' specifiers cannot reduce alignment of \
1475         'static_longdouble_alignas'.
1476
1477 2011-11-22  Jim Meyering  <meyering@redhat.com>
1478
1479         init.sh: make "compare /dev/null FILE" output more readable
1480         * tests/init.sh (compare_): Document the preferred order of arguments.
1481         (emit_diff_u_header_): New function.
1482         (compare_dev_null_): Emit a simulated diff, rather than just the
1483         contents of the unexpected file.  Suggestion from Bruno Haible.
1484
1485 2011-11-21  Jim Meyering  <meyering@redhat.com>
1486             Eric Blake  <eblake@redhat.com>
1487
1488         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1489         * tests/init.sh: Make our compare function slightly more portable.
1490         Reported by Bruno Haible in
1491         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1492
1493 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1494
1495         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1496         before using it, in code that ends up in config.h.
1497
1498 2011-11-20  Bruno Haible  <bruno@clisp.org>
1499
1500         getcwd: Work around getcwd bug on AIX 5..7.
1501         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1502         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1503         Use a different value for gl_cv_func_getcwd_path_max. Move the
1504         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1505         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1506         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1507         Define HAVE_MINIMALLY_WORKING_GETCWD.
1508         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1509         where it is not even minimally working, that is, on AIX.
1510         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1511         m4/getcwd-path-max.m4.
1512         (main): Update exit code computation.
1513         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1514         getcwd does not handle long file names.
1515
1516 2011-11-20  Bruno Haible  <bruno@clisp.org>
1517
1518         getcwd: Fix bug from 2009-09-10.
1519         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1520         like "no".
1521
1522 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1523
1524         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1525
1526 2011-11-20  Bruno Haible  <bruno@clisp.org>
1527
1528         fma tests: Avoid shadowing local variables.
1529         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1530         expected.
1531
1532 2011-11-20  Bruno Haible  <bruno@clisp.org>
1533
1534         copysignf tests: Fix.
1535         * tests/test-copysignf.c: Fix signature check.
1536
1537 2011-11-20  Bruno Haible  <bruno@clisp.org>
1538
1539         fma: Remove unused code.
1540         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1541         unused macros.
1542
1543 2011-11-20  Bruno Haible  <bruno@clisp.org>
1544
1545         sethostname: Fix doc about AIX.
1546         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1547         sethostname; it has it.
1548
1549         sethostname: Mention more portability problems.
1550         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1551         problem.
1552         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1553
1554 2011-11-19  Bruno Haible  <bruno@clisp.org>
1555
1556         Depend on module fcntl-h when AT_FDCWD is used.
1557         * modules/utimens (Depends-on): Add fcntl-h.
1558         * modules/areadlinkat (Depends-on): Likewise.
1559         * modules/areadlinkat-with-size (Depends-on): Likewise.
1560         * modules/faccessat (Depends-on): Likewise.
1561         * modules/fchmodat (Depends-on): Likewise.
1562         * modules/fchownat (Depends-on): Likewise.
1563         * modules/getcwd (Depends-on): Likewise.
1564         * modules/mkdirat (Depends-on): Likewise.
1565         * modules/mkfifoat (Depends-on): Likewise.
1566         * modules/readlinkat (Depends-on): Likewise.
1567         * modules/symlinkat (Depends-on): Likewise.
1568         * modules/dup2-tests (Depends-on): Likewise.
1569         * modules/fdutimensat-tests (Depends-on): Likewise.
1570         * modules/futimens-tests (Depends-on): Likewise.
1571
1572 2011-11-19  Bruno Haible  <bruno@clisp.org>
1573
1574         euidaccess: Update a comment.
1575         * lib/euidaccess.c: Update comment about platforms with faccessat.
1576
1577 2011-11-19  Bruno Haible  <bruno@clisp.org>
1578
1579         openat: Fix file list.
1580         * modules/openat (Files): Remove lib/at-func.c.
1581
1582 2011-11-19  Bruno Haible  <bruno@clisp.org>
1583
1584         fstatat: Simplify.
1585         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1586         gnulib should define rpl_fstatat, there is a
1587         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1588
1589 2011-11-19  Bruno Haible  <bruno@clisp.org>
1590
1591         Ensure 'inline' can be used in tests/test-utimens-common.h.
1592         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1593         * modules/futimens-tests (configure.ac): Likewise.
1594         * modules/utimens-tests (configure.ac): Likewise.
1595         * modules/utimensat-tests (configure.ac): Likewise.
1596
1597 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1598
1599         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1600         not hash_insert0.
1601         (hash_insert_if_absent): Doc fix.
1602
1603 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1604
1605         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1606
1607 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1608
1609         test-getcwd: disambiguate exit status
1610         * tests/test-getcwd.c (test_long_name): Return 0..7.
1611         (main): Exit with an unambiguous exit status.  The old
1612         code yielded a mysterious mixture of two failure codes.
1613
1614         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1615         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1616         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1617         rpl_fstatat or fstatat.  This should fix the other problem
1618         reported by Kai Habel in
1619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1620         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1622         and I reproduced it on a Solaris 8 host we still have in production.
1623
1624 2011-11-18  Jim Meyering  <meyering@redhat.com>
1625
1626         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1627         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1628         Add a sentence to the comment.
1629         (hash_insert0): New function that simply calls hash_insert_if_absent.
1630         * lib/hash.h (hash_insert_if_absent): Declare it.
1631         (hash_insert0): Add deprecation attribute.
1632         (_GL_ATTRIBUTE_DEPRECATED): Define.
1633         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1634         not hash_insert0.
1635         * NEWS: Mention it, even though it's not really an incompatible change.
1636
1637 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1638
1639         openat: avoid compilation failure due to lack of <errno.h> inclusion
1640         * lib/openat.c: Include <errno.h>.
1641
1642 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1643
1644         * modules/getcwd (Depends-on): Add fdopendir.
1645         This fixes one of the two problems reported by Kai Habel in
1646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1647
1648         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1649         stdalign problem reported by Ian Beckwith in
1650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1651         * modules/crypto/gc-arcfour (Depends-on):
1652         Depend conditionally on crypto/arcfour.
1653         * modules/crypto/gc-arctwo (Depends-on):
1654         Depend conditionally on crypto/arctwo.
1655         * modules/crypto/gc-des (Depends-on):
1656         Depend conditionally on crypto/des.
1657         * modules/crypto/gc-hmac-md5 (Depends-on):
1658         Depend conditionally on crypto/hmac-md5.
1659         * modules/crypto/gc-hmac-sha1 (Depends-on):
1660         Depend conditionally on crypto/hmac-sha1.
1661         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1662         * modules/crypto/gc-md4 (Depends-on):
1663         Depend conditionally on crypto/md4.
1664         * modules/crypto/gc-md5 (Depends-on):
1665         Depend conditionally on crypto/md5.
1666         * modules/crypto/gc-rijndael (Depends-on):
1667         Depend conditionally on crypto/rijndael.
1668         * modules/crypto/gc-sha1 (Depends-on):
1669         Depend conditionally on crypto/sha1.
1670         * modules/crypto/gc-arcfour:
1671         * modules/crypto/gc-arctwo:
1672         * modules/crypto/gc-des:
1673         * modules/crypto/gc-hmac-md5:
1674         * modules/crypto/gc-hmac-sha1:
1675         * modules/crypto/gc-md2:
1676         * modules/crypto/gc-md4:
1677         * modules/crypto/gc-md5:
1678         * modules/crypto/gc-rijndael:
1679         * modules/crypto/gc-sha1:
1680         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1681         now that the conditional dependencies do the work for us.
1682
1683 2011-11-17  Jim Meyering  <meyering@redhat.com>
1684
1685         tests: factor st_ctime-comparison out of two headers
1686         * tests/test-utimens-common.h (ctime_compare): Define.
1687         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1688         * tests/test-lutimens.h (test_lutimens): Likewise.
1689         * tests/test-utimens.h (test_utimens): Likewise.
1690
1691         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1692         Invoke the test program via an init.sh-using wrapper.
1693         * tests/test-getcwd.sh: New file.
1694         * modules/getcwd-tests (Files): Add it.
1695         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1696
1697 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1698
1699         gitlog-to-changelog: support multi-author commits.
1700         The FSF cares about keeping track of all authors of patches to its
1701         projects, but Git doesn't provide obvious support for multi-author
1702         changesets. Consensus seems to be forming around the use of extra
1703         Signed-off-by inspired lines in the log message formatted as
1704         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1705         multi-author commits between version control systems.
1706         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1707         log message and output in standard ChangeLog multi-author format.
1708         Reported by Peter Rosin <peda@lysator.liu.se>
1709
1710 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1711             Bruno Haible  <bruno@clisp.org>
1712
1713         Fix some modules' file list.
1714         * modules/fstatat (Files): Add m4/lstat.m4.
1715         * modules/openat (Files): Likewise.
1716         * modules/unlinkat (Files): Likewise.
1717
1718 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1719
1720         maint.mk: fix tight-scope.mk generation in VPATH builds.
1721         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1722         reference with $(srcdir) so that the file is found correctly even
1723         when running `make syntax-check' in a VPATH build.
1724
1725 2011-11-13  Bruno Haible  <bruno@clisp.org>
1726             Jim Meyering  <meyering@redhat.com>
1727
1728         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1729         * tests/init.sh (compare): Remove "No differences encountered" or
1730         synonymous output from the 'diff' program.
1731
1732 2011-11-13  Bruno Haible  <bruno@clisp.org>
1733
1734         Makefile: Tweak indentation.
1735         * Makefile: Use tab as first character in every line that contains rule
1736         commands.
1737
1738 2011-11-13  Bruno Haible  <bruno@clisp.org>
1739
1740         Syntax check for copyright statements.
1741         * check-copyright: New file.
1742         * Makefile (sc_check_copyright): New rule.
1743
1744 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1745
1746         * build-aux/git-version-gen: Add --prefix to configure the tag
1747         match string.
1748
1749 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1750
1751         * build-aux/git-version-gen: Add --help and --version.
1752
1753 2011-11-12  Jim Meyering  <meyering@redhat.com>
1754
1755         revamp the other test-exclude?.sh scripts to use init.sh, too
1756         * tests/test-exclude1.sh: Use init.sh.
1757         * tests/test-exclude2.sh: Likewise.
1758         * tests/test-exclude3.sh: Likewise.
1759         * tests/test-exclude4.sh: Likewise.
1760         * tests/test-exclude5.sh: Likewise.
1761         * tests/test-exclude6.sh: Likewise.
1762         * tests/test-exclude7.sh: Likewise.
1763         * tests/test-exclude8.sh: Likewise.
1764         * modules/exclude-tests (Files): List init.sh.
1765
1766         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1767         These shell scripts ignored failure of the binary test-exclude,
1768         so making the latter return 77 didn't cause them to be skipped.
1769         * tests/test-exclude5.sh: Exit with test-exclude's error status
1770         when that program fails.  Revamp to use init.sh.
1771         * tests/test-exclude2.sh: Likewise.
1772
1773         test-exclude: fix a typo
1774         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1775
1776 2011-11-11  Bruno Haible  <bruno@clisp.org>
1777
1778         obstack: Fix compilation error on MSVC 9.
1779         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1780
1781 2011-11-11  Jim Meyering  <meyering@redhat.com>
1782
1783         test-exclude: skip tests rather than failing on deficient systems
1784         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1785         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1786         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1787         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1788
1789 2011-11-10  Bruno Haible  <bruno@clisp.org>
1790
1791         ptsname_r test: Avoid gcc warning on glibc systems.
1792         * tests/test-ptsname_r.c (null_ptr): New function.
1793         (test_errors): Use it.
1794
1795 2011-11-10  Bruno Haible  <bruno@clisp.org>
1796
1797         ptsname_r: Avoid compilation error on OSF/1 5.1.
1798         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1800         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1801         function is not declared or incompatibly declared.
1802         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1803         * modules/ptsname_r (Depends-on, configure.ac): Update.
1804         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1805
1806 2011-11-10  Bruno Haible  <bruno@clisp.org>
1807
1808         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1809         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1810         When cross-compiling, guess yes on all platforms except AIX.
1811         Reported by Ludovic Courtès <ludo@gnu.org>.
1812
1813 2011-11-09  Bruno Haible  <bruno@clisp.org>
1814
1815         ptsname_r tests: Fix bugs.
1816         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1817         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1818
1819 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1820
1821         fstatat: work with cross-compilation
1822         Problem reported by Ludovic Courtès in
1823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1824         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1825         "cross-compiling" and assume the bug is present.  Replace
1826         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1827         an inverted sense, to be more conservative about our assumptions.
1828         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1829
1830 2011-11-09  Bruno Haible  <bruno@clisp.org>
1831
1832         Improve MODULES.html output.
1833         * modules/mkfifoat (Description): Use the word "function".
1834         * modules/readlinkat (Description): Likewise.
1835         * modules/symlinkat (Description): Likewise.
1836
1837 2011-11-09  Eric Blake  <eblake@redhat.com>
1838
1839         ptsname_r-tests: new test module
1840         * modules/ptsname_r-tests: New module.
1841         * tests/test-ptsname_r.c: New file.
1842
1843         ptsname_r: new module
1844         * modules/ptsname_r: New module.
1845         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1846         * lib/ptsname.c (__ptsname_r): Split...
1847         * lib/ptsname_r.c: ...into new file.
1848         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1849         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1850         * modules/stdlib (Makefile.am): Substitute witnesses.
1851         * lib/stdlib.in.h (ptsname_r): Declare it.
1852         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1853         * MODULES.html.sh (Misc): Likewise.
1854         * modules/ptsname (Depends-on): Alter dependency.
1855         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1856
1857 2011-11-09  Jim Meyering  <meyering@redhat.com>
1858
1859         announce-gen: be more concise when there's only one URL+tarball
1860         * build-aux/announce-gen (get_tool_versions): When you distribute
1861         only one type of tarball, combine the first two "Here are..."
1862         sections and make the key-checking grammar independent of
1863         how many tarballs there are.
1864
1865 2011-11-09  Eric Blake  <eblake@redhat.com>
1866
1867         openpty: provide a stub on mingw
1868         * lib/pty.in.h (includes): Provide forward declarations.
1869         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1870
1871         raise: fix mingw handling of SIGPIPE
1872         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1873
1874 2011-11-08  Bruno Haible  <bruno@clisp.org>
1875
1876         More conditional dependencies.
1877         * modules/faccessat (Depends-on): Add conditions.
1878         * modules/fchmodat (Depends-on): Likewise.
1879         * modules/fchownat (Depends-on): Likewise.
1880         * modules/fstatat (Depends-on): Likewise.
1881         * modules/mkfifoat (Depends-on): Likewise.
1882         * modules/readlinkat (Depends-on): Likewise.
1883         * modules/symlinkat (Depends-on): Likewise.
1884         * modules/unlinkat (Depends-on): Likewise.
1885         * modules/utimensat (Depends-on): Likewise.
1886         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1887         * modules/linkat (Depends-on): Refine the conditions.
1888         * modules/renameat (Depends-on): Likewise.
1889
1890 2011-11-08  Bruno Haible  <bruno@clisp.org>
1891
1892         faccessat: Move AC_LIBOBJ invocation to module description.
1893         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1894         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1895         invocation from here...
1896         * modules/faccessat (configure.ac): ... to here. Invoke
1897         gl_PREREQ_FACCESSAT.
1898
1899 2011-11-08  Bruno Haible  <bruno@clisp.org>
1900
1901         faccessat: Simplify autoconf macro.
1902         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1903         gl_FUNC_EUIDACCESS.
1904
1905 2011-11-08  Bruno Haible  <bruno@clisp.org>
1906
1907         renameat: Fix dependencies.
1908         * modules/renameat (Depends-on): Add stdbool.
1909
1910 2011-11-08  Bruno Haible  <bruno@clisp.org>
1911
1912         mkfifoat: Fix module description.
1913         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1914         not gl_UNISTD_MODULE_INDICATOR.
1915
1916 2011-11-08  Bruno Haible  <bruno@clisp.org>
1917
1918         fstatat: Remove unused dependency.
1919         * modules/fstatat (Depends-on): Remove fstat.
1920
1921 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1922
1923         GNUmakefile: behave when Makefile is missing.
1924         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1925
1926 2011-11-08  Bruno Haible  <bruno@clisp.org>
1927
1928         openat: Conditionalize dependencies.
1929         * lib/openat.c: Reduce the scope of some #includes.
1930         * modules/openat (Depends-on): Add conditions.
1931
1932 2011-11-07  Jim Meyering  <meyering@redhat.com>
1933
1934         maint.mk: extract GPG key ID without using a temporary file
1935         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1936         without using a temporary file.  Based on a suggestion from Werner Koch
1937         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1938
1939 2011-11-07  Eric Blake  <eblake@redhat.com>
1940
1941         grantpt: fix typo
1942         * lib/stdlib.in.h (grantpt): Check correct function.
1943
1944         maint.mk: silence new syntax check
1945         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1946
1947 2011-11-06  Bruno Haible  <bruno@clisp.org>
1948
1949         Doc about floating-point and math API.
1950         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1951         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1952
1953 2011-11-06  Bruno Haible  <bruno@clisp.org>
1954
1955         stdalign tests: Skip the test when compiled by Sun C.
1956         * tests/test-stdalign.c (main): Skip the test on Sun C.
1957
1958 2011-11-06  Bruno Haible  <bruno@clisp.org>
1959
1960         ansi-c++-opt: Complete the 2011-06-05 change.
1961         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1962         does not support namespaces, set the variable to "no", not to ":".
1963
1964 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1965
1966         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1967
1968 2011-11-06  Bruno Haible  <bruno@clisp.org>
1969
1970         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1971         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1972         (minus_zerol) [HP-UX]: New macro.
1973         (unary_minus) [HP-UX]: New function.
1974         (copysignl) [HP-UX]: Use unary_minus function.
1975
1976 2011-11-06  Bruno Haible  <bruno@clisp.org>
1977
1978         ldexp, ldexpf, ldexpl: Enhance tests.
1979         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1980         and tests/test-ldexpl.c.
1981         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1982         LDEXP, MIN_EXP, MAX_EXP): New macros.
1983         Include test-ldexp.h.
1984         (main): Just call test_function.
1985         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1986         infinity.h, nan.h.
1987         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1988         MAX_EXP): New macros.
1989         Include test-ldexp.h.
1990         (x, y): Remove variables.
1991         (main): Just call test_function.
1992         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1993         infinity.h, nan.h.
1994         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1995         MAX_EXP): New macros.
1996         Include test-ldexp.h.
1997         (x, y): Remove variables.
1998         (main): Just call test_function.
1999         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
2000         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
2001         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2002         (Depends-on): Add isnand-nolibm, signbit, float.
2003         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
2004         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2005         (Depends-on): Add isnanf-nolibm, signbit, float.
2006
2007 2011-11-06  Bruno Haible  <bruno@clisp.org>
2008
2009         math tests: Cosmetics.
2010         * tests/test-math-c++.cc: Reorder declarations.
2011
2012 2011-11-05  Bruno Haible  <bruno@clisp.org>
2013
2014         fma*: Simplify test.
2015         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
2016         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
2017
2018         Tests for module 'fmal'.
2019         * modules/fmal-tests: New file.
2020         * tests/test-fmal1.c: New file.
2021         * tests/test-fmal2.c: New file.
2022
2023         New module 'fmal'.
2024         * lib/math.in.h (fmal): New declaration.
2025         * lib/fmal.c: New file.
2026         * m4/fmal.m4: New file.
2027         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
2028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
2029         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
2030         REPLACE_FMAL.
2031         * modules/fmal: New file.
2032         * doc/posix-functions/fmal.texi: Mention the new module and the various
2033         bugs.
2034
2035         Tests for module 'fmaf'.
2036         * modules/fmaf-tests: New file.
2037         * tests/test-fmaf1.c: New file.
2038         * tests/test-fmaf2.c: New file.
2039
2040         New module 'fmaf'.
2041         * lib/math.in.h (fmaf): New declaration.
2042         * lib/fmaf.c: New file.
2043         * m4/fmaf.m4: New file.
2044         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2046         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2047         REPLACE_FMAF.
2048         * modules/fmaf: New file.
2049         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2050         bugs.
2051
2052         Tests for module 'fma'.
2053         * modules/fma-tests: New file.
2054         * tests/test-fma1.c: New file.
2055         * tests/test-fma1.h: New file.
2056         * tests/test-fma2.c: New file.
2057         * tests/test-fma2.h: New file.
2058
2059         New module 'fma'.
2060         * lib/math.in.h (fma): New declaration.
2061         * lib/fma.c: New file.
2062         * m4/fma.m4: New file.
2063         * m4/fegetround.m4: New file.
2064         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2066         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2067         REPLACE_FMA.
2068         * modules/fma: New file.
2069         * doc/posix-functions/fma.texi: Mention the new module and the various
2070         bugs.
2071
2072         Extend gl_MATHFUNC.
2073         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2074         Support 'void' as argument type.
2075         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2076
2077 2011-11-05  Jim Meyering  <meyering@redhat.com>
2078
2079         maint.mk: also prohibit inclusion of dirent.h without use
2080         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2081
2082 2011-11-05  Bruno Haible  <bruno@clisp.org>
2083
2084         ldexpl tests: Avoid test failure on MSVC 9.
2085         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2086         value. Needed in order to enforce the conversion from a value greater
2087         than LDBL_MAX to Infinity.
2088
2089 2011-11-05  Bruno Haible  <bruno@clisp.org>
2090
2091         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2092         * modules/at-internal: New file, extracted from modules/openat.
2093         * modules/openat-h: New file.
2094         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2095         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2096         * modules/openat (Description): Add reference to POSIX function.
2097         (Files): Remove lib/openat.h, lib/openat-proc.c.
2098         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2099         intprops, unistd.
2100         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2101         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2102         gl_FCNTL_MODULE_INDICATOR.
2103         (Include): Remove unistd.h, openat.h.
2104         * modules/areadlinkat (Files): Add lib/at-func.c.
2105         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2106         openat-die, openat-h, save-cwd.
2107         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2108         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2109         openat-die, openat-h, save-cwd, unistd.
2110         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2111         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2112         openat-h, save-cwd. Remove fcntl-h, openat.
2113         * modules/fchmodat (Files): Remove lib/openat.h.
2114         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2115         openat, stdbool, unistd.
2116         * modules/fchownat (Files): Remove lib/openat.h.
2117         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2118         openat, stdbool, sys_stat.
2119         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2120         lib/openat-proc.c.
2121         (Depends-on): Add at-internal.
2122         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2123         * modules/fstatat (Files): Remove lib/openat.h.
2124         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2125         stdbool, unistd.
2126         * modules/fts (Depends-on): Add openat-h.
2127         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2128         openat.
2129         * modules/mkdirat (Files): Remove lib/openat.h.
2130         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2131         openat, stdbool, sys_stat.
2132         * modules/mkfifoat (Files): Add lib/at-func.c.
2133         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2134         openat-h, save-cwd. Remove fcntl-h, openat.
2135         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2136         * modules/readlinkat (Files): Add lib/at-func.c.
2137         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2138         openat-h, save-cwd. Remove fcntl-h, openat.
2139         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2140         openat.
2141         * modules/selinux-at (Files): Add lib/at-func.c.
2142         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2143         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2144         * modules/symlinkat (Files): Add lib/at-func.c.
2145         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2146         openat-h, save-cwd. Remove fcntl-h, openat.
2147         * modules/unlinkat (Files): Remove lib/openat.h.
2148         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2149         stdbool.
2150         * modules/utimensat (Files): Add lib/at-func.c.
2151         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2152         openat-die, openat-h, save-cwd.
2153         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2154         * modules/fdutimensat-tests (Depends-on): Add openat.
2155         * modules/fstatat-tests (Depends-on): Add openat-h.
2156         * modules/readlinkat-tests (Depends-on): Add openat.
2157         * modules/symlinkat-tests (Depends-on): Add openat.
2158
2159 2011-11-05  Bruno Haible  <bruno@clisp.org>
2160
2161         openat: Include <stdbool.h>.
2162         * lib/openat.c: Include <stdbool.h>.
2163
2164 2011-11-04  Bruno Haible  <bruno@clisp.org>
2165
2166         fchownat, renameat, unlinkat: Fix dependencies.
2167         * modules/fchownat (Depends-on): Add fstatat.
2168         * modules/renameat (Depends-on): Likewise.
2169         * modules/unlinkat (Depends-on): Likewise.
2170
2171 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2172
2173         openat: remove direct dependency on dirent
2174         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2175         and hasn't been needed ever since fdopendir was split into its own
2176         module on 2009-08-31.
2177         * modules/openat (Depends-on): Remove dirent.
2178
2179 2011-11-04  Bruno Haible  <bruno@clisp.org>
2180
2181         renameat: Optimize code size.
2182         * modules/renameat (configure.ac): Don't compile at-func2.c if
2183         REPLACE_RENAMEAT is 1.
2184
2185 2011-11-04  Bruno Haible  <bruno@clisp.org>
2186
2187         openat tests: Fix file list.
2188         * modules/openat-tests (Files): Add tests/test-open.h.
2189
2190 2011-11-04  Bruno Haible  <bruno@clisp.org>
2191
2192         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2193         * modules/fchmodat (Depends-on): Add openat-die.
2194         * modules/fchownat (Depends-on): Likewise.
2195         * modules/linkat (Depends-on): Likewise.
2196         * modules/renameat (Depends-on): Likewise.
2197         * modules/openat (Depends-on): Add dirent.
2198
2199 2011-11-04  Jim Meyering  <meyering@redhat.com>
2200
2201         at-func*.c: fix comments
2202         * lib/at-func2.c: Correct/improve first-line comment.
2203         * lib/at-func.c: Correct grammar in first-line comment.
2204
2205 2011-11-04  Bruno Haible  <bruno@clisp.org>
2206
2207         New module 'mkdirat', split off from module 'openat'.
2208         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2209         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2210         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2211         * modules/mkdirat: New file, extracted from modules/openat.
2212         * modules/openat (Files): Remove lib/mkdirat.c.
2213         (Depends-on): Remove mkdir.
2214         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2215         (Include): Remove <sys/stat.h>.
2216         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2217         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2218         tests/test-mkdir.h.
2219         (Depends-on): Remove ignore-value.
2220         (Makefile.am): Remove rules for test-mkdirat.
2221         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2222         of module 'openat'.
2223         * NEWS: Mention the change.
2224
2225 2011-11-04  Bruno Haible  <bruno@clisp.org>
2226
2227         closedir: Avoid warning on mingw.
2228         * lib/closedir.c: Include <unistd.h>.
2229
2230 2011-11-04  Bruno Haible  <bruno@clisp.org>
2231
2232         New module 'fstatat', split off from module 'openat'.
2233         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2234         defined.
2235         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2236         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2237         gl_FUNC_FSTATAT.
2238         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2239         * modules/fstatat: New file, extracted from modules/openat.
2240         * modules/openat (Files): Remove lib/fstatat.c.
2241         (Depends-on): Remove lstat.
2242         (configure.ac): Remove AC_LIBOBJ of fstatat.
2243         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2244         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2245         tests/test-lstat.h, tests/test-stat.h.
2246         (Depends-on): Remove getcwd-lgpl.
2247         (Makefile.am): Remove rules for test-fstatat.
2248         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2249         of module 'openat'.
2250         * NEWS: Mention the change.
2251         * modules/getcwd (Depends-on): Add fstatat.
2252         * modules/linkat (Depends-on): Likewise.
2253         * modules/mkfifoat-tests (Depends-on): Likewise.
2254         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2255
2256 2011-11-03  Bruno Haible  <bruno@clisp.org>
2257
2258         New module 'unlinkat', split off from module 'openat'.
2259         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2260         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2261         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2262         * modules/unlinkat: New file, extracted from modules/openat. Correct
2263         the dependency conditions.
2264         * modules/openat (Files): Remove lib/unlinkat.c.
2265         (Depends-on): Remove rmdir, unlink.
2266         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2267         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2268         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2269         tests/test-rmdir.h, tests/test-unlink.h.
2270         (Depends-on): Remove unlinkdir.
2271         (Makefile.am): Remove rules for test-unlinkat.
2272         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2273         of module 'openat'.
2274         * NEWS: Mention the change.
2275         * modules/linkat-tests (Depends-on): Add unlinkat.
2276         * modules/mkfifoat-tests (Depends-on): Likewise.
2277         * modules/readlinkat-tests (Depends-on): Likewise.
2278
2279 2011-11-02  Bruno Haible  <bruno@clisp.org>
2280
2281         New module 'fchmodat', split off from module 'openat'.
2282         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2283         defined.
2284         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2285         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2286         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2287         * modules/fchmodat: New file, extracted from modules/openat.
2288         * modules/openat (Files): Remove lib/fchmodat.c.
2289         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2290         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2291         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2292         (Makefile.am): Remove rules for test-fchmodat.
2293         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2294         of module 'openat'.
2295         * NEWS: Mention the change.
2296
2297 2011-11-02  Jim Meyering  <meyering@redhat.com>
2298
2299         putenv: indent #definition of "environ" to placate cppi
2300         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2301
2302         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2303         Git logs are often treated as immutable, because editing them
2304         changes the SHA1 checksums of all descendants.  Thus, errors in
2305         git logs tend to stay there forever.  However, when we generate
2306         a ChangeLog file -- typically for distribution -- from that git log,
2307         we can actually make corrections in the generated file.  The key
2308         lies in recording in machine-readable/applicable form the desired
2309         corrections.  See --help for description and an example.
2310         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2311         (usage): Describe it; alphabetize option descriptions.
2312         (main): Honor the new option, carefully.
2313
2314 2011-11-01  Jim Meyering  <meyering@redhat.com>
2315
2316         gitlog-to-changelog: avoid an infloop
2317         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2318         that ends up being empty.
2319
2320 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2321
2322         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2323         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2324         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2325         contains (possibly-quoted) backslashes.  This should avoid
2326         all-too-common shell bugs if COMPLICATED contains backslashes in
2327         the "wrong" places.  Reported by David Evans in
2328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2329         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2330         because we want ASCII ranges.  Is there some reason we don't use
2331         the C locale everywhere in this script?
2332         (func_module, top level): Avoid unwanted pathname expansion when
2333         $repo_url_prefix or $repo_url_suffix_repl contain shell
2334         metacharacters like '?' and '*'.
2335
2336 2011-11-01  Bruno Haible  <bruno@clisp.org>
2337
2338         fchownat: Improve description.
2339         * modules/fchownat (Description): Add link to function.
2340
2341 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2342
2343         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2344         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2346         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2347
2348 2011-11-01  Bruno Haible  <bruno@clisp.org>
2349
2350         alignof: Avoid collision with stdalign module.
2351         * lib/alignof.h (alignof): Remove macro.
2352         * NEWS: Mention the change.
2353         Reported by Paul Eggert.
2354
2355 2011-11-01  Bruno Haible  <bruno@clisp.org>
2356
2357         New module 'fchownat', split off from module 'openat'.
2358         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2359         defined.
2360         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2361         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2362         invoke gl_FUNC_FCHOWNAT.
2363         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2364         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2365         * modules/fchownat: New file, extracted from modules/openat.
2366         * modules/openat (Files): Remove lib/fchownat.c.
2367         (Depends-on): Remove lchown.
2368         (configure.ac): Remove AC_LIBOBJ of fchownat.
2369         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2370         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2371         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2372         (Depends-on): Remove mgetgroups, usleep, stat-time.
2373         (configure.ac): Remove test for getegid.
2374         (Makefile.am): Remove rules for test-fchownat.
2375         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2376         of module 'openat'.
2377         * NEWS: Mention the change.
2378
2379 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2380
2381         stdalign: port better to MSVC and to Sun C 5.11
2382         This fixes some of the problems reported by Bruno Haible in
2383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2384         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2385         shortcomings of MSVC and of Sun C 5.11.
2386         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2387         around __declspec arg.
2388         * modules/stdalign-tests (Files): Add tests/macros.h.
2389         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2390         Include macros.h, for ASSERT.
2391         (DECLARE_ALIGNED): Remove.
2392         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2393         to catch bug), and to 1 if not (simplifies the rest of the code).
2394         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2395         (CHECK_AUTO): Remove.
2396         (CHECK_ALIGNED): Check only the alignment of the static vars,
2397         since auto var alignment isn't supported by Sun C 5.11.
2398         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2399         ASSERT failures are easier to diagnose.
2400
2401 2011-10-31  Bruno Haible  <bruno@clisp.org>
2402
2403         doc about some IRIX 5.3 problems.
2404         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2405         on IRIX 5.3.
2406         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2407         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2408         5.3.
2409         * doc/posix-functions/grantpt.texi: Likewise.
2410         * doc/posix-functions/unlockpt.texi: Likewise.
2411         * doc/posix-functions/lgamma.texi: Likewise.
2412         * doc/posix-functions/nextafter.texi: Likewise.
2413         * doc/posix-functions/remainder.texi: Likewise.
2414         * doc/posix-functions/select.texi: Mention misplaced declaration on
2415         IRIX 5.3.
2416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2417
2418 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2419
2420         gitlog-to-changelog: fix git-log invocation.
2421         git-log mishandles date strings before 1970-01-01 UTC, and there is
2422         no use to specify --since=1970-01-01 by default anyway.
2423         * build-aux/gitlog-to-changelog: By default, when no --since option
2424         was given, do not specify explicit --since option to git-log.
2425
2426 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2427
2428         gitlog-to-changelog: new option --append-dot.
2429         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2430         first non-blank line of each commit message terminated with a dot.
2431
2432 2011-10-30  Bruno Haible  <bruno@clisp.org>
2433
2434         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2435         * lib/ffsl.h: Include <config.h>.
2436         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2437
2438 2011-10-30  Jim Meyering  <meyering@redhat.com>
2439
2440         GNUmakefile: reenable "make syntax-check" for most projects
2441         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2442         build-aux variable", "syntax-check" would do nothing but succeed with
2443         the "No version control files detected..." diagnostic (unless you
2444         happened to override _build-aux via cfg.mk).
2445         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2446         to precede inclusion of maint.mk.  Otherwise, these variables would
2447         be used undefined in any project that does not override the default.
2448
2449 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2450
2451         gitlog-to-changelog: treat a message with only blank lines as empty.
2452         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2453         trailing blank lines before the code that issues a warning about an
2454         empty commit message.
2455
2456 2011-10-30  Jim Meyering  <meyering@redhat.com>
2457
2458         test-parse-datetime.c: avoid new DST-related false positive test failure
2459         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2460         based on the time/date we'll convert, not the current time.
2461         Otherwise, the moment we cross a DST boundary like today's in
2462         Europe, (CEST to CET), that offset ends up being one hour off.
2463
2464 2011-10-27  Bruno Haible  <bruno@clisp.org>
2465
2466         fstat: Tweak documentation.
2467         * modules/fstat (Description): More precise description.
2468
2469 2011-10-27  Bruno Haible  <bruno@clisp.org>
2470
2471         Update documentation regarding 'largefile' module.
2472         * doc/posix-functions/fstat.texi: Tweak wording.
2473         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2474         problems with huge directories and/or small ino_t types.
2475         * doc/posix-functions/readdir.texi: Likewise.
2476         * doc/posix-functions/rewinddir.texi: Likewise.
2477
2478 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2479
2480         maint.mk: don't maintain a second build-aux variable.
2481         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2482         depends on GNUmakefile, which already maintains a cfg.mk
2483         overridable $(_build-aux) for projects with a non-standard
2484         build-aux directory location, although without the $(srcdir)
2485         prefix.  Use that variable consistently instead of introducing a
2486         second one.  Adjust all call sites.
2487
2488 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2489
2490         Add stdalign module and use it in other modules.
2491         This is based on a previous proposal by Bruno Haible
2492         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2493
2494         stdalign: new module
2495         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2496         * modules/stdalign: New files.
2497         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2498         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2499
2500         stdalign-tests: new module
2501         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2502
2503         argp: use stdalign
2504         * lib/argp-parse.c: Include <stdalign.h>.
2505         (alignof): Remove.
2506         * modules/argp (Depends-on): Add stdalign.
2507
2508         crypto libraries: use stdalign
2509         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2510         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2511         Do not include <stdlib.h> twice, in md4.c.
2512         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2513         because we are accessing a pointer's bit-pattern, not a size.
2514         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2515         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2516         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2517         * modules/crypto/sha512: Likewise.
2518
2519         sys_socket: use stdalign, not alignof
2520         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2521         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2522
2523 2011-10-27  Bruno Haible  <bruno@clisp.org>
2524
2525         raise test: Avoid a test failure on Linux/MIPS.
2526         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2527         because 99 is a valid signal on Linux/MIPS.
2528
2529 2011-10-27  Bruno Haible  <bruno@clisp.org>
2530
2531         nonblocking tests: Fix test failure on Linux/MIPS.
2532         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2533         Set to 270000.
2534
2535 2011-10-27  Bruno Haible  <bruno@clisp.org>
2536
2537         utimensat: Work around problem on Linux/hppa.
2538         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2539         values.
2540         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2541
2542 2011-10-25  Jim Meyering  <meyering@redhat.com>
2543
2544         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2545         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2546         after symbols like NULL, size_t, etc.
2547         Reported by Alfred M. Szmidt.
2548
2549         maint.mk: exempt ENODATA from a syntax-check rule
2550         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2551         from the sc_prohibit_always-defined_macros syntax-check rule.
2552         Add a comment.  See this for more details:
2553         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2554
2555 2011-10-23  Jim Meyering  <meyering@redhat.com>
2556
2557         fts: close parent dir FD before returning from post-traversal fts_read
2558         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2559         unlink A, even though an FD open on A remained.  This is suboptimal
2560         (holding a file descriptor open longer than needed), but otherwise not
2561         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2562         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2563         that represents a real problem: it causes the removal of A to fail
2564         with e.g., "rm: cannot remove `A': Device or resource busy"
2565
2566         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2567         directory file descriptors.  After completing the final, FTS_DP,
2568         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2569         cache, but then proceeded to add a new FD to it via the subsequent
2570         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2571         final file descriptor would be closed only via fts_close's call to
2572         fd_ring_clear.  Now, it is usually closed earlier, via the final
2573         FTS_DP-returning fts_read call.
2574         * lib/fts.c (restore_initial_cwd): New function, converted from
2575         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2576         Update callers.
2577         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2578         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2579
2580 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2581             Bruno Haible  <bruno@clisp.org>
2582             Jim Meyering  <jim@meyering.net>
2583
2584         readme-release: improve safety of release prep instructions.
2585         * README-release: Don't git pull all branches when only master
2586         is needed for the release process.
2587         Run make maintainer-clean before changing trees and merging.
2588         Don't try to run ./configure right after git pull in case files
2589         that influence the bootstrap process have changed, move the
2590         ./configure step to after running ./bootstrap.
2591         Don't bootstrap "one last time"... it's the first time!
2592
2593 2011-10-22  Bruno Haible  <bruno@clisp.org>
2594
2595         errno, strerror-override: Support for MSVC 10.
2596         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2597         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2598         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2599         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2600         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2601         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2602         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2603         Assign values compatible with MSVC 10.
2604         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2605         New macros.
2606         (GNULIB_defined_EWINSOCK): New macro.
2607         * lib/strerror-override.c (strerror_override): Update accordingly.
2608         * lib/strerror-override.h: Likewise.
2609         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2610         longer equal to the corresponding errno value.
2611         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2612
2613 2011-10-22  Bruno Haible  <bruno@clisp.org>
2614
2615         perror: Recognize when test program crashes.
2616         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2617         strerror, set gl_cv_func_perror_works to no.
2618         Reported by Daniel Richard G. <skunk@iskunk.org>.
2619
2620         perror: Fix indentation.
2621         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2622
2623 2011-10-22  Bruno Haible  <bruno@clisp.org>
2624
2625         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2626         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2627         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2628         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2629         functions, not as a macro.
2630         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2631         macros.
2632         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2633         absence of macro.
2634         Suggested by Eric Blake.
2635         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2636
2637 2011-10-21  Bruno Haible  <bruno@clisp.org>
2638
2639         relocatable-prog-wrapper: Don't leave object files behind.
2640         * build-aux/install-reloc: Re-synchronize list of .o files to be
2641         removed with list of compilation units.
2642
2643 2011-10-20  Bruno Haible  <bruno@clisp.org>
2644
2645         openpty, posix_openpt: Remove code duplication.
2646         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2647         * lib/openpty.c: Include <stdlib.h>.
2648         (openpty): Use posix_openpt on all platforms except IRIX.
2649         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2650
2651 2011-10-20  Bruno Haible  <bruno@clisp.org>
2652
2653         unlockpt: Detect invalid argument.
2654         * lib/unlockpt.c: Include <fcntl.h>.
2655         (unlockpt): Check whether fd is valid, using fcntl().
2656         * modules/unlockpt (Depends-on): Add fcntl-h.
2657
2658 2011-10-20  Bruno Haible  <bruno@clisp.org>
2659
2660         openpty: Avoid compilation error on AIX 6.1.
2661         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2662
2663 2011-10-20  Bruno Haible  <bruno@clisp.org>
2664
2665         posix_openpt: Support for OpenBSD.
2666         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2667         (posix_openpt) [OpenBSD]: New code.
2668         * lib/grantpt.c: Include <fcntl.h>.
2669         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2670         * modules/grantpt (Depends-on): Add fcntl-h.
2671
2672 2011-10-20  Bruno Haible  <bruno@clisp.org>
2673
2674         posix_openpt test: Coding style.
2675         * tests/test-posix_openpt.c: Use GNU coding style.
2676
2677 2011-10-20  Bruno Haible  <bruno@clisp.org>
2678
2679         grantpt: Support --avoid=pt_chown.
2680         * modules/grantpt (Files): Add lib/pty-private.h.
2681
2682 2011-10-20  Bruno Haible  <bruno@clisp.org>
2683
2684         posix_openpt: Fix autoconf macro.
2685         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2686         unneeded check for _getpty.
2687
2688 2011-10-20  Bruno Haible  <bruno@clisp.org>
2689
2690         openpty: Update comments.
2691         * lib/openpty.c: Add comments about Minix.
2692
2693 2011-10-19  Eric Blake  <eblake@redhat.com>
2694
2695         openpty: relax license
2696         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2697
2698         pt_chown: use configmake to simplify build
2699         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2700
2701         ptsname and others: relax license
2702         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2703         * modules/unlockpt (License): Likewise.
2704         * modules/pt_chown (License): Likewise.
2705         * modules/ptsname (License): Likewise.
2706         * modules/ttyname_r (License): Likewise.
2707
2708 2011-10-19  Jim Meyering  <meyering@redhat.com>
2709
2710         posix_openpt: remove spurious #endif
2711         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2712
2713 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2714
2715         maint.mk: Respect $(build_aux) in web-manual rule.
2716         * top/maint.mk (web-manual): Find gen-announce script in user's
2717         $(build_aux) directory instead of hard-coding 'build-aux'.
2718
2719 2011-10-19  Bruno Haible  <bruno@clisp.org>
2720
2721         posix_openpt: Fix compilation error.
2722         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2723         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2724         Mention the openpty module as an alternative.
2725
2726 2011-10-19  Bruno Haible  <bruno@clisp.org>
2727
2728         Support for old NeXTstep 3.3 frexp().
2729         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2730         execution time of the test to 5 seconds.
2731         Reported by Daniel Richard G. <skunk@iskunk.org>.
2732
2733 2011-10-19  Bruno Haible  <bruno@clisp.org>
2734
2735         Support for old NeXTstep 3.3 sed.
2736         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2737         part, use /.../, not \|...|. Escape periods in the header file name.
2738         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2739         Reported by Daniel Richard G. <skunk@iskunk.org>.
2740
2741 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2742
2743         Support for old NeXTstep 3.3 gcc.
2744         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2745         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2746         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2747         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2748         * lib/regex.h (_Restrict_arr_): Likewise.
2749         * lib/regex_internal.h (re_token_t): Likewise.
2750         * lib/regexec.c (check_node_accept_bytes): Likewise.
2751         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2752
2753 2011-10-18  Eric Blake  <eblake@redhat.com>
2754
2755         posix_openpt: new module
2756         * modules/posix_openpt: New module.
2757         * m4/posix_openpt.m4: New file.
2758         * lib/posix_openpt.c: Likewise.
2759         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2760         (gl_STDLIB_H_DEFAULTS): Set defaults.
2761         * modules/stdlib (Makefile.am): Substitute macros.
2762         * lib/stdlib.in.h (posix_openpt): Declare.
2763         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2764         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2765         * modules/posix_openpt-tests: New test module.
2766         * tests/test-posix_openpt.c: New test.
2767
2768 2011-10-15  Bruno Haible  <bruno@clisp.org>
2769
2770         xstrtoll: Fix compilation failure.
2771         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2772         from lib/strtol.c.
2773         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2774         some platforms.
2775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2776
2777 2011-10-15  Bruno Haible  <bruno@clisp.org>
2778
2779         vasnprintf: Optimize bit search operation.
2780         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2782         gl_DOUBLE_EXPONENT_LOCATION.
2783         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2784         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2785         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2786         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2787         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2788         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2789         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2790         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2791         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2792
2793 2011-10-15  Bruno Haible  <bruno@clisp.org>
2794
2795         vasnprintf: Fix comments.
2796         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2797
2798 2011-10-14  Bruno Haible  <bruno@clisp.org>
2799
2800         Tests for module 'integer_length_ll'.
2801         * modules/integer_length_ll-tests: New file.
2802         * tests/test-integer_length_ll.c: New file.
2803
2804         New module 'integer_length_ll'.
2805         * lib/integer_length_ll.c: New file.
2806         * modules/integer_length_ll: New file.
2807
2808 2011-10-14  Bruno Haible  <bruno@clisp.org>
2809
2810         Tests for module 'integer_length_l'.
2811         * modules/integer_length_l-tests: New file.
2812         * tests/test-integer_length_l.c: New file.
2813
2814         New module 'integer_length_l'.
2815         * lib/integer_length_l.c: New file.
2816         * modules/integer_length_l: New file.
2817
2818 2011-10-14  Bruno Haible  <bruno@clisp.org>
2819
2820         Tests for module 'integer_length'.
2821         * modules/integer_length-tests: New file.
2822         * tests/test-integer_length.c: New file.
2823
2824         New module 'integer_length'.
2825         * lib/integer_length.h: New file.
2826         * lib/integer_length.c: New file.
2827         * modules/integer_length: New file.
2828
2829 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2830
2831         popen: Fix dependency conditions.
2832         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2833
2834 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2835
2836         perror: Fix autoconf test.
2837         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2838         <stdlib.h> and <string.h>.
2839
2840 2011-10-14  Bruno Haible  <bruno@clisp.org>
2841
2842         ffsl: Optimize on 64-bit platforms.
2843         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2844         unrolling.
2845
2846 2011-10-13  Bruno Haible  <bruno@clisp.org>
2847
2848         ffsl: Optimize on 32-bit platforms.
2849         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2850         use ffs() without a loop.
2851
2852         ffsl, ffsll: Optimize for GCC.
2853         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2854         * lib/ffsl.c (GCC_BUILTIN): New macro.
2855         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2856
2857 2011-10-13  Bruno Haible  <bruno@clisp.org>
2858
2859         ffs, bcopy, memset: Support symbol renaming via config.h.
2860         * lib/ffs.c: Include <config.h>.
2861         * lib/bcopy.c: Likewise.
2862         * lib/memset.c: Likewise.
2863
2864 2011-10-10  Bruno Haible  <bruno@clisp.org>
2865
2866         atanl: Simplify for platforms where 'long double' == 'double'.
2867         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2868         alternative implementation.
2869         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2870         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2871         * modules/atanl (Depends-on): Add atan. Update conditions.
2872
2873 2011-10-10  Bruno Haible  <bruno@clisp.org>
2874
2875         acosl: Simplify for platforms where 'long double' == 'double'.
2876         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2877         alternative implementation.
2878         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2879         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2880         * modules/acosl (Depends-on): Add acos. Update conditions.
2881
2882 2011-10-10  Bruno Haible  <bruno@clisp.org>
2883
2884         asinl: Simplify for platforms where 'long double' == 'double'.
2885         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2886         alternative implementation.
2887         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2888         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2889         * modules/asinl (Depends-on): Add asin. Update conditions.
2890
2891 2011-10-10  Bruno Haible  <bruno@clisp.org>
2892
2893         tanl: Simplify for platforms where 'long double' == 'double'.
2894         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2895         implementation.
2896         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2897         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2898         * modules/tanl (Depends-on): Add tan. Update conditions.
2899         (configure.ac): Don't compile trigl.c if
2900         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2901
2902 2011-10-10  Bruno Haible  <bruno@clisp.org>
2903
2904         cosl: Simplify for platforms where 'long double' == 'double'.
2905         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2906         implementation.
2907         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2908         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2909         * modules/cosl (Depends-on): Add cos. Update conditions.
2910         (configure.ac): Don't compile sincosl.c and trigl.c if
2911         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2912
2913 2011-10-10  Bruno Haible  <bruno@clisp.org>
2914
2915         sinl: Simplify for platforms where 'long double' == 'double'.
2916         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2917         implementation.
2918         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2919         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2920         * modules/sinl (Depends-on): Add sin. Update conditions.
2921         (configure.ac): Don't compile sincosl.c and trigl.c if
2922         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2923
2924 2011-10-10  Bruno Haible  <bruno@clisp.org>
2925
2926         logl: Simplify for platforms where 'long double' == 'double'.
2927         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2928         implementation.
2929         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2930         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2931         * modules/logl (Depends-on): Add log. Update conditions.
2932
2933 2011-10-10  Bruno Haible  <bruno@clisp.org>
2934
2935         expl: Simplify for platforms where 'long double' == 'double'.
2936         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2937         implementation.
2938         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2939         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2940         * modules/expl (Depends-on): Add exp. Update conditions.
2941
2942 2011-10-10  Bruno Haible  <bruno@clisp.org>
2943
2944         sqrtl: Simplify for platforms where 'long double' == 'double'.
2945         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2946         alternative implementation.
2947         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2948         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2949         * modules/sqrtl (Depends-on): Update conditions.
2950
2951 2011-10-10  Bruno Haible  <bruno@clisp.org>
2952
2953         ldexpl: Simplify for platforms where 'long double' == 'double'.
2954         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2955         alternative implementation.
2956         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2957         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2958         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2959
2960 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2961
2962         ffsll: set correct witness
2963         * modules/ffsll (configure.ac): Fix typo.
2964
2965 2011-10-10  Bruno Haible  <bruno@clisp.org>
2966
2967         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2968         * lib/printf-frexpl.c: Include <config.h>.
2969         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2970         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2971         second time.
2972         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2973         gl_LONG_DOUBLE_VS_DOUBLE.
2974         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2975         conditions.
2976
2977 2011-10-10  Bruno Haible  <bruno@clisp.org>
2978
2979         frexpl: Simplify for platforms where 'long double' == 'double'.
2980         * lib/frexpl.c: Include <config.h>.
2981         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2982         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2983         time.
2984         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2985         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2986         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2987         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2988         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2989         conditions.
2990
2991 2011-10-10  Jim Meyering  <meyering@redhat.com>
2992
2993         test-renameat: don't leave behind a temporary file
2994         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2995           ERROR: files left in build directory after distclean:
2996           ./gltests/test-renameat.too
2997           make[1]: *** [distcleancheck] Error 1
2998         Reported by Tom G. Christensen.
2999
3000 2011-10-09  Bruno Haible  <bruno@clisp.org>
3001
3002         rint: Determine RINT_LIBM correctly on AIX 7.
3003         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
3004         directly, not only through a function pointer. Also accept an optional
3005         4th argument with extra code.
3006         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
3007         rintf() call by gcc when optimizing.
3008
3009         mathfunc.m4: Refactor.
3010         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
3011         m4 variable.
3012
3013 2011-10-09  Bruno Haible  <bruno@clisp.org>
3014
3015         rintl: Simplify for platforms where 'long double' == 'double'.
3016         * lib/rintl.c: Include <config.h>.
3017         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3018         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3019         time.
3020         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3021         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3022         * modules/rintl (Depends-on): Add rint. Update conditions.
3023
3024 2011-10-09  Bruno Haible  <bruno@clisp.org>
3025
3026         roundl: Simplify for platforms where 'long double' == 'double'.
3027         * lib/roundl.c: Include <config.h>.
3028         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3029         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3030         time.
3031         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3032         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3033         * modules/roundl (Depends-on): Add round. Update conditions.
3034
3035 2011-10-09  Bruno Haible  <bruno@clisp.org>
3036
3037         truncl: Simplify for platforms where 'long double' == 'double'.
3038         * lib/truncl.c: Include <config.h>.
3039         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3040         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3041         time.
3042         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3043         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3044         * modules/truncl (Depends-on): Add trunc. Update conditions.
3045
3046 2011-10-09  Bruno Haible  <bruno@clisp.org>
3047
3048         ceill: Simplify for platforms where 'long double' == 'double'.
3049         * lib/ceill.c: Include <config.h>.
3050         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3051         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3052         time.
3053         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3054         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3055         * modules/ceill (Depends-on): Add ceil. Update conditions.
3056
3057 2011-10-09  Bruno Haible  <bruno@clisp.org>
3058
3059         floorl: Simplify for platforms where 'long double' == 'double'.
3060         * lib/floorl.c: Include <config.h>.
3061         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3062         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3063         time.
3064         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3065         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3066         * modules/floorl (Depends-on): Add floor. Update conditions.
3067
3068 2011-10-09  Bruno Haible  <bruno@clisp.org>
3069
3070         rint: Fix ordering constraints.
3071         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3072         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3073         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3074
3075 2011-10-09  Bruno Haible  <bruno@clisp.org>
3076
3077         copysignl: Simplify for platforms where 'long double' == 'double'.
3078         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3079         alternative.
3080         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3081         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3082         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3083
3084 2011-10-09  Bruno Haible  <bruno@clisp.org>
3085
3086         Tests for module 'rintl'.
3087         * modules/rintl-tests: New file.
3088         * tests/test-rintl.c: New file.
3089
3090         New module 'rintl'.
3091         * lib/math.in.h (rintl): New declaration.
3092         * lib/rintl.c: New file.
3093         * m4/rintl.m4: New file.
3094         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3096         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3097         * modules/rintl: New file.
3098         * tests/test-math-c++.cc: Check the declaration of rintl.
3099         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3100         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3101         * doc/posix-functions/rintl.texi: Mention the new module.
3102
3103 2011-10-09  Bruno Haible  <bruno@clisp.org>
3104
3105         Tests for module 'rintf'.
3106         * modules/rintf-tests: New file.
3107         * tests/test-rintf.c: New file.
3108
3109         New module 'rintf'.
3110         * lib/math.in.h (rintf): New declaration.
3111         * lib/rintf.c: New file.
3112         * m4/rintf.m4: New file.
3113         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3115         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3116         * modules/rintf: New file.
3117         * tests/test-math-c++.cc: Check the declaration of rintf.
3118         * doc/posix-functions/rintf.texi: Mention the new module.
3119
3120 2011-10-09  Bruno Haible  <bruno@clisp.org>
3121
3122         rint: Support for MSVC.
3123         * lib/math.in.h (rint): New declaration.
3124         * lib/rint.c: New file.
3125         * m4/rint.m4: New file.
3126         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3128         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3129         * modules/rint (Description): Fix.
3130         (Files): Add lib/rint.c, m4/rint.m4.
3131         (Depends-on): Add math.
3132         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3133         gl_MATH_MODULE_INDICATOR.
3134         * tests/test-math-c++.cc: Check the declaration of rint.
3135         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3136         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3137         * doc/posix-functions/rint.texi: Mention the replacement provided by
3138         the module.
3139
3140         rint tests: More tests.
3141         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3142         minus-zero.h, infinity.h, nan.h.
3143         (main): Skip the test if the current rounding mode is not standard. Add
3144         tests for negative numbers, minus zero, infinity, NaN.
3145         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3146         tests/nan.h.
3147         (Depends-on): Add isnand-nolibm.
3148
3149 2011-10-09  Bruno Haible  <bruno@clisp.org>
3150
3151         Tests for module 'copysignl'.
3152         * modules/copysignl-tests: New file.
3153         * tests/test-copysignl.c: New file.
3154
3155         New module 'copysignl'.
3156         * lib/math.in.h (copysignl): New declaration.
3157         * lib/copysignl.c: New file.
3158         * m4/copysignl.m4: New file.
3159         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3161         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3162         HAVE_COPYSIGNL.
3163         * modules/copysignl: New file.
3164         * tests/test-math-c++.cc: Check the declaration of copysignl.
3165         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3166         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3167         * doc/posix-functions/copysignl.texi: Mention the new module.
3168
3169 2011-10-09  Bruno Haible  <bruno@clisp.org>
3170
3171         Tests for module 'copysignf'.
3172         * modules/copysignf-tests: New file.
3173         * tests/test-copysignf.c: New file.
3174
3175         New module 'copysignf'.
3176         * lib/math.in.h (copysignf): New declaration.
3177         * lib/copysignf.c: New file.
3178         * m4/copysignf.m4: New file.
3179         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3181         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3182         HAVE_COPYSIGNF.
3183         * modules/copysignf: New file.
3184         * tests/test-math-c++.cc: Check the declaration of copysignf.
3185         * doc/posix-functions/copysignf.texi: Mention the new module.
3186
3187 2011-10-09  Bruno Haible  <bruno@clisp.org>
3188
3189         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3190         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3191         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3192         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3193         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3194         gl_SIGNAL_H_DEFAULTS.
3195
3196 2011-10-09  Bruno Haible  <bruno@clisp.org>
3197
3198         poll: Make macro safer.
3199         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3200         ac_cv_header_poll_h is not set.
3201
3202 2011-10-09  Bruno Haible  <bruno@clisp.org>
3203
3204         copysign: Provide replacement.
3205         * lib/math.in.h (copysign): New declaration.
3206         * lib/copysign.c: New file.
3207         * m4/copysign.m4: New file.
3208         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3210         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3211         HAVE_COPYSIGN.
3212         * modules/copysign (Description): Clarify.
3213         (Files): Add lib/copysign.c, m4/copysign.m4.
3214         (Depends-on): Add math, signbit.
3215         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3216         gl_MATH_MODULE_INDICATOR.
3217         * tests/test-math-c++.cc: Check the declaration of copysign.
3218         * doc/posix-functions/copysign.texi: Mention the effects of the module
3219         on Minix and MSVC.
3220
3221 2011-10-09  Bruno Haible  <bruno@clisp.org>
3222
3223         isinf: Ensure macro on AIX 5.1.
3224         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3225         macro.
3226         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3227
3228 2011-10-09  Bruno Haible  <bruno@clisp.org>
3229
3230         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3231         * modules/snprintf-posix-tests (configure.ac): Require
3232         gl_LONG_DOUBLE_VS_DOUBLE.
3233         * modules/sprintf-posix-tests (configure.ac): Likewise.
3234         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3235         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3236         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3237         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3238         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3239         tests on platforms where 'long double' is the same as 'double'.
3240         * tests/test-sprintf-posix.h (test_function): Likewise.
3241         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3242         * tests/test-vasprintf-posix.c (test_function): Likewise.
3243
3244         *printf: Fix for platforms where 'long double' == 'double'.
3245         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3246         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3247         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3248         * modules/fprintf-posix (Files): Likewise.
3249         * modules/obstack-printf-posix (Files): Likewise.
3250         * modules/snprintf-posix (Files): Likewise.
3251         * modules/sprintf-posix (Files): Likewise.
3252         * modules/vasnprintf (Files): Likewise.
3253         * modules/vasnprintf-posix (Files): Likewise.
3254         * modules/vasprintf-posix (Files): Likewise.
3255         * modules/vdprintf-posix (Files): Likewise.
3256         * modules/vfprintf-posix (Files): Likewise.
3257         * modules/vsnprintf-posix (Files): Likewise.
3258         * modules/vsprintf-posix (Files): Likewise.
3259         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3260         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3261         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3262         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3263         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3264         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3265         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3266
3267         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3268         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3269         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3270         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3271         'long double'.
3272         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3273
3274         isinf: Fix for platforms where 'long double' == 'double'.
3275         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3276         Don't blindly assume 80-bit 'long double'.
3277
3278         isfinite: Fix for platforms where 'long double' == 'double'.
3279         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3280         Don't blindly assume 80-bit 'long double'.
3281
3282         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3283         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3284         * modules/isfinite-tests (configure.ac): Require
3285         gl_LONG_DOUBLE_VS_DOUBLE.
3286         * modules/isinf-tests (configure.ac): Likewise.
3287         * modules/isnan-tests (configure.ac): Likewise.
3288         * modules/isnanl-tests (configure.ac): Likewise.
3289         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3290         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3291         tests on platforms where 'long double' is the same as 'double'.
3292         * tests/test-isinf.c (test_isinfl): Likewise.
3293         * tests/test-isnan.c (test_long_double): Likewise.
3294         * tests/test-isnanl.h (main): Likewise.
3295
3296 2011-10-08  Bruno Haible  <bruno@clisp.org>
3297
3298         Tests for module 'tanhf'.
3299         * modules/tanhf-tests: New file.
3300         * tests/test-tanhf.c: New file.
3301
3302         New module 'tanhf'.
3303         * lib/math.in.h (tanhf): New declaration.
3304         * lib/tanhf.c: New file.
3305         * m4/tanhf.m4: New file.
3306         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3307         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3308         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3309         * modules/tanhf: New file.
3310         * tests/test-math-c++.cc: Check the declaration of tanhf.
3311         * doc/posix-functions/tanhf.texi: Mention the new module.
3312
3313         tanh: Use a .m4 file.
3314         * m4/tanh.m4: New file.
3315         * modules/tanh (Files): Add it.
3316         (configure.ac): Just invoke gl_FUNC_TANH.
3317
3318 2011-10-08  Bruno Haible  <bruno@clisp.org>
3319
3320         Tests for module 'coshf'.
3321         * modules/coshf-tests: New file.
3322         * tests/test-coshf.c: New file.
3323
3324         New module 'coshf'.
3325         * lib/math.in.h (coshf): New declaration.
3326         * lib/coshf.c: New file.
3327         * m4/coshf.m4: New file.
3328         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3329         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3330         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3331         * modules/coshf: New file.
3332         * tests/test-math-c++.cc: Check the declaration of coshf.
3333         * doc/posix-functions/coshf.texi: Mention the new module.
3334
3335         cosh: Use a .m4 file.
3336         * m4/cosh.m4: New file.
3337         * modules/cosh (Files): Add it.
3338         (configure.ac): Just invoke gl_FUNC_COSH.
3339
3340 2011-10-08  Bruno Haible  <bruno@clisp.org>
3341
3342         Tests for module 'sinhf'.
3343         * modules/sinhf-tests: New file.
3344         * tests/test-sinhf.c: New file.
3345
3346         New module 'sinhf'.
3347         * lib/math.in.h (sinhf): New declaration.
3348         * lib/sinhf.c: New file.
3349         * m4/sinhf.m4: New file.
3350         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3352         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3353         * modules/sinhf: New file.
3354         * tests/test-math-c++.cc: Check the declaration of sinhf.
3355         * doc/posix-functions/sinhf.texi: Mention the new module.
3356
3357         sinh: Use a .m4 file.
3358         * m4/sinh.m4: New file.
3359         * modules/sinh (Files): Add it.
3360         (configure.ac): Just invoke gl_FUNC_SINH.
3361
3362 2011-10-08  Bruno Haible  <bruno@clisp.org>
3363
3364         Tests for module 'atan2f'.
3365         * modules/atan2f-tests: New file.
3366         * tests/test-atan2f.c: New file.
3367
3368         New module 'atan2f'.
3369         * lib/math.in.h (atan2f): New declaration.
3370         * lib/atan2f.c: New file.
3371         * m4/atan2f.m4: New file.
3372         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3373         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3374         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3375         * modules/atan2f: New file.
3376         * tests/test-math-c++.cc: Check the declaration of atan2f.
3377         * doc/posix-functions/atan2f.texi: Mention the new module.
3378
3379         atan2: Use a .m4 file.
3380         * m4/atan2.m4: New file.
3381         * modules/atan2 (Files): Add it.
3382         (configure.ac): Just invoke gl_FUNC_ATAN2.
3383
3384 2011-10-08  Bruno Haible  <bruno@clisp.org>
3385
3386         Tests for module 'atanf'.
3387         * modules/atanf-tests: New file.
3388         * tests/test-atanf.c: New file.
3389
3390         New module 'atanf'.
3391         * lib/math.in.h (atanf): New declaration.
3392         * lib/atanf.c: New file.
3393         * m4/atanf.m4: New file.
3394         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3395         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3396         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3397         * modules/atanf: New file.
3398         * tests/test-math-c++.cc: Check the declaration of atanf.
3399         * doc/posix-functions/atanf.texi: Mention the new module.
3400
3401         atan: Use a .m4 file.
3402         * m4/atan.m4: New file.
3403         * modules/atan (Files): Add it.
3404         (configure.ac): Just invoke gl_FUNC_ATAN.
3405
3406 2011-10-08  Bruno Haible  <bruno@clisp.org>
3407
3408         Tests for module 'acosf'.
3409         * modules/acosf-tests: New file.
3410         * tests/test-acosf.c: New file.
3411
3412         New module 'acosf'.
3413         * lib/math.in.h (acosf): New declaration.
3414         * lib/acosf.c: New file.
3415         * m4/acosf.m4: New file.
3416         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3418         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3419         * modules/acosf: New file.
3420         * tests/test-math-c++.cc: Check the declaration of acosf.
3421         * doc/posix-functions/acosf.texi: Mention the new module.
3422
3423         acos: Use a .m4 file.
3424         * m4/acos.m4: New file.
3425         * modules/acos (Files): Add it.
3426         (configure.ac): Just invoke gl_FUNC_ACOS.
3427
3428 2011-10-08  Bruno Haible  <bruno@clisp.org>
3429
3430         Tests for module 'asinf'.
3431         * modules/asinf-tests: New file.
3432         * tests/test-asinf.c: New file.
3433
3434         New module 'asinf'.
3435         * lib/math.in.h (asinf): New declaration.
3436         * lib/asinf.c: New file.
3437         * m4/asinf.m4: New file.
3438         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3440         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3441         * modules/asinf: New file.
3442         * tests/test-math-c++.cc: Check the declaration of asinf.
3443         * doc/posix-functions/asinf.texi: Mention the new module.
3444
3445         asin: Use a .m4 file.
3446         * m4/asin.m4: New file.
3447         * modules/asin (Files): Add it.
3448         (configure.ac): Just invoke gl_FUNC_ASIN.
3449
3450 2011-10-08  Bruno Haible  <bruno@clisp.org>
3451
3452         Tests for module 'tanf'.
3453         * modules/tanf-tests: New file.
3454         * tests/test-tanf.c: New file.
3455
3456         New module 'tanf'.
3457         * lib/math.in.h (tanf): New declaration.
3458         * lib/tanf.c: New file.
3459         * m4/tanf.m4: New file.
3460         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3462         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3463         * modules/tanf: New file.
3464         * tests/test-math-c++.cc: Check the declaration of tanf.
3465         * doc/posix-functions/tanf.texi: Mention the new module.
3466
3467         tan: Use a .m4 file.
3468         * m4/tan.m4: New file.
3469         * modules/tan (Files): Add it.
3470         (configure.ac): Just invoke gl_FUNC_TAN.
3471
3472 2011-10-08  Bruno Haible  <bruno@clisp.org>
3473
3474         Tests for module 'cosf'.
3475         * modules/cosf-tests: New file.
3476         * tests/test-cosf.c: New file.
3477
3478         New module 'cosf'.
3479         * lib/math.in.h (cosf): New declaration.
3480         * lib/cosf.c: New file.
3481         * m4/cosf.m4: New file.
3482         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3484         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3485         * modules/cosf: New file.
3486         * tests/test-math-c++.cc: Check the declaration of cosf.
3487         * doc/posix-functions/cosf.texi: Mention the new module.
3488
3489         cos: Use a .m4 file.
3490         * m4/cos.m4: New file.
3491         * modules/cos (Files): Add it.
3492         (configure.ac): Just invoke gl_FUNC_COS.
3493
3494 2011-10-08  Bruno Haible  <bruno@clisp.org>
3495
3496         Tests for module 'sinf'.
3497         * modules/sinf-tests: New file.
3498         * tests/test-sinf.c: New file.
3499
3500         New module 'sinf'.
3501         * lib/math.in.h (sinf): New declaration.
3502         * lib/sinf.c: New file.
3503         * m4/sinf.m4: New file.
3504         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3506         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3507         * modules/sinf: New file.
3508         * tests/test-math-c++.cc: Check the declaration of sinf.
3509         * doc/posix-functions/sinf.texi: Mention the new module.
3510
3511         sin: Use a .m4 file.
3512         * m4/sin.m4: New file.
3513         * modules/sin (Files): Add it.
3514         (configure.ac): Just invoke gl_FUNC_SIN.
3515
3516 2011-10-08  Bruno Haible  <bruno@clisp.org>
3517
3518         Tests for module 'powf'.
3519         * modules/powf-tests: New file.
3520         * tests/test-powf.c: New file.
3521
3522         New module 'powf'.
3523         * lib/math.in.h (powf): New declaration.
3524         * lib/powf.c: New file.
3525         * m4/powf.m4: New file.
3526         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3528         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3529         * modules/powf: New file.
3530         * tests/test-math-c++.cc: Check the declaration of powf.
3531         * doc/posix-functions/powf.texi: Mention the new module.
3532
3533         pow: Use a .m4 file.
3534         * m4/pow.m4: New file.
3535         * modules/pow (Files): Add it.
3536         (configure.ac): Just invoke gl_FUNC_POW.
3537
3538 2011-10-08  Bruno Haible  <bruno@clisp.org>
3539
3540         Tests for module 'log10f'.
3541         * modules/log10f-tests: New file.
3542         * tests/test-log10f.c: New file.
3543
3544         New module 'log10f'.
3545         * lib/math.in.h (log10f): New declaration.
3546         * lib/log10f.c: New file.
3547         * m4/log10f.m4: New file.
3548         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3549         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3550         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3551         * modules/log10f: New file.
3552         * tests/test-math-c++.cc: Check the declaration of log10f.
3553         * doc/posix-functions/log10f.texi: Mention the new module.
3554
3555         log10: Use a .m4 file.
3556         * m4/log10.m4: New file.
3557         * modules/log10 (Files): Add it.
3558         (configure.ac): Just invoke gl_FUNC_LOG10.
3559
3560 2011-10-08  Bruno Haible  <bruno@clisp.org>
3561
3562         Tests for module 'logf'.
3563         * modules/logf-tests: New file.
3564         * tests/test-logf.c: New file.
3565
3566         New module 'logf'.
3567         * lib/math.in.h (logf): New declaration.
3568         * lib/logf.c: New file.
3569         * m4/logf.m4: New file.
3570         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3572         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3573         * modules/logf: New file.
3574         * tests/test-math-c++.cc: Check the declaration of logf.
3575         * doc/posix-functions/logf.texi: Mention the new module.
3576
3577         log: Use a .m4 file.
3578         * m4/log.m4: New file.
3579         * modules/log (Files): Add it.
3580         (configure.ac): Just invoke gl_FUNC_LOG.
3581
3582 2011-10-08  Bruno Haible  <bruno@clisp.org>
3583
3584         Tests for module 'expf'.
3585         * modules/expf-tests: New file.
3586         * tests/test-expf.c: New file.
3587
3588         New module 'expf'.
3589         * lib/math.in.h (expf): New declaration.
3590         * lib/expf.c: New file.
3591         * m4/expf.m4: New file.
3592         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3594         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3595         * modules/expf: New file.
3596         * tests/test-math-c++.cc: Check the declaration of expf.
3597         * doc/posix-functions/expf.texi: Mention the new module.
3598
3599         exp: Use a .m4 file.
3600         * m4/exp.m4: New file.
3601         * modules/exp (Files): Add it.
3602         (configure.ac): Just invoke gl_FUNC_EXP.
3603
3604 2011-10-08  Bruno Haible  <bruno@clisp.org>
3605
3606         Tests for module 'sqrtf'.
3607         * modules/sqrtf-tests: New file.
3608         * tests/test-sqrtf.c: New file.
3609
3610         New module 'sqrtf'.
3611         * lib/math.in.h (sqrtf): New declaration.
3612         * lib/sqrtf.c: New file.
3613         * m4/sqrtf.m4: New file.
3614         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3616         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3617         * modules/sqrtf: New file.
3618         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3619         * doc/posix-functions/sqrtf.texi: Mention the new module.
3620
3621 2011-10-08  Bruno Haible  <bruno@clisp.org>
3622
3623         Tests: Avoid link failures w.r.t. libintl.
3624         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3625         $(LIBINTL).
3626         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3627         $(LIBINTL).
3628         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3629         against $(LIBINTL).
3630         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3631         $(LIBINTL).
3632         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3633         $(LIBINTL).
3634         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3635
3636 2011-10-08  Bruno Haible  <bruno@clisp.org>
3637
3638         pow tests: Defeat compiler optimizations.
3639         * tests/test-pow.c (main): Assign arguments to x and y before use.
3640
3641 2011-10-08  Bruno Haible  <bruno@clisp.org>
3642
3643         gnulib-tool: Improve last commit.
3644         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3645         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3646         ignore dependencies that are not among the modules list.
3647
3648 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3649
3650         gnulib-tool: don't follow dependencies to avoided modules
3651         This fixes a bug that is related to the previous one.
3652         * gnulib-tool (func_modules_transitive_closure)
3653         (func_emit_autoconf_snippets):
3654         Check whether a dependency is acceptable before using it.
3655         (--extract-dependencies): Report an error if --avoid is also used,
3656         since this combination of options is not yet supported.
3657
3658         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3659         Problem reported by Peter Dyballa in
3660         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3661         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3662         when echoing "$condition".
3663
3664 2011-10-07  Bruno Haible  <bruno@clisp.org>
3665
3666         Fix documentation about math functions on MacOS X.
3667         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3668         MacOS X 10.5.
3669         * doc/posix-functions/fdim.texi: Likewise.
3670         * doc/posix-functions/feclearexcept.texi: Likewise.
3671         * doc/posix-functions/fegetenv.texi: Likewise.
3672         * doc/posix-functions/fegetround.texi: Likewise.
3673         * doc/posix-functions/feholdexcept.texi: Likewise.
3674         * doc/posix-functions/feraiseexcept.texi: Likewise.
3675         * doc/posix-functions/fesetenv.texi: Likewise.
3676         * doc/posix-functions/fesetround.texi: Likewise.
3677         * doc/posix-functions/fetestexcept.texi: Likewise.
3678         * doc/posix-functions/feupdateenv.texi: Likewise.
3679         * doc/posix-functions/fmax.texi: Likewise.
3680         * doc/posix-functions/fmin.texi: Likewise.
3681         * doc/posix-functions/log2.texi: Likewise.
3682         * doc/posix-functions/modff.texi: Likewise.
3683         * doc/posix-functions/nan.texi: Likewise.
3684         * doc/posix-functions/nanf.texi: Likewise.
3685         * doc/posix-functions/nextafterf.texi: Likewise.
3686         * doc/posix-functions/remquo.texi: Likewise.
3687
3688 2011-10-07  Bruno Haible  <bruno@clisp.org>
3689
3690         modff: Drop assumption about library that defines modff.
3691         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3692         AC_CHECK_FUNCS.
3693         * modules/modff (Files): Add m4/mathfunc.m4.
3694
3695 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3696
3697         raise tests: Avoid a GCC warning.
3698         * tests/test-raise.c (handler): Use _Noreturn.
3699
3700 2011-10-07  Bruno Haible  <bruno@clisp.org>
3701
3702         Tests for module 'ldexpf'.
3703         * modules/ldexpf-tests: New file.
3704         * tests/test-ldexpf.c: New file.
3705
3706         New module 'ldexpf'.
3707         * lib/math.in.h (ldexpf): New declaration.
3708         * lib/ldexpf.c: New file.
3709         * m4/ldexpf.m4: New file.
3710         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3712         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3713         * modules/ldexpf: New file.
3714         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3715         * doc/posix-functions/ldexpf.texi: Mention the new module.
3716
3717 2011-10-06  Bruno Haible  <bruno@clisp.org>
3718
3719         frexpf: Work around problems on IRIX and mingw.
3720         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3722         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3723         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3724         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3725         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3726         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3727
3728 2011-10-06  Bruno Haible  <bruno@clisp.org>
3729
3730         fabsf: Drop assumption about library that defines fabsf.
3731         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3732         AC_CHECK_FUNCS.
3733         * modules/fabsf (Files): Add m4/mathfunc.m4.
3734
3735 2011-10-06  Bruno Haible  <bruno@clisp.org>
3736
3737         frexpf: Drop assumption about library that defines frexpf.
3738         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3739         'int *', 'float *', 'long double *', 'float', 'long double'.
3740         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3741         AC_CHECK_FUNCS.
3742         * modules/frexpf (Files): Add m4/mathfunc.m4.
3743
3744         Tests for module 'frexpf'.
3745         * modules/frexpf-tests: New file.
3746         * tests/test-frexpf.c: New file.
3747
3748         New module 'frexpf'.
3749         * lib/math.in.h (frexpf): New declaration.
3750         * lib/frexpf.c: New file.
3751         * m4/frexpf.m4: New file.
3752         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3754         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3755         * modules/frexpf: New file.
3756         * tests/test-math-c++.cc: Check the declaration of frexpf.
3757         * doc/posix-functions/frexpf.texi: Mention the new module.
3758
3759 2011-10-06  Bruno Haible  <bruno@clisp.org>
3760
3761         math: Sort function declarations of math.in.h.
3762         * lib/math.in.h (frexp, logb): Move declarations.
3763
3764 2011-10-05  Bruno Haible  <bruno@clisp.org>
3765
3766         Tests for module 'modff'.
3767         * modules/modff-tests: New file.
3768         * tests/test-modff.c: New file.
3769
3770         New module 'modff'.
3771         * lib/math.in.h (modff): New declaration.
3772         * lib/modff.c: New file.
3773         * m4/modff.m4: New file.
3774         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3776         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3777         * modules/modff: New file.
3778         * tests/test-math-c++.cc: Check the declaration of modff.
3779         * doc/posix-functions/modff.texi: Mention the new module.
3780
3781         modf tests: Make test sharper.
3782         * tests/test-modf.c (main): Strengthen upper bound.
3783
3784         modf: Use a .m4 file.
3785         * m4/modf.m4: New file.
3786         * modules/modf (Files): Add it.
3787         (configure.ac): Just invoke gl_FUNC_MODF.
3788
3789 2011-10-05  Bruno Haible  <bruno@clisp.org>
3790
3791         Tests for module 'fmodf'.
3792         * modules/fmodf-tests: New file.
3793         * tests/test-fmodf.c: New file.
3794
3795         New module 'fmodf'.
3796         * lib/math.in.h (fmodf): New declaration.
3797         * lib/fmodf.c: New file.
3798         * m4/fmodf.m4: New file.
3799         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3801         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3802         * modules/fmodf: New file.
3803         * tests/test-math-c++.cc: Check the declaration of fmodf.
3804         * doc/posix-functions/fmodf.texi: Mention the new module.
3805
3806         fmod: Use a .m4 file.
3807         * m4/fmod.m4: New file.
3808         * modules/fmod (Files): Add it.
3809         (configure.ac): Just invoke gl_FUNC_FMOD.
3810
3811 2011-10-05  Bruno Haible  <bruno@clisp.org>
3812
3813         Tests for module 'fabsf'.
3814         * modules/fabsf-tests: New file.
3815         * tests/test-fabsf.c: New file.
3816
3817         New module 'fabsf'.
3818         * lib/math.in.h (fabsf): New declaration.
3819         * lib/fabsf.c: New file.
3820         * m4/fabsf.m4: New file.
3821         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3823         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3824         * modules/fabsf: New file.
3825         * tests/test-math-c++.cc: Check the declaration of fabsf.
3826         * doc/posix-functions/fabsf.texi: Mention the new module.
3827
3828         fabs: Use a .m4 file.
3829         * m4/fabs.m4: New file.
3830         * modules/fabs (Files): Add it.
3831         (configure.ac): Just invoke gl_FUNC_FABS.
3832
3833 2011-10-05  Jim Meyering  <meyering@redhat.com>
3834
3835         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3836         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3837         ls -lL regression introduced in coreutils-8.12, it does so at the
3838         cost of an additional stat call in the common case.  Besides, now
3839         that the kernel change that prompted commit 95f7c57f has been reverted
3840         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3841         we have no use for commit 95f7c57f, "file-has-acl: use
3842         acl_extended_file_nofollow if available".
3843
3844 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3845
3846         file-has-acl: revert unintended change in behavior of ls -L
3847         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3848         derived from...
3849         (file_has_acl): ...code here.  Call it.
3850         This problem was introduced with 2011-07-22 commit 95f7c57f,
3851         "file-has-acl: use acl_extended_file_nofollow if available".
3852         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3853
3854 2011-10-03  Bruno Haible  <bruno@clisp.org>
3855
3856         poll: Avoid link errors on MSVC.
3857         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3858         * modules/poll (Depends-on): Add sockets.
3859         (Link): New section.
3860         * NEWS: Mention the change.
3861         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3862         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3863         $(LIB_POLL) instead of $(LIBSOCKET).
3864
3865 2011-10-03  Bruno Haible  <bruno@clisp.org>
3866
3867         sys_select tests: Fix link error on MSVC 9.
3868         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3869         with $(LIB_SELECT) instead of $(LIBSOCKET).
3870
3871 2011-10-03  Bruno Haible  <bruno@clisp.org>
3872
3873         sys_select: Fix compilation error on mingw.
3874         * lib/sys_select.in.h: On native Windows, include <io.h>.
3875
3876 2011-10-03  Bruno Haible  <bruno@clisp.org>
3877
3878         wmemset: Support for MSVC.
3879         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3880         whether wmemset() exists.
3881
3882 2011-10-03  Bruno Haible  <bruno@clisp.org>
3883
3884         wmemmove: Support for MSVC.
3885         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3886         whether wmemmove() exists.
3887
3888 2011-10-03  Bruno Haible  <bruno@clisp.org>
3889
3890         wmemcpy: Support for MSVC.
3891         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3892         whether wmemcpy() exists.
3893
3894 2011-10-03  Bruno Haible  <bruno@clisp.org>
3895
3896         wmemcmp: Support for MSVC.
3897         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3898         whether wmemcmp() exists.
3899
3900 2011-10-03  Bruno Haible  <bruno@clisp.org>
3901
3902         wmemchr: Support for MSVC.
3903         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3904         whether wmemchr() exists.
3905
3906 2011-10-03  Bruno Haible  <bruno@clisp.org>
3907
3908         glthread/*, strsignal: Support for MSVC.
3909         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3910         including <winsock.h> on MSVC 9.
3911         * lib/glthread/lock.h: Likewise.
3912         * lib/glthread/thread.h: Likewise.
3913         * lib/glthread/tls.h: Likewise.
3914         * lib/glthread/yield.h: Likewise.
3915         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3916         if HAVE_UNISTD_H is false.
3917         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3918
3919 2011-10-03  Bruno Haible  <bruno@clisp.org>
3920
3921         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3922         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3923         Set to 100000.
3924
3925 2011-10-03  Bruno Haible  <bruno@clisp.org>
3926
3927         acl: Fix specification.
3928         * lib/file-has-acl.c (file_has_acl): Fix specification.
3929
3930 2011-10-03  Bruno Haible  <bruno@clisp.org>
3931
3932         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3933         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3934         (compute_curr_prefix, shared_library_fullname,
3935         find_shared_library_fullname, get_shared_library_fullname, relocate):
3936         Use it together with PIC && INSTALLDIR.
3937         Reported by <jojelino@gmail.com>
3938         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3939
3940 2011-10-01  Jim Meyering  <meyering@redhat.com>
3941
3942         maint.mk: adjust a release-related rule not to require use of gzip
3943         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3944         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3945         projects that build only .tar.xz files.  Also fix an erroneous test.
3946
3947         test-linkat: don't leave behind a temporary file
3948         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3949         Otherwise, coreutils' "make distcheck" would fail with this:
3950           Only in /c/cu/tests/torture/coreutils/test/\
3951             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3952           make[2]: *** [my-distcheck] Error 1
3953
3954         float, math: add omitted file
3955         * lib/itold.c: Add file, required for yesterday's float change.
3956
3957 2011-10-01  Bruno Haible  <bruno@clisp.org>
3958
3959         isinf: Fix for OpenBSD/x86.
3960         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3961         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3962         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3963
3964 2011-10-01  Bruno Haible  <bruno@clisp.org>
3965
3966         isfinite: Fix syntax error in configure test.
3967         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3968
3969         isfinite: Fix typo.
3970         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3971         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3972
3973 2011-10-01  Bruno Haible  <bruno@clisp.org>
3974
3975         nonblocking tests: Fix test failure on Linux/IA-64.
3976         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3977         Set to 270000.
3978
3979 2011-10-01  Bruno Haible  <bruno@clisp.org>
3980
3981         mkfifoat tests: Fix a test failure on mingw.
3982         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3983         with error ENOSYS.
3984
3985 2011-09-30  Bruno Haible  <bruno@clisp.org>
3986
3987         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3988         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3989         'long double'. Set REPLACE_ITOLD.
3990         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3991         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3992         * lib/itold.c: New file.
3993         * modules/float (Files): Add lib/itold.c.
3994         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3995         (Makefile.am): Substitute REPLACE_ITOLD.
3996         * modules/math (Depends-on): Add float.
3997         (Makefile.am): Substitute REPLACE_ITOLD.
3998         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3999         * doc/posix-headers/math.texi: Likewise.
4000         * doc/posix-functions/logl.texi: Likewise.
4001
4002 2011-09-30  Bruno Haible  <bruno@clisp.org>
4003
4004         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
4005         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
4006         Set to 140000.
4007
4008 2011-09-30  Bruno Haible  <bruno@clisp.org>
4009
4010         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
4011         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
4012         invocation, say "right after AC_PROG_CC_STDC", not "right after
4013         AC_PROG_CC".
4014         Reported by Gary V. Vaughan <gary@gnu.org>.
4015
4016 2011-09-30  Bruno Haible  <bruno@clisp.org>
4017
4018         Centralize C99 requirement.
4019         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
4020         * modules/stdarg (configure.ac-early): Invoke it instead of
4021         AC_PROG_CC_STDC.
4022         Reported by Gary V. Vaughan and Paul Eggert.
4023
4024 2011-09-29  Bruno Haible  <bruno@clisp.org>
4025
4026         float: Fix LDBL_MAX value on Linux/PowerPC.
4027         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
4028         on Linux/PowerPC.
4029         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
4030         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
4031         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
4032         platform.
4033         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
4034
4035 2011-09-29  Bruno Haible  <bruno@clisp.org>
4036
4037         doc: Improve doc about gl_EARLY.
4038         * doc/gnulib-tool.texi (Initial import): Mention where to place an
4039         AC_PROG_CC_STDC invocation.
4040         Reported by Gary V. Vaughan <gary@gnu.org>.
4041
4042 2011-09-28  Bruno Haible  <bruno@clisp.org>
4043
4044         fgetc, fputc, fread, fwrite tests: Fix link error.
4045         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4046         on non-MSVC platforms.
4047         * tests/test-fputc.c (main): Likewise.
4048         * tests/test-fread.c (main): Likewise.
4049         * tests/test-fwrite.c (main): Likewise.
4050         Reported by Jim Meyering.
4051
4052 2011-09-27  Bruno Haible  <bruno@clisp.org>
4053
4054         fputc, fwrite tests: Avoid test failure on MSVC.
4055         * tests/test-fgetc.c: Include msvc-inval.h.
4056         (main): Invoke gl_msvc_inval_ensure_handler.
4057         * tests/test-fputc.c: Include msvc-inval.h.
4058         (main): Invoke gl_msvc_inval_ensure_handler.
4059         * tests/test-fread.c: Include msvc-inval.h.
4060         (main): Invoke gl_msvc_inval_ensure_handler.
4061         * tests/test-fwrite.c: Include msvc-inval.h.
4062         (main): Invoke gl_msvc_inval_ensure_handler.
4063         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4064         * modules/fputc-tests (Depends-on): Likewise.
4065         * modules/fread-tests (Depends-on): Likewise.
4066         * modules/fwrite-tests (Depends-on): Likewise.
4067
4068 2011-09-27  Bruno Haible  <bruno@clisp.org>
4069
4070         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4071         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4072         (raise): Remove older, duplicated declaration.
4073         (_gl_raise_SIGPIPE): New declaration.
4074         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4075         (rpl_raise): Remove function.
4076         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4077         a gnulib-defined SIGPIPE here.
4078         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4079         'sigprocmask' has detected missing signal-blocking and the module
4080         'sigpipe' is enabled.
4081         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4082
4083 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4084
4085         base64-tests: avoid memory leak
4086         * tests/test-base64.c (main): Plug memory leak.
4087
4088         base32: new module
4089         * modules/base32: New module.
4090         * lib/base32.c: New file.
4091         * lib/base32.h: Likewise.
4092         * m4/base32.m4: Likewise.
4093         * modules/base32-tests: New test.
4094         * tests/test-base32.c: Likewise.
4095         * MODULES.html.sh (Misc): Mention it.
4096
4097 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4098
4099         gnulib: use more-standard license notice wording
4100         * gnulib-tool (func_emit_copyright_notice): When emitting a
4101         license notice into a file, use the standard wording as suggested
4102         by the current information for GNU maintainers, except say "file"
4103         rather than "program".  The new wording gives a license version
4104         number, which addresses an issue raised by Glenn Morris in
4105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4106         * m4/onceonly.m4: Use that same wording here, too.
4107
4108         dup2: minor simplification
4109         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4110         as lib/dup2.c no longer uses 'inline'.
4111
4112 2011-09-25  Bruno Haible  <bruno@clisp.org>
4113
4114         strings: Fix compilation error on MSVC.
4115         * lib/strings.in.h: Include <stddef.h> for size_t.
4116
4117 2011-09-25  Bruno Haible  <bruno@clisp.org>
4118
4119         fflush et al.: Document limitation on MSVC.
4120         * doc/posix-functions/fflush.texi: Document possible crash in handling
4121         mode other than DEFAULT_HANDLING.
4122         * doc/posix-functions/fgetc.texi: Likewise.
4123         * doc/posix-functions/fputc.texi: Likewise.
4124         * doc/posix-functions/fread.texi: Likewise.
4125         * doc/posix-functions/fwrite.texi: Likewise.
4126
4127 2011-09-25  Bruno Haible  <bruno@clisp.org>
4128
4129         msvc-inval: Allow three invalid parameter handling modes.
4130         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4131         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4132         macros.
4133         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4134         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4135         SANE_LIBRARY_HANDLING as a no-op.
4136         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4137         <stdlib.h>.
4138         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4139
4140 2011-09-25  Bruno Haible  <bruno@clisp.org>
4141
4142         msvc-inval: Make handler multithread-safe.
4143         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4144         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4145         declarations.
4146         (gl_msvc_inval_current): New declaration.
4147         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4148         Operate on the structure returned by gl_msvc_inval_current().
4149         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4150         Remove varaiables.
4151         (tls_index, tls_initialized): New variables.
4152         (not_per_thread): New variable.
4153         (gl_msvc_inval_current): New function.
4154         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4155         returned by gl_msvc_inval_current().
4156
4157 2011-09-25  Bruno Haible  <bruno@clisp.org>
4158
4159         msvc-inval: Install handler globally.
4160         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4161         !_MSC_VER.
4162         (gl_msvc_invalid_parameter_handler): Remove declaration.
4163         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4164         declarations.
4165         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4166         Install the handler globally, don't uninstall it.
4167         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4168         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4169         currently valid, call RaiseException instead.
4170         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4171         for !_MSC_VER.
4172
4173 2011-09-25  Bruno Haible  <bruno@clisp.org>
4174
4175         strerror_r-posix: Fix for MSVC 9.
4176         * lib/strerror_r.c (local_snprintf): New function.
4177         (snprintf): Define to local_snprintf, not to _snprintf.
4178
4179 2011-09-25  Bruno Haible  <bruno@clisp.org>
4180
4181         ftruncate: Support for MSVC 9.
4182         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4183         (chsize_nothrow): New function.
4184         (chsize): Redefine as a macro.
4185         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4186         * modules/ftruncate (Depends-on): Add msvc-inval.
4187
4188 2011-09-25  Bruno Haible  <bruno@clisp.org>
4189
4190         New module 'fstat'.
4191         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4192         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4193         * lib/fchdir.c (rpl_fstat): Remove function.
4194         * m4/fstat.m4: New file.
4195         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4196         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4197         declared.
4198         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4199         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4200         * modules/fstat: New file.
4201         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4202         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4203         is set.
4204         * doc/posix-functions/fstat.texi: Mention the new module and the
4205         problem on MSVC.
4206         * NEWS: Mention the change.
4207         * modules/acl (Depends-on): Add fstat.
4208         * modules/chdir-safer (Depends-on): Likewise.
4209         * modules/chown (Depends-on): Likewise.
4210         * modules/copy-file (Depends-on): Likewise.
4211         * modules/fchdir (Depends-on): Likewise.
4212         * modules/fdopendir (Depends-on): Likewise.
4213         * modules/fopen (Depends-on): Likewise.
4214         * modules/fts (Depends-on): Likewise.
4215         * modules/getcwd (Depends-on): Likewise.
4216         * modules/isapipe (Depends-on): Likewise.
4217         * modules/linkat (Depends-on): Likewise.
4218         * modules/lseek (Depends-on): Likewise.
4219         * modules/mkdir-p (Depends-on): Likewise.
4220         * modules/open (Depends-on): Likewise.
4221         * modules/openat (Depends-on): Likewise.
4222         * modules/read-file (Depends-on): Likewise.
4223         * modules/renameat (Depends-on): Likewise.
4224         * modules/utimens (Depends-on): Likewise.
4225
4226 2011-09-25  Bruno Haible  <bruno@clisp.org>
4227
4228         linkat: Fix compilation on MSVC 9.
4229         * lib/linkat.c: Don't include <stdint.h>.
4230
4231 2011-09-25  Bruno Haible  <bruno@clisp.org>
4232
4233         fclose: Support for MSVC 9.
4234         * lib/fclose.c: Include msvc-inval.h.
4235         (fclose_nothrow): New function.
4236         (rpl_fclose): Use it.
4237         * modules/fclose (Depends-on): Add msvc-inval.
4238         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4239
4240 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4241
4242         dup2: minor simplifications
4243         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4244         that it's a performance win.
4245         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4246         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4247
4248 2011-09-24  Jim Meyering  <meyering@redhat.com>
4249
4250         test-futimens: avoid a warning from gcc -Wshadow
4251         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4252         to avoid a shadowing warning.
4253
4254 2011-09-24  Bruno Haible  <bruno@clisp.org>
4255
4256         fdopen: Support for MSVC 9.
4257         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4258         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4259         * lib/fdopen.c: Include msvc-inval.h.
4260         (fdopen_nothrow): New function.
4261         (rpl_fdopen): Use it.
4262         * modules/fdopen (Depends-on): Add msvc-inval.
4263         * modules/fclose-tests (Depends-on): Add fdopen.
4264         * modules/fflush-tests (Depends-on): Likewise.
4265         * modules/fgetc-tests (Depends-on): Likewise.
4266         * modules/fputc-tests (Depends-on): Likewise.
4267         * modules/fread-tests (Depends-on): Likewise.
4268         * modules/freopen-tests (Depends-on): Likewise.
4269         * modules/fseeko-tests (Depends-on): Likewise.
4270         * modules/ftello-tests (Depends-on): Likewise.
4271         * modules/fwrite-tests  (Depends-on): Likewise.
4272         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4273
4274 2011-09-24  Bruno Haible  <bruno@clisp.org>
4275
4276         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4277         * modules/fgetc-tests (Depends-on): Add unistd.
4278         * modules/fputc-tests (Depends-on): Likewise.
4279         * modules/fread-tests (Depends-on): Likewise.
4280         * modules/fwrite-tests (Depends-on): Likewise.
4281
4282 2011-09-24  Bruno Haible  <bruno@clisp.org>
4283
4284         dup: Simplify autoconf test.
4285         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4286         on gl_MSVC_INVAL's result.
4287
4288 2011-09-24  Bruno Haible  <bruno@clisp.org>
4289
4290         Tests for function fwrite().
4291         * modules/fwrite-tests: New file.
4292         * tests/test-fwrite.c: New file.
4293         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4294
4295         Tests for function fread().
4296         * modules/fread-tests: New file.
4297         * tests/test-fread.c: New file.
4298         * modules/stdio-tests (Depends-on): Add fread-tests.
4299
4300         Activate fputc tests.
4301         * modules/stdio-tests (Depends-on): Add fputc-tests.
4302
4303         Enhance fgetc, fputc tests.
4304         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4305         * tests/test-fputc.c (main): Likewise.
4306
4307 2011-09-24  Bruno Haible  <bruno@clisp.org>
4308
4309         write: Support for MSVC 9.
4310         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4311         is not 1.
4312         * lib/write.c (write_nothrow): New function.
4313         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4314         not 1. Use write_nothrow.
4315         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4316         invalid parameter handler.
4317         (gl_PREREQ_WRITE): New macro.
4318         * modules/write (Depends-on): Add msvc-inval.
4319         (configure.ac): Invoke gl_PREREQ_WRITE.
4320         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4321
4322 2011-09-24  Bruno Haible  <bruno@clisp.org>
4323
4324         read: Fix last commit.
4325         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4326
4327 2011-09-24  Bruno Haible  <bruno@clisp.org>
4328
4329         dup2: Fix last commit.
4330         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4331         (rpl_dup2): Disable fcntl workaround on native Windows.
4332
4333         sigprocmask: Make code safer.
4334         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4335         section that changes macro definitions for this compilation unit.
4336
4337 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4338
4339         dup2: clarify by coalescing Windows-specific material
4340         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4341         "msvc-nothrow.h"' to the Windows-specific section, so that the
4342         Emacs source need not contain these include files.
4343         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4344         Windows-specific fixes into this function rather than just the
4345         nothrow fix, as this shortens and clarifies the code.  Always
4346         define as a function, as that's a bit cleaner than having it be
4347         sometimes a function and sometimes a macro.
4348         (rpl_dup2): Move the Windows-specific stuff out of here and into
4349         ms_windows_dup2.  Don't protect the Haiku-related fix with
4350         "#if !defined __linux__", as the same code also works around
4351         a Linux kernel bug, and it doesn't add any system calls on any
4352         platform.  Add comment about FreeBSD 6.1.
4353
4354         sigprocmask: move #include directive
4355         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4356         Windows-specific section, so that the Emacs source need not
4357         contain msvc-inval.h.
4358
4359 2011-09-23  Bruno Haible  <bruno@clisp.org>
4360
4361         read: Support for MSVC 9.
4362         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4363         is not 1.
4364         * lib/read.c (read_nothrow): New function.
4365         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4366         read_nothrow.
4367         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4368         invalid parameter handler.
4369         (gl_PREREQ_READ): New macro.
4370         * modules/read (Depends-on): Add msvc-inval.
4371         (configure.ac): Invoke gl_PREREQ_READ.
4372         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4373
4374 2011-09-23  Bruno Haible  <bruno@clisp.org>
4375
4376         close: Support for MSVC 9.
4377         * lib/close.c: Include <errno.h>, msvc-inval.h.
4378         (close_nothrow): New function.
4379         (rpl_close): Use it.
4380         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4381         invalid parameter handler.
4382         * modules/close (Depends-on): Add msvc-inval.
4383         * modules/dup2-tests (Depends-on): Add close.
4384         * modules/dup3-tests (Depends-on): Likewise.
4385         * modules/fcntl-tests (Depends-on): Likewise.
4386         * modules/spawn-pipe-tests (Depends-on): Likewise.
4387         * modules/unistd-safer-tests (Depends-on): Likewise.
4388         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4389
4390 2011-09-23  Bruno Haible  <bruno@clisp.org>
4391
4392         New module 'dup'.
4393         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4394         Allow replacement.
4395         * lib/dup.c: New file.
4396         * lib/fchdir.c (rpl_dup): Remove function.
4397         * m4/dup.m4: New file.
4398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4399         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4400         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4401         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4402         * modules/dup: New file.
4403         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4404         'dup' module is in use.
4405         * modules/fdopendir (Depends-on): Add dup.
4406         * modules/fdutimensat-tests (Depends-on): Likewise.
4407         * modules/fts (Depends-on): Likewise.
4408         * modules/futimens-tests (Depends-on): Likewise.
4409         * modules/posix_spawnp-tests (Depends-on): Likewise.
4410         * modules/unistd-safer-tests (Depends-on): Likewise.
4411         * modules/utimens-tests (Depends-on): Likewise.
4412         * doc/posix-functions/dup.texi: Mention the new module and the problem
4413         on MSVC.
4414
4415 2011-09-23  Bruno Haible  <bruno@clisp.org>
4416
4417         getdtablesize: Support for MSVC 9.
4418         * lib/getdtablesize.c: Include msvc-inval.h.
4419         (_setmaxstdio_nothrow): New function.
4420         (_setmaxstdio): Redefine it.
4421         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4422         * modules/getdtablesize (Depends-on): Add msvc-inval.
4423         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4424
4425 2011-09-23  Bruno Haible  <bruno@clisp.org>
4426
4427         signal-h: Rename from signal.
4428         * modules/signal-h: Renamed from modules/signal.
4429         * modules/pthread_sigmask (Depends-on): Update.
4430         * modules/raise (Depends-on): Likewise.
4431         * modules/sigaction (Depends-on): Likewise.
4432         * modules/sigpipe (Depends-on): Likewise.
4433         * modules/sigprocmask (Depends-on): Likewise.
4434         * modules/sys_select (Depends-on): Likewise.
4435         * modules/signal-h-tests: Renamed from modules/signal-tests.
4436         (Files, Depends-on, Makefile.am): Update.
4437         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4438         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4439         (Files, Makefile.am): Update.
4440         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4441         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4442         * modules/signal: New placeholder file.
4443         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4444         * doc/posix-headers/signal.texi: Update.
4445         * NEWS: Mention the change.
4446
4447 2011-09-23  Bruno Haible  <bruno@clisp.org>
4448
4449         sigprocmask: Avoid crashes through signal() on MSVC 9.
4450         * lib/sigprocmask.c: Include msvc-inval.h.
4451         (signal_nothrow): New function.
4452         (signal): Redefine it.
4453         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4454         * modules/sigprocmask (Depends-on): Add msvc-inval.
4455         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4456
4457 2011-09-23  Bruno Haible  <bruno@clisp.org>
4458
4459         Tests for module 'raise'.
4460         * modules/raise-tests: New file.
4461         * tests/test-raise.c: New file.
4462
4463         raise: Support for MSVC.
4464         * lib/signal.in.h (raise): New declaration.
4465         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4466         for native Windows platforms.
4467         * m4/raise.m4: New file.
4468         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4469         HAVE_RAISE, REPLACE_RAISE.
4470         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4471         REPLACE_RAISE.
4472         * modules/raise (Status, Notice): Remove fields.
4473         (Files): Add m4/raise.m4.
4474         (Depends-on): Add signal, msvc-inval.
4475         (configure.ac): Use the common idioms.
4476         (Maintainer): Add me.
4477         * tests/test-signal-c++.cc: Check the signature of raise.
4478         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4479
4480 2011-09-23  Bruno Haible  <bruno@clisp.org>
4481
4482         pipe2: Fix compilation on pre-C99 compilers.
4483         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4484
4485 2011-09-23  Bruno Haible  <bruno@clisp.org>
4486
4487         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4488         * lib/msvc-nothrow.h: New file.
4489         * lib/msvc-nothrow.c: New file.
4490         * m4/msvc-nothrow.m4: New file.
4491         * modules/msvc-nothrow: New file.
4492         * lib/dup2.c: Include msvc-nothrow.h.
4493         (rpl_dup2): No need to protect _get_osfhandle call here.
4494         * lib/accept4.c: Include msvc-nothrow.h.
4495         * lib/error.c: Likewise.
4496         * lib/fcntl.c: Likewise.
4497         * lib/lseek.c: Likewise.
4498         * lib/nonblocking.c: Likewise.
4499         * lib/poll.c: Likewise.
4500         * lib/read.c: Likewise.
4501         * lib/select.c: Likewise.
4502         * lib/sockets.h: Likewise.
4503         * lib/sockets.c: Likewise.
4504         * lib/stdio-read.c: Likewise.
4505         * lib/stdio-write.c: Likewise.
4506         * lib/write.c: Likewise.
4507         * lib/w32sock.h: Likewise.
4508         * lib/w32spawn.h: Likewise.
4509         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4510         * lib/fsync.c: Likewise.
4511         * lib/isapipe.c: Likewise.
4512         * modules/dup2 (Depends-on): Add msvc-nothrow.
4513         * modules/accept4 (Depends-on): Likewise.
4514         * modules/error (Depends-on): Likewise.
4515         * modules/fcntl (Depends-on): Likewise.
4516         * modules/lseek (Depends-on): Likewise.
4517         * modules/nonblocking (Depends-on): Likewise.
4518         * modules/poll (Depends-on): Likewise.
4519         * modules/read (Depends-on): Likewise.
4520         * modules/select (Depends-on): Likewise.
4521         * modules/sockets (Depends-on): Likewise.
4522         * modules/sigpipe (Depends-on): Likewise.
4523         * modules/write (Depends-on): Likewise.
4524         * modules/accept (Depends-on): Likewise.
4525         * modules/bind (Depends-on): Likewise.
4526         * modules/connect (Depends-on): Likewise.
4527         * modules/gethostname (Depends-on): Likewise.
4528         * modules/getpeername (Depends-on): Likewise.
4529         * modules/getsockname (Depends-on): Likewise.
4530         * modules/getsockopt (Depends-on): Likewise.
4531         * modules/ioctl (Depends-on): Likewise.
4532         * modules/listen (Depends-on): Likewise.
4533         * modules/recv (Depends-on): Likewise.
4534         * modules/recvfrom (Depends-on): Likewise.
4535         * modules/send (Depends-on): Likewise.
4536         * modules/sendto (Depends-on): Likewise.
4537         * modules/setsockopt (Depends-on): Likewise.
4538         * modules/shutdown (Depends-on): Likewise.
4539         * modules/socket (Depends-on): Likewise.
4540         * modules/execute (Depends-on): Likewise.
4541         * modules/spawn-pipe (Depends-on): Likewise.
4542         * modules/flock (Depends-on): Likewise.
4543         * modules/fsync (Depends-on): Likewise.
4544         * modules/isapipe (Depends-on): Likewise.
4545         * tests/test-cloexec.c: Include msvc-nothrow.h.
4546         * tests/test-dup-safer.c: Likewise.
4547         * tests/test-dup2.c: Likewise.
4548         * tests/test-dup3.c: Likewise.
4549         * tests/test-fcntl.c: Likewise.
4550         * tests/test-pipe.c: Likewise.
4551         * tests/test-pipe2.c: Likewise.
4552         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4553         * modules/unistd-safer-tests (Depends-on): Likewise.
4554         * modules/dup2-tests (Depends-on): Likewise.
4555         * modules/dup3-tests (Depends-on): Likewise.
4556         * modules/fcntl-tests (Depends-on): Likewise.
4557         * modules/pipe-posix-tests (Depends-on): Likewise.
4558         * modules/pipe2-tests (Depends-on): Likewise.
4559
4560 2011-09-23  Bruno Haible  <bruno@clisp.org>
4561
4562         dup2: Make code more maintainable.
4563         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4564         (rpl_dup2): Use it.
4565         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4566         * modules/dup2 (configure.ac): Invoke it.
4567         Reported by Paul Eggert.
4568
4569 2011-09-23  Bruno Haible  <bruno@clisp.org>
4570
4571         msvc-inval: Fix compilation error.
4572         * lib/msvc-inval.h: Include <excpt.h>.
4573
4574 2011-09-23  Bruno Haible  <bruno@clisp.org>
4575
4576         mkdir: Tweak for MSVC 9.
4577         * lib/sys_stat.in.h: Update comments.
4578         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4579
4580         Tests for module 'chdir'.
4581         * modules/chdir-tests: New file.
4582         * tests/test-chdir.c: New file.
4583
4584         New module 'chdir'.
4585         * modules/chdir: New file.
4586         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4587         (chdir): New declaration.
4588         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4589         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4590         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4591         * tests/test-unistd-c++.cc: Check signature of chdir.
4592         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4593         * modules/chdir-long (Depends-on): Add chdir.
4594         * modules/fchdir (Depends-on): Likewise.
4595         * modules/rename (Depends-on): Likewise.
4596         * modules/savewd (Depends-on): Likewise.
4597
4598         rmdir: Support for mingw, MSVC 9.
4599         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4600         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4601
4602         getcwd: Tweak for MSVC 9.
4603         * lib/unistd.in.h: Update comments.
4604         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4605
4606 2011-09-22  Bruno Haible  <bruno@clisp.org>
4607
4608         strerror_r-posix: Avoid a link error on MSVC.
4609         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4610         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4611
4612 2011-09-22  Bruno Haible  <bruno@clisp.org>
4613
4614         select: Avoid link errors on MSVC.
4615         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4616         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4617         * modules/pselect (Link): Likewise.
4618         * NEWS: Mention the change.
4619         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4620         test-select-stdin against $(LIB_SELECT).
4621         * modules/pselect-tests (Makefile.am): Link test-pselect against
4622         $(LIB_SELECT).
4623
4624 2011-09-22  Bruno Haible  <bruno@clisp.org>
4625
4626         select: Avoid compilation error on MSVC.
4627         * lib/select.c: Don't include <stdbool.h>.
4628
4629 2011-09-21  Bruno Haible  <bruno@clisp.org>
4630
4631         Consolidate all uses of PATH_MAX in *.m4 files.
4632         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4633         macros.
4634         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4635         and gl_PATHMAX_SNIPPET.
4636         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4637         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4638         * modules/chdir-long (Files): Add m4/pathmax.m4.
4639         * modules/getcwd (Files): Likewise.
4640
4641 2011-09-21  Bruno Haible  <bruno@clisp.org>
4642
4643         ftruncate: Un-deprecate, concentrate on Win32 support.
4644         * modules/ftruncate (Status, Notice): Remove sections.
4645         (Depends-on): Add largefile.
4646         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4647         non-mingw platforms.
4648         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4649         include <io.h>.
4650         * modules/perror-tests (Depends-on): Add ftruncate.
4651         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4652         'ftruncate' module.
4653
4654 2011-09-21  Bruno Haible  <bruno@clisp.org>
4655
4656         Add dependencies to new dirent related modules.
4657         * modules/opendir (Depends-on): Add closedir.
4658         * modules/getcwd (Depends-on): Add opendir, closedir.
4659         * modules/dirent-safer-tests (Depends-on): Likewise.
4660         * modules/fdopendir-tests (Depends-on): Likewise.
4661         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4662         * modules/renameat-tests (Depends-on): Likewise.
4663
4664 2011-09-21  Bruno Haible  <bruno@clisp.org>
4665
4666         opendir: Avoid compilation error on mingw.
4667         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4668         * modules/opendir (Depends-on): Add unistd.
4669
4670 2011-09-21  Bruno Haible  <bruno@clisp.org>
4671
4672         ftruncate tests: Avoid a test failure on mingw.
4673         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4674
4675 2011-09-21  Bruno Haible  <bruno@clisp.org>
4676
4677         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4678         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4679         native Windows.
4680
4681 2011-09-21  Bruno Haible  <bruno@clisp.org>
4682
4683         New module 'fdopen'.
4684         * lib/stdio.in.h (fdopen): New declaration.
4685         * lib/fdopen.c: New file.
4686         * m4/fdopen.m4: New file.
4687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4688         REPLACE_FDOPEN.
4689         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4690         REPLACE_FDOPEN.
4691         * modules/fdopen: New file.
4692         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4693         * tests/test-stdio-c++.cc: Check signature of fdopen.
4694         * doc/posix-functions/fdopen.texi: Mention the new module.
4695
4696 2011-09-21  Bruno Haible  <bruno@clisp.org>
4697
4698         unlockpt tests: Avoid test failure on NetBSD 5.1.
4699         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4700         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4701
4702 2011-09-21  Bruno Haible  <bruno@clisp.org>
4703
4704         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4705         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4706         * tests/test-getlogin_r.c (main): Likewise.
4707
4708 2011-09-20  Bruno Haible  <bruno@clisp.org>
4709
4710         time tests: Don't require pid_t.
4711         * doc/posix-headers/time.texi: Revert last change.
4712         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4713         * tests/test-time.c: Comment out the check for pid_t.
4714
4715 2011-09-20  Bruno Haible  <bruno@clisp.org>
4716
4717         fsync tests: Avoid a test failure on mingw.
4718         * tests/test-fsync.c (main): Allow a failure with EIO.
4719
4720 2011-09-20  Bruno Haible  <bruno@clisp.org>
4721
4722         euidaccess: Update comments.
4723         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4724
4725 2011-09-20  Bruno Haible  <bruno@clisp.org>
4726
4727         Ensure EBADF returns for socket functions on mingw.
4728         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4729         descriptor is invalid.
4730         * lib/bind.c (rpl_bind): Likewise.
4731         * lib/connect.c (rpl_connect): Likewise.
4732         * lib/getpeername.c (rpl_getpeername): Likewise.
4733         * lib/getsockname.c (rpl_getsockname): Likewise.
4734         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4735         * lib/listen.c (rpl_listen): Likewise.
4736         * lib/recv.c (rpl_recv): Likewise.
4737         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4738         * lib/send.c (rpl_send): Likewise.
4739         * lib/sendto.c (rpl_sendto): Likewise.
4740         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4741         * lib/shutdown.c (rpl_shutdown): Likewise.
4742
4743 2011-09-20  Bruno Haible  <bruno@clisp.org>
4744
4745         select tests: EBADF tests.
4746         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4747         test_bad_fd): New functions.
4748         (test_function): Invoke also test_bad_fd.
4749
4750 2011-09-20  Bruno Haible  <bruno@clisp.org>
4751
4752         Tests for module 'posix_spawn_file_actions_addopen.
4753         * modules/posix_spawn_file_actions_addopen-tests: New file.
4754         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4755
4756         Tests for module 'posix_spawn_file_actions_adddup2'.
4757         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4758         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4759
4760         Tests for module 'posix_spawn_file_actions_addclose'.
4761         * modules/posix_spawn_file_actions_addclose-tests: New file.
4762         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4763
4764 2011-09-20  Bruno Haible  <bruno@clisp.org>
4765
4766         Tests for module 'unlockpt'.
4767         * modules/unlockpt-tests: New file.
4768         * tests/test-unlockpt.c: New file.
4769         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4770
4771         Tests for module 'grantpt'.
4772         * modules/grantpt-tests: New file.
4773         * tests/test-grantpt.c: New file.
4774         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4775
4776 2011-09-20  Bruno Haible  <bruno@clisp.org>
4777
4778         freopen tests: EBADF tests.
4779         * tests/test-freopen.c: Include errno.h, unistd.h.
4780         (main): Add tests for EBADF, commented out for the moment.
4781
4782         fclose tests: EBADF tests.
4783         * tests/test-fclose.c (main): Add tests for EBADF.
4784
4785         fflush tests: EBADF tests.
4786         * tests/test-fflush.c: Include errno.h, macros.h.
4787         (main): Add tests for EBADF.
4788
4789         ftello tests: EBADF tests.
4790         * tests/test-ftello4.sh: New file.
4791         * tests/test-ftello4.c: New file.
4792         * modules/ftello-tests (Files): Add them.
4793         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4794
4795         fseeko tests: EBADF tests.
4796         * tests/test-fseeko4.sh: New file.
4797         * tests/test-fseeko4.c: New file.
4798         * modules/fseeko-tests (Files): Add them.
4799         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4800
4801         Tests for function fputc().
4802         * modules/fputc-tests: New file.
4803         * tests/test-fputc.c: New file.
4804         * modules/stdio-tests (Depends-on): Add fputc-tests.
4805
4806         Tests for function fgetc().
4807         * modules/fgetc-tests: New file.
4808         * tests/test-fgetc.c: New file.
4809         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4810
4811         Tests for function fdopen().
4812         * modules/fdopen-tests: New file.
4813         * tests/test-fdopen.c: New file.
4814         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4815
4816         Tests for module 'vdprintf'.
4817         * modules/vdprintf-tests: New file.
4818         * tests/test-vdprintf.c: New file.
4819
4820         Tests for module 'dprintf'.
4821         * modules/dprintf-tests: New file.
4822         * tests/test-dprintf.c: New file.
4823
4824 2011-09-20  Bruno Haible  <bruno@clisp.org>
4825
4826         Tests for module 'ioctl'.
4827         * modules/ioctl-tests: New file.
4828         * tests/test-ioctl.c: New file.
4829
4830 2011-09-20  Bruno Haible  <bruno@clisp.org>
4831
4832         fcntl tests: EBADF tests.
4833         * tests/test-fcntl.c (main): Add more tests for EBADF.
4834
4835 2011-09-20  Bruno Haible  <bruno@clisp.org>
4836
4837         utimensat tests: EBADF tests.
4838         * tests/test-utimensat.c (main): Add tests for EBADF.
4839
4840         renameat tests: EBADF tests.
4841         * tests/test-renameat.c (main): Add tests for EBADF.
4842
4843         mkfifoat tests: EBADF tests.
4844         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4845
4846         readlinkat tests: EBADF tests.
4847         * tests/test-readlinkat.c (main): Add tests for EBADF.
4848
4849         symlinkat tests: EBADF tests.
4850         * tests/test-symlinkat.c (main): Add tests for EBADF.
4851
4852         linkat tests: EBADF tests.
4853         * tests/test-linkat.c (main): Add tests for EBADF.
4854
4855         Tests for module 'faccessat'.
4856         * modules/faccessat-tests: New file.
4857         * tests/test-faccessat.c: New file.
4858
4859         fdopendir tests: EBADF tests.
4860         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4861
4862         openat tests: EBADF tests.
4863         * tests/test-fchownat.c (main): Add tests for EBADF.
4864         * tests/test-fstatat.c (main): Likewise.
4865         * tests/test-mkdirat.c (main): Likewise.
4866         * tests/test-openat.c (main): Likewise.
4867         * tests/test-unlinkat.c (main): Likewise.
4868         * tests/test-fchmodat.c: New file.
4869         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4870         (Makefile.am): Also run 'test-fchmodat'.
4871
4872 2011-09-20  Bruno Haible  <bruno@clisp.org>
4873
4874         utimens, futimens, fdutimensat tests: EBADF tests.
4875         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4876
4877         Tests for function fstat().
4878         * modules/fstat-tests: New file.
4879         * tests/test-fstat.c: New file.
4880         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4881
4882 2011-09-20  Bruno Haible  <bruno@clisp.org>
4883
4884         test-ttyname_r tests: EBADF tests.
4885         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4886
4887         Tests for module 'isatty'.
4888         * modules/isatty-tests: New file.
4889         * tests/test-isatty.c: New file.
4890
4891         Tests for module 'write'.
4892         * modules/write-tests: New file.
4893         * tests/test-write.c: New file.
4894
4895         Tests for module 'read'.
4896         * modules/read-tests: New file.
4897         * tests/test-read.c: New file.
4898
4899         pwrite tests: EBADF tests.
4900         * tests/test-pwrite.c (main): Add tests for EBADF.
4901
4902         pread tests: EBADF tests.
4903         * tests/test-pread.c (main): Add tests for EBADF.
4904
4905         lseek tests: EBADF tests.
4906         * tests/test-lseek.c (main): Add more tests for EBADF.
4907
4908         Tests for module 'ftruncate'.
4909         * modules/ftruncate-tests: New file.
4910         * tests/test-ftruncate.sh: New file.
4911         * tests/test-ftruncate.c: New file.
4912
4913         fsync tests: EBADF tests.
4914         * tests/test-fsync.c (main): Add more tests for EBADF.
4915
4916         fdatasync tests: EBADF tests.
4917         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4918
4919         Tests for module 'fchown'.
4920         * modules/fchown-tests: New file.
4921         * tests/test-fchown.c: New file.
4922
4923         Tests for module 'fchmod'.
4924         * modules/fchmod-tests: New file.
4925         * tests/test-fchmod.c: New file.
4926
4927         fchdir tests: EBADF tests.
4928         * tests/test-fchdir.c (main): Add more tests for EBADF.
4929
4930         dup2 tests: EBADF tests.
4931         * tests/test-dup2.c (main): Add more tests for EBADF.
4932
4933         Tests for module 'dup'.
4934         * modules/dup-tests: New file.
4935         * tests/test-dup.c: New file.
4936
4937         Tests for module 'close'.
4938         * modules/close-tests: New file.
4939         * tests/test-close.c: New file.
4940
4941 2011-09-20  Bruno Haible  <bruno@clisp.org>
4942
4943         Tests for module 'shutdown'.
4944         * modules/shutdown-tests: New file.
4945         * tests/test-shutdown.c: New file.
4946
4947         Tests for module 'setsockopt'.
4948         * modules/setsockopt-tests: New file.
4949         * tests/test-setsockopt.c: New file.
4950
4951         Tests for module 'sendto'.
4952         * modules/sendto-tests: New file.
4953         * tests/test-sendto.c: New file.
4954
4955         Tests for module 'send'.
4956         * modules/send-tests: New file.
4957         * tests/test-send.c: New file.
4958
4959         Tests for module 'recvfrom'.
4960         * modules/recvfrom-tests: New file.
4961         * tests/test-recvfrom.c: New file.
4962
4963         Tests for module 'recv'.
4964         * modules/recv-tests: New file.
4965         * tests/test-recv.c: New file.
4966
4967         Tests for module 'listen'.
4968         * modules/listen-tests: New file.
4969         * tests/test-listen.c: New file.
4970
4971         Tests for module 'getsockopt'.
4972         * modules/getsockopt-tests: New file.
4973         * tests/test-getsockopt.c: New file.
4974
4975         Tests for module 'getsockname'.
4976         * modules/getsockname-tests: New file.
4977         * tests/test-getsockname.c: New file.
4978
4979         Tests for module 'getpeername'.
4980         * modules/getpeername-tests: New file.
4981         * tests/test-getpeername.c: New file.
4982
4983         Tests for module 'connect'.
4984         * modules/connect-tests: New file.
4985         * tests/test-connect.c: New file.
4986
4987         Tests for module 'bind'.
4988         * modules/bind-tests: New file.
4989         * tests/test-bind.c: New file.
4990
4991         accept4 tests: Fix for native Windows.
4992         * tests/test-accept4.c: Include sockets.h.
4993         (main): Invoke gl_sockets_startup.
4994         * modules/accept4-tests (Depends-on): Add sockets.
4995
4996         accept tests: Fix for native Windows.
4997         * tests/test-accept.c: Include sockets.h.
4998         (main): Invoke gl_sockets_startup.
4999         * modules/accept-tests (Depends-on): Add sockets.
5000
5001 2011-09-19  Bruno Haible  <bruno@clisp.org>
5002
5003         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
5004         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
5005         do...while(0).
5006         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
5007         Suggested by Paul Eggert.
5008
5009 2011-09-19  Bruno Haible  <bruno@clisp.org>
5010
5011         sched: Ensure pid_t is defined.
5012         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
5013         not define pid_t.
5014         * lib/sched.in.h: Include <sys/types.h>.
5015         * doc/posix-headers/sched.texi: Mention the pid_t problem.
5016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5017
5018 2011-09-19  Bruno Haible  <bruno@clisp.org>
5019
5020         msvc-inval: Ensure the entire expansion is a single statement.
5021         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
5022         of braces.
5023
5024 2011-09-19  Jim Meyering  <meyering@redhat.com>
5025
5026         tests: use printf, not echo in init.sh's warn_ function
5027         * tests/init.sh (warn_): Use printf, not echo.  The latter would
5028         misbehave when given strings containing a backslash or starting
5029         with e.g., -n.  James Youngman suggested setting IFS.
5030
5031 2011-09-19  Eric Blake  <eblake@redhat.com>
5032
5033         futimens: enhance test
5034         * tests/test-futimens.h (test_futimens): Also check for EBADF on
5035         closed non-negative fd.
5036
5037         date: accept 'hence' as opposite of 'ago'
5038         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
5039         * tests/test-parse-datetime.c (main): Enhance test.
5040         Suggested by Jesse Wilson.
5041
5042 2011-09-19  Jim Meyering  <meyering@redhat.com>
5043
5044         getcwd: don't fail in a deep directory on a system without openat
5045         Before this change, getcwd would fail when called from a directory
5046         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5047         the non-openat implementation used "..", "../..", "../../..", etc.
5048         to access ancestor directories.  With too many, that string would
5049         be longer than PATH_MAX.
5050         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5051         using gnulib's openat replacement.
5052         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5053         we're using the replacement function.
5054
5055 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5056
5057         maint.mk: avoid warnings from perl about missing files
5058         * top/maint.mk (def_sym_regex): Ignore files listed in
5059         $(gl_other_headers_) that do not exist, say because a project
5060         does not use a corresponding module.
5061
5062 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5063
5064         stat: use pathmax.h only if needed
5065         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5066         This is better for Emacs, which does not have a mingw port and
5067         therefore can avoid the pathmax module.
5068
5069         utimens: remove dependency on dup2
5070         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5071         to work around the Linux kernel bug.
5072         * modules/utimens (Depends-on): Remove dup2.
5073
5074 2011-09-18  Bruno Haible  <bruno@clisp.org>
5075
5076         inet_ntop, inet_pton: Look for it also in libresolv.
5077         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5078         libnsl, search for it in libresolv.
5079         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5080         Needed on Solaris 7.
5081
5082 2011-09-18  Bruno Haible  <bruno@clisp.org>
5083
5084         accept, accept4 tests: Avoid link error on Solaris.
5085         * modules/accept-tests (Makefile.am): Link test-accept against
5086         $(LIBSOCKET).
5087         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5088         $(LIBSOCKET).
5089
5090         accept4: Avoid link error on Solaris.
5091         * modules/accept4 (Link): New section.
5092
5093         socket functions: Avoid link errors on Solaris.
5094         * modules/accept (Depends-on): Add socketlib.
5095         (Link): New section.
5096         * modules/bind (Depends-on): Add socketlib.
5097         (Link): New section.
5098         * modules/connect (Depends-on): Add socketlib.
5099         (Link): New section.
5100         * modules/getpeername (Depends-on): Add socketlib.
5101         (Link): New section.
5102         * modules/getsockname (Depends-on): Add socketlib.
5103         (Link): New section.
5104         * modules/getsockopt (Depends-on): Add socketlib.
5105         (Link): New section.
5106         * modules/listen (Depends-on): Add socketlib.
5107         (Link): New section.
5108         * modules/recv (Depends-on): Add socketlib.
5109         (Link): New section.
5110         * modules/recvfrom (Depends-on): Add socketlib.
5111         (Link): New section.
5112         * modules/send (Depends-on): Add socketlib.
5113         (Link): New section.
5114         * modules/sendto (Depends-on): Add socketlib.
5115         (Link): New section.
5116         * modules/setsockopt (Depends-on): Add socketlib.
5117         (Link): New section.
5118         * modules/shutdown (Depends-on): Add socketlib.
5119         (Link): New section.
5120         * modules/socket (Depends-on): Add socketlib.
5121         (Link): New section.
5122
5123 2011-09-18  Bruno Haible  <bruno@clisp.org>
5124
5125         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5126         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5127         than 5 seconds.
5128         * modules/ptsname-tests (configure.ac): Test for alarm.
5129
5130 2011-09-18  Bruno Haible  <bruno@clisp.org>
5131
5132         posix_spawn_file_actions_add*: Fix module dependencies.
5133         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5134         posix_spawn_file_actions_init.
5135         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5136         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5137
5138 2011-09-18  Bruno Haible  <bruno@clisp.org>
5139
5140         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5141         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5142         * tests/test-renameat.c (main): Likewise.
5143
5144 2011-09-18  Bruno Haible  <bruno@clisp.org>
5145
5146         Tests for module 'accept4'.
5147         * modules/accept4-tests: New file.
5148         * tests/test-accept4.c: New file.
5149
5150 2011-09-18  Bruno Haible  <bruno@clisp.org>
5151
5152         Tests for module 'accept'.
5153         * modules/accept-tests: New file.
5154         * tests/test-accept.c: New file.
5155
5156 2011-09-18  Bruno Haible  <bruno@clisp.org>
5157
5158         dup2: Support for MSVC.
5159         * lib/dup2.c: Include msvc-inval.h.
5160         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5161         _get_osfhandle calls.
5162         * modules/dup2 (Depends-on): Add msvc-inval.
5163         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5164
5165         New module 'msvc-inval'.
5166         * lib/msvc-inval.h: New file.
5167         * lib/msvc-inval.c: New file.
5168         * m4/msvc-inval.m4: New file.
5169         * modules/msvc-inval: New file.
5170
5171 2011-09-17  Bruno Haible  <bruno@clisp.org>
5172
5173         Tests for module 'pclose'.
5174         * modules/pclose-tests: New file.
5175
5176         New module 'pclose'.
5177         * lib/stdio.in.h (pclose): New declaration.
5178         * lib/pclose.c: New file.
5179         * m4/pclose.m4: New file.
5180         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5181         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5182         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5183         * modules/pclose: New file.
5184         * modules/popen-tests (Depends-on): Add pclose.
5185         * modules/popen-safer-tests (Depends-on): Likewise.
5186         * doc/posix-functions/pclose.texi: Mention the new module.
5187
5188 2011-09-17  Bruno Haible  <bruno@clisp.org>
5189
5190         popen: Support for MSVC.
5191         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5192         * lib/popen.c (popen): Provide alternate definition for native Windows.
5193         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5195         * modules/popen (Depends-on, configure.ac): Update condition.
5196         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5197         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5198         fixed.
5199
5200 2011-09-17  Bruno Haible  <bruno@clisp.org>
5201
5202         isnanl, isnand, isnanf: Work around MSVC bug.
5203         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5204
5205 2011-09-17  Bruno Haible  <bruno@clisp.org>
5206
5207         sys_socket tests: Fix recent mistake.
5208         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5209
5210 2011-09-17  Bruno Haible  <bruno@clisp.org>
5211
5212         putenv: Support for MSVC.
5213         * modules/putenv (Depends-on): Add environ.
5214         * lib/putenv.c (environ): Disable declaration.
5215         * lib/unistd.in.h: Update comment.
5216
5217 2011-09-17  Bruno Haible  <bruno@clisp.org>
5218
5219         math: Avoid macro redefinition warnings on MSVC.
5220         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5221         Undefine before redefining.
5222
5223 2011-09-17  Bruno Haible  <bruno@clisp.org>
5224
5225         doc: Mention functions which are declared as macros.
5226         * doc/posix-functions/*[fl].texi: Mention that some functions are
5227         defined as macros with arguments only.
5228
5229 2011-09-17  Bruno Haible  <bruno@clisp.org>
5230
5231         Add dependencies to new dirent related modules.
5232         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5233         * modules/fts (Depends-on): Likewise.
5234         * modules/glob (Depends-on): Likewise.
5235         * modules/savedir (Depends-on): Likewise.
5236         * modules/scandir (Depends-on): Likewise.
5237         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5238         * modules/fdopendir (Depends-on): Add opendir.
5239
5240 2011-09-17  Bruno Haible  <bruno@clisp.org>
5241
5242         inet_pton: Support for MSVC on Windows Vista or newer.
5243         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5244         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5245         HAVE_DECL_INET_PTON is defined.
5246         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5247         On platforms with <winsock2.h>, test whether inet_pton is declared in
5248         <ws2tcpip.h>. If so, arrange to replace it.
5249         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5250         REPLACE_INET_PTON.
5251         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5252         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5253         (Depends-on, configure.ac): Update condition.
5254         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5255
5256 2011-09-17  Bruno Haible  <bruno@clisp.org>
5257
5258         inet_ntop: Support for MSVC on Windows Vista or newer.
5259         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5260         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5261         HAVE_DECL_INET_NTOP is defined.
5262         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5263         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5264         <ws2tcpip.h>. If so, arrange to replace it.
5265         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5266         REPLACE_INET_NTOP.
5267         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5268         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5269         (Depends-on, configure.ac): Update condition.
5270         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5271
5272 2011-09-16  Eric Blake  <eblake@redhat.com>
5273
5274         test-fsync: yet another enhancement
5275         * tests/test-fsync.c (main): Also test behavior on read-only text
5276         file.
5277
5278 2011-09-16  Bruno Haible  <bruno@clisp.org>
5279
5280         Enhance fsync, fdatasync tests.
5281         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5282         * tests/test-fdatasync.c (main): Likewise.
5283
5284 2011-09-16  Bruno Haible  <bruno@clisp.org>
5285
5286         Support for MSVC compiler: Ensure mode_t gets defined.
5287         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5288         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5289         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5290         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5291         * tests/test-fcntl-h.c: Check that mode_t is defined.
5292         * tests/test-sys_stat.c: Likewise.
5293         * tests/test-sys_types.c: Likewise.
5294         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5295         * doc/posix-headers/sys_stat.texi: Likewise.
5296         * doc/posix-headers/sys_types.texi: Likewise.
5297
5298 2011-09-16  Bruno Haible  <bruno@clisp.org>
5299
5300         sys_stat: Support for MSVC.
5301         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5302         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5303         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5304         MSVC.
5305
5306 2011-09-16  Bruno Haible  <bruno@clisp.org>
5307
5308         Support for MSVC compiler: Ensure off_t gets defined.
5309         * lib/unistd.in.h: Include <sys/types.h>.
5310         * tests/test-fcntl-h.c: Check that off_t is defined.
5311         * tests/test-sys_stat.c: Likewise.
5312         * tests/test-sys_types.c: Likewise.
5313
5314 2011-09-16  Eric Blake  <eblake@redhat.com>
5315
5316         fdatasync: port to Solaris
5317         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5318         * modules/fdatasync (Link): Document it.
5319         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5320
5321         fdatasync: port to MacOS X 10.7
5322         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5323         declared.
5324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5325         * modules/unistd (Makefile.am): Substitute it.
5326         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5327         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5328
5329         fdatasync: minor improvements
5330         * modules/fdatasync (Depends-on): Add condition for fsync.
5331         * lib/fdatasync.c (fdatasync): Add comment.
5332         * tests/test-unistd-c++.cc: Test fdatasync.
5333
5334         unistd: update refs to newer POSIX
5335         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5336         Suggested by Bruno Haible.
5337
5338         fdatasync: new module
5339         * modules/fsync (Description): Document difference to fdatasync.
5340         * modules/fdatasync: New module.
5341         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5342         * lib/fdatasync.c (fdatasync): Likewise.
5343         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5344         defaults.
5345         * modules/unistd (Makefile.am): Set witnesses.
5346         * lib/unistd.in.h (fdatasync): Declare.
5347         * MODULES.html.sh: Document it.
5348         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5349         * modules/fdatasync-tests: New test.
5350         * tests/test-fdatasync.c: Likewise.
5351
5352 2011-09-16  Eric Blake  <eblake@redhat.com>
5353
5354         test-fsync: enhance tests
5355         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5356         * tests/test-fsync.c (main): Enhance test.
5357
5358 2011-09-15  Bruno Haible  <bruno@clisp.org>
5359
5360         Support for MSVC compiler: Ensure ssize_t gets defined.
5361         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5362         * doc/posix-headers/stdio.texi: Likewise.
5363         * modules/stdio (Depends-on): Add ssize_t.
5364         * modules/sys_socket (Depends-on): Likewise.
5365         * modules/sys_types (Depends-on): Likewise.
5366         * modules/sys_uio (Depends-on): Likewise.
5367         * modules/unistd (Depends-on): Likewise.
5368         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5369         * tests/test-sys_types.c: Check that ssize_t is defined.
5370
5371 2011-09-14  Bruno Haible  <bruno@clisp.org>
5372
5373         Avoid using #, the m4 comment starter character, near brackets.
5374         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5375         delimiter character in sed expressions.
5376         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5377         Suggested by Eric Blake.
5378
5379         Properly quote AC_CHECK_DECLS' 4th argument.
5380         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5381         argument.
5382         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5383         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5384         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5385         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5386         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5387         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5388         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5389         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5390         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5391         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5392         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5393         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5394         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5395         * m4/isinf.m4 (gl_ISINF): Likewise.
5396         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5397         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5398         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5399         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5400         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5401         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5402         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5403         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5404         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5405         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5406         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5407         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5408         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5409         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5410         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5411         Reported by Eric Blake.
5412
5413         Properly quote AC_CHECK_DECL's 4th argument.
5414         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5415         argument.
5416         * m4/argp.m4 (gl_ARGP): Likewise.
5417         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5418         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5419         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5420         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5421         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5422         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5423         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5424         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5425         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5426         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5427         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5428         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5429         Reported by Eric Blake.
5430
5431 2011-09-14  Eric Blake  <eblake@redhat.com>
5432
5433         opendir: avoid compile warning
5434         * lib/opendir.c (includes): Always include errno.h.
5435         Reported by Tatsuro MATSUOKA.
5436
5437 2011-09-14  Jim Meyering  <meyering@redhat.com>
5438
5439         maint.mk: sc_tight_scope: propagate failure from sub-make
5440         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5441         Reported by Martin von Gagern.
5442
5443 2011-09-13  Bruno Haible  <bruno@clisp.org>
5444
5445         tempname: Support for MSVC.
5446         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5447         MSVC.
5448         * modules/tempname (Depends-on): Add fcntl-h.
5449
5450 2011-09-13  Bruno Haible  <bruno@clisp.org>
5451
5452         sys_time: Support for MSVC.
5453         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5454         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5455         include <winsock2.h>.
5456         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5457         function declarations that collide with POSIX.
5458         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5459         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5460
5461 2011-09-13  Bruno Haible  <bruno@clisp.org>
5462
5463         stat: Support for MSVC.
5464         * lib/stat.c: Include pathmax.h.
5465         * modules/stat (Depends-on): Add pathmax.
5466
5467         pathmax: Support for native Windows.
5468         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5469
5470 2011-09-12  Bruno Haible  <bruno@clisp.org>
5471
5472         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5473         * lib/dirent.in.h (struct dirent): New type.
5474         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5475         DT_WHT): New macros.
5476         (DIR): New type.
5477         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5478         (readdir, rewinddir): New declarations.
5479         * lib/dirent-private.h: New file.
5480         * lib/opendir.c: New file.
5481         * lib/readdir.c: New file.
5482         * lib/rewinddir.c: New file.
5483         * lib/closedir.c: New file.
5484         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5485         * m4/opendir.m4: New file.
5486         * m4/readdir.m4: New file.
5487         * m4/rewinddir.m4: New file.
5488         * m4/closedir.m4: New file.
5489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5490         REPLACE_CLOSEDIR here.
5491         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5492         readdir, rewinddir are declared.
5493         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5494         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5495         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5496         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5497         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5498         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5499         * modules/opendir: New file.
5500         * modules/readdir: New file.
5501         * modules/rewinddir: New file.
5502         * modules/closedir: New file.
5503         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5504         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5505         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5506         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5507         * NEWS: Mention the 'fchdir' change.
5508
5509 2011-09-11  Bruno Haible  <bruno@clisp.org>
5510
5511         asm-underscore.m4: Support for MSVC.
5512         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5513         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5514
5515 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5516
5517         Doc about crypt functions.
5518         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5519         needing for _GNU_SOURCE to get crypt.
5520         * doc/posix-functions/encrypt.texi: Likewise.
5521         * doc/posix-functions/setkey.texi: Likewise.
5522
5523 2011-09-11  Bruno Haible  <bruno@clisp.org>
5524
5525         doc: Update regarding MSVC 9.
5526         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5527         tested".
5528         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5529         * doc/posix-headers/*.texi: Likewise.
5530         * doc/pastposix-functions/*.texi: Likewise.
5531         * doc/glibc-functions/*.texi: Likewise.
5532         * doc/glibc-headers/*.texi: Likewise.
5533
5534 2011-09-11  Bruno Haible  <bruno@clisp.org>
5535
5536         unistd et al.: Don't assume <unistd.h> exists.
5537         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5538         does not exist.
5539         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5540         exist. But include <stdlib.h>.
5541         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5542         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5543         symlink() does not exist.
5544         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5545         include <io.h> instead.
5546         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5547         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5548         include <direct.h> instead.
5549         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5550         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5551         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5552         <io.h> instead.
5553         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5554         correctly if the system does not have hard links.
5555         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5556         <direct.h> instead.
5557         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5558         it when looking for function declarations.
5559         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5560         <direct.h> and <io.h> instead.
5561         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5562
5563 2011-09-11  Bruno Haible  <bruno@clisp.org>
5564
5565         strcase: Support for MSVC.
5566         * modules/strcase (Status, Notice): Remove obsoletion mark.
5567         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5568         * doc/posix-functions/strncasecmp.texi: Likewise.
5569
5570         strings: Don't assume <strings.h> exists.
5571         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5572         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5573         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5574         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5575
5576 2011-09-11  Bruno Haible  <bruno@clisp.org>
5577
5578         dirent: Don't assume <dirent.h> exists.
5579         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5580         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5581         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5582         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5583
5584 2011-09-11  Bruno Haible  <bruno@clisp.org>
5585
5586         Fix wint_t on MSVC.
5587         * lib/wchar.in.h (wint_t): On MSVC, override it.
5588         * lib/wctype.in.h (wint_t): Likewise.
5589         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5590         MSVC.
5591         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5592         * doc/posix-headers/wctype.texi: Likewise.
5593
5594 2011-09-11  Bruno Haible  <bruno@clisp.org>
5595
5596         sys_types: Fix typo.
5597         * lib/sys_types.in.h: Fix typo in comment.
5598         Reported by Paul Eggert.
5599
5600         Support for MSVC compiler: Ensure size_t gets defined.
5601         * modules/strings (Depends-on): Add 'sys_types'.
5602         * modules/sys_uio (Depends-on): Likewise.
5603         * lib/sys_uio.in.h: Update comment.
5604
5605         C++ tests for module 'sys_types'.
5606         * modules/sys_types-c++-tests: New file.
5607         * tests/test-sys_types-c++.cc: New file.
5608
5609         Tests for module 'sys_types'.
5610         * modules/sys_types-tests: New file.
5611         * tests/test-sys_types.c: New file.
5612
5613         New module 'sys_types'.
5614         * lib/sys_types.in.h: New file.
5615         * m4/sys_types_h.m4: New file.
5616         * modules/sys_types: New file.
5617         * doc/posix-headers/sys_types.texi: Mention the new module and the
5618         size_t problem on MSVC 9.
5619
5620 2011-09-11  Bruno Haible  <bruno@clisp.org>
5621
5622         Support for MSVC compiler: Avoid division by a literal 0.
5623         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5624         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5625         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5626         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5627         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5628         * tests/infinity.h: New file.
5629         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5630         on MSVC.
5631         * tests/test-ceilf1.c: Include infinity.h.
5632         (main): Use Infinityf.
5633         * tests/test-ceil1.c: Include infinity.h.
5634         (main): Use Infinityd.
5635         * tests/test-ceill.c: Include infinity.h.
5636         (main): Use Infinityl.
5637         * tests/test-dprintf-posix.c: Include infinity.h.
5638         (test_function): Use Infinityd.
5639         * tests/test-floorf1.c: Include infinity.h.
5640         (main): Use Infinityf.
5641         * tests/test-floor1.c: Include infinity.h.
5642         (main): Use Infinityd.
5643         * tests/test-floorl.c: Include infinity.h.
5644         (main): Use Infinityl.
5645         * tests/test-fprintf-posix.c: Include infinity.h.
5646         (test_function): Use Infinityd.
5647         * tests/test-frexp.c: Include infinity.h.
5648         (main): Use Infinityd.
5649         * tests/test-frexpl.c: Include infinity.h.
5650         (main): Use Infinityl.
5651         * tests/test-isfinite.c: Include infinity.h.
5652         (test_isfinitef): Use Infinityf.
5653         (test_isfinited): Use Infinityd.
5654         (test_isfinitel): Use Infinityl.
5655         * tests/test-isinf.c: Include infinity.h.
5656         (test_isinff): Use Infinityf.
5657         (test_isinfd): Use Infinityd.
5658         (test_isinfl): Use Infinityl.
5659         * tests/test-isnan.c: Include infinity.h.
5660         (test_float): Use Infinityf.
5661         (test_double): Use Infinityd.
5662         (test_long_double): Use Infinityl.
5663         * tests/test-isnanf.h: Include infinity.h.
5664         (main): Use Infinityf.
5665         * tests/test-isnand.h: Include infinity.h.
5666         (main): Use Infinityd.
5667         * tests/test-isnanl.h: Include infinity.h.
5668         (main): Use Infinityl.
5669         * tests/test-ldexpl.c: Include infinity.h.
5670         (main): Use Infinityl.
5671         * tests/test-printf-posix.h: Include infinity.h.
5672         (test_function): Use Infinityd.
5673         * tests/test-roundf1.c: Include infinity.h.
5674         (main): Use Infinityf.
5675         * tests/test-round1.c: Include infinity.h.
5676         (main): Use Infinityd.
5677         * tests/test-roundl.c: Include infinity.h.
5678         (main): Use Infinityl.
5679         * tests/test-signbit.c: Include infinity.h.
5680         (test_signbitf): Use Infinityf.
5681         (test_signbitd): Use Infinityd.
5682         (test_signbitl): Use Infinityl.
5683         * tests/test-snprintf-posix.h: Include infinity.h.
5684         (test_function): Use Infinityd, Infinityl.
5685         * tests/test-sprintf-posix.h: Include infinity.h.
5686         (test_function): Use Infinityd, Infinityl.
5687         * tests/test-truncf1.c: Include infinity.h.
5688         (main): Use Infinityf.
5689         * tests/test-trunc1.c: Include infinity.h.
5690         (main): Use Infinityd.
5691         * tests/test-truncl.c: Include infinity.h.
5692         (main): Use Infinityl.
5693         * tests/test-vasnprintf-posix.c: Include infinity.h.
5694         (test_function): Use Infinityd, Infinityl.
5695         * tests/test-vasprintf-posix.c: Include infinity.h.
5696         (test_function): Use Infinityd, Infinityl.
5697         * modules/ceilf-tests (Files): Add tests/infinity.h.
5698         * modules/ceil-tests (Files): Likewise.
5699         * modules/ceill-tests (Files): Likewise.
5700         * modules/dprintf-posix-tests (Files): Likewise.
5701         * modules/floorf-tests (Files): Likewise.
5702         * modules/floor-tests (Files): Likewise.
5703         * modules/floorl-tests (Files): Likewise.
5704         * modules/fprintf-posix-tests (Files): Likewise.
5705         * modules/frexp-tests (Files): Likewise.
5706         * modules/frexp-nolibm-tests (Files): Likewise.
5707         * modules/frexpl-tests (Files): Likewise.
5708         * modules/frexpl-nolibm-tests (Files): Likewise.
5709         * modules/isfinite-tests (Files): Likewise.
5710         * modules/isinf-tests (Files): Likewise.
5711         * modules/isnan-tests (Files): Likewise.
5712         * modules/isnanf-tests (Files): Likewise.
5713         * modules/isnanf-nolibm-tests (Files): Likewise.
5714         * modules/isnand-tests (Files): Likewise.
5715         * modules/isnand-nolibm-tests (Files): Likewise.
5716         * modules/isnanl-tests (Files): Likewise.
5717         * modules/isnanl-nolibm-tests (Files): Likewise.
5718         * modules/ldexpl-tests (Files): Likewise.
5719         * modules/printf-posix-tests (Files): Likewise.
5720         * modules/roundf-tests (Files): Likewise.
5721         * modules/round-tests (Files): Likewise.
5722         * modules/roundl-tests (Files): Likewise.
5723         * modules/signbit-tests (Files): Likewise.
5724         * modules/snprintf-posix-tests (Files): Likewise.
5725         * modules/sprintf-posix-tests (Files): Likewise.
5726         * modules/truncf-tests (Files): Likewise.
5727         * modules/trunc-tests (Files): Likewise.
5728         * modules/truncl-tests (Files): Likewise.
5729         * modules/vasnprintf-posix-tests (Files): Likewise.
5730         * modules/vasprintf-posix-tests (Files): Likewise.
5731         * modules/vdprintf-posix-tests (Files): Likewise.
5732         * modules/vfprintf-posix-tests (Files): Likewise.
5733         * modules/vprintf-posix-tests (Files): Likewise.
5734         * modules/vsnprintf-posix-tests (Files): Likewise.
5735         * modules/vsprintf-posix-tests (Files): Likewise.
5736         * modules/xprintf-posix-tests (Files): Likewise.
5737
5738 2011-09-11  Bruno Haible  <bruno@clisp.org>
5739
5740         Ensure pid_t gets defined.
5741         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5742         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5743         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5744         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5745         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5746         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5747         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5748         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5749         * tests/test-fcntl-h.c: Check that pid_t is defined.
5750         * tests/test-sched.c: Likewise.
5751         * tests/test-termios.c: Likewise.
5752         * tests/test-time.c: Likewise.
5753         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5754         * doc/posix-headers/signal.texi: Likewise.
5755         * doc/posix-headers/sys_types.texi: Likewise.
5756         * doc/posix-headers/time.texi: Likewise.
5757
5758 2011-09-11  Bruno Haible  <bruno@clisp.org>
5759
5760         acl: Fix compilation on Solaris 10 (older version).
5761         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5762         of ACE_EVERYONE.
5763         * lib/set-mode-acl.c (qset_acl): Likewise.
5764         Reported by Christian Jullien <eligis@orange.fr>.
5765
5766 2011-09-10  Bruno Haible  <bruno@clisp.org>
5767
5768         iconv, unsetenv: Add support for MSVC compiler.
5769         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5770         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5771
5772 2011-09-10  Bruno Haible  <bruno@clisp.org>
5773
5774         *printf: Add support for MSVC compiler.
5775         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5776         handles the exception caused by the %n directive. When cross-compiling,
5777         guess no on native Windows.
5778         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5779         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5780         emulate it through vsnprintf.
5781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5782         * doc/posix-functions/dprintf.texi: Update documentation regarding
5783         MSVC 9.
5784         * doc/posix-functions/fprintf.texi: Likewise.
5785         * doc/posix-functions/printf.texi: Likewise.
5786         * doc/posix-functions/snprintf.texi: Likewise.
5787         * doc/posix-functions/sprintf.texi: Likewise.
5788         * doc/posix-functions/swprintf.texi: Likewise.
5789         * doc/posix-functions/vdprintf.texi: Likewise.
5790         * doc/posix-functions/vfprintf.texi: Likewise.
5791         * doc/posix-functions/vprintf.texi: Likewise.
5792         * doc/posix-functions/vsnprintf.texi: Likewise.
5793         * doc/posix-functions/vsprintf.texi: Likewise.
5794         * doc/glibc-functions/asprintf.texi: Likewise.
5795         * doc/glibc-functions/obstack_printf.texi: Likewise.
5796         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5797         * doc/glibc-functions/vasprintf.texi: Likewise.
5798
5799 2011-09-10  Bruno Haible  <bruno@clisp.org>
5800
5801         nocrash: Add support for native Windows.
5802         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5803
5804 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5805             Bruno Haible  <bruno@clisp.org>
5806
5807         absolute-header, include-next: Add support for MSVC compiler.
5808         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5809         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5810         directory separator in #line directives.
5811         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5812         recognize also backslash as directory separator in #line directives.
5813
5814 2011-09-08  Jim Meyering  <meyering@redhat.com>
5815
5816         maint.mk: mark the post-release commit log with "maint: " prefix
5817         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5818         one-line commit-log summary.
5819
5820 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5821             Bruno Haible  <bruno@clisp.org>
5822
5823         Doc about crypt functions.
5824         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5825         systems.
5826         * doc/posix-functions/encrypt.texi: Likewise.
5827         * doc/posix-functions/setkey.texi: Likewise.
5828
5829 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5830
5831         * lib/gc.h: Fix copyright header.
5832
5833 2011-09-07  Bruno Haible  <bruno@clisp.org>
5834
5835         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5836         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5837         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5838
5839 2011-09-07  Bruno Haible  <bruno@clisp.org>
5840
5841         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5842         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5843         * lib/freopen.c: Likewise.
5844         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5845         * lib/lstat.c: Likewise.
5846         * lib/stat.c: Likewise.
5847         * lib/open.c: Use different syntax for include of <fcntl.h>.
5848         * lib/openat.c: Include fcntl.h again, explicitly.
5849
5850 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5851
5852         parse-datetime: document the newly accepted format
5853         * doc/parse-datetime.texi (Combined date and time of day items):
5854         New section.
5855
5856 2011-09-06  Bruno Haible  <bruno@clisp.org>
5857
5858         acl: Fix a test failure on newer Solaris 10 with ZFS.
5859         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5860         ENOSYS as no ACL.
5861         Reported by Jim Meyering.
5862
5863 2011-09-06  Bruno Haible  <bruno@clisp.org>
5864
5865         acl: Update for AIX >= 5.3 with NFS.
5866         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5867         ENOSYS as no ACL.
5868
5869         acl: Fix a test failure on AIX >= 5.3 with NFS.
5870         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5871         as no ACL.
5872
5873 2011-09-06  Bruno Haible  <bruno@clisp.org>
5874
5875         acl: Fix a test failure on IRIX 6.5 with NFS.
5876         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5877         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5878         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5879         * lib/copy-acl.c (qcopy_acl): Likewise.
5880
5881 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5882
5883         openat: port to AIX 7.1 with large files
5884         AIX 7.1 does a "#define openat open64at" if large files are in use,
5885         so we can't simply #undef openat.  Use the orig_openat trick (similar
5886         to orig_open in lib/open.c) to work around the problem.  Problem
5887         reported by Kevin Brott for GNU tar, in the thread containing
5888         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5889         * lib/openat.c (__need_system_fcntl_h): Define first.
5890         Include <fcntl.h> and <sys/types.h> before undefining.
5891         (orig_openat) [HAVE_OPENAT]: New inline function.
5892         (openat) [HAVE_OPENAT]: Do not undef.
5893         (rpl_openat): Use orig_openat, not openat.
5894
5895 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5896             Bruno Haible  <bruno@clisp.org>
5897
5898         acl: Avoid errors on NonStop Kernel.
5899         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5900         ENOTSUP errors.
5901
5902 2011-09-05  Bruno Haible  <bruno@clisp.org>
5903
5904         acl: Clean up Solaris code.
5905         * lib/acl-internal.h: Remove no-op #if.
5906         * lib/file-has-acl.c: Likewise.
5907         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5908         * lib/copy-acl.c (qcopy_acl): Likewise.
5909
5910 2011-09-05  Bruno Haible  <bruno@clisp.org>
5911
5912         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5913         binaries built on the original Solaris 10.
5914         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5915         trivial.
5916
5917 2011-09-05  Bruno Haible  <bruno@clisp.org>
5918
5919         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5920         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5921         10.
5922         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5923         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5924         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5925         instead of acl_get, facl_get, acl_set, facl_set.
5926
5927 2011-09-05  Bruno Haible  <bruno@clisp.org>
5928
5929         copy-file: Try unit tests on more file systems.
5930         * tests/test-copy-file-1.sh: New file.
5931         * tests/test-copy-file-2.sh: New file.
5932         * modules/copy-file-tests (Files): Add them.
5933         (Makefile.am): Add them to TESTS.
5934
5935         acl: Try unit tests on more file systems.
5936         * tests/test-file-has-acl-1.sh: New file.
5937         * tests/test-file-has-acl-2.sh: New file.
5938         * tests/test-set-mode-acl-1.sh: New file.
5939         * tests/test-set-mode-acl-2.sh: New file.
5940         * tests/test-copy-acl-1.sh: New file.
5941         * tests/test-copy-acl-2.sh: New file.
5942         * modules/acl-tests (Files): Add them.
5943         (Makefile.am): Add them to TESTS.
5944
5945 2011-09-04  Bruno Haible  <bruno@clisp.org>
5946
5947         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5948         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5949         10.
5950         (OLD_ALLOW, OLD_DENY): New macros.
5951         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5952         ACE_ACCESS_ALLOWED_ACE_TYPE.
5953         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5954         ACE_ACCESS_DENIED_ACE_TYPE.
5955         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5956         (NEW_ACE_EXECUTE): Fix value.
5957         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5958         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5959         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5960         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5961         NEW_ACE_SYNCHRONIZE): New macros.
5962         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5963         instead of acl_fromtext, acl_set, facl_set.
5964         Fixes a coreutils/tests/cp/perm failure.
5965
5966 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5967
5968         openat: test for fstatat (..., 0) bug
5969         Further testing with tar suggests that fstatat (..., 0)
5970         does not work in general, on AIX 7.1; see
5971         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5972         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5973         replacement fstatat (which is what older AIX releases were using
5974         anyway).
5975         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5976         use is now changed to orig_fstatat.  This was probably the right
5977         thing to do anyway.
5978         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5979         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5980         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5981         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5982         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5983         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5984         if the bug is found.
5985
5986         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5987         This tests for another fstatat bug on AIX 7.1:
5988         fstatat (AT_FDCWD, ..., 0) does not work.  See
5989         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5990         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5991         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5992         (rpl_fstatat): Adjust so that it works around either (or both)
5993         bugs if present.
5994         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5995
5996 2011-09-03  Karl Berry  <karl@gnu.org>
5997
5998         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5999         in index entries.
6000
6001 2011-09-02  Bruno Haible  <bruno@clisp.org>
6002
6003         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
6004         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
6005         values of AR, ARFLAGS, RANLIB.
6006         Reported by John W. Eaton <jwe@gnu.org> for Octave.
6007
6008 2011-09-02  Bruno Haible  <bruno@clisp.org>
6009
6010         Find 'ar' program that fits with --host argument.
6011         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
6012
6013 2011-09-02  Bruno Haible  <bruno@clisp.org>
6014
6015         tests: init.sh: Support any non-GNU diff.
6016         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
6017         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
6018         Solaris 8.
6019
6020 2011-09-02  Bruno Haible  <bruno@clisp.org>
6021
6022         tests: init.sh: work also with any non-GNU diff that supports -u
6023         * tests/init.sh: Relax check for diff -u support.
6024         Rather than checking for GNU diff via --version, simply check
6025         for support for -u itself.  Useful at least on OpenBSD 4.9,
6026         AIX 7.1, IRIX 6.5, and Solaris 10.
6027
6028 2011-09-01  Bruno Haible  <bruno@clisp.org>
6029
6030         strtoimax, strtoumax: Document problem on HP-UX 11.
6031         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
6032         * doc/posix-functions/strtoumax.texi: Likewise.
6033
6034 2011-09-01  Bruno Haible  <bruno@clisp.org>
6035
6036         strtoumax: Avoid link error on OSF/1 with DTK cc.
6037         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
6038         defined as a function.
6039         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6040         strtoumax is defined, not whether it is declared.
6041
6042 2011-09-01  Bruno Haible  <bruno@clisp.org>
6043
6044         strtoimax: Avoid link error on OSF/1 with DTK cc.
6045         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6046         defined as a function.
6047         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6048         strtoimax is defined, not whether it is declared.
6049
6050 2011-09-01  Bruno Haible  <bruno@clisp.org>
6051
6052         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6053         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6054         as a function.
6055         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6056         whether it is declared.
6057
6058 2011-09-01  Bruno Haible  <bruno@clisp.org>
6059
6060         imaxabs: Avoid link error on OSF/1 with DTK cc.
6061         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6062         as a function.
6063         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6064         whether it is declared.
6065
6066 2011-09-01  Bruno Haible  <bruno@clisp.org>
6067
6068         Tests for module 'strtoumax'.
6069         * modules/strtoumax-tests: New file.
6070         * tests/test-strtoumax.c: New file.
6071
6072         Tests for module 'strtoimax'.
6073         * modules/strtoimax-tests: New file.
6074         * tests/test-strtoimax.c: New file.
6075
6076         Tests for module 'imaxdiv'.
6077         * modules/imaxdiv-tests: New file.
6078         * tests/test-imaxdiv.c: New file.
6079
6080         Tests for module 'imaxabs'.
6081         * modules/imaxabs-tests: New file.
6082         * tests/test-imaxabs.c: New file.
6083
6084 2011-09-01  Bruno Haible  <bruno@clisp.org>
6085
6086         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6087         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6088         pthread_create.
6089
6090 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6091
6092         openat: work around AIX 7.1 fstatat issue
6093         This should fix the problem that was not properly fixed
6094         in the previous change, dated 2011-08-30.
6095         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6096         __need_system_stat_h defined.
6097         (orig_fstatat) [HAVE_FSTATAT]: New function.
6098         (rpl_fstatat): Go back to the old way of doing things,
6099         except call orig_fstatat instead of fstatat.
6100         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6101         Remove unnecessary check whether fstatat fills in st_size etc.
6102
6103 2011-09-01  Bruno Haible  <bruno@clisp.org>
6104
6105         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6106         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6107         just include the system's header.
6108
6109 2011-08-31  Jim Meyering  <meyering@redhat.com>
6110
6111         tests: avoid spurious assertion failure in test-float.c on ppc64
6112         * tests/test-float.c (test_long_double): Comment out an assertion,
6113         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6114         with gcc-4.4.4.
6115
6116         maint: indent with spaces, not TABs
6117         I need to get in the habit of running gnulib's "make check".
6118         Both of these would have been caught.
6119         * m4/largefile.m4: Indent with spaces, not TABs.
6120         * lib/parse-datetime.y (iso_8601_time): Likewise.
6121         Spotted by Pádraig Brady.
6122
6123         test-parse-datetime.c: accommodate a relatively strict gcc warning
6124         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6125         to avoid a warning from gcc's -Werror=missing-declarations.
6126         Insert a few spaces-before-funcall-parenthesis.
6127
6128 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6129
6130         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6131         The parser now accepts ISO 8601 date-time strings with "T" as the
6132         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6133         with a space between the date and time strings.  Now it also parses
6134         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6135         variants like "2004-02-29T16:21:42.333-07:00"
6136         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6137         of day representation using the 'T' separator character.
6138         * doc/parse-datetime.texi (General date syntax): replace use of
6139         deprecated --iso-8601 option with --rfc-3339 in example of date
6140         command output formats that can be parsed.
6141         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6142         lib/parse-datetime.y.
6143         (gmt_offset): New function.
6144         (main): Add additional test cases to validate ISO8601 extended
6145         date and time of day parsing.
6146
6147 2011-08-31  Bruno Haible  <bruno@clisp.org>
6148
6149         freopen: Documentation.
6150         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6151         name.
6152         Reported by Claudio Bley <claudio.bley@gmail.com>.
6153
6154 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6155
6156         freopen: Don't crash if the filename argument is NULL.
6157         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6158         NULL.
6159
6160 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6161
6162         openat: work around AIX 7.1 fstatat bug
6163         Problem reported by Kevin Brott for GNU tar, in the thread containing
6164         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6165         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6166         FSTATAT_ST_SIZE_ETC_BROKEN.
6167         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6168         rpl_fstatat.
6169         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6170         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6171         AC_CHECK_FUNCS_ONCE for fstatat.
6172         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6173         fchmodat, mkdirat, openat and unlinkat.
6174
6175 2011-08-30  Bruno Haible  <bruno@clisp.org>
6176
6177         Avoid endless recursions if config.h includes some header files.
6178         * lib/fopen.c (__need_FILE): Define already before including config.h.
6179         * lib/freopen.c (__need_FILE): Likewise.
6180         * lib/open.c (__need_system_fcntl_h): Likewise.
6181         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6182         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6183         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6184
6185 2011-08-25  Karl Berry  <karl@gnu.org>
6186
6187         * config/srclist.txt (ylwrap): new try.
6188         * build-aux/ylwrap: new file.
6189
6190 2011-08-23  Bruno Haible  <bruno@clisp.org>
6191
6192         tmpdir: Use a good default directory on native Windows.
6193         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6194         (P_tmpdir): Default to _P_tmpdir on native Windows.
6195         (path_search): On native Windows, try the value returned by GetTempPath
6196         before trying P_tmpdir.
6197         * modules/tmpdir (Depends-on): Add pathmax.
6198         Suggested by John Darrington <john@darrington.wattle.id.au>.
6199
6200 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6201
6202         doc: fix typo in README-release
6203         * top/README-release: Capitalize first word of a sentence.
6204
6205 2011-08-19  Jim Meyering  <meyering@redhat.com>
6206
6207         fts: do not exhaust memory when processing million-entry directories
6208         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6209         directory would require about 256*N bytes of memory.  Thus, it was
6210         easy to construct a directory too large to be processed by any of
6211         those tools.  With this change, fts' maximum memory utilization is
6212         now limited to around 30MB.
6213         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6214         (fts_read): When we've processed the final entry (i.e., when
6215         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6216         using the parent entry to read any remaining entries.  Dispatch
6217         depending on what fts_build returns:
6218         - NULL+stop, aka failure: stop
6219         - NULL otherwise: move up in the dir hierarchy
6220         - non-NULL: handle this new entry
6221         (fts_build): Declare and use new local, continue_readdir.
6222         Prepare to be called from fts_read, when the entries
6223         from a partially-read directory have just been exhausted.
6224         In that case, we'll skip the opendir and instead use the parent's
6225         fts_dirp and derive dir_fd from that.
6226         Finally, in the readdir loop, if we read max_entries entries,
6227         exit the loop ensuring *not* to call closedir.  This is required
6228         so that fts_dirp can be reused on a subsequent call.
6229         Prompted by Ben England's report of memory exhaustion in find
6230         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6231
6232         maint: fts: move decl of `dp' down into while loop; split a long line
6233         * lib/fts.c (fts_build): No semantic change.
6234
6235         fts: add/use new struct member, fts_dirp
6236         We are about to use this to manage any directory with
6237         too many entries to read all of them into memory at once.
6238         To do that, we'll need to save the DIR* pointer in each
6239         affected FTSENT struct.
6240         * lib/fts_.h: Include <dirent.h>.
6241         (struct FTSENT) [fts_dirp]: New member.
6242         * lib/fts.c (closedir_and_clear): Define.
6243         Use it in place of closedir so that we are sure to
6244         clear the new fts_dirp member when done with it.
6245         (fts_alloc): Initialize the new member.
6246         (fts_lfree): Free, if needed.
6247
6248         maint: fts: give __opendir2 a new parameter and rename
6249         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6250         than surreptitiously using sole caller's "dir_fd".
6251         (fts_opendir): Rename from __opendir2.
6252
6253         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6254         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6255
6256         maint: fts.c: correct off-by-one indentation
6257         * lib/fts.c (fts_build): Correct indentation, change style
6258         of a couple of block comments, and bracing style.
6259
6260         maint: fts.c: move __opendir2 #define "up" out of function body
6261         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6262
6263         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6264         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6265         out for a long time and besides was useful only on BSD systems.
6266
6267 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6268
6269         regex: port to Stratus OpenVOS
6270         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6271         define to empty, rather than attempting nonportable optimizations.
6272         Problem reported by Paul Green in:
6273         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6274         and fix suggested by Eric Blake in:
6275         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6276
6277 2011-08-17  Eric Blake  <eblake@redhat.com>
6278
6279         getcwd: fix test failures on mingw
6280         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6281         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6282         test if long directory cannot be created, and allow mingw errno.
6283
6284         getcwd-lgpl: fix m4 to match relaxed test for BSD
6285         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6286         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6287         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6288         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6289         signature problem.
6290
6291         getcwd: fix compilation on mingw64
6292         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6293         getcwd.
6294         Reported by Marc-André Lureau.
6295
6296         pipe2: silence compiler warning
6297         * lib/pipe2.c (pipe2): Hide label if it is not used.
6298
6299 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6300
6301         relocatable-prog: fix link error
6302         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6303         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6304         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6305         into modules/relocatable-lib without noticing that
6306         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6307         also needs to build relocatable.c.
6308
6309 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6310
6311         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6312         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6313         shell code: it contained a 'break' that was not in a loop.
6314         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6315         via a shell-language loop; this may have been true in old Autoconf
6316         versions, but it's not true in Autoconf 2.68.  I found this bug
6317         when testing coreutils git on Solaris 8, whose shell complains
6318         about the syntax error.
6319
6320 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6321
6322         * lib/base64.c: Fix comment to reference RFC 4648.
6323         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6324         <gvtulder@gmail.com>.
6325
6326 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6327
6328         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6329
6330         po/Makefile.in.in: fix make -q problem
6331         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6332         rule, since there's no file named 'check-macro-version' and its
6333         use as a file breaks make -q.
6334         (all): Don't depend on check-macro-version.
6335         (CHECK_MACRO_VERSION): New macro.
6336         (stamp-po): Use it.
6337
6338         configmake: fix make -q problem
6339         * modules/configmake (configmake.h): Update configmake.h's time stamp
6340         even if the file does not change.  Otherwise, 'make -q' fails.
6341         Problem reported by Simon Josefsson in
6342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6343
6344 2011-08-11  Jim Meyering  <meyering@redhat.com>
6345
6346         git-version-gen: correct the advice in a comment
6347         * build-aux/git-version-gen: Correct comment.
6348         Don't recommend to list .tarball-version in .gitignore.
6349
6350 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6351
6352         base64: fix off-by-one buffer size bug
6353         Problem and (trivial) fix reported by Gijs van Tulder in
6354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6355         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6356         * tests/test-base64.c (main): Catch the bug.
6357
6358 2011-08-10  Eric Blake  <eblake@redhat.com>
6359
6360         closein: correct comments
6361         * lib/closein.c (close_stdin): Improve comments.
6362
6363 2011-08-09  Bruno Haible  <bruno@clisp.org>
6364
6365         More tests for 'fseeko'.
6366         * tests/test-fseeko3.c: New file, from Eric Blake.
6367         * tests/test-fseeko3.sh: New file.
6368         * modules/fseeko-tests (Files): Add them.
6369         (TESTS): Add test-fseeko3.sh.
6370         (check_PROGRAMS): Add test-fseeko3.
6371
6372 2011-08-09  Eric Blake  <eblake@redhat.com>
6373
6374         fseeko: remove unneeded hack
6375         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6376
6377         fseeko: fix bug on glibc
6378         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6379         Reported by John W. Eaton.
6380
6381 2011-08-08  Bruno Haible  <bruno@clisp.org>
6382
6383         unictype/base: Fix interoperability with preinstalled libunistring.
6384         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6385         Reported by Simon Josefsson.
6386
6387 2011-08-08  Bruno Haible  <bruno@clisp.org>
6388
6389         iswblank: Detect declaration correctly.
6390         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6391         AC_CHECK_DECLS invocation.
6392
6393 2011-08-08  Bruno Haible  <bruno@clisp.org>
6394
6395         tcgetsid: Detect declaration correctly.
6396         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6397         AC_CHECK_DECLS invocation.
6398         Reported by Simon Josefsson.
6399
6400 2011-08-08  Eric Blake  <eblake@redhat.com>
6401
6402         largefile: fix typo that regressed large file support
6403         * modules/largefile (configure.ac-early): Fix section name.
6404
6405 2011-08-06  Karl Berry  <karl@gnu.org>
6406
6407         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6408         a separate module.
6409
6410 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6411
6412         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6413         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6414         get prototype for free.
6415
6416 2011-08-04  Bruno Haible  <bruno@clisp.org>
6417
6418         Tests for module 'pathmax'.
6419         * modules/pathmax-tests: New file.
6420         * tests/test-pathmax.c: New file.
6421
6422         canonicalize-lgpl: Support larger filenames on the Hurd.
6423         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6424         Reported by Paul Eggert.
6425
6426         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6427         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6428         * lib/chdir-long.h: Include pathmax.h.
6429         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6430         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6431         (PATH_MAX): Remove code that is done by pathmax.h.
6432         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6433         * lib/tmpfile.c: Add a comment.
6434         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6435         * modules/chdir-long (Depends-on): Add pathmax.
6436         * modules/getcwd (Depends-on): Add pathmax.
6437         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6438         is not defined.
6439         * doc/posix-headers/limits.texi: Mention the pathmax module.
6440         * NEWS: Mention the change.
6441
6442 2011-08-02  Bruno Haible  <bruno@clisp.org>
6443
6444         pthread_sigmask: Actually use results of gl_THREADLIB.
6445         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6446         gl_THREADLIB, not gl_[]THREADLIB.
6447         Reported by Eric Blake.
6448
6449 2011-08-02  Jim Meyering  <meyering@redhat.com>
6450
6451         maint.mk: relax the default _gl_TS_function_match regexp
6452         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6453         space between function name and "(" in an "extern" declaration.
6454         That would fail to match a decl with no space there: extern void foo();
6455
6456 2011-07-31  Iain Nicol  <iain@thenicols.net>
6457
6458         git-version-gen: document that EXTRA_DIST must include .version
6459         * build-aux/git-version-gen: In the how-to-use comment, document
6460         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6461         will fail when run from an unpacked distribution tarball.
6462
6463 2011-08-01  Bruno Haible  <bruno@clisp.org>
6464
6465         wctype-h: Fix last change.
6466         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6467         REPLACE_TOWLOWER to 0.
6468         Reported by Sam Steingold <sds@gnu.org>.
6469
6470 2011-07-31  Bruno Haible  <bruno@clisp.org>
6471
6472         frexpl: Update autoconf test.
6473         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6474         according to changes of 2011-06-20.
6475
6476 2011-07-31  Bruno Haible  <bruno@clisp.org>
6477
6478         sys_utsname: Add support for Minix.
6479         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6480         <sys/utsname.h>.
6481         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6482         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6483
6484 2011-07-31  Bruno Haible  <bruno@clisp.org>
6485
6486         strings: Add support for Minix.
6487         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6488         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6489         * doc/posix-headers/strings.texi: Document the Minix problem.
6490
6491 2011-07-31  Bruno Haible  <bruno@clisp.org>
6492
6493         wctype-h: Add support for Minix.
6494         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6495         REPLACE_TOWLOWER.
6496         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6497         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6498         REPLACE_ISWCNTRL.
6499
6500 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6501
6502         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6503         This is a performance improvement for 64-bit hosts: it causes the
6504         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6505
6506 2011-07-31  Bruno Haible  <bruno@clisp.org>
6507
6508         stdioext: Add support for Minix.
6509         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6510         * lib/fpurge.c (fpurge): Likewise.
6511         * lib/freadahead.c (freadahead): Likewise.
6512         * lib/freadable.c (freadable): Likewise.
6513         * lib/freading.c (freading): Likewise.
6514         * lib/freadptr.c (freadptr): Likewise.
6515         * lib/freadseek.c (freadptrinc): Likewise.
6516         * lib/fseeko.c (rpl_fseeko): Likewise.
6517         * lib/fseterr.c (fseterr): Likewise.
6518         * lib/fwritable.c (fwritable): Likewise.
6519         * lib/fwriting.c (fwriting): Likewise.
6520         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6521         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6522
6523 2011-07-31  Bruno Haible  <bruno@clisp.org>
6524
6525         errno: Port to Minix.
6526         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6527         ECONNABORTED are defined.
6528         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6529         GNULIB_defined_ECONNABORTED): New macros.
6530         * lib/strerror-override.h (strerror_override): Test also
6531         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6532         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6533         ECONNABORTED.
6534         * doc/posix-headers/errno.texi: Mention the Minix problem.
6535
6536 2011-07-31  Bruno Haible  <bruno@clisp.org>
6537
6538         Work around declaration collisions on Minix.
6539         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6540         defined, set REPLACE_MBSINIT.
6541         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6542         defined, set REPLACE_MBRTOWC.
6543         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6544         set REPLACE_MBRLEN.
6545         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6546         defined, set REPLACE_MBSRTOWCS.
6547         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6548         defined, set REPLACE_WCRTOMB.
6549         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6550         defined, set REPLACE_WCSRTOMBS.
6551
6552 2011-07-31  Bruno Haible  <bruno@clisp.org>
6553
6554         Add support for Minix with ACK compiler.
6555         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6556         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6557         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6558
6559 2011-07-31  Bruno Haible  <bruno@clisp.org>
6560
6561         Documentation about Minix.
6562         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6563         * doc/glibc-headers/*.texi: Likewise.
6564         * doc/posix-functions/*.texi: Likewise.
6565         * doc/glibc-functions/*.texi: Likewise.
6566
6567 2011-07-31  Bruno Haible  <bruno@clisp.org>
6568
6569         snippet/warn-on-use: Fix indentation.
6570         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6571
6572 2011-07-25  Jim Meyering  <meyering@redhat.com>
6573
6574         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6575         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6576         commands.
6577
6578 2011-07-27  Jim Meyering  <meyering@redhat.com>
6579
6580         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6581         * top/maint.mk (gl_extract_significant_defines_): Now that
6582         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6583         gnulib/lib/signal.in.h, and now that we recommend to
6584         define-if-undefined those two symbols in application code,
6585         we must filter them out of the "significant" list.
6586         This avoids a "make syntax-check" failure in coreutils.
6587
6588 2011-07-26  Eric Blake  <eblake@redhat.com>
6589
6590         warnings: add comments about previous patch
6591         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6592         * m4/include_next.m4: Likewise.
6593         * m4/warn-on-use.m4: Likewise.
6594         * m4/warnings.m4: Likewise, and simplify use.
6595         Suggested by Stefano Lattarini.
6596
6597         include-next, warnings: support older autoconf
6598         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6599         AS_VAR_PUSHDEF in a way that works with older autoconf.
6600         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6601         Reported by Daniel P. Berrange.
6602
6603 2011-07-25  Bruno Haible  <bruno@clisp.org>
6604
6605         fseek, ftell: Fix doc.
6606         * doc/posix-functions/fseek.texi: Reword statement about
6607         AC_SYS_LARGEFILE.
6608         * doc/posix-functions/ftell.texi: Likewise.
6609
6610 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6611             Bruno Haible  <bruno@clisp.org>
6612
6613         Add dependencies to the 'largefile' module.
6614         * modules/fopen (Depends-on): Add 'largefile'.
6615         * modules/freopen (Depends-on): Likewise.
6616         * modules/fseeko (Depends-on): Likewise.
6617         * modules/ftello (Depends-on): Likewise.
6618         * modules/glob (Depends-on): Likewise.
6619         * modules/lseek (Depends-on): Likewise.
6620         * modules/lstat (Depends-on): Likewise.
6621         * modules/mkostemp (Depends-on): Likewise.
6622         * modules/mkostemps (Depends-on): Likewise.
6623         * modules/mkstemp (Depends-on): Likewise.
6624         * modules/mkstemps (Depends-on): Likewise.
6625         * modules/open (Depends-on): Likewise.
6626         * modules/openat (Depends-on): Likewise.
6627         * modules/pread (Depends-on): Likewise.
6628         * modules/pwrite (Depends-on): Likewise.
6629         * modules/scandir (Depends-on): Likewise.
6630         * modules/stat (Depends-on): Likewise.
6631         * modules/tmpfile (Depends-on): Likewise.
6632         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6633         since the containing module now depends on the largefile module.
6634         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6635         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6636         off_t is fixed by gnulib.
6637         * doc/posix-functions/freopen.texi: Likewise.
6638         * doc/posix-functions/fseeko.texi: Likewise.
6639         * doc/posix-functions/fstatat.texi: Likewise.
6640         * doc/posix-functions/ftello.texi: Likewise.
6641         * doc/posix-functions/glob.texi: Likewise.
6642         * doc/posix-functions/lseek.texi: Likewise.
6643         * doc/posix-functions/lstat.texi: Likewise.
6644         * doc/posix-functions/mkstemp.texi: Likewise.
6645         * doc/posix-functions/open.texi: Likewise.
6646         * doc/posix-functions/openat.texi: Likewise.
6647         * doc/posix-functions/pread.texi: Likewise.
6648         * doc/posix-functions/pwrite.texi: Likewise.
6649         * doc/posix-functions/scandir.texi: Likewise.
6650         * doc/posix-functions/stat.texi: Likewise.
6651         * doc/posix-functions/tmpfile.texi: Likewise.
6652         * doc/glibc-functions/mkostemp.texi: Likewise.
6653         * doc/glibc-functions/mkostemps.texi: Likewise.
6654         * doc/glibc-functions/mkstemps.texi: Likewise.
6655
6656 2011-07-25  Bruno Haible  <bruno@clisp.org>
6657
6658         fcntl: Move AC_LIBOBJ invocation to module description.
6659         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6660         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6661
6662         fcntl: Remove call-in from fchdir.m4.
6663         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6664         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6665
6666         dup3: Remove potential call-in from fchdir.m4.
6667         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6668         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6669
6670         dup2: Move AC_LIBOBJ invocation to module description.
6671         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6672         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6673         Don't invoke AC_LIBOBJ.
6674         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6675
6676         dup2: Remove call-in from fchdir.m4.
6677         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6678         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6679
6680         fclose: Move AC_LIBOBJ invocation to module description.
6681         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6682         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6683         to 1.
6684         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6685
6686         fclose: Remove call-in from close.m4.
6687         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6688         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6689
6690         close: Move AC_LIBOBJ invocation to module description.
6691         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6692         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6693         1.
6694         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6695
6696         close: Remove call-in from fchdir.m4.
6697         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6699
6700         open: Move AC_LIBOBJ invocation to module description.
6701         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6702         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6703         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6704
6705         open: Remove call-in from fchdir.m4.
6706         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6708
6709         fchdir: Start to remove gl_REPLACE_* idiom.
6710         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6711         (gl_FUNC_FCHDIR): Invoke it.
6712
6713 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6714
6715         * lib/ftell.c (ftell): Comment out cast.
6716
6717         close: use gl_REPLACE_FCLOSE only if defined
6718         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6719         is defined.  The close module doesn't depend on the fclose module
6720         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6722         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6723
6724 2011-07-24  Jim Meyering  <meyering@redhat.com>
6725
6726         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6727         * tests/test-select.h (test_function): Declare as "static".
6728
6729 2011-07-24  Bruno Haible  <bruno@clisp.org>
6730
6731         doc: Mention the effects of AC_SYS_LARGEFILE.
6732         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6733         on this function.
6734         * doc/posix-functions/aio_error.texi: Likewise.
6735         * doc/posix-functions/aio_fsync.texi: Likewise.
6736         * doc/posix-functions/aio_read.texi: Likewise.
6737         * doc/posix-functions/aio_return.texi: Likewise.
6738         * doc/posix-functions/aio_suspend.texi: Likewise.
6739         * doc/posix-functions/aio_write.texi: Likewise.
6740         * doc/posix-functions/fgetpos.texi: Likewise.
6741         * doc/posix-functions/fopen.texi: Likewise.
6742         * doc/posix-functions/freopen.texi: Likewise.
6743         * doc/posix-functions/fsetpos.texi: Likewise.
6744         * doc/posix-functions/fstatvfs.texi: Likewise.
6745         * doc/posix-functions/ftruncate.texi: Likewise.
6746         * doc/posix-functions/ftw.texi: Likewise.
6747         * doc/posix-functions/getrlimit.texi: Likewise.
6748         * doc/posix-functions/glob.texi: Likewise.
6749         * doc/posix-functions/lio_listio.texi: Likewise.
6750         * doc/posix-functions/lockf.texi: Likewise.
6751         * doc/posix-functions/mkstemp.texi: Likewise.
6752         * doc/posix-functions/mmap.texi: Likewise.
6753         * doc/posix-functions/nftw.texi: Likewise.
6754         * doc/posix-functions/openat.texi: Likewise.
6755         * doc/posix-functions/opendir.texi: Likewise.
6756         * doc/posix-functions/posix_fadvise.texi: Likewise.
6757         * doc/posix-functions/posix_fallocate.texi: Likewise.
6758         * doc/posix-functions/pread.texi: Likewise.
6759         * doc/posix-functions/pwrite.texi: Likewise.
6760         * doc/posix-functions/readdir.texi: Likewise.
6761         * doc/posix-functions/readdir_r.texi: Likewise.
6762         * doc/posix-functions/rewinddir.texi: Likewise.
6763         * doc/posix-functions/scandir.texi: Likewise.
6764         * doc/posix-functions/seekdir.texi: Likewise.
6765         * doc/posix-functions/setrlimit.texi: Likewise.
6766         * doc/posix-functions/statvfs.texi: Likewise.
6767         * doc/posix-functions/telldir.texi: Likewise.
6768         * doc/posix-functions/tmpfile.texi: Likewise.
6769         * doc/posix-functions/truncate.texi: Likewise.
6770         * doc/glibc-functions/fallocate.texi: Likewise.
6771         * doc/glibc-functions/fstatfs.texi: Likewise.
6772         * doc/glibc-functions/fts_children.texi: Likewise.
6773         * doc/glibc-functions/fts_read.texi: Likewise.
6774         * doc/glibc-functions/getdirentries.texi: Likewise.
6775         * doc/glibc-functions/mkostemp.texi: Likewise.
6776         * doc/glibc-functions/mkostemps.texi: Likewise.
6777         * doc/glibc-functions/mkstemps.texi: Likewise.
6778         * doc/glibc-functions/preadv.texi: Likewise.
6779         * doc/glibc-functions/pwritev.texi: Likewise.
6780         * doc/glibc-functions/sendfile.texi: Likewise.
6781         * doc/glibc-functions/statfs.texi: Likewise.
6782
6783 2011-07-24  Bruno Haible  <bruno@clisp.org>
6784
6785         doc: Fix typo.
6786         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6787
6788 2011-07-24  Bruno Haible  <bruno@clisp.org>
6789
6790         doc: Mention fsusage.
6791         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6792
6793 2011-07-24  Bruno Haible  <bruno@clisp.org>
6794
6795         doc: Mention new glibc headers and functions.
6796         * doc/glibc-headers/gshadow.texi: New file.
6797         * doc/glibc-functions/endsgent.texi: New file.
6798         * doc/glibc-functions/fgetsgent.texi: New file.
6799         * doc/glibc-functions/fgetsgent_r.texi: New file.
6800         * doc/glibc-functions/getsgent.texi: New file.
6801         * doc/glibc-functions/getsgent_r.texi: New file.
6802         * doc/glibc-functions/getsgnam.texi: New file.
6803         * doc/glibc-functions/getsgnam_r.texi: New file.
6804         * doc/glibc-functions/putsgent.texi: New file.
6805         * doc/glibc-functions/setsgent.texi: New file.
6806         * doc/glibc-functions/sgetsgent.texi: New file.
6807         * doc/glibc-functions/sgetsgent_r.texi: New file.
6808         * doc/glibc-functions/malloc_info.texi: New file.
6809         * doc/glibc-functions/preadv.texi: New file.
6810         * doc/glibc-functions/pwritev.texi: New file.
6811         * doc/glibc-functions/register_printf_modifier.texi: New file.
6812         * doc/glibc-functions/register_printf_specifier.texi: New file.
6813         * doc/glibc-functions/register_printf_type.texi: New file.
6814         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6815         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6816         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6817         * doc/glibc-functions/pthread_getname_np.texi: New file.
6818         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6819         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6820         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6821         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6822         * doc/glibc-functions/pthread_setname_np.texi: New file.
6823         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6824         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6825         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6826         * doc/glibc-functions/qsort_r.texi: New file.
6827         * doc/glibc-functions/quick_exit.texi: New file.
6828         * doc/glibc-functions/syncfs.texi: New file.
6829         * doc/gnulib.texi: Include them.
6830         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6831         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6832         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6833         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6834         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6835         * doc/glibc-functions/execvpe.texi: Likewise.
6836
6837 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6838
6839         ftell: don't include <unistd.h>
6840         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6841         guaranteed to define off_t, and the ftell module depends on the
6842         stdio module.
6843
6844         ftell: do not assume wraparound signed arithmetic
6845         * lib/ftell.c: Include <limits.h>.
6846         (ftell): Don't assume wraparound signed arithmetic.
6847
6848 2011-07-24  Bruno Haible  <bruno@clisp.org>
6849
6850         close: No longer depend on module 'fclose'.
6851         * modules/close (Depends-on): Remove fclose.
6852         * NEWS: Mention the change.
6853         Suggested by Sam Steingold <sds@gnu.org>.
6854
6855 2011-07-24  Bruno Haible  <bruno@clisp.org>
6856
6857         fsusage: Enable large volume support on AIX >= 5.2.
6858         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6859         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6860         instead of STAT_STATVFS.
6861         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6862
6863         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6864         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6865         f_blocks field only on MacOS X.
6866
6867         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6868         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6869         * modules/fsusage (Depends-on): Add largefile.
6870
6871 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6872
6873         * README: Modernize discussion of signed integers.
6874         Assuming overflow wraparound is no longer safe.
6875         Mention ones' complement and signed magnitude.
6876
6877 2011-07-22  Bruno Haible  <bruno@clisp.org>
6878
6879         select tests, pselect tests: Refactor.
6880         * tests/test-select.h: New file, extracted from tests/test-select.c.
6881         (select_fn): New type.
6882         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6883         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6884         test_pipe): Add my_select argument.
6885         (test_function): Renamed from main. Add my_select argument.
6886         * tests/test-select.c: Move most code to tests/test-select.h. Include
6887         test-select.h.
6888         * modules/select-tests (Files): Add tests/test-select.h.
6889         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6890         (my_select, main): New functions.
6891         * modules/pselect-tests (Files): Add tests/test-select.h,
6892         tests/macros.h, tests/signature.h.
6893         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6894         (configure.ac): Check for <sys/wait.h>.
6895
6896 2011-07-22  Bruno Haible  <bruno@clisp.org>
6897
6898         sys_select tests: Check the signature of FD_*.
6899         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6900         signature tests from here...
6901         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6902         here.
6903         * modules/sys_select-tests (Files): Add tests/signature.h.
6904
6905 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6906
6907         largefile: new module, replacing large-inode
6908         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6909         * MODULES.html.sh: Add largefile, remove large-inode.
6910         * modules/largefile, m4/largefile.m4: New files.
6911         * modules/large-inode, m4/large-inode.m4: Remove.
6912
6913         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6914         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6915         implementations that use only 32 bits to count blocks.
6916         On typical hosts with 1024-byte blocks, this fails with file
6917         systems as small as 4 TiB.  Problem reported by Herb Wartens
6918         <http://debbugs.gnu.org/9140> and this should also fix a similar
6919         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6920
6921         large-inode: New module
6922         * MODULES.html.sh: Add it.
6923         * modules/large-inode, m4/large-inode.m4: New files.
6924
6925         extensions: Enable extensions on MacOS X 10.5 and later.
6926         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6927
6928 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6929
6930         file-has-acl: use acl_extended_file_nofollow if available
6931         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6932         (acl_extended_file): New macro.
6933         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6934         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6935
6936 2011-07-21  Bruno Haible  <bruno@clisp.org>
6937
6938         Declare system functions in a way that works with C++.
6939         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6940         declare fdopendir as extern "C".
6941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6942         declare frexpl as extern "C".
6943         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6944         declare gai_strerror as extern "C".
6945         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6946         programs, declare gai_strerror as extern "C".
6947         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6948         declare getlogin_r as extern "C".
6949         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6950         as extern "C".
6951         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6952         declare ldexpl as extern "C".
6953         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6954         as extern "C".
6955         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6956         program, declare getmntinfo as extern "C".
6957         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6958         stpncpy as extern "C".
6959         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6960         program, declare __xpg_strerror_r as extern "C".
6961         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6962         strndup as extern "C".
6963         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6964         declare memset and bzero as extern "C".
6965         Reported by Sam Steingold <sds@gnu.org>.
6966
6967 2011-07-12  Jim Meyering  <meyering@redhat.com>
6968
6969         maint.mk: prohibit inclusion of "verify.h" without use
6970         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6971
6972 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6973
6974         timer-time: A new module to check for timer_settime()
6975         * m4/timer_time.m4: Check for the posix function.
6976         * modules/timer-time: Add the new module.
6977         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6978         Mention it.
6979
6980 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6981             Bruno Haible  <bruno@clisp.org>
6982
6983         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6984         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6985         not defined, assume POSIX threads and look for pthread_sigmask in
6986         $LIBS, without changing $CPPFLAGS.
6987
6988 2011-07-19  Bruno Haible  <bruno@clisp.org>
6989
6990         strstr: Update cross-compilation guess.
6991         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6992         CPUs, guess no, in view of glibc
6993         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6994         Suggested by Eric Blake. Reported by Reuben Thomas.
6995
6996 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6997
6998         getopt-gnu: suppress core dumps from detection code
6999         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
7000         to suppress core dumps that may well occur on glibc systems.
7001         * modules/getopt-gnu: Depend on nocrash.
7002
7003 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7004
7005         pthread_sigmask: ensure usleep is declared
7006         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
7007         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
7008
7009 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7010
7011         doc: Document NonStop portability issues.
7012         * doc/posix-functions/sigaction.texi (sigaction):
7013         * doc/posix-headers/signal.texi (signal.h):
7014         Document NonStop.  See Joachim Schmitz in
7015         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
7016
7017 2011-07-15  Bruno Haible  <bruno@clisp.org>
7018
7019         ffsl, ffsll: Avoid unportable behaviour.
7020         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
7021
7022 2011-07-15  Bruno Haible  <bruno@clisp.org>
7023
7024         ffs: More tests.
7025         * tests/test-ffs.c (NBITS): New macro.
7026         (main): Add more tests.
7027         * tests/test-ffsl.c (NBITS): New macro.
7028         (main): Add more tests.
7029         * tests/test-ffsll.c (NBITS): New macro.
7030         (main): Add more tests.
7031
7032 2011-07-15  Eric Blake  <eblake@redhat.com>
7033
7034         ffsl, ffsll: new modules
7035         * modules/ffsl: New file.
7036         * modules/ffsll: Likewise.
7037         * m4/ffsl.m4: Likewise.
7038         * m4/ffsll.m4: Likewise.
7039         * lib/ffsl.c: Likewise.
7040         * lib/ffsl.h: Likewise.
7041         * lib/ffsll.c: Likewise.
7042         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7043         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7044         * modules/string (Makefile.am): Substitute witnesses.
7045         * lib/strings.in.h (ffsl, ffsll): Declare.
7046         * modules/ffsl-tests: New test file.
7047         * modules/ffsll-tests: Likewise.
7048         * tests/test-ffsl.c: Likewise.
7049         * tests/test-ffsll.c: Likewise.
7050         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7051         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7052         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7053
7054         ffs: fix m4 prerequisite
7055         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7056
7057         ffs: avoid undefined behavior
7058         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
7059         * tests/test-ffs.c (naive, main): Avoid signed shifts.
7060         Reported by Bruno Haible.
7061
7062 2011-07-12  Bruno Haible  <bruno@clisp.org>
7063
7064         pthread_sigmask: Rely on module 'threadlib'.
7065         * modules/pthread_sigmask (Depends-on): Add threadlib.
7066         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7067         is defined.
7068
7069 2011-07-12  Bruno Haible  <bruno@clisp.org>
7070
7071         regex: Depend on module 'strcase'.
7072         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7073
7074 2011-07-12  Jim Meyering  <meyering@redhat.com>
7075
7076         warn-on-use: fix typo in file name
7077         * modules/snippet/warn-on-use (Files): Correct file name:
7078         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7079
7080 2011-07-12  Bruno Haible  <bruno@clisp.org>
7081
7082         strings: Document module.
7083         * doc/posix-headers/strings.texi: Mention module 'strings'.
7084
7085 2011-07-12  Bruno Haible  <bruno@clisp.org>
7086
7087         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7088         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7089         (Files, Makefile.am): Update.
7090         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7091         * modules/stdlib (Depends-on): Update.
7092
7093 2011-07-12  Bruno Haible  <bruno@clisp.org>
7094
7095         * NEWS: Mention the changes.
7096
7097         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7098         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7099         (Files, Makefile.am): Update.
7100         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7101         * modules/arpa_inet (Depends-on): Update.
7102         * modules/ctype (Depends-on): Update.
7103         * modules/dirent (Depends-on): Update.
7104         * modules/fcntl-h (Depends-on): Update.
7105         * modules/glob (Depends-on): Update.
7106         * modules/iconv-h (Depends-on): Update.
7107         * modules/inttypes-incomplete (Depends-on): Update.
7108         * modules/langinfo (Depends-on): Update.
7109         * modules/locale (Depends-on): Update.
7110         * modules/math (Depends-on): Update.
7111         * modules/netdb (Depends-on): Update.
7112         * modules/poll-h (Depends-on): Update.
7113         * modules/pty (Depends-on): Update.
7114         * modules/search (Depends-on): Update.
7115         * modules/signal (Depends-on): Update.
7116         * modules/spawn (Depends-on): Update.
7117         * modules/stdio (Depends-on): Update.
7118         * modules/stdlib (Depends-on): Update.
7119         * modules/string (Depends-on): Update.
7120         * modules/strings (Depends-on): Update.
7121         * modules/sys_file (Depends-on): Update.
7122         * modules/sys_ioctl (Depends-on): Update.
7123         * modules/sys_select (Depends-on): Update.
7124         * modules/sys_socket (Depends-on): Update.
7125         * modules/sys_stat (Depends-on): Update.
7126         * modules/sys_time (Depends-on): Update.
7127         * modules/sys_times (Depends-on): Update.
7128         * modules/sys_utsname (Depends-on): Update.
7129         * modules/sys_wait (Depends-on): Update.
7130         * modules/termios (Depends-on): Update.
7131         * modules/time (Depends-on): Update.
7132         * modules/unistd (Depends-on): Update.
7133         * modules/wchar (Depends-on): Update.
7134         * modules/wctype-h (Depends-on): Update.
7135         * MODULES.html.sh (Support for building libraries and executables):
7136         Update.
7137
7138         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7139         * modules/snippet/unused-parameter: Renamed from
7140         modules/unused-parameter.
7141         (Files, Makefile.am): Update.
7142         * build-aux/snippet/unused-parameter.h: Renamed from
7143         build-aux/unused-parameter.h.
7144         * modules/selinux-h (Depends-on): Update.
7145         * modules/unistr/base (Depends-on): Update.
7146         * MODULES.html.sh (Core language properties): Update.
7147
7148         Rename module 'link-warning' to 'snippet/link-warning'.
7149         * modules/snippet/link-warning: Renamed from modules/link-warning.
7150         (Files, Makefile.am): Update.
7151         * build-aux/snippet/link-warning.h: Renamed from
7152         build-aux/link-warning.h.
7153         * MODULES.html.sh (Support for building libraries and executables):
7154         Update.
7155
7156         Rename module 'c++defs' to 'snippet/c++defs'.
7157         * modules/snippet/c++defs: Renamed from modules/c++defs.
7158         (Files, Makefile.am): Update.
7159         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7160         * modules/arpa_inet (Depends-on): Update.
7161         * modules/ctype (Depends-on): Update.
7162         * modules/dirent (Depends-on): Update.
7163         * modules/fcntl-h (Depends-on): Update.
7164         * modules/glob (Depends-on): Update.
7165         * modules/iconv-h (Depends-on): Update.
7166         * modules/langinfo (Depends-on): Update.
7167         * modules/locale (Depends-on): Update.
7168         * modules/math (Depends-on): Update.
7169         * modules/netdb (Depends-on): Update.
7170         * modules/poll-h (Depends-on): Update.
7171         * modules/pty (Depends-on): Update.
7172         * modules/search (Depends-on): Update.
7173         * modules/signal (Depends-on): Update.
7174         * modules/spawn (Depends-on): Update.
7175         * modules/stdio (Depends-on): Update.
7176         * modules/stdlib (Depends-on): Update.
7177         * modules/string (Depends-on): Update.
7178         * modules/strings (Depends-on): Update.
7179         * modules/sys_ioctl (Depends-on): Update.
7180         * modules/sys_select (Depends-on): Update.
7181         * modules/sys_socket (Depends-on): Update.
7182         * modules/sys_stat (Depends-on): Update.
7183         * modules/sys_time (Depends-on): Update.
7184         * modules/sys_wait (Depends-on): Update.
7185         * modules/termios (Depends-on): Update.
7186         * modules/time (Depends-on): Update.
7187         * modules/unistd (Depends-on): Update.
7188         * modules/wchar (Depends-on): Update.
7189         * modules/wctype-h (Depends-on): Update.
7190
7191         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7192         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7193         (Files, Makefile.am): Update.
7194         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7195         * modules/argv-iter (Depends-on): Update.
7196         * modules/arpa_inet (Depends-on): Update.
7197         * modules/dirent (Depends-on): Update.
7198         * modules/fcntl-h (Depends-on): Update.
7199         * modules/fnmatch (Depends-on): Update.
7200         * modules/getopt-posix (Depends-on): Update.
7201         * modules/glob (Depends-on): Update.
7202         * modules/iconv-h (Depends-on): Update.
7203         * modules/inttypes-incomplete (Depends-on): Update.
7204         * modules/locale (Depends-on): Update.
7205         * modules/math (Depends-on): Update.
7206         * modules/netdb (Depends-on): Update.
7207         * modules/search (Depends-on): Update.
7208         * modules/signal (Depends-on): Update.
7209         * modules/spawn (Depends-on): Update.
7210         * modules/stdio (Depends-on): Update.
7211         * modules/stdlib (Depends-on): Update.
7212         * modules/string (Depends-on): Update.
7213         * modules/strings (Depends-on): Update.
7214         * modules/sys_socket (Depends-on): Update.
7215         * modules/sys_stat (Depends-on): Update.
7216         * modules/sys_time (Depends-on): Update.
7217         * modules/sys_times (Depends-on): Update.
7218         * modules/sys_utsname (Depends-on): Update.
7219         * modules/time (Depends-on): Update.
7220         * modules/unistd (Depends-on): Update.
7221         * modules/wchar (Depends-on): Update.
7222         * MODULES.html.sh (Support for building libraries and executables):
7223         Update.
7224
7225 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7226
7227         Improvements on _Noreturn and related modules.
7228
7229         modules/_Exit-tests: test _Noreturn too
7230         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7231         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7232         (main): Use them.
7233
7234         stdnoreturn, stdnoreturn-tests: remove modules
7235         They're not needed here and a bit premature for use elsewhere.  See
7236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7237         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7238         * tests/test-stdnoreturn.c: Remove files.
7239         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7240         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7241         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7242         and using noreturn.
7243         * modules/openat, modules/sigpipe-die, modules/xalloc:
7244         * modules/xmemdup0, modules/xstrtol:
7245         Remove dependency on stdnoreturn.
7246
7247         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7248         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7249         Reparenthesize to avoid GCC warning.
7250         Support Microsoft's syntax.
7251         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7252
7253         _Noreturn-tests: remove module
7254         * modules/_Noreturn-tests: Remove.
7255         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7256         * tests/test-_Noreturn.c: Remove.
7257         * tests/test-stdnoreturn.c: Merge from the old
7258         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7259
7260 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7261
7262         _Noreturn, stdnoreturn, and related modules.
7263
7264         * top/maint.mk: Adjust to new noreturn support.
7265         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7266         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7267
7268         xalloc: use stdnoreturn.h
7269         * lib/xalloc.h: Include <stdnoreturn.h>.
7270         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7271         * modules/xalloc (Depends-on): Add stdnoreturn.
7272
7273         xstrtol: use stdnoreturn.h
7274         * lib/xstrtol.h: Include <stdnoreturn.h>.
7275         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7276         * modules/xstrtol (Depends-on): Add stdnoreturn.
7277
7278         xmemdup0: use stdnoreturn.h
7279         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7280         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7281         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7282
7283         sigpipe-die: use stdnoreturn.h
7284         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7285         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7286         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7287
7288         openat: use stdnoreturn.h
7289         * lib/openat.h: Include <stdnoreturn.h>.
7290         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7291         * modules/openat (Depends-on): Add stdnoreturn.
7292
7293         * lib/openat-die.c (openat_save_fail): Modernize comment.
7294
7295         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7296
7297         * lib/glthread/thread.h: Modernize comment.
7298
7299         obstack: use _Noreturn
7300         * lib/obstack.c (__attribute__): Remove macro.
7301         (print_and_abort): Use _Noreturn.
7302
7303         c-stack: use _Noreturn
7304         * lib/c-stack.c (die, overflow_handler, segv_handler):
7305         Use _Noreturn rather than __attribute__((noreturn)).
7306
7307         argmatch-tests, exclude_tests: use _Noreturn
7308         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7309         Remove.
7310         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7311
7312         stdlib: use _Noreturn
7313         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7314         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7315         * modules/stdlib (Depends-on): Add _Noreturn.
7316         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7317
7318         stdnoreturn-tests: new module
7319         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7320
7321         stdnoreturn: new module
7322         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7323         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7324
7325         _Noreturn-tests: new module
7326         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7327
7328         _Noreturn: new module
7329         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7330         New section, mentioning it.
7331         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7332
7333         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7334
7335 2011-07-11  Eric Blake  <eblake@redhat.com>
7336
7337         ffs: new module
7338         * modules/ffs: New file.
7339         * m4/ffs.m4: Likewise.
7340         * lib/ffs.c: Likewise.
7341         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7342         * modules/strings (Makefile.am): Substitute witness.
7343         (Depends-on): Add c++defs.
7344         * lib/strings.in.h (ffs): Declare.
7345         * modules/ffs-tests: New test file.
7346         * tests/test-ffs.c: Test new module.
7347         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7348         * doc/posix-functions/ffs.texi (ffs): Likewise.
7349
7350         regex: avoid compiler warning
7351         * lib/regex.c (includes): Include <strings.h>, for use of
7352         strcasecmp in regcomp.c.
7353         Reported by Joachim Schmitz.
7354
7355 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7356
7357         stdint: respect system's intmax_t if INTMAX_MAX
7358         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7359         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7360         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7361         long but int64_t is long long, and where we will clash with the
7362         system intmax_t if we override it.  See
7363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7364         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7365         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7366         similarly for UINTMAX_C.
7367
7368 2011-07-08  Bruno Haible  <bruno@clisp.org>
7369
7370         pthread_sigmask tests: Avoid a compiler warning.
7371         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7372         non-zero.
7373
7374         sigprocmask tests: A better way to avoid a compiler warning.
7375         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7376         (main): Complain if system() returns non-zero.
7377         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7378
7379 2011-07-08  Bruno Haible  <bruno@clisp.org>
7380
7381         pthread_sigmask: Work around IRIX bug.
7382         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7383         bug.
7384         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7385         there may be unblocked pending signals.
7386         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7387
7388 2011-07-08  Bruno Haible  <bruno@clisp.org>
7389
7390         pthread_sigmask: Work around Cygwin bug.
7391         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7392         bug.
7393         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7394         the system's pthread_sigmask function.
7395         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7396
7397 2011-07-08  Bruno Haible  <bruno@clisp.org>
7398
7399         pthread_sigmask: Work around bug in single-threaded implementation.
7400         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7401         FreeBSD, HP-UX, Solaris bug.
7402         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7403         * lib/pthread_sigmask.c: Include <stddef.h>.
7404         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7405         the system's pthread_sigmask function.
7406         * modules/pthread_sigmask (configure.ac): Invoke
7407         gl_PREREQ_PTHREAD_SIGMASK.
7408         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7409         HP-UX, Solaris.
7410
7411 2011-07-08  Eric Blake  <eblake@redhat.com>
7412
7413         test-sigprocmask: avoid compiler warning
7414         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7415         * tests/test-sigprocmask.c (main): Use it to silence warning.
7416         Reported by Jim Meyering.
7417
7418         test-snprintf: avoid compiler warning
7419         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7420         * tests/test-vsnprintf.c (main): Likewise.
7421         Reported by Jim Meyering.
7422
7423 2011-07-08  Bruno Haible  <bruno@clisp.org>
7424
7425         Tests for module 'pthread_sigmask'.
7426         * modules/pthread_sigmask-tests: New file.
7427         * tests/test-pthread_sigmask1.c: New file, based on
7428         tests/test-sigprocmask.c.
7429         * tests/test-pthread_sigmask2.c: New file.
7430
7431 2011-07-08  Jim Meyering  <meyering@redhat.com>
7432
7433         test-getopt.h: avoid warning about an unused variable
7434         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7435
7436 2011-07-07  Jim Meyering  <meyering@redhat.com>
7437
7438         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7439         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7440         now that it no longer contains leading TABs.
7441         Remove unused "url=FIXME" statement.
7442
7443 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7444
7445         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7446         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7447         When gl_THREADLIB is not in use, assume that the POSIX sematics
7448         are desired.  This is better for Emacs, which uses POSIX semantics
7449         on GNUish and/or POSIXish platforms, and does not use threads at
7450         all otherwise.
7451
7452         pthread_sigmask: fix typo when testing for libraries
7453         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7454         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7455
7456 2011-07-08  Eric Blake  <eblake@redhat.com>
7457
7458         fts: introduce FTS_NOATIME
7459         * lib/fts_.h (FTS_NOATIME): New bit flag.
7460         (FTS_OPTIONMASK): Adjust.
7461         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7462         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7463
7464 2011-07-08  Bruno Haible  <bruno@clisp.org>
7465
7466         Tests for module 'thread'.
7467         * modules/thread-tests: New file.
7468         * tests/test-thread_self.c: New file.
7469         * tests/test-thread_create.cc: New file.
7470
7471 2011-07-08  Bruno Haible  <bruno@clisp.org>
7472
7473         thread: Avoid gcc warnings when using gl_thread_self().
7474         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7475         'void *'.
7476         (gl_thread_self_pointer): Update.
7477
7478 2011-07-07  Bruno Haible  <bruno@clisp.org>
7479
7480         signal-c++-tests: Check declaration of pthread_sigmask.
7481         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7482         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7483         $(LIB_PTHREAD_SIGMASK).
7484
7485 2011-07-07  Bruno Haible  <bruno@clisp.org>
7486
7487         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7488         * lib/signal.in.h (pthread_sigmask): Override if
7489         REPLACE_PTHREAD_SIGMASK is 1.
7490         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7491         REPLACE_PTHREAD_SIGMASK.
7492         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7493         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7494         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7495         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7496         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7497
7498 2011-07-07  Bruno Haible  <bruno@clisp.org>
7499
7500         pthread_sigmask: Ensure declaration in <signal.h>.
7501         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7502         include <pthread.h>.
7503         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7504         problem.
7505
7506 2011-07-07  Bruno Haible  <bruno@clisp.org>
7507
7508         pthread_sigmask: Document the module.
7509         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7510
7511 2011-07-07  Bruno Haible  <bruno@clisp.org>
7512
7513         pthread_sigmask: Follow gnulib conventions.
7514         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7515         gl_PTHREAD_SIGMASK.
7516         * modules/pthread_sigmask (configure.ac): Update.
7517
7518 2011-07-07  Bruno Haible  <bruno@clisp.org>
7519
7520         pthread_sigmask: Make declaration C++ safe.
7521         * lib/signal.in.h: In two special conditions, just do an #include_next.
7522         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7523         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7524         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7525         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7526         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7527         not REPLACE_PTHREAD_MASK.
7528         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7529         not REPLACE_PTHREAD_MASK.
7530         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7531
7532 2011-07-07  Bruno Haible  <bruno@clisp.org>
7533
7534         pthread_sigmask: Fix return value.
7535         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7536         * lib/pthread_sigmask.c: New file.
7537         * modules/pthread_sigmask (Files): Add it.
7538         (configure.ac): Invoke AC_LIBOBJ.
7539
7540 2011-07-07  Eric Blake  <eblake@redhat.com>
7541
7542         getopt: more portable argv creation
7543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7544         const, use char arrays rather than strings.
7545         Suggested by Paul Eggert.
7546
7547 2011-07-07  Bruno Haible  <bruno@clisp.org>
7548
7549         Tests for module 'sigprocmask'.
7550         * modules/sigprocmask-tests: New file.
7551         * tests/test-sigprocmask.c: New file.
7552
7553 2011-07-07  Bruno Haible  <bruno@clisp.org>
7554
7555         float tests: Tweak.
7556         * tests/test-float.c (main): Tweak skip message.
7557
7558 2011-07-07  Eric Blake  <eblake@redhat.com>
7559
7560         getopt: avoid compiler warning during configure
7561         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7562         assigning string literals to non-const pointer.
7563
7564         getopt-gnu: avoid crash in glibc getopt
7565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7566         * tests/test-getopt.h (test_getopt): Enhance test.
7567         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7568         * doc/posix-functions/getopt.texi (getopt): Document it.
7569         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7570         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7571         Likewise.
7572
7573 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7574
7575         getopt: handle W; without long options in getopt [BZ #12922]
7576         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7577         but no long options are defined, just return 'W'.
7578
7579 2011-07-07  Bruno Haible  <bruno@clisp.org>
7580
7581         Avoid literal tabs.
7582         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7583         variable containing a tab instead of a literal tab.
7584         Reported by Jim Meyering.
7585
7586 2011-07-07  Bruno Haible  <bruno@clisp.org>
7587
7588         Comments.
7589         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7590
7591 2011-07-06  Bruno Haible  <bruno@clisp.org>
7592
7593         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7594         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7595         <winsock2.h>.
7596         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7597         lib/sys_socket.in.h.
7598         (close, gethostname): Hide declarations from <winsock2.h>.
7599         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7600         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7601         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7602         (select): Don't override if gnulib's <sys/select.h> was already
7603         included.
7604         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7605         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7606         setsockopt, shutdown, select): Tweak indentation.
7607
7608 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7609
7610         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7611         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7612         in an application that does not use the sys_select module.
7613
7614 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7615
7616         poll: do not return 0 on timeout=-1
7617         * lib/poll.c: Loop with yield if no events occured
7618
7619 2011-07-06  Eric Blake  <eblake@redhat.com>
7620
7621         pthread_sigmask: always replace when not using pthread
7622         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7623         replacement when using some threading other than pthread.  Fix
7624         logic bug.
7625
7626 2011-07-06  Bruno Haible  <bruno@clisp.org>
7627
7628         Comments.
7629         * m4/printf.m4: Update comments about mingw.
7630
7631 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7632
7633         sys_select: define sigset_t more portably
7634         * lib/sys_select.in.h: Always include <sys/types.h>, since
7635         we now need sigset_t and mingw defines it there.
7636         Include <signal.h> before split inclusion guard, to avoid
7637         mishaps on Solaris, whose <signal.h> eventually includes us.
7638         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7639         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7640         which come from ...
7641         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7642         gl_CHECK_TYPE_SIGSET_T.
7643         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7644         does the real work.
7645         * modules/sys_select (Depends-on): Add 'signal'.
7646
7647         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7648         Suggested by Bruno Haible.
7649
7650         pselect: Use pthread_sigmask, not sigprocmask.
7651         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7652         multithreaded apps better than sigprocmask does.
7653         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7654         sigprocmask directly.
7655
7656 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7657
7658         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7659         Don't #undef,  since we don't need any underlying pselect.
7660         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7661         (Depends-on): Add select.
7662         (Link): Add $(LIBSOCKET).
7663         These changes suggested by Bruno Haible.
7664
7665         pselect: document better
7666         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7667         * doc/posix-functions/pselect.texi (pselect): Document new module.
7668
7669         pthread_sigmask: new module
7670         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7671         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7672         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7673         This is done only as a macro; I don't know how well that'll
7674         work for C++.  Move <sys/types.h> include before the include_next,
7675         to avoid mishap on Solaris.
7676         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7677         * modules/signal (Makefile.am): Substitute the check's results.
7678         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7679
7680         test-pselect: new module
7681         * modules/pselect-tests, tests/test-pselect.c: New files.
7682         * tests/test-select.c, tests/test-sys_select-c++.cc:
7683         If TEST_PSELECT is defined, test pselect instead of testing select.
7684
7685         * tests/test-sys_select.c (sigset_t): Test for it, too.
7686         Suggested by Bruno Haible.
7687
7688 2011-07-05  Eric Blake  <eblake@redhat.com>
7689
7690         snprintf: guarantee %1$d, for libintl
7691         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7692         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7693         * doc/posix-functions/snprintf.texi (snprintf): Update.
7694         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7695         * tests/test-snprintf.c (main): Enhance test.
7696         * tests/test-vsnprintf.c (main): Likewise.
7697
7698 2011-07-05  Jim Meyering  <meyering@redhat.com>
7699
7700         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7701         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7702         per Bruno's request, to accommodate this idiom (no space after "#")
7703         even when the function is inside an #if block:
7704         char *
7705         gets (char *s)
7706         #undef gets
7707         {
7708           ...
7709         }
7710
7711 2011-07-04  Jim Meyering  <meyering@redhat.com>
7712
7713         maint: indent with spaces, not TABs, and add a rule to check this
7714         * tests/test-userspec.c: Indent with spaces, not TABs.
7715         * tests/test-argp.c: Likewise.
7716         * tests/test-c-stack2.sh: Likewise.
7717         * tests/test-parse-duration.sh: Likewise
7718         * m4/strtod.m4: Likewise.
7719         * m4/alloca.m4: Likewise.
7720         * m4/pselect.m4: Likewise.
7721         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7722
7723 2011-07-03  Jim Meyering  <meyering@redhat.com>
7724
7725         maint.mk: correct omissions in prohibit_argmatch_without_use check
7726         This rule would mistakenly report that argmatch.h is included without
7727         use even when both the argmatch and invalid_arg macro were used.
7728         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7729         of argmatch and invalid_arg.
7730
7731 2011-07-03  Bruno Haible  <bruno@clisp.org>
7732
7733         Comments about EINTR.
7734         * lib/safe-read.h: Explain the purpose of this module.
7735         * lib/safe-write.h: Likewise.
7736         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7737         module.
7738         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7739         module.
7740         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7741
7742 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7743
7744         xnanosleep: Rewrite to use new dtotimespec module.
7745         It has the conversion code that used to be in xnanosleep.
7746         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7747         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7748         (TIME_T_MAX): Remove.
7749         (xnanosleep): Rewrite in terms of dtotimespec.
7750         * modules/xnanosleep (Depends-on): Add dtotimespec.
7751         Remove intprops, stdbool.
7752
7753         timespec-add, timespec-sub: new modules
7754         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7755         * lib/timespec-add.c, lib/timespec-sub.c:
7756         * modules/timespec-add, modules/timespec-sub: New files.
7757
7758         dtotimespec: new module
7759         * lib/timespec.h (dtotimespec): New decl.
7760         * lib/dtotimespec.c, modules/dtotimespec: New files.
7761
7762         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7763
7764         pselect: new module
7765         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7766         (pselect): New decls.
7767         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7768         since the standard pselect decl uses 'restrict'.
7769         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7770         HAVE_PSELECT, REPLACE_PSELECT.
7771         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7772         HAVE_PSELECT, REPLACE_PSELECT.
7773         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7774
7775         sys_select: don't depend on sys_socket
7776         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7778         This fix works on GNU and GNU-like platforms, but has not been tested
7779         on native Windows.
7780         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7781         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7782         gl_HEADER_SYS_SOCKET.
7783         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7784         gl_PREREQ_SYS_H_WINSOCK2.
7785
7786 2011-06-29  Eric Blake  <eblake@redhat.com>
7787
7788         pipe2: fix C89 compile problem
7789         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7790         Reported by Bruno Haible.
7791
7792         pipe, pipe2: don't corrupt fd on error
7793         * lib/pipe.c (pipe): Leave fd unchanged on error.
7794         * lib/pipe2.c (pipe2): Likewise.
7795         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7796         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7797
7798 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7799
7800         mmap-anon: do not use regular expressions inadvertently
7801         * m4/mmap-anon.m4: Remove trailing period from strings sought
7802         in the output.
7803
7804 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7805
7806         nanosleep: fix integer overflow problem
7807         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7808         arithmetic wraps around on overflow.
7809
7810         nanosleep: simplify carrying
7811         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7812         first call to the underyling nanosleep, not for the last one.
7813         This doesn't fix any bugs, but it simplifies the computation of
7814         the remaining delay.  Found while auditing integer overflow issues.
7815
7816         dup2: remove test for existence of fcntl
7817         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7818         "#if HAVE_FCNTL", in the configure-time test program.
7819         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7820         and therefore speeds up "configure" a bit.  Found while
7821         adding the dup2 module to Emacs.
7822
7823 2011-06-24  Eric Blake  <eblake@redhat.com>
7824
7825         maint.mk: enhance useless header checks
7826         * top/maint.mk (_sc_header_without_use): Check both include
7827         styles.
7828         (sc_prohibit_assert_without_use)
7829         (sc_prohibit_close_stream_without_use)
7830         (sc_prohibit_getopt_without_use)
7831         (sc_prohibit_quotearg_without_use)
7832         (sc_prohibit_quote_without_use)
7833         (sc_prohibit_long_options_without_use)
7834         (sc_prohibit_inttostr_without_use)
7835         (sc_prohibit_ignore_value_without_use)
7836         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7837         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7838         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7839         (sc_prohibit_hash_pjw_without_use)
7840         (sc_prohibit_safe_read_without_use)
7841         (sc_prohibit_argmatch_without_use)
7842         (sc_prohibit_canonicalize_without_use)
7843         (sc_prohibit_root_dev_ino_without_use)
7844         (sc_prohibit_openat_without_use)
7845         (sc_prohibit_c_ctype_without_use)
7846         (sc_prohibit_signal_without_use)
7847         (sc_prohibit_stdio--_without_use)
7848         (sc_prohibit_stdio-safer_without_use)
7849         (sc_prohibit_strings_without_use)
7850         (sc_prohibit_intprops_without_use)
7851         (sc_prohibit_stddef_without_use)
7852         (sc_prohibit_xfreopen_without_use): Update clients.
7853
7854 2011-06-24  Jim Meyering  <meyering@redhat.com>
7855
7856         syntax-check: keep one maint.mk rule in sync with its header
7857         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7858         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7859         I prefer to avoid temporary files here, so use <(...), but that
7860         is not supported by /bin/sh, so...
7861         (SHELL): Define to /bin/bash.
7862
7863 2011-06-24  Eric Blake  <eblake@redhat.com>
7864
7865         maint.mk: update sc_prohibit_intprops_without_use
7866         * top/maint.mk (_intprops_names): Match recent changes.
7867
7868 2011-06-24  Bruno Haible  <bruno@clisp.org>
7869
7870         strerror-override: No-op tweak.
7871         * lib/strerror-override.h (strerror_override): Reorder conditions,
7872         for consistency with lib/strerror-override.c.
7873
7874 2011-06-23  Eric Blake  <eblake@redhat.com>
7875
7876         maint.mk: test further PATH_MAX issues
7877         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7878         (sc_prohibit_path_max_allocation): ...and also test alloca.
7879         Suggested by Jim Meyering.
7880
7881 2011-06-22  Eric Blake  <eblake@redhat.com>
7882
7883         maint.mk: add syntax-check to avoid char[PATH_MAX]
7884         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7885
7886         stat: be robust to PATH_MAX definition
7887         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7888         * modules/stat (Depends-on): Add verify.
7889
7890         link: work around IRIX bug
7891         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7892         * lib/link.c (rpl_link): Work around it.
7893         * tests/test-link.h (test_link): Enhance test.
7894         * doc/posix-functions/link.texi (link): Document the bug.
7895
7896         getopt: silence clang warning
7897         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7898         dereference.
7899         Reported by Gustavo Martin Domato.
7900
7901 2011-06-22  Jim Meyering  <meyering@redhat.com>
7902
7903         bootstrap: do not insert a blank line into each .gitignore file
7904         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7905
7906 2011-06-21  Eric Blake  <eblake@redhat.com>
7907
7908         perror: test for output mismatch
7909         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7910         perror on IRIX.
7911
7912         strerror_r: fix OpenBSD behavior on out-of-range
7913         * lib/strerror_r.c (strerror_r): Always use maximal string.
7914         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7915
7916         strerror_r: fix OpenBSD behavior on 0
7917         * lib/strerror-override.c (strerror_override): Also override 0
7918         when needed.
7919         * lib/strerror-override.h (strerror_override): Likewise.
7920         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7921         earlier.
7922         * lib/strerror_r.c (strerror_r): Likewise.
7923         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7924         behavior...
7925         (gl_FUNC_STRERROR_0): ...into new macro.
7926         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7927         is overridden.
7928         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7929         * modules/strerror-override (Files): Add strerror.m4.
7930         (configure.ac): Also provide override for 0 when needed.
7931         * doc/posix-functions/strerror.texi (strerror): Document this.
7932         * doc/posix-functions/perror.texi (perror): Likewise.
7933
7934         perror: adjust array size
7935         * modules/perror (Depends-on): Add strerror-override.
7936         * lib/perror.c (perror): Use it to avoid magic number.
7937
7938         strerror-override: reduce size
7939         * lib/strerror-override.c (strerror_override): Use fewer lines.
7940
7941 2011-06-20  Bruno Haible  <bruno@clisp.org>
7942
7943         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7944         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7945
7946 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7947
7948         alloca: port to compilers that can optimize like GCC 4.6.0
7949         * lib/alloca.c (find_stack_direction): New signature, taken from
7950         Autoconf git.  This works with GCC 4.6.0.  This code should never
7951         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7952         be used with other compilers that optimize as well as GCC 4.6.0 does.
7953         (alloca): Adjust to new signature.
7954         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7955         New macro, which patches Autoconf in a similar way.
7956
7957         c-stack: stop worrying about stack direction
7958         * lib/c-stack.c (find_stack_direction): Remove.
7959         (segv_handler): Don't worry about stack direction growth, as it's
7960         too much of a pain to configure this correctly, given how compilers
7961         are optimizing-away our stack-growth detection code.  Instead, assume
7962         that any access to just before or just after the stack is OK.
7963         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7964         Don't require AC_FUNC_ALLOCA; no longer needed.
7965
7966 2011-06-20  Eric Blake  <eblake@redhat.com>
7967
7968         test-stat: don't allocate PATH_MAX bytes
7969         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7970         PATH_MAX-sized buffer.
7971         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7972         * modules/stat-tests (Depends-on): Likewise.
7973         * tests/test-fstatat.c (includes): Drop pathmax.h.
7974         * tests/test-stat.c (includes): Likewise.
7975         Reported by Bruno Haible.
7976
7977 2011-06-20  Bruno Haible  <bruno@clisp.org>
7978
7979         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7980         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7981         * lib/float.c: New file.
7982         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7983         REPLACE_FLOAT_LDBL.
7984         * modules/float (Files): Add lib/float.c.
7985         (configure.ac): Invoke AC_LIBOBJ.
7986         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7987
7988 2011-06-20  Bruno Haible  <bruno@clisp.org>
7989
7990         Tests for module 'float'.
7991         * modules/float-tests: New file.
7992         * tests/test-float.c: New file.
7993
7994 2011-06-19  Bruno Haible  <bruno@clisp.org>
7995
7996         isinf: Coding style.
7997         * lib/isinf.c: Use GNU coding style.
7998
7999 2011-06-19  Bruno Haible  <bruno@clisp.org>
8000
8001         linkat test: Avoid test failure on AIX 7.1.
8002         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
8003         * tests/test-link.h (test_link): Likewise.
8004
8005 2011-06-19  Bruno Haible  <bruno@clisp.org>
8006
8007         pread test: Avoid test failure on OpenBSD 4.9.
8008         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
8009
8010 2011-06-19  Bruno Haible  <bruno@clisp.org>
8011
8012         sprintf-posix: Fix test failure on AIX 7.1.
8013         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
8014         * doc/posix-functions/dprintf.texi: Mention limited precision problem
8015         on AIX.
8016         * doc/posix-functions/fprintf.texi: Likewise.
8017         * doc/posix-functions/printf.texi: Likewise.
8018         * doc/posix-functions/snprintf.texi: Likewise.
8019         * doc/posix-functions/sprintf.texi: Likewise.
8020         * doc/posix-functions/vdprintf.texi: Likewise.
8021         * doc/posix-functions/vfprintf.texi: Likewise.
8022         * doc/posix-functions/vprintf.texi: Likewise.
8023         * doc/posix-functions/vsnprintf.texi: Likewise.
8024         * doc/posix-functions/vsprintf.texi: Likewise.
8025
8026 2011-06-19  Bruno Haible  <bruno@clisp.org>
8027
8028         roundl-ieee: Fix test failure on AIX 7.1.
8029         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
8030         * doc/posix-functions/roundl.texi: Mention problem with negative
8031         arguments.
8032
8033 2011-06-19  Bruno Haible  <bruno@clisp.org>
8034
8035         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8036         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
8037         * doc/posix-functions/round.texi: Mention problem with negative
8038         arguments.
8039         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8040
8041 2011-06-19  Bruno Haible  <bruno@clisp.org>
8042
8043         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8044         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8045         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8046         * doc/posix-functions/roundf.texi: Mention problem with negative
8047         arguments.
8048         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8049
8050 2011-06-19  Bruno Haible  <bruno@clisp.org>
8051
8052         ceilf-ieee: Work around bug on MacOS X 10.5.
8053         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8054
8055         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8056         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8057         IEEE compliant, avoid compiler optimizations.
8058         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8059         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8060         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8061         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8062         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8063         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8064         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8065         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8066         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8067         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8068
8069 2011-06-19  Bruno Haible  <bruno@clisp.org>
8070
8071         ceilf-ieee: Work around bug on AIX 7.1.
8072         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8073         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8074
8075 2011-06-19  Bruno Haible  <bruno@clisp.org>
8076
8077         ceil-ieee: Work around bug on AIX 7.1.
8078         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8079         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8080
8081 2011-06-18  Bruno Haible  <bruno@clisp.org>
8082
8083         fsync test: Avoid test failure on MacOS X and AIX.
8084         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8085         EINVAL.
8086
8087 2011-06-18  Bruno Haible  <bruno@clisp.org>
8088
8089         openat, fdopendir tests: Fix link errors.
8090         * modules/openat-tests (Depends-on): Add progname.
8091         * modules/fdopendir-tests (Depends-on): Likewise.
8092         * tests/test-fchownat.c: Include progname.h.
8093         (main): Call set_program_name.
8094         * tests/test-fstatat.c: Include progname.h.
8095         (main): Call set_program_name.
8096         * tests/test-mkdirat.c: Include progname.h.
8097         (main): Call set_program_name.
8098         * tests/test-openat.c: Include progname.h.
8099         (main): Call set_program_name.
8100         * tests/test-unlinkat.c: Include progname.h.
8101         (main): Call set_program_name.
8102         * tests/test-fdopendir.c: Include progname.h.
8103         (main): Call set_program_name.
8104
8105 2011-06-18  Bruno Haible  <bruno@clisp.org>
8106
8107         Doc update.
8108         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8109         HP-UX.
8110         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8111
8112 2011-06-18  Bruno Haible  <bruno@clisp.org>
8113
8114         getcwd tests: Avoid compilation error on HP-UX 11.31.
8115         * modules/getcwd-tests (Depends-on): Add pathmax.
8116         * tests/test-getcwd.c: Include pathmax.h.
8117
8118 2011-06-18  Bruno Haible  <bruno@clisp.org>
8119
8120         isfinite, isinf: Fix link error on AIX 6 and 7.
8121         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8122         needed, also test the macro with a 'float' argument.
8123         * m4/isinf.m4 (gl_ISINF): Likewise.
8124
8125 2011-06-18  Bruno Haible  <bruno@clisp.org>
8126
8127         getloadavg: Don't clobber LIBS. Regression from previous commit.
8128         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8129         AC_CHECK_LIB from here...
8130         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8131         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8132         gl_func_getloadavg_done.
8133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8134
8135 2011-06-18  Bruno Haible  <bruno@clisp.org>
8136
8137         clean-temp: Improve documentation.
8138         * lib/clean-temp.h: Explain better how to use this module.
8139         Reported by John Darrington <john@darrington.wattle.id.au>.
8140
8141 2011-06-17  Bruno Haible  <bruno@clisp.org>
8142
8143         pread, pwrite: Avoid cc warning on AIX.
8144         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8145         (pwrite): Likewise.
8146
8147 2011-06-17  Bruno Haible  <bruno@clisp.org>
8148
8149         spawn-pipe tests: Fix link error.
8150         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8151         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8152
8153 2011-06-17  Bruno Haible  <bruno@clisp.org>
8154
8155         Tests: Remove unnecessary dependency.
8156         * modules/canonicalize-tests (Depends-on): Remove progname.
8157         * modules/chown-tests (Depends-on): Likewise.
8158         * modules/dirname-tests (Depends-on): Likewise.
8159         * modules/fdopendir-tests (Depends-on): Likewise.
8160         * modules/fdutimensat-tests (Depends-on): Likewise.
8161         * modules/hash-tests (Depends-on): Likewise.
8162         * modules/lchown-tests (Depends-on): Likewise.
8163         * modules/linkat-tests (Depends-on): Likewise.
8164         * modules/renameat-tests (Depends-on): Likewise.
8165         * modules/spawn-pipe-tests (Depends-on): Likewise.
8166         * modules/utimensat-tests (Depends-on): Likewise.
8167
8168 2011-06-17  Bruno Haible  <bruno@clisp.org>
8169
8170         spawn-pipe tests: Fix link error.
8171         * tests/test-spawn-pipe-child.c: Undefine fflush.
8172
8173 2011-06-17  Bruno Haible  <bruno@clisp.org>
8174
8175         Fix tests link errors.
8176         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8177         * modules/chown-tests (Makefile.am): Don't link test-chown with
8178         LIBINTL.
8179         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8180         LIBINTL.
8181         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8182         LIBINTL.
8183         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8184         LIBINTL.
8185
8186 2011-06-16  Bruno Haible  <bruno@clisp.org>
8187
8188         crypto/gc-sha1: Fix recent regression.
8189         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8190         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8191
8192         crypto/gc-md5: Fix recent regression.
8193         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8194
8195         crypto/gc-md4: Fix recent regression.
8196         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8197         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8198
8199         crypto/gc-arctwo: Fix recent regression.
8200         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8201         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8202
8203         crypto/gc-rijndael: Fix recent regression.
8204         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8205         (configure.ac): Invoke AC_LIBOBJ here.
8206         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8208
8209         crypto/gc-hmac-sha1: Fix recent regression.
8210         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8211         (configure.ac): Invoke AC_LIBOBJ here.
8212         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8214
8215         crypto/gc-hmac-md5: Fix recent regression.
8216         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8217         (configure.ac): Invoke AC_LIBOBJ here.
8218         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8220
8221         crypto/gc-des: Fix recent regression.
8222         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8223         (configure.ac): Invoke AC_LIBOBJ here.
8224         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8225         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8226
8227         crypto/gc-arcfour: Fix recent regression.
8228         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8229         (configure.ac): Invoke AC_LIBOBJ here.
8230         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8232
8233 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8234
8235         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8236         After the 2011-05-21 change, this macro requires
8237         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8238         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8239
8240 2011-06-16  Bruno Haible  <bruno@clisp.org>
8241
8242         fprintftime: Move AC_LIBOBJ invocations to module description.
8243         * m4/fprintftime.m4: Remove file.
8244         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8245         (configure.ac): Remove gl_FPRINTFTIME call.
8246         (Makefile.am): Augment lib_SOURCES.
8247         Reported by Jim Meyering.
8248
8249 2011-06-16  Bruno Haible  <bruno@clisp.org>
8250
8251         tmpfile-safer: Finish 2011-05-23 commit.
8252         * m4/stdio-safer.m4: Really remove file.
8253         Reported by Jim Meyering.
8254
8255 2011-06-16  Bruno Haible  <bruno@clisp.org>
8256
8257         syntax-check: Fix typo.
8258         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8259         printf-posix.m4.
8260         Reported by Jim Meyering.
8261
8262 2011-06-13  Jim Meyering  <meyering@redhat.com>
8263
8264         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8265         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8266
8267 2011-05-23  Bruno Haible  <bruno@clisp.org>
8268
8269         yesno: Move AC_LIBOBJ invocations to module description.
8270         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8271         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8272
8273 2011-05-23  Bruno Haible  <bruno@clisp.org>
8274
8275         xstrtol: Move AC_LIBOBJ invocations to module description.
8276         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8277         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8278
8279 2011-05-23  Bruno Haible  <bruno@clisp.org>
8280
8281         xstrtold: Move AC_LIBOBJ invocations to module description.
8282         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8283         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8284
8285 2011-05-23  Bruno Haible  <bruno@clisp.org>
8286
8287         xstrtod: Move AC_LIBOBJ invocations to module description.
8288         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8289         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8290
8291 2011-05-23  Bruno Haible  <bruno@clisp.org>
8292
8293         xnanosleep: Move AC_LIBOBJ invocations to module description.
8294         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8295         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8296
8297 2011-05-23  Bruno Haible  <bruno@clisp.org>
8298
8299         xgetcwd: Move AC_LIBOBJ invocations to module description.
8300         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8301         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8302
8303 2011-05-23  Bruno Haible  <bruno@clisp.org>
8304
8305         xalloc: Move AC_LIBOBJ invocations to module description.
8306         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8307         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8308
8309 2011-05-23  Bruno Haible  <bruno@clisp.org>
8310
8311         write-any-file: Move AC_LIBOBJ invocations to module description.
8312         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8313         invocation.
8314         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8315
8316 2011-05-23  Bruno Haible  <bruno@clisp.org>
8317
8318         utimens: Move AC_LIBOBJ invocations to module description.
8319         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8320         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8321
8322 2011-05-23  Bruno Haible  <bruno@clisp.org>
8323
8324         utimecmp: Move AC_LIBOBJ invocations to module description.
8325         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8326         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8327
8328 2011-05-23  Bruno Haible  <bruno@clisp.org>
8329
8330         userspec: Move AC_LIBOBJ invocations to module description.
8331         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8332         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8333
8334 2011-05-23  Bruno Haible  <bruno@clisp.org>
8335
8336         unlinkdir: Move AC_LIBOBJ invocations to module description.
8337         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8338         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8339
8340 2011-05-23  Bruno Haible  <bruno@clisp.org>
8341
8342         unistd-safer: Move AC_LIBOBJ invocations to module description.
8343         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8344         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8345
8346 2011-05-23  Bruno Haible  <bruno@clisp.org>
8347
8348         tempname: Move AC_LIBOBJ invocations to module description.
8349         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8350         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8351
8352 2011-05-23  Bruno Haible  <bruno@clisp.org>
8353
8354         strftime: Move AC_LIBOBJ invocations to module description.
8355         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8356         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8357
8358 2011-05-23  Bruno Haible  <bruno@clisp.org>
8359
8360         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8361         * m4/stdlib-safer.m4: Remove file.
8362         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8363         (configure.ac): Remove gl_STDLIB_SAFER call.
8364         (Makefile.am): Augment lib_SOURCES.
8365
8366 2011-05-23  Bruno Haible  <bruno@clisp.org>
8367
8368         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8369         * m4/stdio-safer.m4: Remove file.
8370         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8371         (configure.ac): Remove gl_TMPFILE_SAFER call.
8372         (Makefile.am): Augment lib_SOURCES.
8373
8374 2011-05-23  Bruno Haible  <bruno@clisp.org>
8375
8376         popen-safer: Move AC_LIBOBJ invocations to module description.
8377         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8378         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8379         (configure.ac): Remove gl_POPEN_SAFER call.
8380         (Makefile.am): Augment lib_SOURCES.
8381
8382 2011-05-23  Bruno Haible  <bruno@clisp.org>
8383
8384         freopen-safer: Move AC_LIBOBJ invocations to module description.
8385         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8386         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8387         (configure.ac): Remove gl_FREOPEN_SAFER call.
8388         (Makefile.am): Augment lib_SOURCES.
8389
8390 2011-05-23  Bruno Haible  <bruno@clisp.org>
8391
8392         fopen-safer: Move AC_LIBOBJ invocations to module description.
8393         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8394         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8395         (configure.ac): Remove gl_FOPEN_SAFER call.
8396         (Makefile.am): Augment lib_SOURCES.
8397
8398 2011-05-23  Bruno Haible  <bruno@clisp.org>
8399
8400         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8401         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8402         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8403
8404 2011-05-23  Bruno Haible  <bruno@clisp.org>
8405
8406         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8407         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8408         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8409
8410 2011-05-23  Bruno Haible  <bruno@clisp.org>
8411
8412         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8413         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8414         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8415
8416 2011-05-23  Bruno Haible  <bruno@clisp.org>
8417
8418         settime: Move AC_LIBOBJ invocations to module description.
8419         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8420         * modules/settime (Makefile.am): Augment lib_SOURCES.
8421
8422 2011-05-23  Bruno Haible  <bruno@clisp.org>
8423
8424         savedir: Move AC_LIBOBJ invocations to module description.
8425         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8426         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8427
8428 2011-05-23  Bruno Haible  <bruno@clisp.org>
8429
8430         save-cwd: Move AC_LIBOBJ invocations to module description.
8431         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8432         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8433
8434 2011-05-23  Bruno Haible  <bruno@clisp.org>
8435
8436         same: Move AC_LIBOBJ invocations to module description.
8437         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8438         * modules/same (Makefile.am): Augment lib_SOURCES.
8439
8440 2011-05-23  Bruno Haible  <bruno@clisp.org>
8441
8442         safe-write: Move AC_LIBOBJ invocations to module description.
8443         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8444         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8445         instead of gl_SAFE_WRITE.
8446         (Makefile.am): Augment lib_SOURCES.
8447
8448 2011-05-23  Bruno Haible  <bruno@clisp.org>
8449
8450         safe-read: Move AC_LIBOBJ invocations to module description.
8451         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8452         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8453         of gl_SAFE_READ.
8454         (Makefile.am): Augment lib_SOURCES.
8455
8456 2011-05-23  Bruno Haible  <bruno@clisp.org>
8457
8458         safe-alloc: Move AC_LIBOBJ invocations to module description.
8459         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8460         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8461
8462 2011-05-23  Bruno Haible  <bruno@clisp.org>
8463
8464         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8465         * m4/rijndael.m4: Remove file.
8466         * modules/crypto/rijndael (Files): Remove it.
8467         (configure.ac): Remove gl_RIJNDAEL call.
8468         (Makefile.am): Augment lib_SOURCES.
8469
8470 2011-05-23  Bruno Haible  <bruno@clisp.org>
8471
8472         readtokens: Move AC_LIBOBJ invocations to module description.
8473         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8474         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8475
8476 2011-05-23  Bruno Haible  <bruno@clisp.org>
8477
8478         read-file: Move AC_LIBOBJ invocations to module description.
8479         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8480         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8481         of gl_FUNC_READ_FILE.
8482         (Makefile.am): Augment lib_SOURCES.
8483
8484 2011-05-23  Bruno Haible  <bruno@clisp.org>
8485
8486         quotearg: Move AC_LIBOBJ invocations to module description.
8487         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8488         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8489
8490 2011-05-23  Bruno Haible  <bruno@clisp.org>
8491
8492         quote: Move AC_LIBOBJ invocations to module description.
8493         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8494         * modules/quote (Makefile.am): Augment lib_SOURCES.
8495
8496 2011-05-23  Bruno Haible  <bruno@clisp.org>
8497
8498         posixver: Move AC_LIBOBJ invocations to module description.
8499         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8500         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8501
8502 2011-05-23  Bruno Haible  <bruno@clisp.org>
8503
8504         posixtm: Move AC_LIBOBJ invocations to module description.
8505         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8506         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8507
8508 2011-05-23  Bruno Haible  <bruno@clisp.org>
8509
8510         physmem: Move AC_LIBOBJ invocations to module description.
8511         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8512         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8513
8514 2011-05-23  Bruno Haible  <bruno@clisp.org>
8515
8516         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8517         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8518         invocation.
8519         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8520
8521 2011-05-23  Bruno Haible  <bruno@clisp.org>
8522
8523         mpsort: Move AC_LIBOBJ invocations to module description.
8524         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8525         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8526
8527 2011-05-23  Bruno Haible  <bruno@clisp.org>
8528
8529         modechange: Move AC_LIBOBJ invocations to module description.
8530         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8531         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8532
8533 2011-05-23  Bruno Haible  <bruno@clisp.org>
8534
8535         mkdir-p: Move AC_LIBOBJ invocations to module description.
8536         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8537         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8538
8539 2011-05-23  Bruno Haible  <bruno@clisp.org>
8540
8541         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8542         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8543         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8544
8545 2011-05-23  Bruno Haible  <bruno@clisp.org>
8546
8547         mgetgroups: Move AC_LIBOBJ invocations to module description.
8548         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8549         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8550
8551 2011-05-23  Bruno Haible  <bruno@clisp.org>
8552
8553         memxor: Move AC_LIBOBJ invocations to module description.
8554         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8555         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8556
8557 2011-05-23  Bruno Haible  <bruno@clisp.org>
8558
8559         memcoll: Move AC_LIBOBJ invocations to module description.
8560         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8561         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8562
8563 2011-05-23  Bruno Haible  <bruno@clisp.org>
8564
8565         memcasecmp: Move AC_LIBOBJ invocations to module description.
8566         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8567         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8568
8569 2011-05-23  Bruno Haible  <bruno@clisp.org>
8570
8571         crypto/md5: Move AC_LIBOBJ invocations to module description.
8572         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8573         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8574
8575 2011-05-23  Bruno Haible  <bruno@clisp.org>
8576
8577         crypto/md4: Move AC_LIBOBJ invocations to module description.
8578         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8579         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8580
8581 2011-05-23  Bruno Haible  <bruno@clisp.org>
8582
8583         crypto/md2: Move AC_LIBOBJ invocations to module description.
8584         * m4/md2.m4: Remove file.
8585         * modules/crypto/md2 (Files): Remove it.
8586         (configure.ac): Remove gl_MD2 call.
8587         (Makefile.am): Augment lib_SOURCES.
8588
8589 2011-05-23  Bruno Haible  <bruno@clisp.org>
8590
8591         long-options: Move AC_LIBOBJ invocations to module description.
8592         * m4/long-options.m4: Remove file.
8593         * modules/long-options (Files): Remove it.
8594         (configure.ac): Remove gl_LONG_OPTIONS call.
8595         (Makefile.am): Augment lib_SOURCES.
8596
8597 2011-05-23  Bruno Haible  <bruno@clisp.org>
8598
8599         i-ring: Move AC_LIBOBJ invocations to module description.
8600         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8601         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8602
8603 2011-05-23  Bruno Haible  <bruno@clisp.org>
8604
8605         idcache: Move AC_LIBOBJ invocations to module description.
8606         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8607         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8608
8609 2011-05-23  Bruno Haible  <bruno@clisp.org>
8610
8611         human: Move AC_LIBOBJ invocations to module description.
8612         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8613         * modules/human (Makefile.am): Augment lib_SOURCES.
8614
8615 2011-05-23  Bruno Haible  <bruno@clisp.org>
8616
8617         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8618         * m4/hmac-sha1.m4: Remove file.
8619         * modules/crypto/hmac-sha1 (Files): Remove it.
8620         (configure.ac): Remove gl_HMAC_SHA1 call.
8621         (Makefile.am): Augment lib_SOURCES.
8622
8623 2011-05-23  Bruno Haible  <bruno@clisp.org>
8624
8625         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8626         * m4/hmac-md5.m4: Remove file.
8627         * modules/crypto/hmac-md5 (Files): Remove it.
8628         (configure.ac): Remove gl_HMAC_MD5 call.
8629         (Makefile.am): Augment lib_SOURCES.
8630
8631 2011-05-23  Bruno Haible  <bruno@clisp.org>
8632
8633         hash: Move AC_LIBOBJ invocations to module description.
8634         * m4/hash.m4: Remove file.
8635         * modules/hash (Files): Remove it.
8636         (configure.ac): Remove gl_HASH call.
8637         (Makefile.am): Augment lib_SOURCES.
8638
8639 2011-05-23  Bruno Haible  <bruno@clisp.org>
8640
8641         hard-locale: Move AC_LIBOBJ invocations to module description.
8642         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8643         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8644
8645 2011-05-23  Bruno Haible  <bruno@clisp.org>
8646
8647         getugroups: Move AC_LIBOBJ invocations to module description.
8648         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8649         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8650
8651 2011-05-23  Bruno Haible  <bruno@clisp.org>
8652
8653         gettime: Move AC_LIBOBJ invocations to module description.
8654         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8655         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8656
8657 2011-05-23  Bruno Haible  <bruno@clisp.org>
8658
8659         getndelim2: Move AC_LIBOBJ invocations to module description.
8660         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8661         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8662
8663 2011-05-23  Bruno Haible  <bruno@clisp.org>
8664
8665         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8666         * m4/gc-pbkdf2-sha1.m4: Remove file.
8667         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8668         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8669         (Makefile.am): Augment lib_SOURCES.
8670
8671 2011-05-23  Bruno Haible  <bruno@clisp.org>
8672
8673         fts: Move AC_LIBOBJ invocations to module description.
8674         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8675         * modules/fts (configure.ac): ... to here.
8676
8677 2011-05-23  Bruno Haible  <bruno@clisp.org>
8678
8679         file-type: Move AC_LIBOBJ invocations to module description.
8680         * m4/file-type.m4: Remove file.
8681         * modules/file-type (Files): Remove it.
8682         (configure.ac): Remove gl_FILE_TYPE call.
8683         (Makefile.am): Augment lib_SOURCES.
8684
8685 2011-05-23  Bruno Haible  <bruno@clisp.org>
8686
8687         filenamecat*: Respect rules for use of AC_LIBOBJ.
8688         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8689         Remove AC_LIBOBJ invocation.
8690         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8691         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8692
8693 2011-05-23  Bruno Haible  <bruno@clisp.org>
8694
8695         filemode: Move AC_LIBOBJ invocations to module description.
8696         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8697         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8698
8699 2011-05-23  Bruno Haible  <bruno@clisp.org>
8700
8701         openat-safer: Move AC_LIBOBJ invocations to module description.
8702         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8703         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8704
8705 2011-05-23  Bruno Haible  <bruno@clisp.org>
8706
8707         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8708         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8709         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8710
8711 2011-05-23  Bruno Haible  <bruno@clisp.org>
8712
8713         exclude: Move AC_LIBOBJ invocations to module description.
8714         * m4/exclude.m4: Remove file.
8715         * modules/exclude (Files): Remove it.
8716         (configure.ac): Remove gl_EXCLUDE call.
8717         (Makefile.am): Augment lib_SOURCES.
8718
8719 2011-05-23  Bruno Haible  <bruno@clisp.org>
8720
8721         dirname*: Respect rules for use of AC_LIBOBJ.
8722         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8723         invocations.
8724         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8725         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8726
8727 2011-05-23  Bruno Haible  <bruno@clisp.org>
8728
8729         dirent-safer: Move AC_LIBOBJ invocations to module description.
8730         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8731         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8732
8733 2011-05-23  Bruno Haible  <bruno@clisp.org>
8734
8735         crypto/des: Move AC_LIBOBJ invocations to module description.
8736         * m4/des.m4: Remove file.
8737         * modules/crypto/des (Files): Remove it.
8738         (configure.ac): Remove gl_DES call.
8739         (Makefile.am): Augment lib_SOURCES.
8740
8741 2011-05-23  Bruno Haible  <bruno@clisp.org>
8742
8743         cycle-check: Move AC_LIBOBJ invocations to module description.
8744         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8745         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8746
8747 2011-05-23  Bruno Haible  <bruno@clisp.org>
8748
8749         c-strtold: Move AC_LIBOBJ invocations to module description.
8750         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8751         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8752
8753 2011-05-23  Bruno Haible  <bruno@clisp.org>
8754
8755         c-strtod: Move AC_LIBOBJ invocations to module description.
8756         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8757         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8758
8759 2011-05-23  Bruno Haible  <bruno@clisp.org>
8760
8761         crc: Move AC_LIBOBJ invocations to module description.
8762         * m4/crc.m4: Remove file.
8763         * modules/crc (Files): Remove it.
8764         (configure.ac): Remove gl_CRC call.
8765         (Makefile.am): Augment lib_SOURCES.
8766
8767 2011-05-23  Bruno Haible  <bruno@clisp.org>
8768
8769         close-stream: Move AC_LIBOBJ invocations to module description.
8770         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8771         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8772
8773 2011-05-23  Bruno Haible  <bruno@clisp.org>
8774
8775         closeout: Move AC_LIBOBJ invocations to module description.
8776         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8777         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8778
8779 2011-05-23  Bruno Haible  <bruno@clisp.org>
8780
8781         closein: Move AC_LIBOBJ invocations to module description.
8782         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8783         * modules/closein (Makefile.am): Augment lib_SOURCES.
8784
8785 2011-05-23  Bruno Haible  <bruno@clisp.org>
8786
8787         cloexec: Move AC_LIBOBJ invocations to module description.
8788         * m4/cloexec.m4: Remove file.
8789         * modules/cloexec (Files): Remove it.
8790         (configure.ac): Remove gl_CLOEXEC call.
8791         (Makefile.am): Augment lib_SOURCES.
8792
8793 2011-05-23  Bruno Haible  <bruno@clisp.org>
8794
8795         check-version: Move AC_LIBOBJ invocations to module description.
8796         * m4/check-version.m4: Remove file.
8797         * modules/check-version (Files): Remove it.
8798         (configure.ac): Remove gl_CHECK_VERSION call.
8799         (Makefile.am): Augment lib_SOURCES.
8800
8801 2011-05-23  Bruno Haible  <bruno@clisp.org>
8802
8803         chdir-safer: Move AC_LIBOBJ invocations to module description.
8804         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8805         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8806
8807 2011-05-23  Bruno Haible  <bruno@clisp.org>
8808
8809         canonicalize: Move AC_LIBOBJ invocations to module description.
8810         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8811         AC_LIBOBJ invocation.
8812         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8813
8814 2011-05-23  Bruno Haible  <bruno@clisp.org>
8815
8816         canon-host: Move AC_LIBOBJ invocations to module description.
8817         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8818         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8819         instead of gl_CANON_HOST.
8820         (Makefile.am): Augment lib_SOURCES.
8821
8822 2011-05-23  Bruno Haible  <bruno@clisp.org>
8823
8824         backupfile: Move AC_LIBOBJ invocations to module description.
8825         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8826         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8827
8828 2011-05-23  Bruno Haible  <bruno@clisp.org>
8829
8830         argmatch: Move AC_LIBOBJ invocations to module description.
8831         * m4/argmatch.m4: Remove file.
8832         * modules/argmatch (Files): Remove it.
8833         (configure.ac): Remove gl_ARGMATCH call.
8834         (Makefile.am): Augment lib_SOURCES.
8835
8836 2011-05-23  Bruno Haible  <bruno@clisp.org>
8837
8838         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8839         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8840         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8841
8842 2011-05-23  Bruno Haible  <bruno@clisp.org>
8843
8844         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8845         * m4/arcfour.m4: Remove file.
8846         * modules/crypto/arcfour (Files): Remove it.
8847         (configure.ac): Remove gl_ARCFOUR call.
8848         (Makefile.am): Augment lib_SOURCES.
8849
8850 2011-05-22  Bruno Haible  <bruno@clisp.org>
8851
8852         write: Move AC_LIBOBJ invocations to module description.
8853         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8854         * modules/write (configure.ac): ... to here.
8855
8856 2011-05-22  Bruno Haible  <bruno@clisp.org>
8857
8858         wmemset: Move AC_LIBOBJ invocations to module description.
8859         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8860         here...
8861         * modules/wmemset (configure.ac): ... to here.
8862
8863 2011-05-22  Bruno Haible  <bruno@clisp.org>
8864
8865         wmemmove: Move AC_LIBOBJ invocations to module description.
8866         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8867         here...
8868         * modules/wmemmove (configure.ac): ... to here.
8869
8870 2011-05-22  Bruno Haible  <bruno@clisp.org>
8871
8872         wmemcpy: Move AC_LIBOBJ invocations to module description.
8873         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8874         here...
8875         * modules/wmemcpy (configure.ac): ... to here.
8876
8877 2011-05-22  Bruno Haible  <bruno@clisp.org>
8878
8879         wmemcmp: Move AC_LIBOBJ invocations to module description.
8880         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8881         here...
8882         * modules/wmemcmp (configure.ac): ... to here.
8883
8884 2011-05-22  Bruno Haible  <bruno@clisp.org>
8885
8886         wmemchr: Move AC_LIBOBJ invocations to module description.
8887         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8888         here...
8889         * modules/wmemchr (configure.ac): ... to here.
8890
8891 2011-05-22  Bruno Haible  <bruno@clisp.org>
8892
8893         wcswidth: Move AC_LIBOBJ invocations to module description.
8894         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8895         here...
8896         * modules/wcswidth (configure.ac): ... to here.
8897
8898 2011-05-22  Bruno Haible  <bruno@clisp.org>
8899
8900         wcwidth: Respect rules for use of AC_LIBOBJ.
8901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8902         invocation from here...
8903         * modules/wcwidth (configure.ac): ... to here.
8904         (Depends-on): Update conditions.
8905
8906 2011-05-22  Bruno Haible  <bruno@clisp.org>
8907
8908         wctype: Move AC_LIBOBJ invocations to module description.
8909         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8910         invocation from here...
8911         * modules/wctype (configure.ac): ... to here.
8912         (Depends-on): Update conditions.
8913
8914 2011-05-22  Bruno Haible  <bruno@clisp.org>
8915
8916         wctrans: Move AC_LIBOBJ invocations to module description.
8917         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8918         invocation from here...
8919         * modules/wctrans (configure.ac): ... to here.
8920
8921 2011-05-22  Bruno Haible  <bruno@clisp.org>
8922
8923         wctomb: Move AC_LIBOBJ invocations to module description.
8924         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8925         invocations from here...
8926         * modules/wctomb (configure.ac): ... to here.
8927
8928 2011-05-22  Bruno Haible  <bruno@clisp.org>
8929
8930         wctob: Move AC_LIBOBJ invocations to module description.
8931         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8932         gl_PREREQ_WCTOB invocations from here...
8933         * modules/wctob (configure.ac): ... to here.
8934         (Depends-on): Update conditions.
8935
8936 2011-05-22  Bruno Haible  <bruno@clisp.org>
8937
8938         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8939         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8940         here...
8941         * modules/wcsxfrm (configure.ac): ... to here.
8942
8943 2011-05-22  Bruno Haible  <bruno@clisp.org>
8944
8945         wcstok: Move AC_LIBOBJ invocations to module description.
8946         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8947         * modules/wcstok (configure.ac): ... to here.
8948
8949 2011-05-22  Bruno Haible  <bruno@clisp.org>
8950
8951         wcsstr: Move AC_LIBOBJ invocations to module description.
8952         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8953         * modules/wcsstr (configure.ac): ... to here.
8954
8955 2011-05-22  Bruno Haible  <bruno@clisp.org>
8956
8957         wcsspn: Move AC_LIBOBJ invocations to module description.
8958         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8959         * modules/wcsspn (configure.ac): ... to here.
8960
8961 2011-05-22  Bruno Haible  <bruno@clisp.org>
8962
8963         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8964         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8965         gl_PREREQ_WCSRTOMBS invocations from here...
8966         * modules/wcsrtombs (configure.ac): ... to here.
8967
8968 2011-05-22  Bruno Haible  <bruno@clisp.org>
8969
8970         wcsrchr: Move AC_LIBOBJ invocations to module description.
8971         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8972         here...
8973         * modules/wcsrchr (configure.ac): ... to here.
8974
8975 2011-05-22  Bruno Haible  <bruno@clisp.org>
8976
8977         wcspbrk: Move AC_LIBOBJ invocations to module description.
8978         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8979         here...
8980         * modules/wcspbrk (configure.ac): ... to here.
8981
8982 2011-05-22  Bruno Haible  <bruno@clisp.org>
8983
8984         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8985         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8986         gl_PREREQ_WCSNRTOMBS invocations from here...
8987         * modules/wcsnrtombs (configure.ac): ... to here.
8988
8989 2011-05-22  Bruno Haible  <bruno@clisp.org>
8990
8991         wcsnlen: Move AC_LIBOBJ invocations to module description.
8992         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8993         here...
8994         * modules/wcsnlen (configure.ac): ... to here.
8995
8996 2011-05-22  Bruno Haible  <bruno@clisp.org>
8997
8998         wcsncpy: Move AC_LIBOBJ invocations to module description.
8999         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
9000         here...
9001         * modules/wcsncpy (configure.ac): ... to here.
9002
9003 2011-05-22  Bruno Haible  <bruno@clisp.org>
9004
9005         wcsncmp: Move AC_LIBOBJ invocations to module description.
9006         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
9007         here...
9008         * modules/wcsncmp (configure.ac): ... to here.
9009
9010 2011-05-22  Bruno Haible  <bruno@clisp.org>
9011
9012         wcsncat: Move AC_LIBOBJ invocations to module description.
9013         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
9014         here...
9015         * modules/wcsncat (configure.ac): ... to here.
9016
9017 2011-05-22  Bruno Haible  <bruno@clisp.org>
9018
9019         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
9020         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
9021         from here...
9022         * modules/wcsncasecmp (configure.ac): ... to here.
9023
9024 2011-05-22  Bruno Haible  <bruno@clisp.org>
9025
9026         wcslen: Move AC_LIBOBJ invocations to module description.
9027         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
9028         * modules/wcslen (configure.ac): ... to here.
9029
9030 2011-05-22  Bruno Haible  <bruno@clisp.org>
9031
9032         wcsdup: Move AC_LIBOBJ invocations to module description.
9033         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
9034         * modules/wcsdup (configure.ac): ... to here.
9035
9036 2011-05-22  Bruno Haible  <bruno@clisp.org>
9037
9038         wcscspn: Move AC_LIBOBJ invocations to module description.
9039         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9040         here...
9041         * modules/wcscspn (configure.ac): ... to here.
9042
9043 2011-05-22  Bruno Haible  <bruno@clisp.org>
9044
9045         wcscpy: Move AC_LIBOBJ invocations to module description.
9046         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9047         * modules/wcscpy (configure.ac): ... to here.
9048
9049 2011-05-22  Bruno Haible  <bruno@clisp.org>
9050
9051         wcscoll: Move AC_LIBOBJ invocations to module description.
9052         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9053         here...
9054         * modules/wcscoll (configure.ac): ... to here.
9055
9056 2011-05-22  Bruno Haible  <bruno@clisp.org>
9057
9058         wcscmp: Move AC_LIBOBJ invocations to module description.
9059         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
9060         * modules/wcscmp (configure.ac): ... to here.
9061
9062 2011-05-22  Bruno Haible  <bruno@clisp.org>
9063
9064         wcschr: Move AC_LIBOBJ invocations to module description.
9065         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9066         * modules/wcschr (configure.ac): ... to here.
9067
9068 2011-05-22  Bruno Haible  <bruno@clisp.org>
9069
9070         wcscat: Move AC_LIBOBJ invocations to module description.
9071         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9072         * modules/wcscat (configure.ac): ... to here.
9073
9074 2011-05-22  Bruno Haible  <bruno@clisp.org>
9075
9076         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9077         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9078         here...
9079         * modules/wcscasecmp (configure.ac): ... to here.
9080
9081 2011-05-22  Bruno Haible  <bruno@clisp.org>
9082
9083         wcrtomb: Move AC_LIBOBJ invocations to module description.
9084         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9085         invocations from here...
9086         * modules/wcrtomb (configure.ac): ... to here.
9087
9088 2011-05-22  Bruno Haible  <bruno@clisp.org>
9089
9090         wcpncpy: Move AC_LIBOBJ invocations to module description.
9091         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9092         here...
9093         * modules/wcpncpy (configure.ac): ... to here.
9094
9095 2011-05-22  Bruno Haible  <bruno@clisp.org>
9096
9097         wcpcpy: Move AC_LIBOBJ invocations to module description.
9098         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9099         * modules/wcpcpy (configure.ac): ... to here.
9100
9101 2011-05-22  Bruno Haible  <bruno@clisp.org>
9102
9103         waitpid: Move AC_LIBOBJ invocations to module description.
9104         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9105         invocation from here...
9106         * modules/waitpid (configure.ac): ... to here.
9107
9108 2011-05-22  Bruno Haible  <bruno@clisp.org>
9109
9110         utimensat: Move AC_LIBOBJ invocations to module description.
9111         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9112         here...
9113         * modules/utimensat (configure.ac): ... to here.
9114
9115 2011-05-22  Bruno Haible  <bruno@clisp.org>
9116
9117         usleep: Move AC_LIBOBJ invocations to module description.
9118         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9119         here...
9120         * modules/usleep (configure.ac): ... to here.
9121
9122 2011-05-22  Bruno Haible  <bruno@clisp.org>
9123
9124         unlockpt: Move AC_LIBOBJ invocations to module description.
9125         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9126         gl_PREREQ_UNLOCKPT invocations from here...
9127         * modules/unlockpt (configure.ac): ... to here.
9128
9129 2011-05-22  Bruno Haible  <bruno@clisp.org>
9130
9131         unlink: Respect rules for use of AC_LIBOBJ.
9132         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9133         * modules/unlink (configure.ac): ... to here.
9134
9135 2011-05-22  Bruno Haible  <bruno@clisp.org>
9136
9137         uname: Move AC_LIBOBJ invocations to module description.
9138         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9139         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9140         here...
9141         * modules/uname (configure.ac): ... to here.
9142
9143 2011-05-22  Bruno Haible  <bruno@clisp.org>
9144
9145         ttyname_r: Move AC_LIBOBJ invocations to module description.
9146         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9147         gl_PREREQ_TTYNAME_R invocations from here...
9148         * modules/ttyname_r (configure.ac): ... to here.
9149
9150 2011-05-22  Bruno Haible  <bruno@clisp.org>
9151
9152         tsearch: Move AC_LIBOBJ invocations to module description.
9153         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9154         invocations from here...
9155         * modules/tsearch (configure.ac): ... to here.
9156
9157 2011-05-22  Bruno Haible  <bruno@clisp.org>
9158
9159         towctrans: Move AC_LIBOBJ invocations to module description.
9160         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9161         AC_LIBOBJ invocation from here...
9162         * modules/towctrans (configure.ac): ... to here.
9163
9164 2011-05-22  Bruno Haible  <bruno@clisp.org>
9165
9166         tmpfile: Move AC_LIBOBJ invocations to module description.
9167         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9168         invocations from here...
9169         * modules/tmpfile (configure.ac): ... to here.
9170
9171 2011-05-22  Bruno Haible  <bruno@clisp.org>
9172
9173         times: Move AC_LIBOBJ invocations to module description.
9174         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9175         * modules/times (configure.ac): ... to here.
9176
9177 2011-05-22  Bruno Haible  <bruno@clisp.org>
9178
9179         time_r: Move AC_LIBOBJ invocations to module description.
9180         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9181         invocations from here...
9182         * modules/time_r (configure.ac): ... to here.
9183
9184 2011-05-22  Bruno Haible  <bruno@clisp.org>
9185
9186         timegm: Move AC_LIBOBJ invocations to module description.
9187         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9188         invocations from here...
9189         * modules/timegm (configure.ac): ... to here.
9190
9191 2011-05-22  Bruno Haible  <bruno@clisp.org>
9192
9193         tcgetsid: Move AC_LIBOBJ invocations to module description.
9194         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9195         and gl_PREREQ_TCGETSID invocations from here...
9196         * modules/tcgetsid (configure.ac): ... to here.
9197         (Depends-on): Update conditions.
9198
9199 2011-05-22  Bruno Haible  <bruno@clisp.org>
9200
9201         symlinkat: Move AC_LIBOBJ invocations to module description.
9202         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9203         here...
9204         * modules/symlinkat (configure.ac): ... to here.
9205
9206 2011-05-22  Bruno Haible  <bruno@clisp.org>
9207
9208         symlink: Move AC_LIBOBJ invocations to module description.
9209         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9210         here...
9211         * modules/symlink (configure.ac): ... to here.
9212
9213 2011-05-22  Bruno Haible  <bruno@clisp.org>
9214
9215         strverscmp: Move AC_LIBOBJ invocations to module description.
9216         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9217         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9218         from here...
9219         * modules/strverscmp (configure.ac): ... to here.
9220
9221 2011-05-22  Bruno Haible  <bruno@clisp.org>
9222
9223         strtok_r: Move AC_LIBOBJ invocations to module description.
9224         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9225         and gl_PREREQ_STRTOK_R invocations from here...
9226         * modules/strtok_r (configure.ac): ... to here.
9227         (Depends-on): Update conditions.
9228
9229 2011-05-22  Bruno Haible  <bruno@clisp.org>
9230
9231         strtoumax: Move AC_LIBOBJ invocations to module description.
9232         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9233         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9234         from here...
9235         * modules/strtoumax (configure.ac): ... to here.
9236
9237 2011-05-22  Bruno Haible  <bruno@clisp.org>
9238
9239         strtoimax: Move AC_LIBOBJ invocations to module description.
9240         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9241         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9242         from here...
9243         * modules/strtoimax (configure.ac): ... to here.
9244
9245 2011-05-22  Bruno Haible  <bruno@clisp.org>
9246
9247         strtoull: Move AC_LIBOBJ invocations to module description.
9248         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9249         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9250         from here...
9251         * modules/strtoull (configure.ac): ... to here.
9252
9253 2011-05-22  Bruno Haible  <bruno@clisp.org>
9254
9255         strtoll: Move AC_LIBOBJ invocations to module description.
9256         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9258         here...
9259         * modules/strtoll (configure.ac): ... to here.
9260
9261 2011-05-22  Bruno Haible  <bruno@clisp.org>
9262
9263         strtoul: Move AC_LIBOBJ invocations to module description.
9264         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9265         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9266         * modules/strtoul (configure.ac): ... to here.
9267
9268 2011-05-22  Bruno Haible  <bruno@clisp.org>
9269
9270         strtol: Move AC_LIBOBJ invocations to module description.
9271         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9272         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9273         * modules/strtol (configure.ac): ... to here.
9274
9275 2011-05-22  Bruno Haible  <bruno@clisp.org>
9276
9277         strtod: Move AC_LIBOBJ invocations to module description.
9278         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9279         invocations from here...
9280         * modules/strtod (configure.ac): ... to here.
9281
9282 2011-05-22  Bruno Haible  <bruno@clisp.org>
9283
9284         strstr*: Move AC_LIBOBJ invocations to module description.
9285         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9286         invocations from here...
9287         * modules/strstr-simple (configure.ac): ... to here.
9288         * modules/strstr (configure.ac): ... and here.
9289
9290 2011-05-22  Bruno Haible  <bruno@clisp.org>
9291
9292         strsignal: Move AC_LIBOBJ invocations to module description.
9293         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9294         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9295         * modules/strsignal (configure.ac): ... to here.
9296         (Depends-on): Update conditions.
9297
9298 2011-05-22  Bruno Haible  <bruno@clisp.org>
9299
9300         strsep: Move AC_LIBOBJ invocations to module description.
9301         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9302         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9303         here...
9304         * modules/strsep (configure.ac): ... to here.
9305
9306 2011-05-22  Bruno Haible  <bruno@clisp.org>
9307
9308         strptime: Move AC_LIBOBJ invocations to module description.
9309         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9310         gl_PREREQ_STRPTIME invocations from here...
9311         * modules/strptime (configure.ac): ... to here.
9312
9313 2011-05-22  Bruno Haible  <bruno@clisp.org>
9314
9315         strpbrk: Move AC_LIBOBJ invocations to module description.
9316         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9317         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9318         here...
9319         * modules/strpbrk (configure.ac): ... to here.
9320
9321 2011-05-22  Bruno Haible  <bruno@clisp.org>
9322
9323         strnlen: Move AC_LIBOBJ invocations to module description.
9324         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9325         invocations from here...
9326         * modules/strnlen (configure.ac): ... to here.
9327
9328 2011-05-22  Bruno Haible  <bruno@clisp.org>
9329
9330         strndup: Move AC_LIBOBJ invocations to module description.
9331         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9332         invocations from here...
9333         * modules/strndup (configure.ac): ... to here.
9334         (Depends-on): Update conditions.
9335
9336 2011-05-22  Bruno Haible  <bruno@clisp.org>
9337
9338         strncat: Move AC_LIBOBJ invocations to module description.
9339         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9340         invocations from here...
9341         * modules/strncat (configure.ac): ... to here.
9342
9343 2011-05-22  Bruno Haible  <bruno@clisp.org>
9344
9345         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9346         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9347         invocations from here...
9348         * modules/strdup (configure.ac): ... to here.
9349         * modules/strdup-posix (configure.ac): ... and here.
9350
9351 2011-05-22  Bruno Haible  <bruno@clisp.org>
9352
9353         strcspn: Move AC_LIBOBJ invocations to module description.
9354         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9355         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9356         here...
9357         * modules/strcspn (configure.ac): ... to here.
9358
9359 2011-05-22  Bruno Haible  <bruno@clisp.org>
9360
9361         strchrnul: Move AC_LIBOBJ invocations to module description.
9362         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9363         gl_PREREQ_STRCHRNUL invocations from here...
9364         * modules/strchrnul (configure.ac): ... to here.
9365
9366 2011-05-22  Bruno Haible  <bruno@clisp.org>
9367
9368         strcasestr*: Move AC_LIBOBJ invocations to module description.
9369         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9370         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9371         * modules/strcasestr-simple (configure.ac): ... to here.
9372         * modules/strcasestr (configure.ac): ... and here.
9373
9374 2011-05-22  Bruno Haible  <bruno@clisp.org>
9375
9376         strcase: Move AC_LIBOBJ invocations to module description.
9377         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9378         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9379         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9380         gl_PREREQ_STRNCASECMP invocations from here...
9381         * modules/strcase (configure.ac): ... to here.
9382
9383 2011-05-22  Bruno Haible  <bruno@clisp.org>
9384
9385         stpncpy: Move AC_LIBOBJ invocations to module description.
9386         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9387         here...
9388         * modules/stpncpy (configure.ac): ... to here.
9389
9390 2011-05-22  Bruno Haible  <bruno@clisp.org>
9391
9392         stpcpy: Move AC_LIBOBJ invocations to module description.
9393         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9394         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9395         here...
9396         * modules/stpcpy (configure.ac): ... to here.
9397
9398 2011-05-21  Bruno Haible  <bruno@clisp.org>
9399
9400         stat: Move AC_LIBOBJ invocations to module description.
9401         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9402         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9403         here...
9404         * modules/stat (configure.ac): ... to here.
9405
9406 2011-05-21  Bruno Haible  <bruno@clisp.org>
9407
9408         sleep: Move AC_LIBOBJ invocations to module description.
9409         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9410         * modules/sleep (configure.ac): ... to here.
9411
9412 2011-05-21  Bruno Haible  <bruno@clisp.org>
9413
9414         signbit: Move AC_LIBOBJ invocations to module description.
9415         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9416         * modules/signbit (configure.ac): ... to here.
9417
9418 2011-05-21  Bruno Haible  <bruno@clisp.org>
9419
9420         sigprocmask: Move AC_LIBOBJ invocations to module description.
9421         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9422         gl_PREREQ_SIGPROMASK invocations from here...
9423         * modules/sigprocmask (configure.ac): ... to here.
9424
9425 2011-05-21  Bruno Haible  <bruno@clisp.org>
9426
9427         sigaction: Move AC_LIBOBJ invocations to module description.
9428         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9429         gl_PREREQ_SIGACTION invocations from here...
9430         * modules/sigaction (configure.ac): ... to here.
9431
9432 2011-05-21  Bruno Haible  <bruno@clisp.org>
9433
9434         sig2str: Move AC_LIBOBJ invocations to module description.
9435         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9436         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9437         here...
9438         * modules/sig2str (configure.ac): ... to here.
9439
9440 2011-05-21  Bruno Haible  <bruno@clisp.org>
9441
9442         setlocale: Move AC_LIBOBJ invocations to module description.
9443         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9444         gl_PREREQ_SETLOCALE invocations from here...
9445         * modules/setlocale (configure.ac): ... to here.
9446
9447 2011-05-21  Bruno Haible  <bruno@clisp.org>
9448
9449         unsetenv: Move AC_LIBOBJ invocations to module description.
9450         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9451         and gl_PREREQ_UNSETENV invocations from here...
9452         * modules/unsetenv (configure.ac): ... to here.
9453         (Depends-on): Update.
9454
9455 2011-05-21  Bruno Haible  <bruno@clisp.org>
9456
9457         setenv: Move AC_LIBOBJ invocations to module description.
9458         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9459         here...
9460         * modules/setenv (configure.ac): ... to here.
9461
9462 2011-05-21  Bruno Haible  <bruno@clisp.org>
9463
9464         selinux-h: Move AC_LIBOBJ invocations to module description.
9465         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9466         AC_LIBOBJ invocation from here...
9467         * modules/selinux-h (configure.ac): ... to here.
9468
9469 2011-05-21  Bruno Haible  <bruno@clisp.org>
9470
9471         select: Respect rules for use of AC_LIBOBJ.
9472         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9473         here...
9474         * modules/select (configure.ac): ... to here.
9475
9476 2011-05-21  Bruno Haible  <bruno@clisp.org>
9477
9478         scandir: Move AC_LIBOBJ invocations to module description.
9479         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9480         invocations from here...
9481         * modules/scandir (configure.ac): ... to here.
9482
9483 2011-05-21  Bruno Haible  <bruno@clisp.org>
9484
9485         rpmatch: Move AC_LIBOBJ invocations to module description.
9486         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9487         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9488         here...
9489         * modules/rpmatch (configure.ac): ... to here.
9490
9491 2011-05-21  Bruno Haible  <bruno@clisp.org>
9492
9493         rmdir: Respect rules for use of AC_LIBOBJ.
9494         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9495         * modules/rmdir (configure.ac): ... to here.
9496
9497 2011-05-21  Bruno Haible  <bruno@clisp.org>
9498
9499         renameat: Move AC_LIBOBJ invocations to module description.
9500         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9501         here...
9502         * modules/renameat (configure.ac): ... to here.
9503
9504 2011-05-21  Bruno Haible  <bruno@clisp.org>
9505
9506         rename: Respect rules for use of AC_LIBOBJ.
9507         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9508         here...
9509         * modules/rename (configure.ac): ... to here.
9510
9511 2011-05-21  Bruno Haible  <bruno@clisp.org>
9512
9513         remove: Move AC_LIBOBJ invocations to module description.
9514         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9515         here...
9516         * modules/remove (configure.ac): ... to here.
9517
9518 2011-05-21  Bruno Haible  <bruno@clisp.org>
9519
9520         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9521         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9522         macro.
9523         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9524         * modules/relocatable-lib (configure.ac): ... to here.
9525         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9526         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9527
9528 2011-05-21  Bruno Haible  <bruno@clisp.org>
9529
9530         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9531         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9532         here...
9533         * modules/relocatable-prog (configure.ac): ... to here.
9534
9535 2011-05-21  Bruno Haible  <bruno@clisp.org>
9536
9537         regex: Move AC_LIBOBJ invocations to module description.
9538         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9539         invocations from here...
9540         * modules/regex (configure.ac): ... to here.
9541
9542 2011-05-21  Bruno Haible  <bruno@clisp.org>
9543
9544         realloc-*: Move AC_LIBOBJ invocations to module description.
9545         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9546         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9547         AC_LIBOBJ invocations from here...
9548         * modules/realloc-gnu (configure.ac): ... to here.
9549         * modules/realloc-posix (configure.ac): ... and here.
9550
9551 2011-05-21  Bruno Haible  <bruno@clisp.org>
9552
9553         readutmp: Move AC_LIBOBJ invocations to module description.
9554         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9555         * modules/readutmp (configure.ac): ... to here.
9556
9557 2011-05-21  Bruno Haible  <bruno@clisp.org>
9558
9559         readlinkat: Move AC_LIBOBJ invocations to module description.
9560         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9561         here...
9562         * modules/readlinkat (configure.ac): ... to here.
9563
9564 2011-05-21  Bruno Haible  <bruno@clisp.org>
9565
9566         readlink: Move AC_LIBOBJ invocations to module description.
9567         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9568         gl_PREREQ_READLINK invocations from here...
9569         * modules/readlink (configure.ac): ... to here.
9570
9571 2011-05-21  Bruno Haible  <bruno@clisp.org>
9572
9573         readline: Move AC_LIBOBJ invocations to module description.
9574         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9575         gl_PREREQ_READLINE invocations from here...
9576         * modules/readline (configure.ac): ... to here.
9577
9578 2011-05-21  Bruno Haible  <bruno@clisp.org>
9579
9580         read: Move AC_LIBOBJ invocations to module description.
9581         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9582         * modules/read (configure.ac): ... to here.
9583
9584 2011-05-21  Bruno Haible  <bruno@clisp.org>
9585
9586         rawmemchr: Move AC_LIBOBJ invocations to module description.
9587         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9588         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9589         from here...
9590         * modules/rawmemchr (configure.ac): ... to here.
9591
9592 2011-05-21  Bruno Haible  <bruno@clisp.org>
9593
9594         random_r: Move AC_LIBOBJ invocations to module description.
9595         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9596         gl_PREREQ_RANDOM_R invocations from here...
9597         * modules/random_r (configure.ac): ... to here.
9598
9599 2011-05-21  Bruno Haible  <bruno@clisp.org>
9600
9601         pwrite: Move AC_LIBOBJ invocations to module description.
9602         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9603         * modules/pwrite (configure.ac): ... to here.
9604
9605 2011-05-21  Bruno Haible  <bruno@clisp.org>
9606
9607         putenv: Move AC_LIBOBJ invocations to module description.
9608         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9609         * modules/putenv (configure.ac): ... to here.
9610
9611 2011-05-21  Bruno Haible  <bruno@clisp.org>
9612
9613         login_tty: Move AC_LIBOBJ invocations to module description.
9614         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9615         * modules/login_tty (configure.ac): ... to here.
9616
9617 2011-05-21  Bruno Haible  <bruno@clisp.org>
9618
9619         openpty: Move AC_LIBOBJ invocations to module description.
9620         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9621         * modules/openpty (configure.ac): ... to here.
9622
9623 2011-05-21  Bruno Haible  <bruno@clisp.org>
9624
9625         forkpty: Move AC_LIBOBJ invocations to module description.
9626         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9627         * modules/forkpty (configure.ac): ... to here.
9628
9629 2011-05-21  Bruno Haible  <bruno@clisp.org>
9630
9631         ptsname: Move AC_LIBOBJ invocations to module description.
9632         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9633         invocations from here...
9634         * modules/ptsname (configure.ac): ... to here.
9635
9636 2011-05-21  Bruno Haible  <bruno@clisp.org>
9637
9638         pread: Move AC_LIBOBJ invocations to module description.
9639         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9640         * modules/pread (configure.ac): ... to here.
9641
9642 2011-05-21  Bruno Haible  <bruno@clisp.org>
9643
9644         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9645         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9646         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9647         * modules/posix_spawn (configure.ac): ... to here.
9648         * modules/posix_spawnp (configure.ac): ... and here.
9649
9650 2011-05-21  Bruno Haible  <bruno@clisp.org>
9651
9652         popen: Move AC_LIBOBJ invocations to module description.
9653         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9654         invocations from here...
9655         * modules/popen (configure.ac): ... to here.
9656
9657 2011-05-21  Bruno Haible  <bruno@clisp.org>
9658
9659         poll: Move AC_LIBOBJ invocations to module description.
9660         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9661         invocations from here...
9662         * modules/poll (configure.ac): ... to here.
9663
9664 2011-05-21  Bruno Haible  <bruno@clisp.org>
9665
9666         pipe-posix: Move AC_LIBOBJ invocations to module description.
9667         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9668         * modules/pipe-posix (configure.ac): ... to here.
9669
9670 2011-05-21  Bruno Haible  <bruno@clisp.org>
9671
9672         openat: Respect rules for use of AC_LIBOBJ.
9673         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9674         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9675         * modules/openat (configure.ac): ... to here.
9676
9677 2011-05-21  Bruno Haible  <bruno@clisp.org>
9678
9679         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9680         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9681         invocation from here...
9682         * modules/obstack-printf (configure.ac): ... to here.
9683         * modules/obstack-printf-posix (configure.ac): ... and here.
9684
9685 2011-05-21  Bruno Haible  <bruno@clisp.org>
9686
9687         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9688         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9689         from here...
9690         * modules/nl_langinfo (configure.ac): ... to here.
9691
9692 2011-05-21  Bruno Haible  <bruno@clisp.org>
9693
9694         nanosleep: Move AC_LIBOBJ invocations to module description.
9695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9696         gl_PREREQ_NANOSLEEP invocations from here...
9697         * modules/nanosleep (configure.ac): ... to here.
9698
9699 2011-05-21  Bruno Haible  <bruno@clisp.org>
9700
9701         mountlist: Move AC_LIBOBJ invocations to module description.
9702         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9703         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9704         * modules/mountlist (configure.ac): ... to here.
9705
9706 2011-05-21  Bruno Haible  <bruno@clisp.org>
9707
9708         mktime: Respect rules for use of AC_LIBOBJ.
9709         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9710         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9711         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9712         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9713         * modules/mktime (configure.ac): ... to here.
9714         * modules/mktime-internal (configure.ac): ... and here.
9715         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9716
9717 2011-05-21  Bruno Haible  <bruno@clisp.org>
9718
9719         mkstemps: Move AC_LIBOBJ invocations to module description.
9720         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9721         here...
9722         * modules/mkstemps (configure.ac): ... to here.
9723
9724 2011-05-21  Bruno Haible  <bruno@clisp.org>
9725
9726         mkstemp: Move AC_LIBOBJ invocations to module description.
9727         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9728         gl_PREREQ_MKSTEMP invocations from here...
9729         * modules/mkstemp (configure.ac): ... to here.
9730
9731 2011-05-21  Bruno Haible  <bruno@clisp.org>
9732
9733         mkostemps: Move AC_LIBOBJ invocations to module description.
9734         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9735         here...
9736         * modules/mkostemps (configure.ac): ... to here.
9737
9738 2011-05-21  Bruno Haible  <bruno@clisp.org>
9739
9740         mkostemp: Move AC_LIBOBJ invocations to module description.
9741         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9742         gl_PREREQ_MKOSTEMP invocations from here...
9743         * modules/mkostemp (configure.ac): ... to here.
9744
9745 2011-05-21  Bruno Haible  <bruno@clisp.org>
9746
9747         mknod: Move AC_LIBOBJ invocations to module description.
9748         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9749         * modules/mknod (configure.ac): ... to here.
9750
9751 2011-05-21  Bruno Haible  <bruno@clisp.org>
9752
9753         mkfifoat: Move AC_LIBOBJ invocations to module description.
9754         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9755         here...
9756         * modules/mkfifoat (configure.ac): ... to here.
9757
9758 2011-05-21  Bruno Haible  <bruno@clisp.org>
9759
9760         mkfifo: Respect rules for use of AC_LIBOBJ.
9761         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9762         here...
9763         * modules/mkfifo (configure.ac): ... to here.
9764
9765 2011-05-21  Bruno Haible  <bruno@clisp.org>
9766
9767         mkdtemp: Move AC_LIBOBJ invocations to module description.
9768         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9769         invocations from here...
9770         * modules/mkdtemp (configure.ac): ... to here.
9771
9772 2011-05-21  Bruno Haible  <bruno@clisp.org>
9773
9774         mkdir: Move AC_LIBOBJ invocations to module description.
9775         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9776         * modules/mkdir (configure.ac): ... to here.
9777
9778 2011-05-21  Bruno Haible  <bruno@clisp.org>
9779
9780         memset: Move AC_LIBOBJ invocations to module description.
9781         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9782         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9783         here...
9784         * modules/memset (configure.ac): ... to here.
9785
9786 2011-05-21  Bruno Haible  <bruno@clisp.org>
9787
9788         memrchr: Move AC_LIBOBJ invocations to module description.
9789         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9790         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9791         here...
9792         * modules/memrchr (configure.ac): ... to here.
9793
9794 2011-05-21  Bruno Haible  <bruno@clisp.org>
9795
9796         mempcpy: Move AC_LIBOBJ invocations to module description.
9797         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9798         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9799         here...
9800         * modules/mempcpy (configure.ac): ... to here.
9801
9802 2011-05-21  Bruno Haible  <bruno@clisp.org>
9803
9804         memmove: Move AC_LIBOBJ invocations to module description.
9805         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9806         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9807         here...
9808         * modules/memmove (configure.ac): ... to here.
9809
9810 2011-05-21  Bruno Haible  <bruno@clisp.org>
9811
9812         memmem*: Move AC_LIBOBJ invocations to module description.
9813         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9814         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9815         here...
9816         (gl_FUNC_MEMMEM): ... and here...
9817         * modules/memmem-simple (configure.ac): ... to here.
9818         * modules/memmem (configure.ac): ... and here.
9819
9820 2011-05-21  Bruno Haible  <bruno@clisp.org>
9821
9822         memcpy: Move AC_LIBOBJ invocations to module description.
9823         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9824         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9825         here...
9826         * modules/memcpy (configure.ac): ... to here.
9827
9828 2011-05-21  Bruno Haible  <bruno@clisp.org>
9829
9830         memcmp: Simplify autoconf macro.
9831         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9832         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9833         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9834
9835 2011-05-21  Bruno Haible  <bruno@clisp.org>
9836
9837         memcmp: Move AC_LIBOBJ invocations to module description.
9838         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9839         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9840         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9841         * modules/memcmp (configure.ac): ... to here.
9842         (Depends-on): Update conditions.
9843
9844 2011-05-21  Bruno Haible  <bruno@clisp.org>
9845
9846         memchr: Respect rules for use of AC_LIBOBJ.
9847         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9848         invocations from here...
9849         * modules/memchr (configure.ac): ... to here.
9850
9851 2011-05-21  Bruno Haible  <bruno@clisp.org>
9852
9853         mbtowc: Move AC_LIBOBJ invocations to module description.
9854         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9855         invocations from here...
9856         * modules/mbtowc (configure.ac): ... to here.
9857
9858 2011-05-21  Bruno Haible  <bruno@clisp.org>
9859
9860         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9861         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9862         gl_PREREQ_MBSRTOWCS invocations from here...
9863         * modules/mbsrtowcs (configure.ac): ... to here.
9864
9865 2011-05-21  Bruno Haible  <bruno@clisp.org>
9866
9867         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9868         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9869         gl_PREREQ_MBSNRTOWCS invocations from here...
9870         * modules/mbsnrtowcs (configure.ac): ... to here.
9871
9872 2011-05-21  Bruno Haible  <bruno@clisp.org>
9873
9874         mbsinit: Move AC_LIBOBJ invocations to module description.
9875         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9876         invocations from here...
9877         * modules/mbsinit (configure.ac): ... to here.
9878
9879 2011-05-21  Bruno Haible  <bruno@clisp.org>
9880
9881         mbrlen: Move AC_LIBOBJ invocations to module description.
9882         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9883         invocations from here...
9884         * modules/mbrlen (configure.ac): ... to here.
9885
9886 2011-05-21  Bruno Haible  <bruno@clisp.org>
9887
9888         mbrtowc: Respect rules for use of AC_LIBOBJ.
9889         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9890         invocations from here...
9891         * modules/mbrtowc (configure.ac): ... to here.
9892
9893 2011-05-21  Bruno Haible  <bruno@clisp.org>
9894
9895         malloc-*: Move AC_LIBOBJ invocations to module description.
9896         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9897         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9898         AC_LIBOBJ invocations from here...
9899         * modules/malloc-gnu (configure.ac): ... to here.
9900         * modules/malloc-posix (configure.ac): ... and here.
9901
9902 2011-05-21  Bruno Haible  <bruno@clisp.org>
9903
9904         lstat, openat: Respect rules for use of AC_LIBOBJ.
9905         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9906         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9907         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9908         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9909         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9910         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9911         here.
9912         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9913
9914 2011-05-21  Bruno Haible  <bruno@clisp.org>
9915
9916         lseek: Move AC_LIBOBJ invocations to module description.
9917         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9918         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9919         * modules/lseek (configure.ac): ... to here.
9920
9921 2011-05-21  Bruno Haible  <bruno@clisp.org>
9922
9923         linkat: Move AC_LIBOBJ invocations to module description.
9924         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9925         here...
9926         * modules/linkat (configure.ac): ... to here.
9927
9928 2011-05-21  Bruno Haible  <bruno@clisp.org>
9929
9930         link: Respect rules for use of AC_LIBOBJ.
9931         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9932         * modules/link (configure.ac): ... to here.
9933
9934 2011-05-21  Bruno Haible  <bruno@clisp.org>
9935
9936         lchown: Move AC_LIBOBJ invocations to module description.
9937         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9938         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9939         * modules/lchown (configure.ac): ... to here.
9940
9941 2011-05-21  Bruno Haible  <bruno@clisp.org>
9942
9943         iswctype: Move AC_LIBOBJ invocations to module description.
9944         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9945         here...
9946         * modules/iswctype (configure.ac): ... to here.
9947
9948 2011-05-21  Bruno Haible  <bruno@clisp.org>
9949
9950         iswblank: Move AC_LIBOBJ invocations to module description.
9951         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9952         here...
9953         * modules/iswblank (configure.ac): ... to here.
9954
9955 2011-05-21  Bruno Haible  <bruno@clisp.org>
9956
9957         atanl: Move AC_LIBOBJ invocations to module description.
9958         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9959         * modules/atanl (configure.ac): ... to here.
9960
9961 2011-05-21  Bruno Haible  <bruno@clisp.org>
9962
9963         acosl: Move AC_LIBOBJ invocations to module description.
9964         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9965         * modules/acosl (configure.ac): ... to here.
9966
9967 2011-05-21  Bruno Haible  <bruno@clisp.org>
9968
9969         asinl: Respect rules for use of AC_LIBOBJ.
9970         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9971         * modules/asinl (configure.ac): ... to here.
9972
9973 2011-05-21  Bruno Haible  <bruno@clisp.org>
9974
9975         tanl: Move AC_LIBOBJ invocations to module description.
9976         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9977         * modules/tanl (configure.ac): ... to here.
9978
9979 2011-05-21  Bruno Haible  <bruno@clisp.org>
9980
9981         cosl: Move AC_LIBOBJ invocations to module description.
9982         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9983         * modules/cosl (configure.ac): ... to here.
9984
9985 2011-05-21  Bruno Haible  <bruno@clisp.org>
9986
9987         sinl: Move AC_LIBOBJ invocations to module description.
9988         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9989         * modules/sinl (configure.ac): ... to here.
9990
9991 2011-05-21  Bruno Haible  <bruno@clisp.org>
9992
9993         logl: Move AC_LIBOBJ invocations to module description.
9994         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9995         * modules/logl (configure.ac): ... to here.
9996
9997 2011-05-21  Bruno Haible  <bruno@clisp.org>
9998
9999         expl: Move AC_LIBOBJ invocations to module description.
10000         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
10001         * modules/expl (configure.ac): ... to here.
10002
10003 2011-05-21  Bruno Haible  <bruno@clisp.org>
10004
10005         roundl: Move AC_LIBOBJ invocations to module description.
10006         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
10007         * modules/roundl (configure.ac): ... to here.
10008
10009 2011-05-21  Bruno Haible  <bruno@clisp.org>
10010
10011         round: Move AC_LIBOBJ invocations to module description.
10012         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
10013         * modules/round (configure.ac): ... to here.
10014
10015 2011-05-21  Bruno Haible  <bruno@clisp.org>
10016
10017         roundf: Move AC_LIBOBJ invocations to module description.
10018         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
10019         * modules/roundf (configure.ac): ... to here.
10020
10021 2011-05-21  Bruno Haible  <bruno@clisp.org>
10022
10023         truncl: Move AC_LIBOBJ invocations to module description.
10024         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
10025         * modules/truncl (configure.ac): ... to here.
10026
10027 2011-05-21  Bruno Haible  <bruno@clisp.org>
10028
10029         trunc: Move AC_LIBOBJ invocations to module description.
10030         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
10031         * modules/trunc (configure.ac): ... to here.
10032
10033 2011-05-21  Bruno Haible  <bruno@clisp.org>
10034
10035         truncf: Move AC_LIBOBJ invocations to module description.
10036         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
10037         * modules/truncf (configure.ac): ... to here.
10038
10039 2011-05-21  Bruno Haible  <bruno@clisp.org>
10040
10041         ceill: Move AC_LIBOBJ invocations to module description.
10042         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10043         * modules/ceill (configure.ac): ... to here.
10044
10045 2011-05-21  Bruno Haible  <bruno@clisp.org>
10046
10047         ceil: Move AC_LIBOBJ invocations to module description.
10048         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10049         * modules/ceil (configure.ac): ... to here.
10050
10051 2011-05-21  Bruno Haible  <bruno@clisp.org>
10052
10053         ceilf: Move AC_LIBOBJ invocations to module description.
10054         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10055         * modules/ceilf (configure.ac): ... to here.
10056
10057 2011-05-21  Bruno Haible  <bruno@clisp.org>
10058
10059         floorl: Respect rules for use of AC_LIBOBJ.
10060         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
10061         * modules/floorl (configure.ac): ... to here.
10062
10063 2011-05-21  Bruno Haible  <bruno@clisp.org>
10064
10065         floor: Respect rules for use of AC_LIBOBJ.
10066         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10067         * modules/floor (configure.ac): ... to here.
10068
10069 2011-05-21  Bruno Haible  <bruno@clisp.org>
10070
10071         floorf: Move AC_LIBOBJ invocations to module description.
10072         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10073         * modules/floorf (configure.ac): ... to here.
10074
10075 2011-05-20  Bruno Haible  <bruno@clisp.org>
10076
10077         sqrtl: Respect rules for use of AC_LIBOBJ.
10078         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10079         * modules/sqrtl (configure.ac): ... to here.
10080
10081 2011-05-20  Bruno Haible  <bruno@clisp.org>
10082
10083         ldexpl: Respect rules for use of AC_LIBOBJ.
10084         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10085         * modules/ldexpl (configure.ac): ... to here.
10086
10087 2011-05-20  Bruno Haible  <bruno@clisp.org>
10088
10089         frexpl*: Respect rules for use of AC_LIBOBJ.
10090         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10091         invocation from here...
10092         * modules/frexpl (configure.ac): ... to here.
10093         * modules/frexpl-nolibm (configure.ac): ... and here.
10094
10095 2011-05-20  Bruno Haible  <bruno@clisp.org>
10096
10097         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10098         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10099         invocation from here...
10100         * modules/frexp (configure.ac): ... to here.
10101         * modules/frexp-nolibm (configure.ac): ... and here.
10102
10103 2011-05-20  Bruno Haible  <bruno@clisp.org>
10104
10105         isnan: Respect rules for use of AC_LIBOBJ.
10106         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10107         invocations here.
10108         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10109         REPLACE_ISNAN.
10110         * modules/isnand (configure.ac): Likewise.
10111         * modules/isnanl (configure.ac): Likewise.
10112
10113 2011-05-20  Bruno Haible  <bruno@clisp.org>
10114
10115         isnanl*: Respect rules for use of AC_LIBOBJ.
10116         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10117         invocation from here...
10118         * modules/isnanl (configure.ac): ... to here.
10119         * modules/isnanl-nolibm (configure.ac): ... and here.
10120
10121 2011-05-20  Bruno Haible  <bruno@clisp.org>
10122
10123         isnand*: Move AC_LIBOBJ invocations to module description.
10124         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10125         invocation from here...
10126         * modules/isnand (configure.ac): ... to here.
10127         * modules/isnand-nolibm (configure.ac): ... and here.
10128
10129 2011-05-20  Bruno Haible  <bruno@clisp.org>
10130
10131         isnanf*: Move AC_LIBOBJ invocations to module description.
10132         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10133         invocation from here...
10134         * modules/isnanf (configure.ac): ... to here.
10135         * modules/isnanf-nolibm (configure.ac): ... and here.
10136
10137 2011-05-20  Bruno Haible  <bruno@clisp.org>
10138
10139         isnan*: Separate the AC_LIBOBJ invocations.
10140         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10141         AC_LIBOBJ invocation.
10142         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10143         here.
10144         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10145         AC_LIBOBJ invocation.
10146         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10147         here.
10148         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10149         AC_LIBOBJ invocation.
10150         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10151         here.
10152         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10153
10154 2011-05-08  Bruno Haible  <bruno@clisp.org>
10155
10156         isinf: Move AC_LIBOBJ invocations to module description.
10157         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10158         * modules/isinf (configure.ac): ... to here.
10159
10160 2011-05-08  Bruno Haible  <bruno@clisp.org>
10161
10162         isfinite: Move AC_LIBOBJ invocations to module description.
10163         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10164         * modules/isfinite (configure.ac): ... to here.
10165
10166 2011-05-08  Bruno Haible  <bruno@clisp.org>
10167
10168         isblank: Move AC_LIBOBJ invocations to module description.
10169         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10170         here...
10171         * modules/isblank (configure.ac): ... to here.
10172
10173 2011-05-08  Bruno Haible  <bruno@clisp.org>
10174
10175         isapipe: Move AC_LIBOBJ invocations to module description.
10176         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10177         gl_PREREQ_ISAPIPE invocations from here...
10178         * modules/isapipe (configure.ac): ... to here.
10179         (Depends-on): Update condition.
10180
10181 2011-05-08  Bruno Haible  <bruno@clisp.org>
10182
10183         ioctl: Move AC_LIBOBJ invocations to module description.
10184         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10185         invocations from here...
10186         * modules/ioctl (configure.ac): ... to here.
10187         (Depends-on): Update condition.
10188
10189 2011-05-08  Bruno Haible  <bruno@clisp.org>
10190
10191         imaxdiv: Move AC_LIBOBJ invocations to module description.
10192         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10193         invocations from here...
10194         * modules/imaxdiv (configure.ac): ... to here.
10195
10196 2011-05-08  Bruno Haible  <bruno@clisp.org>
10197
10198         imaxabs: Move AC_LIBOBJ invocations to module description.
10199         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10200         invocations from here...
10201         * modules/imaxabs (configure.ac): ... to here.
10202
10203 2011-05-08  Bruno Haible  <bruno@clisp.org>
10204
10205         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10207         AC_LIBOBJ invocations from here...
10208         * modules/getaddrinfo (configure.ac): ... to here.
10209         (Depends-on): Add conditions.
10210
10211 2011-05-08  Bruno Haible  <bruno@clisp.org>
10212
10213         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10214         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10215         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10216         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10217         (gl_PREREQ_INET_PTON): ... from here.
10218         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10219         gl_PREREQ_INET_PTON here.
10220         (Depends-on): Update condition.
10221
10222 2011-05-08  Bruno Haible  <bruno@clisp.org>
10223
10224         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10225         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10226         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10227         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10228         (gl_PREREQ_INET_NTOP): ... from here.
10229         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10230         gl_PREREQ_INET_NTOP here.
10231         (Depends-on): Update condition.
10232
10233 2011-05-08  Bruno Haible  <bruno@clisp.org>
10234
10235         iconv_open: Move AC_LIBOBJ invocations to module description.
10236         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10237         AC_LIBOBJ invocations from here...
10238         * modules/iconv_open (configure.ac): ... to here.
10239
10240 2011-05-08  Bruno Haible  <bruno@clisp.org>
10241
10242         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10243         If module 'iconv_open' is among the main modules and module
10244         'iconv_open-utf' is among the tests dependencies, then
10245         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10246         return the special iconv_t values. Therefore iconv() and iconv_close()
10247         must support these special iconv_t values, already in lib, not only in
10248         tests.
10249         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10250         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10251         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10252         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10253         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10254         (Depends-on): Add the dependencies of iconv_open-utf.
10255         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10256         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10257         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10258
10259 2011-05-08  Bruno Haible  <bruno@clisp.org>
10260
10261         group-member: Move AC_LIBOBJ invocations to module description.
10262         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10263         gl_PREREQ_GROUP_MEMBER invocations from here...
10264         * modules/group-member (configure.ac): ... to here.
10265
10266 2011-05-08  Bruno Haible  <bruno@clisp.org>
10267
10268         grantpt: Move AC_LIBOBJ invocations to module description.
10269         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10270         invocations from here...
10271         * modules/grantpt (configure.ac): ... to here.
10272
10273 2011-05-08  Bruno Haible  <bruno@clisp.org>
10274
10275         glob: Move AC_LIBOBJ invocations to module description.
10276         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10277         from here...
10278         * modules/glob (configure.ac): ... to here.
10279
10280 2011-05-08  Bruno Haible  <bruno@clisp.org>
10281
10282         getusershell: Move AC_LIBOBJ invocations to module description.
10283         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10284         Move AC_LIBOBJ invocation from here...
10285         * modules/getusershell (configure.ac): ... to here.
10286         (Depends-on): Update condition.
10287
10288 2011-05-08  Bruno Haible  <bruno@clisp.org>
10289
10290         gettimeofday: Move AC_LIBOBJ invocations to module description.
10291         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10292         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10293         gl_PREREQ_GETTIMEOFDAY invocations from here...
10294         * modules/gettimeofday (configure.ac): ... to here.
10295
10296 2011-05-08  Bruno Haible  <bruno@clisp.org>
10297
10298         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10299         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10300         just gl_FUNC_TZSET.
10301         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10302         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10303         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10304         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10305
10306 2011-05-08  Bruno Haible  <bruno@clisp.org>
10307
10308         getsubopt: Move AC_LIBOBJ invocations to module description.
10309         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10310         gl_PREREQ_GETSUBOPT invocations from here...
10311         * modules/getsubopt (configure.ac): ... to here.
10312
10313 2011-05-08  Bruno Haible  <bruno@clisp.org>
10314
10315         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10316         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10317         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10318         * modules/getpass-gnu (configure.ac): ... to here.
10319
10320 2011-05-08  Bruno Haible  <bruno@clisp.org>
10321
10322         getpass: Move AC_LIBOBJ invocations to module description.
10323         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10324         gl_PREREQ_GETPASS invocations from here...
10325         * modules/getpass (configure.ac): ... to here.
10326
10327 2011-05-08  Bruno Haible  <bruno@clisp.org>
10328
10329         getpagesize: Move AC_LIBOBJ invocations to module description.
10330         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10331         from here...
10332         * modules/getpagesize (configure.ac): ... to here.
10333
10334 2011-05-08  Bruno Haible  <bruno@clisp.org>
10335
10336         getopt: Move AC_LIBOBJ invocations to module description.
10337         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10338         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10339         invocations from here...
10340         * modules/getopt-gnu (configure.ac): ... to here.
10341         * modules/getopt-posix (configure.ac): ... and here.
10342         (Depends-on): Update condition.
10343
10344 2011-05-08  Bruno Haible  <bruno@clisp.org>
10345
10346         getopt, argp: Respect rules for use of AC_LIBOBJ.
10347         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10348         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10349         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10350         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10351
10352 2011-05-08  Bruno Haible  <bruno@clisp.org>
10353
10354         getlogin_r: Move AC_LIBOBJ invocations to module description.
10355         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10356         gl_PREREQ_GETLOGIN_R invocations from here...
10357         * modules/getlogin_r (configure.ac): ... to here.
10358
10359 2011-05-08  Bruno Haible  <bruno@clisp.org>
10360
10361         getlogin: Move AC_LIBOBJ invocations to module description.
10362         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10363         here...
10364         * modules/getlogin (configure.ac): ... to here.
10365
10366 2011-05-08  Bruno Haible  <bruno@clisp.org>
10367
10368         getloadavg: Move AC_LIBOBJ invocations to module description.
10369         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10370         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10371         * modules/getloadavg (configure.ac): ... to here.
10372
10373 2011-05-08  Bruno Haible  <bruno@clisp.org>
10374
10375         gethrxtime: Move AC_LIBOBJ invocations to module description.
10376         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10377         LIB_GETHRXTIME from here...
10378         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10379         invocations from here...
10380         * modules/gethrxtime (configure.ac): ... to here.
10381
10382 2011-05-08  Bruno Haible  <bruno@clisp.org>
10383
10384         gethostname: Move AC_LIBOBJ invocations to module description.
10385         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10386         gl_PREREQ_GETHOSTNAME invocations from here...
10387         * modules/gethostname (configure.ac): ... to here.
10388
10389 2011-05-08  Bruno Haible  <bruno@clisp.org>
10390
10391         getgroups: Move AC_LIBOBJ invocations to module description.
10392         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10393         here...
10394         * modules/getgroups (configure.ac): ... to here.
10395
10396 2011-05-08  Bruno Haible  <bruno@clisp.org>
10397
10398         getdtablesize: Move AC_LIBOBJ invocations to module description.
10399         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10400         invocation from here...
10401         * modules/getdtablesize (configure.ac): ... to here.
10402
10403 2011-05-08  Bruno Haible  <bruno@clisp.org>
10404
10405         getdomainname: Move AC_LIBOBJ invocations to module description.
10406         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10407         gl_PREREQ_GETDOMAINNAME invocations from here...
10408         * modules/getdomainname (configure.ac): ... to here.
10409
10410 2011-05-08  Bruno Haible  <bruno@clisp.org>
10411
10412         getline: Move AC_LIBOBJ invocations to module description.
10413         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10414         invocations from here...
10415         * modules/getline (configure.ac): ... to here.
10416
10417 2011-05-08  Bruno Haible  <bruno@clisp.org>
10418
10419         getline: Simplify.
10420         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10421         It's already handled through the module dependency.
10422
10423 2011-05-08  Bruno Haible  <bruno@clisp.org>
10424
10425         getdelim: Move AC_LIBOBJ invocations to module description.
10426         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10427         and gl_PREREQ_GETDELIM invocations from here...
10428         * modules/getdelim (configure.ac): ... to here.
10429         (Depends-on): Fix condition.
10430
10431 2011-05-08  Bruno Haible  <bruno@clisp.org>
10432
10433         getcwd: Move AC_LIBOBJ invocations to module description.
10434         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10435         invocations from here...
10436         * modules/getcwd (configure.ac): ... to here.
10437
10438 2011-05-08  Bruno Haible  <bruno@clisp.org>
10439
10440         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10441         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10442         here...
10443         * modules/getcwd-lgpl (configure.ac): ... to here.
10444
10445 2011-05-07  Bruno Haible  <bruno@clisp.org>
10446
10447         crypto/gc: Move AC_LIBOBJ invocations to module description.
10448         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10449         * modules/crypto/gc (configure.ac): ... to here.
10450
10451 2011-05-07  Bruno Haible  <bruno@clisp.org>
10452
10453         fwriting: Move AC_LIBOBJ invocations to module description.
10454         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10455         here...
10456         * modules/fwriting (configure.ac): ... to here.
10457
10458 2011-05-07  Bruno Haible  <bruno@clisp.org>
10459
10460         fwritable: Move AC_LIBOBJ invocations to module description.
10461         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10462         here...
10463         * modules/fwritable (configure.ac): ... to here.
10464
10465 2011-05-07  Bruno Haible  <bruno@clisp.org>
10466
10467         futimens: Move AC_LIBOBJ invocations to module description.
10468         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10469         here...
10470         * modules/futimens (configure.ac): ... to here.
10471
10472 2011-05-07  Bruno Haible  <bruno@clisp.org>
10473
10474         ftruncate: Move AC_LIBOBJ invocations to module description.
10475         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10476         gl_PREREQ_FTRUNCATE invocations from here...
10477         * modules/ftruncate (configure.ac): ... to here.
10478
10479 2011-05-07  Bruno Haible  <bruno@clisp.org>
10480
10481         fsync: Move AC_LIBOBJ invocations to module description.
10482         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10483         invocations from here...
10484         * modules/fsync (configure.ac): ... to here.
10485
10486 2011-05-07  Bruno Haible  <bruno@clisp.org>
10487
10488         fsusage: Move AC_LIBOBJ invocations to module description.
10489         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10490         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10491         * modules/fsusage (configure.ac): ... to here.
10492
10493 2011-05-07  Bruno Haible  <bruno@clisp.org>
10494
10495         freopen: Move AC_LIBOBJ invocations to module description.
10496         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10497         invocations from here...
10498         * modules/freopen (configure.ac): ... to here.
10499
10500 2011-05-07  Bruno Haible  <bruno@clisp.org>
10501
10502         free: Move AC_LIBOBJ invocations to module description.
10503         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10504         invocations from here...
10505         * modules/free (configure.ac): ... to here.
10506
10507 2011-05-07  Bruno Haible  <bruno@clisp.org>
10508
10509         freadable: Move AC_LIBOBJ invocations to module description.
10510         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10511         here...
10512         * modules/freadable (configure.ac): ... to here.
10513
10514 2011-05-07  Bruno Haible  <bruno@clisp.org>
10515
10516         fpurge: Move AC_LIBOBJ invocations to module description.
10517         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10518         invocations from here...
10519         * modules/fpurge (configure.ac): ... to here.
10520
10521 2011-05-07  Bruno Haible  <bruno@clisp.org>
10522
10523         fpending: Move AC_LIBOBJ invocations to module description.
10524         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10525         gl_FUNC_FPENDING.
10526         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10527         invocations from here...
10528         * modules/fpending (configure.ac): ... to here.
10529
10530 2011-05-07  Bruno Haible  <bruno@clisp.org>
10531
10532         fopen: Move AC_LIBOBJ invocations to module description.
10533         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10534         invocations from here...
10535         * modules/fopen (configure.ac): ... to here.
10536
10537 2011-05-07  Bruno Haible  <bruno@clisp.org>
10538
10539         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10540         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10541         gl_FUNC_FNMATCH_POSIX.
10542         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10543         invocations from here...
10544         * modules/fnmatch (configure.ac): ... to here.
10545         * modules/fnmatch-gnu (configure.ac): ... and here.
10546
10547 2011-05-07  Bruno Haible  <bruno@clisp.org>
10548
10549         flock: Move AC_LIBOBJ invocations to module description.
10550         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10551         invocations from here...
10552         * modules/flock (configure.ac): ... to here.
10553
10554 2011-05-07  Bruno Haible  <bruno@clisp.org>
10555
10556         fileblocks: Move AC_LIBOBJ invocations to module description.
10557         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10558         gl_PREREQ_FILEBLOCKS invocations from here...
10559         * modules/fileblocks (configure.ac): ... to here.
10560
10561 2011-05-06  Bruno Haible  <bruno@clisp.org>
10562
10563         fflush: Move AC_LIBOBJ invocations to module description.
10564         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10565         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10566         invocations from here...
10567         * modules/fflush (configure.ac): ... to here.
10568
10569 2011-05-06  Bruno Haible  <bruno@clisp.org>
10570
10571         fdopendir: Move AC_LIBOBJ invocations to module description.
10572         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10573         here...
10574         * modules/fdopendir (configure.ac): ... to here.
10575         (Depends-on): Improve conditions.
10576
10577 2011-05-06  Bruno Haible  <bruno@clisp.org>
10578
10579         _Exit: Move AC_LIBOBJ invocations to module description.
10580         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10581         invocations from here...
10582         * modules/_Exit (configure.ac): ... to here.
10583
10584 2011-05-21  Bruno Haible  <bruno@clisp.org>
10585
10586         euidaccess: Respect rules for use of AC_LIBOBJ.
10587         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10588         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10589         from here...
10590         * modules/euidaccess (configure.ac): ... to here.
10591
10592 2011-05-06  Bruno Haible  <bruno@clisp.org>
10593
10594         error: Move AC_LIBOBJ invocations to module description.
10595         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10596         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10597         invocations from here...
10598         * modules/error (configure.ac): ... to here.
10599
10600 2011-05-06  Bruno Haible  <bruno@clisp.org>
10601
10602         duplocale: Move AC_LIBOBJ invocations to module description.
10603         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10604         gl_PREREQ_DUPLOCALE invocations from here...
10605         * modules/duplocale (configure.ac): ... to here.
10606
10607 2011-05-05  Bruno Haible  <bruno@clisp.org>
10608
10609         dirfd: Move AC_LIBOBJ invocations to module description.
10610         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10611         gl_FUNC_DIRFD.
10612         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10613         here...
10614         * modules/dirfd (configure.ac): ... to here.
10615         (Depends-on): Fix condition.
10616
10617 2011-05-05  Bruno Haible  <bruno@clisp.org>
10618
10619         chown: Respect rules for use of AC_LIBOBJ.
10620         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10621         * modules/chown (configure.ac): ... to here.
10622
10623 2011-05-05  Bruno Haible  <bruno@clisp.org>
10624
10625         chdir-long: Move AC_LIBOBJ invocations to module description.
10626         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10627         gl_PREREQ_CHDIR_LONG invocations from here...
10628         * modules/chdir-long (configure.ac): ... to here.
10629
10630 2011-05-05  Bruno Haible  <bruno@clisp.org>
10631
10632         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10633         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10634         from here...
10635         * modules/canonicalize-lgpl (configure.ac): ... to here.
10636
10637 2011-05-05  Bruno Haible  <bruno@clisp.org>
10638
10639         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10640         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10641         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10642         REPLACE_CALLOC.
10643         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10644         * modules/calloc-gnu (configure.ac): Likewise.
10645
10646 2011-05-05  Bruno Haible  <bruno@clisp.org>
10647
10648         btowc: Move AC_LIBOBJ invocations to module description.
10649         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10650         invocations from here...
10651         * modules/btowc (configure.ac): ... to here.
10652
10653 2011-05-21  Bruno Haible  <bruno@clisp.org>
10654
10655         atexit: Move AC_LIBOBJ invocations to module description.
10656         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10657         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10658         here...
10659         * modules/atexit (configure.ac): ... to here.
10660
10661 2011-05-05  Bruno Haible  <bruno@clisp.org>
10662
10663         atoll: Move AC_LIBOBJ invocations to module description.
10664         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10665         invocations from here...
10666         * modules/atoll (configure.ac): ... to here.
10667
10668 2011-05-05  Bruno Haible  <bruno@clisp.org>
10669
10670         argz: Move AC_LIBOBJ invocations to module description.
10671         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10672         * modules/argz (configure.ac): ... to here.
10673
10674 2011-05-05  Bruno Haible  <bruno@clisp.org>
10675
10676         alphasort: Move AC_LIBOBJ invocations to module description.
10677         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10678         gl_PREREQ_ALPHASORT invocations from here...
10679         * modules/alphasort (configure.ac): ... to here.
10680
10681 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10682
10683         verify: new macro verify_expr; verify_true deprecated
10684         * NEWS: Mention this.
10685         * doc/verify.texi (Compile-time Assertions): Document this.
10686         * lib/verify.h (verify_true): Deprecate.
10687         (verify_expr): New macro.
10688         * tests/test-verify.c (function): Test verify_expr.
10689
10690 2011-06-14  Jim Meyering  <meyering@redhat.com>
10691
10692         init.sh: give more portable redirection-related advice in a comment
10693         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10694         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10695         for lots of discussion.  Stefano Lattarini suggested the solution
10696         of putting "9>&2" after the command.  Reported by Bruno Haible.
10697
10698 2011-06-13  Bruno Haible  <bruno@clisp.org>
10699
10700         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10701         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10702         'none'.
10703
10704 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10705
10706         ftoastr: use strtof only if HAVE_STRTOF
10707         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10709         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10710         * modules/ftoastr (configure.ac): Check for strtof.
10711
10712 2011-06-13  Bruno Haible  <bruno@clisp.org>
10713
10714         gnulib-tool: Addendum to 2011-06-08 commit.
10715         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10716         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10717
10718 2011-06-13  Bruno Haible  <bruno@clisp.org>
10719
10720         fseeko: Provide a non-inline replacement of fseek().
10721         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10722         * modules/fseeko (Depends-on): Add fseek.
10723         * modules/fseek (License): Change to LGPLv2+.
10724
10725 2011-06-13  Bruno Haible  <bruno@clisp.org>
10726
10727         ftello: Provide a non-inline replacement of ftell().
10728         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10729         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10730         not have ftello() (such as on mingw).
10731         * modules/ftello (Depends-on): Add ftell.
10732         * modules/ftell (License): Change to LGPLv2+.
10733
10734 2011-05-07  Bruno Haible  <bruno@clisp.org>
10735
10736         ftell: Move AC_LIBOBJ invocations to module description.
10737         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10738         * modules/ftell (configure.ac): ... to here.
10739
10740 2011-05-07  Bruno Haible  <bruno@clisp.org>
10741
10742         ftello: Respect rules for use of AC_LIBOBJ.
10743         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10744         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10745         here...
10746         * modules/ftello (configure.ac): ... to here.
10747
10748 2011-05-07  Bruno Haible  <bruno@clisp.org>
10749
10750         fseeko: Simplify.
10751         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10752         (gl_FUNC_FSEEKO): Inline it here.
10753
10754 2011-05-07  Bruno Haible  <bruno@clisp.org>
10755
10756         fseek: Move AC_LIBOBJ invocations to module description.
10757         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10758         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10759         * modules/fseek (configure.ac): ... to here.
10760
10761 2011-05-07  Bruno Haible  <bruno@clisp.org>
10762
10763         fseek: Respect rules for use of AC_LIBOBJ.
10764         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10765         here...
10766         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10767
10768 2011-05-07  Bruno Haible  <bruno@clisp.org>
10769
10770         fseeko: Respect rules for use of AC_LIBOBJ.
10771         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10772         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10773         here...
10774         * modules/fseeko (configure.ac): ... to here.
10775
10776 2011-06-13  Bruno Haible  <bruno@clisp.org>
10777
10778         gnulib-tool: Allow comments in the 'Depends-on' section.
10779         * doc/gnulib.texi (Module description): Mention comment syntax in the
10780         Depends-on section.
10781         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10782
10783 2011-06-13  Bruno Haible  <bruno@clisp.org>
10784
10785         file-set.h: guard __attibute__ use, now that it's not always defined
10786         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10787         versions that support it.  This fixes a coreutils build failure with
10788         the vendor cc on HP-UX 11.31.
10789
10790 2011-06-12  Bruno Haible  <bruno@clisp.org>
10791
10792         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10793         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10794         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10795         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10796         (acl, aclsort): New declarations.
10797         (aclv_nontrivial): New declaration.
10798         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10799         (file_has_acl): Read also the second kind of HP-UX ACLs.
10800         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10801         kind of HP-UX ACLs if the first kind fails.
10802         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10803         second kind of HP-UX ACLs.
10804         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10805         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10806         agree.
10807         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10808         hpuxjfs.
10809         Handle hpuxjfs.
10810         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10811         hpuxjfs.
10812         Handle hpuxjfs.
10813         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10814         (func_test_same_acls): Use both lsacl and getacl.
10815         Handle hpuxjfs.
10816         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10817         (func_test_same_acls): Use both lsacl and getacl.
10818         Handle hpuxjfs.
10819
10820 2011-06-12  Bruno Haible  <bruno@clisp.org>
10821
10822         acl: Complete the 2010-08-10 fix.
10823         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10824         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10825         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10826         explicitly.
10827         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10828         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10829
10830 2011-06-12  Bruno Haible  <bruno@clisp.org>
10831
10832         spawn-pipe tests: Comments.
10833         * tests/test-spawn-pipe-child.c (main): Update comment.
10834         Reported by James Youngman <jay@gnu.org>.
10835
10836 2011-06-11  James Youngman  <jay@gnu.org>
10837
10838         New module 'stat-size'.
10839         * modules/stat-size: New module.  Provides macros for accessing
10840         file size information in instances of struct stat.  Depends on the
10841         fileblocks module because it calls st_blocks.
10842         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10843         * doc/gnulib.texi: Include stat-size.texi.
10844         * doc/stat-size.texi: Documentation for this module.
10845         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10846         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10847         AC_STRUCT_ST_BLOCKS.
10848
10849 2011-06-09  Bruno Haible  <bruno@clisp.org>
10850
10851         thread: Support pthreads-win32.
10852         * lib/glthread/thread.h (gl_thread_self): Define differently on
10853         pthreads-win32.
10854         (gl_null_thread): New declaration.
10855         (gl_thread_self_pointer): New macro.
10856         * lib/glthread/thread.c (gl_null_thread): New constant.
10857         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10858         gl_thread_self.
10859         * tests/test-tls.c: Likewise.
10860         Suggested by Paul Eggert. Reported by Eric Blake.
10861
10862 2011-06-09  Bruno Haible  <bruno@clisp.org>
10863
10864         thread: Fix confusion between NULL and 0.
10865         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10866         Reported by Paul Eggert.
10867
10868 2011-06-09  Bruno Haible  <bruno@clisp.org>
10869
10870         spawn-pipe tests: Avoid test failure on HP-UX 11.
10871         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10872         is closed.
10873
10874 2011-06-09  Bruno Haible  <bruno@clisp.org>
10875
10876         acl tests: Fix compilation error on HP-UX 11.
10877         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10878
10879 2011-06-09  Bruno Haible  <bruno@clisp.org>
10880
10881         rmdir: Avoid test failure on HP-UX 10.20.
10882         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10883         EEXIST.
10884
10885 2011-06-08  Eric Blake  <eblake@redhat.com>
10886
10887         perror: fix test on mingw
10888         * modules/perror-tests (Depends-on): Add dup2.
10889
10890         strerror_r-posix: fix on MacOS
10891         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10892         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10893         logic bug.
10894         * lib/strerror_r.c (strerror_r): Fix the bug.
10895         * lib/strerror.c (strerror): Likewise.
10896         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10897         problem.
10898         * doc/posix-functions/strerror.texi (strerror): Likewise.
10899         * doc/posix-functions/perror.texi (perror): Likewise.
10900         * tests/test-strerror.c (main): Enhance test.
10901         * tests/test-strerror_r.c (main): Likewise.
10902
10903 2011-06-08  Bruno Haible  <bruno@clisp.org>
10904
10905         gnulib-tool: Better isolation between different gnulib-tool invocations.
10906         * gnulib-tool: New option --witness-c-macro.
10907         (witness_c_macro): New variable.
10908         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10909         AM_CPPFLAGS define it as a C macro.
10910         (func_emit_tests_Makefile_am): Likewise.
10911         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10912         read it from there.
10913         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10914         m4_define, not AC_DEFUN.
10915         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10916         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10917         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10918         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10919         s|...|...|, to substitute the values of the GNULIB_* module indicator
10920         variables.
10921         * modules/dirent (Makefile.am): Likewise.
10922         * modules/fcntl-h (Makefile.am): Likewise.
10923         * modules/iconv-h (Makefile.am): Likewise.
10924         * modules/langinfo (Makefile.am): Likewise.
10925         * modules/locale (Makefile.am): Likewise.
10926         * modules/math (Makefile.am): Likewise.
10927         * modules/netdb (Makefile.am): Likewise.
10928         * modules/poll-h (Makefile.am): Likewise.
10929         * modules/pty (Makefile.am): Likewise.
10930         * modules/search (Makefile.am): Likewise.
10931         * modules/signal (Makefile.am): Likewise.
10932         * modules/spawn (Makefile.am): Likewise.
10933         * modules/stdio (Makefile.am): Likewise.
10934         * modules/stdlib (Makefile.am): Likewise.
10935         * modules/string (Makefile.am): Likewise.
10936         * modules/sys_ioctl (Makefile.am): Likewise.
10937         * modules/sys_select (Makefile.am): Likewise.
10938         * modules/sys_socket (Makefile.am): Likewise.
10939         * modules/sys_stat (Makefile.am): Likewise.
10940         * modules/sys_times (Makefile.am): Likewise.
10941         * modules/sys_utsname (Makefile.am): Likewise.
10942         * modules/sys_wait (Makefile.am): Likewise.
10943         * modules/termios (Makefile.am): Likewise.
10944         * modules/time (Makefile.am): Likewise.
10945         * modules/unistd (Makefile.am): Likewise.
10946         * modules/wchar (Makefile.am): Likewise.
10947
10948 2011-06-08  Eric Blake  <eblake@redhat.com>
10949
10950         strerror: simplify replacement
10951         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10952         * modules/strerror (configure.ac): No prereqs needed here...
10953         * modules/strerror-override (configure.ac): ...but this needs it.
10954         (Files): Add file for needed prereq macro.
10955
10956 2011-06-08  Bruno Haible  <bruno@clisp.org>
10957
10958         strerror_r-posix: Tweaks.
10959         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10960         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10961         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10962         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10963         (gl_FUNC_STRERROR_R): ... to here.
10964         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10965
10966 2011-06-07  Eric Blake  <eblake@redhat.com>
10967
10968         perror: document fixed bugs
10969         * doc/posix-functions/perror.texi (perror): Document recent
10970         patches.
10971
10972 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10973
10974         stat-time: get_stat_birthtime failure is better-defined
10975         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10976         return a timestamp whose tv_sec and tv_nsec values are both -1.
10977         Previously, the spec said only that the tv_nsec value was negative.
10978         This upward-compatible change simplifies GNU tar a bit.
10979
10980 2011-06-07  Eric Blake  <eblake@redhat.com>
10981
10982         strerror_r-posix: work around cygwin 1.7.9
10983         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10984         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10985         bug without replacing strerror_r.
10986         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10987         strerror_r is buggy, but without requiring strerror_r compilation.
10988         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10989
10990         test-perror: relax test to ignore cygwin bug
10991         * tests/test-perror2.c (main): Relax test on requiring detection
10992         of stream errors, and use unbuffered stream.
10993         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10994         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10995         * doc/posix-functions/fputc.texi (fputc): Likewise.
10996         * doc/posix-functions/fputs.texi (fputs): Likewise.
10997         * doc/posix-functions/fputws.texi (fputws): Likewise.
10998         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10999         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
11000         * doc/posix-functions/getopt.texi (getopt): Likewise.
11001         * doc/posix-functions/perror.texi (perror): Likewise.
11002         * doc/posix-functions/printf.texi (printf): Likewise.
11003         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
11004         * doc/posix-functions/psignal.texi (psignal): Likewise.
11005         * doc/posix-functions/putc.texi (putc): Likewise.
11006         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
11007         Likewise.
11008         * doc/posix-functions/putchar.texi (putchar): Likewise.
11009         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
11010         Likewise.
11011         * doc/posix-functions/puts.texi (puts): Likewise.
11012         * doc/posix-functions/putwc.texi (putwc): Likewise.
11013         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11014         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11015         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11016         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11017         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11018         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11019         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11020         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11021
11022 2011-05-22  Bruno Haible  <bruno@clisp.org>
11023
11024         strerror: Move AC_LIBOBJ invocations to module description.
11025         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
11026         gl_PREREQ_STRERROR invocations from here...
11027         * modules/strerror (configure.ac): ... to here.
11028
11029 2011-05-21  Bruno Haible  <bruno@clisp.org>
11030
11031         perror: Use common idiom.
11032         * modules/perror (configure.ac): Reorder statements.
11033
11034 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11035
11036         tests: fix usage message in 'mktempd_'
11037         * tests/init.sh (mktempd_): In the usage message, use literal
11038         'mktempd_', not '$ME' (which is even undefined), as the name of
11039         the subroutine.
11040
11041 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11042
11043         tests init: new function 'fatal_', for hard errors
11044         Before this patch, the only way offered by tests/init.sh to
11045         properly signal a hard error was the `framework_failure_'
11046         function.  But the error message issued by that function,
11047         as its name would suggest, refers to a set-up failure in the
11048         testsuite, while hard errors can obviously also be due to
11049         other reasons.  The best way to fix this inconsistency is to
11050         introduce a new function with a more general error message.
11051         * tests/init.sh (fatal_): New function.
11052
11053 2011-06-06  Eric Blake  <eblake@redhat.com>
11054
11055         canonicalize-lgpl: use common idiom
11056         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11057         over newer POSIX -Rf.
11058         Reported by Bruno Haible.
11059
11060         canonicalize-lgpl: work around AIX realpath bug
11061         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11062         * doc/posix-functions/realpath.texi (realpath): Document it.
11063         Reported by Bruno Haible.
11064
11065         strerror: work around FreeBSD bug
11066         * lib/strerror.c (strerror): Special case 0.
11067         Reported by Bruno Haible.
11068
11069         strerror-override: avoid bloating errno module
11070         * modules/errno (Files, configure.ac): Move replacement strings...
11071         * modules/strerror-override: ...to new module.
11072         * modules/strerror (Depends-on): Add strerror-override.
11073         * modules/strerror_r-posix (Depends-on): Likewise.
11074         * MODULES.html.sh: Document new module.
11075         Reported by Bruno Haible.
11076
11077 2011-06-06  Bruno Haible  <bruno@clisp.org>
11078
11079         spawn-pipe tests: Rename program.
11080         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11081         * tests/test-spawn-pipe-child.c: Update comment.
11082         * tests/test-spawn-pipe.sh: Update.
11083         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11084
11085         spawn-pipe tests: Link the child program only against libc.
11086         * tests/test-spawn-pipe-child.c: New file, extracted from
11087         tests/test-spawn-pipe.c.
11088         (main): Expect only one argument.
11089         (is_open): New function, copied from tests/test-pipe.c.
11090         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11091         (child_main): Remove function.
11092         (test_pipe): Pass only one argument to the child program.
11093         (main): Remove child process code. Expect the child program's name as
11094         first argument.
11095         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11096         argument.
11097         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11098         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11099         test-spawn-pipe-child against no libraries.
11100
11101 2011-06-06  Bruno Haible  <bruno@clisp.org>
11102
11103         careadlinkat: Avoid mismatch between ssize_t and int.
11104         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11105         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11106
11107 2011-06-06  Jim Meyering  <meyering@redhat.com>
11108
11109         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11110         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11111         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11112
11113 2011-06-05  Bruno Haible  <bruno@clisp.org>
11114
11115         ansi-c++-opt: Interoperability with libtool.
11116         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11117         set the variable to "no", not to ":".
11118         * NEWS: Mention the change.
11119
11120 2011-06-05  Bruno Haible  <bruno@clisp.org>
11121
11122         acl: Fix test failure on AIX 7.
11123         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11124         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11125
11126 2011-06-05  Bruno Haible  <bruno@clisp.org>
11127
11128         pipe-filter-ii: Fix test failure on AIX and IRIX.
11129         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11130         with EAGAIN, retry with a smaller buffer size.
11131
11132 2011-06-05  Bruno Haible  <bruno@clisp.org>
11133
11134         localename: Fix link dependencies.
11135         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11136         * modules/localename-tests (Makefile.am): Link test-localename with
11137         $(LIBTHREAD).
11138
11139 2011-06-05  Bruno Haible  <bruno@clisp.org>
11140
11141         error: Avoid gcc warning.
11142         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11143
11144 2011-06-05  Bruno Haible  <bruno@clisp.org>
11145
11146         unsetenv: Avoid gcc warning.
11147         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11148
11149 2011-06-05  Bruno Haible  <bruno@clisp.org>
11150
11151         setenv: Avoid gcc warning.
11152         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11153
11154 2011-06-05  Bruno Haible  <bruno@clisp.org>
11155
11156         sys_select: Ensure memset is declared also on AIX 7.
11157         * lib/sys_select.in.h: Include <string.h> also on AIX.
11158         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11159         self-contained also on AIX 7.1.
11160
11161 2011-06-04  Jim Meyering  <meyering@redhat.com>
11162
11163         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11164         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11165         function name, "error".
11166         (_gl_translatable_diag_func_re): New configurable variable.
11167
11168 2011-06-04  Bruno Haible  <bruno@clisp.org>
11169
11170         getopt: Avoid gcc warning.
11171         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11172
11173 2011-06-04  Bruno Haible  <bruno@clisp.org>
11174
11175         strerror_r: Fix comments.
11176         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11177         commit.
11178
11179 2011-06-04  Bruno Haible  <bruno@clisp.org>
11180
11181         perror: Fix compilation error.
11182         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11183         Undefine fprintf, not sprintf.
11184         * modules/perror (Depends-on): Remove intprops, verify.
11185
11186 2011-06-04  Bruno Haible  <bruno@clisp.org>
11187
11188         setlocale: Enable replacement on Cygwin 1.5.
11189         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11190         Cygwin 1.5.x.
11191         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11192         LC_CTYPE category also exists on Cygwin 1.5.x.
11193
11194 2011-06-04  Bruno Haible  <bruno@clisp.org>
11195
11196         strerror-override: Don't disable symbol renamings.
11197         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11198         * lib/strerror-override.c: Include config.h.
11199         (strerror_override): Don't undefine.
11200
11201 2011-06-03  Bruno Haible  <bruno@clisp.org>
11202
11203         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11204         * lib/localename.h: Update copyright header.
11205         * lib/localename.c: Likewise.
11206         * lib/relocatable.h: Likewise.
11207         * lib/relocatable.c: Likewise.
11208
11209 2011-06-02  Bruno Haible  <bruno@clisp.org>
11210
11211         doc: Fix a module name.
11212         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11213
11214 2011-06-02  Bruno Haible  <bruno@clisp.org>
11215
11216         pipe2: Remove dependency on 'nonblocking' module.
11217         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11218         O_NONBLOCK is defined by gnulib.
11219         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11220         is zero.
11221         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11222         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11223         defined by gnulib.
11224         (get_nonblocking_flag): New function.
11225         (main): Test O_NONBLOCK flag only if it is nonzero.
11226         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11227
11228 2011-06-03  Jim Meyering  <meyering@redhat.com>
11229
11230         maint: three new prohibit-header-without-use rules
11231         Prohibit use of cloexec.h, posixver.h, same.h without use.
11232         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11233         (sc_prohibit_posixver_without_use): Likewise.
11234         (sc_prohibit_same_without_use): Likewise.
11235
11236 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11237
11238         allocator: 'die' routine is now given requested size
11239         * lib/allocator.h (struct allocator.die): New size arg.
11240         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11241         If the actual problem is an ssize_t limitation, not a size_t or
11242         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11243
11244 2011-06-01  Eric Blake  <eblake@redhat.com>
11245
11246         strerror: drop strerror_r dependency
11247         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11248         * lib/strerror-override.c (strerror_override): ...to new file.
11249         * lib/strerror-override.h: Add prototype.
11250         * lib/strerror-impl.h: Delete.
11251         * lib/strerror.c (strerror): New implementation.
11252         * modules/errno (Files): Add new files.
11253         (configure.ac): Compile new file as appropriate.
11254         * modules/strerror (Files): Drop unused file.
11255         (Depends-on): Drop strerror_r-posix.
11256         * MODULES.html.sh: Document strerror_r-posix.
11257         Requested by Sam Steingold.
11258
11259         perror: call strerror_r directly
11260         * modules/perror (Files): Drop strerror-impl.h.
11261         * lib/perror.c (perror): Use our own stack buffer, rather than
11262         calling a wrapper that uses static storage.
11263         * doc/posix-functions/perror.texi (perror): Document a limitation
11264         of our replacement.
11265
11266         strerror_r: fix includes for FreeBSD
11267         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11268         since we use abort on some platforms.
11269         Reported by Matthias Bolte.
11270
11271 2011-05-31  Bruno Haible  <bruno@clisp.org>
11272
11273         Fix link errors in tests: openat-die uses gettext-h.
11274         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11275         against $(LIBINTL).
11276         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11277         against $(LIBINTL).
11278         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11279         $(LIBINTL).
11280         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11281         against $(LIBINTL).
11282         * modules/linkat-tests (Makefile.am): Link test-linkat against
11283         $(LIBINTL).
11284         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11285         $(LIBINTL).
11286         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11287         against $(LIBINTL).
11288         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11289         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11290         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11291         $(LIBINTL).
11292         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11293         $(LIBINTL).
11294         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11295         $(LIBINTL).
11296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11297
11298 2011-05-31  Bruno Haible  <bruno@clisp.org>
11299
11300         Fix link errors in tests: wait-process uses gettext-h.
11301         * modules/nonblocking-pipe-tests (Makefile.am): Set
11302         test_nonblocking_pipe_main_LDADD.
11303         * modules/nonblocking-socket-tests (Makefile.am): Link
11304         test-nonblocking-socket-main against $(LIBINTL).
11305         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11306
11307 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11308
11309         assert-h: work around 'verify' incompatibility
11310         * lib/verify.h: Use @...@ directives, not ifdef.
11311         * modules/assert-h (assert.h): Implement the directives.
11312         (assert.h): Substitute the symbol-prefix more consistently.
11313
11314 2011-05-29  Jim Meyering  <meyering@redhat.com>
11315
11316         trim: remove three superfluous assignments
11317         * lib/trim.c (trim2): Remove three superfluous assignments
11318         and correct brace positioning.
11319
11320 2011-05-29  Bruno Haible  <bruno@clisp.org>
11321
11322         wctype-h: Avoid namespace pollution on Solaris 2.6.
11323         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11324         identifiers.
11325         * doc/posix-headers/wctype.texi: Mention the problem.
11326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11327
11328 2011-05-28  Jim Meyering  <meyering@redhat.com>
11329
11330         parse-datetime.y: accommodate -Wstrict-overflow
11331         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11332         placate -Wstrict-overflow.
11333
11334         trim: avoid a warning from -O2 -Wstrict-overflow
11335         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11336
11337 2011-05-29  Bruno Haible  <bruno@clisp.org>
11338
11339         gnulib-tool: Fix bug in yesterday's commit.
11340         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11341         twice.
11342
11343 2011-05-29  Bruno Haible  <bruno@clisp.org>
11344
11345         Allow multiple gnulib generated include files to be combined.
11346         * gnulib-tool (func_compute_include_guard_prefix): New function.
11347         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11348         ${gl_include_guard_prefix} references.
11349         (func_import, func_create_testdir): Invoke
11350         func_compute_include_guard_prefix.
11351         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11352         * lib/ctype.in.h: Likewise.
11353         * lib/dirent.in.h: Likewise.
11354         * lib/errno.in.h: Likewise.
11355         * lib/fcntl.in.h: Likewise.
11356         * lib/float.in.h: Likewise.
11357         * lib/getopt.in.h: Likewise.
11358         * lib/iconv.in.h: Likewise.
11359         * lib/langinfo.in.h: Likewise.
11360         * lib/locale.in.h: Likewise.
11361         * lib/math.in.h: Likewise.
11362         * lib/netdb.in.h: Likewise.
11363         * lib/netinet_in.in.h: Likewise.
11364         * lib/poll.in.h: Likewise.
11365         * lib/pthread.in.h: Likewise.
11366         * lib/pty.in.h: Likewise.
11367         * lib/sched.in.h: Likewise.
11368         * lib/se-selinux.in.h: Likewise.
11369         * lib/search.in.h: Likewise.
11370         * lib/signal.in.h: Likewise.
11371         * lib/spawn.in.h: Likewise.
11372         * lib/stdarg.in.h: Likewise.
11373         * lib/stddef.in.h: Likewise.
11374         * lib/stdint.in.h: Likewise.
11375         * lib/stdio.in.h: Likewise.
11376         * lib/stdlib.in.h: Likewise.
11377         * lib/string.in.h: Likewise.
11378         * lib/strings.in.h: Likewise.
11379         * lib/sys_file.in.h: Likewise.
11380         * lib/sys_ioctl.in.h: Likewise.
11381         * lib/sys_select.in.h: Likewise.
11382         * lib/sys_socket.in.h: Likewise.
11383         * lib/sys_stat.in.h: Likewise.
11384         * lib/sys_time.in.h: Likewise.
11385         * lib/sys_times.in.h: Likewise.
11386         * lib/sys_uio.in.h: Likewise.
11387         * lib/sys_utsname.in.h: Likewise.
11388         * lib/sys_wait.in.h: Likewise.
11389         * lib/sysexits.in.h: Likewise.
11390         * lib/termios.in.h: Likewise.
11391         * lib/time.in.h: Likewise.
11392         * lib/unistd.in.h: Likewise.
11393         * lib/wchar.in.h: Likewise.
11394         * lib/wctype.in.h: Likewise.
11395         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11396         * modules/ctype (Makefile.am): Likewise.
11397         * modules/dirent (Makefile.am): Likewise.
11398         * modules/errno (Makefile.am): Likewise.
11399         * modules/fcntl-h (Makefile.am): Likewise.
11400         * modules/float (Makefile.am): Likewise.
11401         * modules/getopt-posix (Makefile.am): Likewise.
11402         * modules/iconv-h (Makefile.am): Likewise.
11403         * modules/langinfo (Makefile.am): Likewise.
11404         * modules/locale (Makefile.am): Likewise.
11405         * modules/math (Makefile.am): Likewise.
11406         * modules/netdb (Makefile.am): Likewise.
11407         * modules/netinet_in (Makefile.am): Likewise.
11408         * modules/poll-h (Makefile.am): Likewise.
11409         * modules/pthread (Makefile.am): Likewise.
11410         * modules/pty (Makefile.am): Likewise.
11411         * modules/sched (Makefile.am): Likewise.
11412         * modules/search (Makefile.am): Likewise.
11413         * modules/selinux-h (Makefile.am): Likewise.
11414         * modules/signal (Makefile.am): Likewise.
11415         * modules/spawn (Makefile.am): Likewise.
11416         * modules/stdarg (Makefile.am): Likewise.
11417         * modules/stddef (Makefile.am): Likewise.
11418         * modules/stdint (Makefile.am): Likewise.
11419         * modules/stdio (Makefile.am): Likewise.
11420         * modules/stdlib (Makefile.am): Likewise.
11421         * modules/string (Makefile.am): Likewise.
11422         * modules/strings (Makefile.am): Likewise.
11423         * modules/sys_file (Makefile.am): Likewise.
11424         * modules/sys_ioctl (Makefile.am): Likewise.
11425         * modules/sys_select (Makefile.am): Likewise.
11426         * modules/sys_socket (Makefile.am): Likewise.
11427         * modules/sys_stat (Makefile.am): Likewise.
11428         * modules/sys_time (Makefile.am): Likewise.
11429         * modules/sys_times (Makefile.am): Likewise.
11430         * modules/sys_uio (Makefile.am): Likewise.
11431         * modules/sys_utsname (Makefile.am): Likewise.
11432         * modules/sys_wait (Makefile.am): Likewise.
11433         * modules/sysexits (Makefile.am): Likewise.
11434         * modules/termios (Makefile.am): Likewise.
11435         * modules/time (Makefile.am): Likewise.
11436         * modules/unistd (Makefile.am): Likewise.
11437         * modules/wchar (Makefile.am): Likewise.
11438         * modules/wctype-h (Makefile.am): Likewise.
11439         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11440
11441 2011-05-29  Bruno Haible  <bruno@clisp.org>
11442
11443         assert-h: Allow multiple gnulib generated replacements to coexist.
11444         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11445
11446 2011-05-29  Bruno Haible  <bruno@clisp.org>
11447
11448         argp: Allow coexistence with strerror_r-posix module.
11449         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11450         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11451         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11452         not the glibc signature.
11453
11454 2011-05-28  Bruno Haible  <bruno@clisp.org>
11455
11456         gnulib-tool: Alternative structure of testdirs, similar to --import.
11457         * gnulib-tool: New option --single-configure.
11458         (func_usage): Document it.
11459         (single_configure): New variable.
11460         (func_modules_transitive_closure_separately,
11461         func_modules_transitive_closure_separately,
11462         func_determine_use_libtests, func_modules_add_dummy_separately,
11463         func_modules_to_filelist_separately): New functions, extracted from
11464         func_import.
11465         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11466         (func_import): Use the new functions.
11467         (func_create_testdir): Set final_modules. Handle $single_configure =
11468         true case.
11469
11470 2011-05-28  Bruno Haible  <bruno@clisp.org>
11471
11472         getloadavg: Remove an unreliable safety check.
11473         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11474         getloadavg.c is in place.
11475         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11476         Reported by Sam Steingold <sds@gnu.org>.
11477
11478 2011-05-28  Bruno Haible  <bruno@clisp.org>
11479
11480         doc: Cleanup yet another file produced by texinfo.tex.
11481         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11482
11483 2011-05-28  Bruno Haible  <bruno@clisp.org>
11484
11485         Finish the conditional dependencies mechanism.
11486         * gnulib-tool: New option --no-conditional-dependencies.
11487         (func_usage): Document it. Don't mark --conditional-dependencies as
11488         experimental.
11489         (cond_dependencies): The possible values can now be true, false, empty.
11490         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11491         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11492         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11493
11494 2011-05-28  Bruno Haible  <bruno@clisp.org>
11495
11496         doc: Use a recent texinfo.tex.
11497         * doc/Makefile (tex_opts): New variable.
11498         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11499
11500 2011-05-28  Jim Meyering  <meyering@redhat.com>
11501
11502         intprops.h: adjust comment to match code change
11503         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11504         only once, it *may* have side effects.  Also fix an unrelated typo.
11505         (_GL_INT_SIGNED): Likewise.
11506
11507 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11508
11509         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11510
11511 2011-05-26  Bruno Haible  <bruno@clisp.org>
11512
11513         mbsrchr: Avoid collision with system function on Interix.
11514         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11515         Reported by Markus Duft <mduft@gentoo.org>.
11516
11517 2011-05-15  James Youngman  <jay@gnu.org>
11518
11519         getopt: for ambiguous options, enumerate the possibilities.
11520         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11521         the ambiguous options when an ambiguous prefix is given. This was
11522         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11523         glibc change was
11524         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11525
11526 2011-05-25  Eric Blake  <eblake@redhat.com>
11527
11528         getcwd: work around mingw bug
11529         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11530         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11531         Reported by Matthias Bolte.
11532
11533 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11534
11535         test-intprops: disable -Wtype-limits diagnostics
11536         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11537         diagnostics.  Otherwise, the integer overflow macros generate many
11538         diagnostics.  Reported by Jim Meyering in
11539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11540
11541         intprops: shorten, to pacify gcc -Woverlength-strings
11542         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11543         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11544         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11545         likely to run afoul of C compiler limits for string constant lengths.
11546         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11547
11548 2011-05-24  Eric Blake  <eblake@redhat.com>
11549
11550         docs: document recently fixed glibc printf bug
11551         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11552         * doc/posix-functions/printf.texi (printf): Likewise.
11553         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11554         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11555
11556         closein-tests: convert to init.sh
11557         * modules/closein-tests (Files): Add init.sh
11558         * tests/test-closein.sh Use it.
11559
11560         yesno-tests: convert to init.sh
11561         * modules/yesno-tests (Files): Add init.sh.
11562         * tests/test-yesno.sh: Use it.
11563
11564         atexit-tests: ensure reliable exit status
11565         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11566         Reported by Bruno Haible.
11567
11568 2011-05-24  Bruno Haible  <bruno@clisp.org>
11569
11570         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11571         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11572         gl_PREREQ_STRERROR_R invocations from here...
11573         * modules/strerror_r-posix (configure.ac): ... to here.
11574
11575 2011-05-24  Eric Blake  <eblake@redhat.com>
11576
11577         strerror_r: fix missing header
11578         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11579
11580         strerror_r: fix AIX test failures
11581         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11582         ERANGE failure.
11583
11584         strerror_r: fix Solaris test failures
11585         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11586         failures.
11587         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11588
11589         strerror_r: enforce POSIX recommendations
11590         * lib/strerror_r.c (safe_copy): New helper method.
11591         (strerror_r): Guarantee a non-empty string.
11592         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11593         recent POSIX rulings and to match our strerror guarantees.
11594         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11595
11596 2011-05-24  Jim Meyering  <meyering@redhat.com>
11597
11598         test-perror2.c: avoid warning about unused variable
11599         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11600
11601 2011-05-24  Eric Blake  <eblake@redhat.com>
11602
11603         perror: avoid spurious test failure on HP-UX
11604         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11605
11606         tests: fix logic bug in init.sh
11607         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11608         shell.
11609
11610 2011-05-24  Jim Meyering  <meyering@redhat.com>
11611
11612         utimensat: do not reference an out-of-scope buffer
11613         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11614         declared in an inner scope, yet "times" would be dereferenced outside
11615         the scope in which "ts" was valid.
11616         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11617         of ts[2] "out/up", so that the use of aliased "times" (via
11618         "times = ts;") does not end up referencing an out-of-scope "ts"
11619
11620         opendir-safer.c: don't clobber errno; don't close negative FD
11621         * lib/opendir-safer.c (opendir_safer):
11622         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11623         file descriptor, and more importantly, don't clobber the
11624         offending errno value with EINVAL.  Before, upon failure
11625         of dup_safer, we would pass the negative file descriptor to
11626         fdopendir, which would clobber errno.
11627
11628 2011-05-23  Bruno Haible  <bruno@clisp.org>
11629
11630         idcache: Fix module description.
11631         * modules/idcache (Include): Set to "idcache.h".
11632
11633 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11634
11635         gnulib-tool: fix portability problem with MacOS sed
11636         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11637         before the "}".  Problem reported by Leo in
11638         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11639         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11640         sed_extract_condition1, sed_extract_condition2.
11641
11642 2011-05-23  Bruno Haible  <bruno@clisp.org>
11643
11644         hash: Simplify autoconf macro.
11645         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11646
11647 2011-05-23  Bruno Haible  <bruno@clisp.org>
11648
11649         getugroups: Fix module description.
11650         * modules/getugroups (Include): Set to "getugroups.h".
11651
11652 2011-05-23  Bruno Haible  <bruno@clisp.org>
11653
11654         linkat: Simplify autoconf macro.
11655         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11656
11657 2011-05-23  Bruno Haible  <bruno@clisp.org>
11658             Eric Blake  <eblake@redhat.com>
11659
11660         linkat, renameat: Update dependencies.
11661         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11662         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11663         symlinkat.
11664
11665 2011-05-23  Jim Meyering  <meyering@redhat.com>
11666
11667         maint.mk: more tight_scope improvements
11668         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11669         (_gl_TS_headers): Define only in if-0'd block.
11670         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11671         sometimes we must *not* use it.  Adjust uses accordingly.
11672         (sc_tight_scope): Use much simpler grep-based test to determine
11673         whether we skip this rule.
11674
11675         maint.mk: generalize/improve the tight-scope rule
11676         * top/maint.mk: Emit a warning when the test is skipped.
11677         (_gl_TS_dir): Add $(srcdir)/ prefix.
11678         (_gl_TS_function_match): Simplify, rather than trying
11679         to enumerate common types.  Otherwise, it would fail to match an
11680         "extern unsigned char const *" declaration in idutils.
11681         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11682         a way to support use of that type of macro.
11683         (_gl_TS_var_match): Simplify regexp.
11684         (_gl_TS_obj_files): New configurable variable.
11685         (_gl_TS_headers): Likewise.
11686
11687 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11688
11689         verify: fix bug when gnulib <assert.h> is also included
11690         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11691         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11692         Perhaps there's a better way, but this fixes the immediate problem.
11693         Problem reported by Bruno Haible in
11694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11695
11696 2011-05-22  Bruno Haible  <bruno@clisp.org>
11697
11698         xgetcwd: Simplify autoconf macro.
11699         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11700
11701 2011-05-22  Bruno Haible  <bruno@clisp.org>
11702
11703         New module 'mktime-internal'.
11704         * modules/mktime-internal: New file.
11705         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11706         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11707         mktime_internal as a C macro if libc has __mktime_internal.
11708         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11709         conditions.
11710         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11711
11712 2011-05-22  Bruno Haible  <bruno@clisp.org>
11713
11714         timegm: Correct mktime replacement statements.
11715         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11716         defining mktime as a C macro. This completes a 2009-07-28 commit.
11717
11718 2011-05-22  Bruno Haible  <bruno@clisp.org>
11719
11720         timegm: Simplify autoconf macro.
11721         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11722
11723 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11724
11725         clock-time: change to LGPLv2+.
11726         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11727         BSD-like but we have no mark for that; this is good enough for now.
11728
11729 2011-05-21  Bruno Haible  <bruno@clisp.org>
11730
11731         strerror_r: Fix comments.
11732         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11733
11734 2011-05-21  Bruno Haible  <bruno@clisp.org>
11735
11736         relocatable-prog-wrapper: Fix possible link error.
11737         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11738         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11739         (gl_FUNC_SETENV): ... to here.
11740         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11741         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11742
11743 2011-05-21  Bruno Haible  <bruno@clisp.org>
11744
11745         relocatable-prog-wrapper: Assume strerror() exists.
11746         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11747         m4/strerror.m4.
11748         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11749         * lib/relocwrapper.c: Remove mention of strerror module.
11750         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11751         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11752         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11753         C macro.
11754
11755 2011-05-21  Bruno Haible  <bruno@clisp.org>
11756
11757         select: Simplify replacement idiom.
11758         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11759         Win32 platforms.
11760         * lib/sys_select.in.h (select): Simplify accordingly.
11761         * modules/select (Depends-on): Likewise.
11762
11763 2011-05-21  Bruno Haible  <bruno@clisp.org>
11764
11765         mkdir-p: Simplify autoconf macro.
11766         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11767         gl_FUNC_LCHOWN.
11768
11769 2011-05-21  Eric Blake  <eblake@redhat.com>
11770
11771         strerror_r: avoid clobbering strerror on cygwin
11772         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11773         fall back instead to sys_errlist.
11774         * modules/strerror (configure.ac): Add witness.
11775         * tests/test-strerror_r.c (main): Enhance test.
11776         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11777         * tests/test-perror2.c (main): Free memory before exit.
11778
11779 2011-05-21  Bruno Haible  <bruno@clisp.org>
11780
11781         mkdtemp: Use gnulib naming conventions.
11782         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11783         * modules/mkdtemp (configure.ac): Update.
11784
11785 2011-05-20  Eric Blake  <eblake@redhat.com>
11786
11787         strerror_r: avoid corrupting errno on Solaris
11788         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11789         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11790
11791         strerror_r: avoid compiler warning
11792         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11793
11794         strerror_r: simplify AIX code
11795         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11796
11797         test-perror: avoid spurious failure on FreeBSD
11798         * modules/perror-tests (Depends-on): Add strerror, now that
11799         strerror_r no longer pulls it in.
11800
11801 2011-05-20  Bruno Haible  <bruno@clisp.org>
11802
11803         strerror_r-posix: Remove unused dependencies.
11804         * modules/strerror_r-posix (Depends-on): Remove strerror.
11805         Reported by Eric Blake.
11806
11807 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11808
11809         intprops: remove assumption about A|B representation
11810         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11811         is a valid integer if both A and B are.  Although this is true for
11812         all known practical hosts, the C standard doesn't guarantee it,
11813         and the code need not assume it.  Also, this change may work around
11814         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11816
11817 2011-05-20  Eric Blake  <eblake@redhat.com>
11818
11819         perror: work around FreeBSD bug
11820         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11821         is broken.  Move AC_LIBOBJ...
11822         * modules/perror (configure.ac): Here.
11823         * doc/posix-functions/perror.texi (perror): Document this.
11824         * tests/test-perror2.c (main): Enhance test.
11825
11826         test-perror: check for strerror interactions
11827         * tests/macros.h (STREQ): Add macro.
11828         * modules/perror-tests (Files): Add second test.
11829         * tests/test-perror2.c (main): New file.
11830         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11831
11832         test-perror: rewrite to use init script
11833         * modules/perror-tests (Files): Add init.sh.
11834         * tests/test-perror.sh: Use temporary directory.
11835
11836 2011-05-20  Jim Meyering  <meyering@redhat.com>
11837
11838         maint: replace misused "a" with "an"
11839         * doc/intprops.texi: "a integer"
11840         * doc/regex.texi: "a explanation"
11841         * lib/alignof.h: "a object"
11842         * lib/argmatch.h: "a explanation"
11843         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11844         * lib/stdint.in.h: "a integer"
11845         * lib/userspec.c: "a owner"
11846         * doc/gnulib.texi: Fix "a idea", and reword.
11847
11848 2011-05-19  Jim Meyering  <meyering@redhat.com>
11849
11850         maint: correct misuse of "a" and "an"
11851         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11852         * lib/argp-help.c: "an docum...": s/an/a/
11853         * lib/argp-parse.c: "An vector": s/An/A/
11854         * lib/execute.c: "an native": s/an/a/
11855         * lib/spawn-pipe.c: Likewise.
11856         * lib/gc.h: "an Gc_rc": s/an/a/
11857         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11858         * lib/fts.c: "an stat.st_dev": s/an/a/
11859
11860 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11861
11862         intprops-tests: work around HP-UX 11.23 cc bug with constants
11863         * tests/test-intprops.c (VERIFY): New macro.
11864         (main): Use it, instead of verify, to work around the compiler bug; see
11865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11866
11867         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11868         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11869         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11870         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11871         (_GL_REMAINDER_OVERFLOW): Use it.
11872
11873         intprops-tests: revert unsigned part of previous change
11874         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11875         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11876         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11878
11879 2011-05-19  Bruno Haible  <bruno@clisp.org>
11880
11881         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11882         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11883         strerror_r() returned without filling the buffer.
11884         Reported by Eric Blake.
11885
11886 2011-05-19  Eric Blake  <eblake@redhat.com>
11887
11888         strerror_r: guarantee unchanged errno
11889         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11890         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11891         failure.
11892         * tests/test-strerror_r.c (main): Enhance test.
11893
11894 2011-05-19  Bruno Haible  <bruno@clisp.org>
11895
11896         strerror_r: Reorder #if blocks.
11897         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11898         for consistency with the previous commit.
11899
11900 2011-05-19  Bruno Haible  <bruno@clisp.org>
11901
11902         perror: Avoid clobbering the strerror buffer when possible.
11903         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11904         * lib/strerror.c: Include it.
11905         * modules/strerror (Files): Add lib/strerror-impl.h.
11906         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11907         (my_strerror): New function, defined through lib/strerror-impl.h.
11908         (perror): Use it instead of strerror.
11909         * modules/perror (Files): Add lib/strerror-impl.h.
11910         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11911
11912 2011-05-19  Eric Blake  <eblake@redhat.com>
11913
11914         strerror_r: fix on newer cygwin
11915         * lib/strerror_r.c (strerror_r): Cygwin now has
11916         __xpg_strerror_r, use it.
11917
11918 2011-05-19  Bruno Haible  <bruno@clisp.org>
11919
11920         strerror_r: Avoid clobbering the strerror buffer when possible.
11921         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11922         (sys_nerr, sys_errlist): New declarations.
11923         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11924         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11925         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11926
11927 2011-05-19  Bruno Haible  <bruno@clisp.org>
11928
11929         strerror_r: Fix test failure on mingw.
11930         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11931         EXTEND_STRERROR_R.
11932         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11933         macros from errno.in.h instead.
11934
11935 2011-05-19  Eric Blake  <eblake@redhat.com>
11936
11937         strerror: relax test for Solaris
11938         * tests/test-strerror.c (main): Permit Solaris behavior.
11939         * tests/test-strerror_r.c (main): Likewise.
11940
11941         strerror: enforce POSIX ruling on strerror(0)
11942         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11943         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11944         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11945         * doc/posix-functions/strerror.texi (strerror): Document it.
11946         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11947         * tests/test-strerror.c (main): Strengthen test.
11948         * tests/test-strerror_r.c (main): Likewise.
11949
11950 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11951
11952         intprop-tests: port to older and more-pedantic compilers
11953         * modules/intprops-tests (Files): Add tests/macros.h.
11954         * tests/test-intprops.c: Include macros.h.
11955         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11956         it's no longer documented to expand to an integer constant expression.
11957         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11958         argument is floating point, as it's no longer documented to expand
11959         to an integer constant expression in that case.
11960         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11961         compiler bugs reported by Bruno Haible.  See
11962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11963         (U0, U1): New constants, to work around the same bugs.  Also,
11964         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11965
11966         intprops: work around C compiler bugs
11967         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11968         bug in Sun C 5.11 2010/08/13 and other compilers; see
11969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11970
11971         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11972         * doc/intprops.texi (Integer Type Determination): Fix
11973         documentation for TYPE_IS_INTEGER: it returns an constant
11974         expression, not an integer constant expression.  Fix doc for
11975         TYPE_SIGNED: it returns an integer constant expression only if its
11976         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11977         hardly worth documented that way....)
11978
11979 2011-05-18  Bruno Haible  <bruno@clisp.org>
11980
11981         strerror_r: Avoid clobbering the strerror buffer when possible.
11982         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11983         Handle gnulib defined errno values here. When strerror() returns NULL
11984         or an empty string, return EINVAL.
11985         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11986         gnulib defined errno values here.
11987         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11988
11989 2011-05-18  Eric Blake  <eblake@redhat.com>
11990
11991         fnmatch: avoid compiler warning
11992         * lib/fnmatch_loop.c (FCT): Use correct type.
11993         Reported by Matthias Bolte.
11994
11995 2011-05-13  Jim Meyering  <meyering@redhat.com>
11996
11997         maint.mk: three new prohibit_<HDR>_without_use rules
11998         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11999         (sc_prohibit_stdio-safer_without_use): Likewise.
12000         (sc_prohibit_xfreopen_without_use): Likewise.
12001
12002 2011-05-17  Jim Meyering  <meyering@redhat.com>
12003
12004         announce-gen: fail if the NEWS delta is empty
12005         If there's nothing noteworthy in NEWS, then either you forgot
12006         or you shouldn't be releasing.
12007         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
12008
12009 2011-05-17  Pádraig Brady <P@draigBrady.com>
12010
12011         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
12012         reserved symbols starting with double underscore from the check.
12013
12014 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12015
12016         intprops: add doc
12017         * doc/intprops.texi: New file, documenting intprops.
12018         * doc/gnulib.texi (Particular Modules): Include it.
12019
12020         verify: add doc to gnulib manual and fix example
12021         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
12022         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
12023         (Compile-time Assertions): Fix example so it can't overflow.
12024
12025 2011-05-17  Jim Meyering  <meyering@redhat.com>
12026
12027         warnings.m4: don't usurp save_CPPFLAGS variable name
12028         * m4/warnings.m4: Prefix local temporary variable name with gl_.
12029
12030         doc: fix typo
12031         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
12032
12033 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12034             Bruno Haible  <bruno@clisp.org>
12035
12036         doc: Tweak recent change.
12037         * README (Portability guidelines): Tweak new text.
12038         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
12039         Interix 6.1.
12040
12041 2011-05-16  Eric Blake  <eblake@redhat.com>
12042
12043         inttypes: avoid autoconf warning
12044         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12045         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12046
12047 2011-05-16  Sam Steingold <sds@gnu.org>
12048         and Eric Blake  <eblake@redhat.com>
12049
12050         vc-list-files: accept multiple directory operands
12051         * build-aux/vc-list-files: Iterate over all remaining operands.
12052
12053 2011-05-16  Bruno Haible  <bruno@clisp.org>
12054
12055         Fix confusion regarding deprecated modules.
12056         * modules/calloc (Status, Notice): Mark module as deprecated, not
12057         obsolete.
12058         * modules/fnmatch-posix (Status, Notice): Likewise.
12059         * modules/getdate (Status, Notice): Likewise.
12060         * modules/getopt (Status, Notice): Likewise.
12061         * modules/malloc (Status, Notice): Likewise.
12062         * modules/pipe (Status, Notice): Likewise.
12063         * modules/realloc (Status, Notice): Likewise.
12064         * modules/rename-dest-slash (Status, Notice): Likewise.
12065         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12066         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12067         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12068         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12069         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12070
12071 2011-05-16  Bruno Haible  <bruno@clisp.org>
12072
12073         doc: List the target platforms.
12074         * doc/gnulib-intro.texi (Target Platforms): New section.
12075         * doc/gnulib.texi (Introduction): Update menu.
12076         * README (Portability guidelines): Refer to the new section. Update
12077         statement about oldest supported environment. Remove rationale why
12078         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12079         unportable C89 function.
12080         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12081         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12082
12083 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12084
12085         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12086
12087 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12088
12089         intprops-tests: new module
12090         * modules/intprops-tests, tests/test-intprops.c: New files.
12091
12092         intprops: add safe, portable integer overflow checking
12093         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12094         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12095         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12096         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12097         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12098         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12099         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12100         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12101         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12102         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12103         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12104
12105 2011-05-12  James Youngman  <jay@gnu.org>
12106
12107         Add a test for glibc's Bugzilla bug #12378.
12108         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12109         doesn't allow the literal matching of a lone "[" (which is
12110         required by POSIX).
12111         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12112
12113 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12114
12115         Sync glibc change fixing Bugzilla bug #12378.
12116         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12117         beginning and fall back to matching as normal character if the
12118         string ends before the matching ']' is found.  This is what POSIX
12119         requires.
12120
12121 2011-05-13  Eric Blake  <eblake@redhat.com>
12122
12123         getcwd-lgpl: relax test for FreeBSD
12124         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12125         issue.
12126         * tests/test-getcwd-lgpl.c (main): Relax test.
12127         Reported by Matthias Bolte.
12128
12129 2011-05-11  Eric Blake  <eblake@redhat.com>
12130
12131         test-fflush: silence compiler warning
12132         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12133
12134 2011-05-11  Bruno Haible  <bruno@clisp.org>
12135
12136         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12137         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12138         * modules/canonicalize (Depends-on): Add 'nocrash'.
12139         * modules/canonicalize-lgpl (Depends-on): Likewise.
12140         * doc/posix-functions/realpath.texi: Update platforms list.
12141         Reported by Ryan Schmidt <ryandesign@macports.org>.
12142
12143 2011-05-11  Bruno Haible  <bruno@clisp.org>
12144
12145         group-member: Declare function in <unistd.h>.
12146         * lib/unistd.in.h (group_member): New declaration.
12147         * lib/group-member.h: Remove file.
12148         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12149         * tests/test-unistd-c++.cc: Check signature of group_member.
12150         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12151         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12152         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12153         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12154         HAVE_GROUP_MEMBER.
12155         * modules/group-member (Files): Remove lib/group-member.h.
12156         (Depends-on): Add unistd. Specify conditions.
12157         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12158         (Include): Change to <unistd.h>.
12159         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12160         HAVE_GROUP_MEMBER.
12161         * NEWS: Mention the change.
12162         * lib/euidaccess.c: Don't include group-member.h.
12163
12164 2011-05-11  Bruno Haible  <bruno@clisp.org>
12165
12166         group-member: Document module.
12167         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12168         module.
12169
12170 2011-05-11  Bruno Haible  <bruno@clisp.org>
12171
12172         fclose: Fix mistake earlier today.
12173         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12174
12175 2011-05-11  Eric Blake  <eblake@redhat.com>
12176
12177         fclose: preserve fflush errors
12178         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12179         Reported by Jim Meyering.
12180
12181         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12182         * build-aux/bootstrap (check_versions): When no specific version
12183         is required, merely check that the app produces an exit status
12184         that indicates its existence.
12185
12186         maint.mk: drop redundant check
12187         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12188         the same but better.
12189
12190 2011-05-11  Bruno Haible  <bruno@clisp.org>
12191
12192         fclose: Fix possible link error.
12193         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12194         unregister_shadow_fd. Improve comments.
12195         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12196         Eric Blake.
12197
12198 2011-05-11  Jim Meyering  <meyering@redhat.com>
12199
12200         maint.mk: improve "can not" detection and generalize rule name
12201         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12202         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12203         Use the same technique as in sc_prohibit_doubled_word, so that
12204         we recognize "can not" also when the words are separated by a newline.
12205         Suggested by Eric Blake.
12206         (perl_filename_lineno_text_): Define.  Factored out of...
12207         (prohibit_doubled_word_): ...here.  Use the new definition.
12208         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12209         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12210         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12211
12212 2011-05-10  Eric Blake  <eblake@redhat.com>
12213
12214         fclose: avoid double close race when possible
12215         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12216         all but WINDOWS_SOCKETS.
12217
12218 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12219
12220         openat: correct new comment
12221         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12222
12223 2011-05-10  Jim Meyering  <meyering@redhat.com>
12224
12225         openat: add comments
12226         * lib/openat-proc.c (openat_proc_name): Add comments,
12227         mostly from Eric Blake.
12228
12229 2011-05-09  Eric Blake  <eblake@redhat.com>
12230
12231         openat: reduce syscalls in first probe of /proc
12232         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12233         be a directory.  Simplify the probe for .. bugs.
12234         * modules/openat (Depends-on): Drop same-inode.
12235         Reported by Bastien ROUCARIES.
12236
12237 2011-05-09  Jim Meyering  <meyering@redhat.com>
12238
12239         maint.mk: change semantics/name of tight_scope variables
12240         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12241         Rename variables to align with semantics that make them more useful.
12242
12243         maint.mk: tweak new rule's name not to impinge
12244         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12245         (sc_tight_scope): Use new rule name rather than $@-0.
12246
12247         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12248         * top/maint.mk (sc_tight_scope): New rule.
12249         (sc_tight_scope-0): New rule, ifdef'd out.
12250         (_gl_TS_dir): Default.
12251         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12252         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12253
12254 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12255
12256         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12257         Haible <bruno@clisp.org>.
12258
12259 2011-05-08  Bruno Haible  <bruno@clisp.org>
12260
12261         Comments.
12262         * m4/isnanf.m4: Add comment.
12263         * m4/isnanl.m4: Likewise.
12264
12265 2011-05-08  Bruno Haible  <bruno@clisp.org>
12266
12267         glob: Remove obsolete macro.
12268         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12269
12270 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12271
12272         intprops: Sun C 5.11 supports __typeof__
12273         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12274         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12275         which is new.
12276         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12277
12278         intprops: switch to usual gnulib indenting and naming
12279         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12280         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12281
12282         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12283
12284 2011-05-08  Jim Meyering  <meyering@redhat.com>
12285
12286         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12287         * top/maint.mk (release-prep): Use make's --no-print-directory
12288         option when generating the announcement.  This eliminates the
12289         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12290         generated announcement template.
12291
12292 2011-05-08  Bruno Haible  <bruno@clisp.org>
12293
12294         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12295         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12296         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12297
12298 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12299
12300         ignore-value, verify: Omit include files from lib_SOURCES.
12301         * modules/ignore-value, modules/verify (Makefile.am):
12302         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12303         that leads Automake to duplicate use of am__objects_... variables
12304         in Makefile.in.  See
12305         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12306
12307 2011-05-07  Bruno Haible  <bruno@clisp.org>
12308
12309         fclose: Simplify autoconf macro.
12310         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12311         defined.
12312
12313 2011-05-07  Bruno Haible  <bruno@clisp.org>
12314
12315         canonicalize-lgpl: Fix autoconf macro ordering bug.
12316         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12317         gl_STDLIB_H_DEFAULTS.
12318
12319 2011-05-06  Eric Blake  <eblake@redhat.com>
12320
12321         maintainer-makefile: make sc_po_check easier to tune
12322         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12323         to probe for strings, such as an alternate location for gnulib.
12324
12325         fclose: guarantee behavior on seekable stdin
12326         * modules/fclose (Depends-on): Add fflush.
12327         * doc/posix-functions/fclose.texi (fclose): Document this.
12328         * tests/test-fclose.c (main): Make test for this unconditional.
12329
12330 2011-05-06  Bruno Haible  <bruno@clisp.org>
12331
12332         fflush, fpurge: Relicense under LGPLv2+.
12333         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12334         * modules/fpurge (License): Likewise.
12335         With permission from Eric Blake and Jim Meyering.
12336         Suggested by Eric Blake.
12337
12338 2011-05-06  Karl Berry  <karl@gnu.org>
12339
12340         * MODULES.html.sh (func_all_modules): remove exit.
12341
12342 2011-05-06  Jim Meyering  <meyering@redhat.com>
12343
12344         maint.mk: use info-gnu@ as the default only for a stable release
12345         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12346         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12347         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12348         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12349
12350 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12351
12352         assert-h: new module, which supports C1X-style static_assert
12353         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12354         * lib/verify.h: Revamp so that this can be copied into assert.h,
12355         while retaining the ability to use it standalone as before.
12356         Rename private identifiers so as not to encroach on the
12357         standard C namespace, since this is now used by assert.h.
12358         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12359         the old verify_true.
12360         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12361         the old verify_true.  Use _GL_VERIFY_TYPE.
12362         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12363         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12364         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12365         defined when this file is copied into the replacement assert.h.
12366         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12367         and _Static_assert is not built in.
12368         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12369         defined, and use the new macros mentioned above.
12370         * doc/posix-headers/assert.texi: Document this.
12371
12372 2011-05-05  Bruno Haible  <bruno@clisp.org>
12373
12374         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12375         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12376         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12377         gl_REPLACE_FCLOSE here.
12378         * modules/fflush (Depends-on): Remove fclose.
12379         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12380         combination with module 'fclose'.
12381
12382 2011-05-05  Bruno Haible  <bruno@clisp.org>
12383
12384         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12385         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12386         gl_FUNC_FFLUSH.
12387         (gl_FUNC_FFLUSH): Use it.
12388         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12389         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12390         gl_REPLACE_FSEEKO here.
12391
12392 2011-05-05  Bruno Haible  <bruno@clisp.org>
12393
12394         tzset: Relicense under LGPL.
12395         * modules/tzset (License): Change to LGPL.
12396         No agreement needed; it's a no-op.
12397
12398         strtoimax, strtoumax: Relicense under LGPL.
12399         * modules/strtoimax (License): Change to LGPL.
12400         * modules/strtoumax (License): Likewise.
12401         With permission from Jim Meyering, Paul Eggert:
12402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12404
12405         getgroups: Relicense under LGPL.
12406         * modules/getgroups (License): Change to LGPL.
12407         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12411
12412         nanosleep: Relicense under LGPL.
12413         * modules/nanosleep (License): Change to LGPL.
12414         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12415         Haible:
12416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12417         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12420
12421         futimens: Relicense under LGPL.
12422         * modules/futimens (License): Change to LGPL.
12423         With permission from Eric Blake:
12424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12425
12426         fflush: Relicense under LGPL.
12427         * modules/fflush (License): Change to LGPL.
12428         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12432
12433         tmpfile: Relicense under LGPL.
12434         * modules/tmpfile (License): Change to LGPL.
12435         With permission from Ben Pfaff:
12436         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12437
12438         isfinite: Relicense under LGPL.
12439         * modules/isfinite (License): Change to LGPL.
12440         With permission from Ben Pfaff, Bruno Haible:
12441         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12443
12444         acosl..tanl: Relicense under LGPL.
12445         * modules/acosl (License): Change to LGPL.
12446         * modules/asinl (License): Likewise.
12447         * modules/atanl (License): Likewise.
12448         * modules/cosl (License): Likewise.
12449         * modules/expl (License): Likewise.
12450         * modules/logl (License): Likewise.
12451         * modules/sinl (License): Likewise.
12452         * modules/sqrtl (License): Likewise.
12453         * modules/tanl (License): Likewise.
12454         Source code originally from glibc and Paolo Bonzini. Agreements:
12455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12457
12458 2011-05-05  Bruno Haible  <bruno@clisp.org>
12459
12460         signal: Define sighandler_t.
12461         * lib/signal.in.h (sighandler_t): New type.
12462         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12463         whether sighandler_t is defined.
12464         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12465         * modules/signal (Depends-on): Add extensions.
12466         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12467         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12468         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12469
12470 2011-05-05  Eric Blake  <eblake@redhat.com>
12471
12472         maint: remove useless REPLACE_*_H macros
12473         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12474         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12475         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12476         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12477         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12478         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12479         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12480         * m4/btowc.m4: Update callers.
12481         * m4/dirfd.m4: Likewise.
12482         * m4/duplocale.m4: Likewise.
12483         * m4/fchdir.m4: Likewise.
12484         * m4/fdopendir.m4: Likewise.
12485         * m4/inet_ntop.m4: Likewise.
12486         * m4/inet_pton.m4: Likewise.
12487         * m4/ioctl.m4: Likewise.
12488         * m4/mbrlen.m4: Likewise.
12489         * m4/mbrtowc.m4: Likewise.
12490         * m4/mbsinit.m4: Likewise.
12491         * m4/mbsnrtowcs.m4: Likewise.
12492         * m4/mbsrtowcs.m4: Likewise.
12493         * m4/poll.m4: Likewise.
12494         * m4/setlocale.m4: Likewise.
12495         * m4/wcrtomb.m4: Likewise.
12496         * m4/wcsnrtombs.m4: Likewise.
12497         * m4/wcsrtombs.m4: Likewise.
12498         * m4/wctob.m4: Likewise.
12499         * m4/wcwidth.m4: Likewise.
12500         * modules/posix_spawn: Likewise.
12501         * modules/posix_spawn_file_actions_addclose: Likewise.
12502         * modules/posix_spawn_file_actions_adddup2: Likewise.
12503         * modules/posix_spawn_file_actions_addopen: Likewise.
12504         * modules/posix_spawn_file_actions_destroy: Likewise.
12505         * modules/posix_spawn_file_actions_init: Likewise.
12506         * modules/posix_spawnattr_destroy: Likewise.
12507         * modules/posix_spawnattr_getflags: Likewise.
12508         * modules/posix_spawnattr_getpgroup: Likewise.
12509         * modules/posix_spawnattr_getschedparam: Likewise.
12510         * modules/posix_spawnattr_getschedpolicy: Likewise.
12511         * modules/posix_spawnattr_getsigdefault: Likewise.
12512         * modules/posix_spawnattr_getsigmask: Likewise.
12513         * modules/posix_spawnattr_init: Likewise.
12514         * modules/posix_spawnattr_setflags: Likewise.
12515         * modules/posix_spawnattr_setpgroup: Likewise.
12516         * modules/posix_spawnattr_setschedparam: Likewise.
12517         * modules/posix_spawnattr_setschedpolicy: Likewise.
12518         * modules/posix_spawnattr_setsigdefault: Likewise.
12519         * modules/posix_spawnattr_setsigmask: Likewise.
12520         * modules/posix_spawnp: Likewise.
12521
12522 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12523
12524         Add option to do-release-commit-and-tag to specify branch.
12525         * build-aux/do-release-commit-and-tag: Add --branch.
12526
12527 2011-05-03  Bruno Haible  <bruno@clisp.org>
12528
12529         Avoid unnecessary compilation units, through conditional dependencies.
12530         * modules/accept (Depends-on): Add conditions to the dependencies.
12531         * modules/acosl (Depends-on): Likewise.
12532         * modules/argz (Depends-on): Likewise.
12533         * modules/asinl (Depends-on): Likewise.
12534         * modules/atanl (Depends-on): Likewise.
12535         * modules/atoll (Depends-on): Likewise.
12536         * modules/bind (Depends-on): Likewise.
12537         * modules/btowc (Depends-on): Likewise.
12538         * modules/canonicalize-lgpl (Depends-on): Likewise.
12539         * modules/ceil (Depends-on): Likewise.
12540         * modules/ceilf (Depends-on): Likewise.
12541         * modules/ceill (Depends-on): Likewise.
12542         * modules/chdir-long (Depends-on): Likewise.
12543         * modules/chown (Depends-on): Likewise.
12544         * modules/close (Depends-on): Likewise.
12545         * modules/connect (Depends-on): Likewise.
12546         * modules/cosl (Depends-on): Likewise.
12547         * modules/dirfd (Depends-on): Likewise.
12548         * modules/dprintf (Depends-on): Likewise.
12549         * modules/dprintf-posix (Depends-on): Likewise.
12550         * modules/error (Depends-on): Likewise.
12551         * modules/euidaccess (Depends-on): Likewise.
12552         * modules/expl (Depends-on): Likewise.
12553         * modules/faccessat (Depends-on): Likewise.
12554         * modules/fchdir (Depends-on): Likewise.
12555         * modules/fclose (Depends-on): Likewise.
12556         * modules/fcntl (Depends-on): Likewise.
12557         * modules/fdopendir (Depends-on): Likewise.
12558         * modules/fflush (Depends-on): Likewise.
12559         * modules/floor (Depends-on): Likewise.
12560         * modules/floorf (Depends-on): Likewise.
12561         * modules/floorl (Depends-on): Likewise.
12562         * modules/fnmatch (Depends-on): Likewise.
12563         * modules/fopen (Depends-on): Likewise.
12564         * modules/fprintf-posix (Depends-on): Likewise.
12565         * modules/frexp (Depends-on): Likewise.
12566         * modules/frexp-nolibm (Depends-on): Likewise.
12567         * modules/frexpl (Depends-on): Likewise.
12568         * modules/frexpl-nolibm (Depends-on): Likewise.
12569         * modules/fseek (Depends-on): Likewise.
12570         * modules/fsusage (Depends-on): Likewise.
12571         * modules/ftell (Depends-on): Likewise.
12572         * modules/ftello (Depends-on): Likewise.
12573         * modules/futimens (Depends-on): Likewise.
12574         * modules/getcwd (Depends-on): Likewise.
12575         * modules/getcwd-lgpl (Depends-on): Likewise.
12576         * modules/getdelim (Depends-on): Likewise.
12577         * modules/getdomainname (Depends-on): Likewise.
12578         * modules/getgroups (Depends-on): Likewise.
12579         * modules/gethostname (Depends-on): Likewise.
12580         * modules/getline (Depends-on): Likewise.
12581         * modules/getlogin_r (Depends-on): Likewise.
12582         * modules/getopt-posix (Depends-on): Likewise.
12583         * modules/getpeername (Depends-on): Likewise.
12584         * modules/getsockname (Depends-on): Likewise.
12585         * modules/getsockopt (Depends-on): Likewise.
12586         * modules/getsubopt (Depends-on): Likewise.
12587         * modules/getusershell (Depends-on): Likewise.
12588         * modules/glob (Depends-on): Likewise.
12589         * modules/grantpt (Depends-on): Likewise.
12590         * modules/iconv_open (Depends-on): Likewise.
12591         * modules/iconv_open-utf (Depends-on): Likewise.
12592         * modules/inet_ntop (Depends-on): Likewise.
12593         * modules/inet_pton (Depends-on): Likewise.
12594         * modules/ioctl (Depends-on): Likewise.
12595         * modules/isapipe (Depends-on): Likewise.
12596         * modules/isfinite (Depends-on): Likewise.
12597         * modules/isinf (Depends-on): Likewise.
12598         * modules/lchown (Depends-on): Likewise.
12599         * modules/ldexpl (Depends-on): Likewise.
12600         * modules/link (Depends-on): Likewise.
12601         * modules/linkat (Depends-on): Likewise.
12602         * modules/listen (Depends-on): Likewise.
12603         * modules/logl (Depends-on): Likewise.
12604         * modules/lstat (Depends-on): Likewise.
12605         * modules/mbrlen (Depends-on): Likewise.
12606         * modules/mbrtowc (Depends-on): Likewise.
12607         * modules/mbsinit (Depends-on): Likewise.
12608         * modules/mbsnrtowcs (Depends-on): Likewise.
12609         * modules/mbsrtowcs (Depends-on): Likewise.
12610         * modules/mbtowc (Depends-on): Likewise.
12611         * modules/memcmp (Depends-on): Likewise.
12612         * modules/mkdir (Depends-on): Likewise.
12613         * modules/mkdtemp (Depends-on): Likewise.
12614         * modules/mkfifo (Depends-on): Likewise.
12615         * modules/mkfifoat (Depends-on): Likewise.
12616         * modules/mknod (Depends-on): Likewise.
12617         * modules/mkostemp (Depends-on): Likewise.
12618         * modules/mkostemps (Depends-on): Likewise.
12619         * modules/mkstemp (Depends-on): Likewise.
12620         * modules/mkstemps (Depends-on): Likewise.
12621         * modules/mktime (Depends-on): Likewise.
12622         * modules/nanosleep (Depends-on): Likewise.
12623         * modules/open (Depends-on): Likewise.
12624         * modules/openat (Depends-on): Likewise.
12625         * modules/perror (Depends-on): Likewise.
12626         * modules/poll (Depends-on): Likewise.
12627         * modules/popen (Depends-on): Likewise.
12628         * modules/posix_spawn (Depends-on): Likewise.
12629         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12630         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12631         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12632         * modules/posix_spawnp (Depends-on): Likewise.
12633         * modules/pread (Depends-on): Likewise.
12634         * modules/printf-posix (Depends-on): Likewise.
12635         * modules/ptsname (Depends-on): Likewise.
12636         * modules/putenv (Depends-on): Likewise.
12637         * modules/pwrite (Depends-on): Likewise.
12638         * modules/readline (Depends-on): Likewise.
12639         * modules/readlink (Depends-on): Likewise.
12640         * modules/readlinkat (Depends-on): Likewise.
12641         * modules/recv (Depends-on): Likewise.
12642         * modules/recvfrom (Depends-on): Likewise.
12643         * modules/regex (Depends-on): Likewise.
12644         * modules/remove (Depends-on): Likewise.
12645         * modules/rename (Depends-on): Likewise.
12646         * modules/renameat (Depends-on): Likewise.
12647         * modules/rmdir (Depends-on): Likewise.
12648         * modules/round (Depends-on): Likewise.
12649         * modules/roundf (Depends-on): Likewise.
12650         * modules/roundl (Depends-on): Likewise.
12651         * modules/rpmatch (Depends-on): Likewise.
12652         * modules/select (Depends-on): Likewise.
12653         * modules/send (Depends-on): Likewise.
12654         * modules/sendto (Depends-on): Likewise.
12655         * modules/setenv (Depends-on): Likewise.
12656         * modules/setlocale (Depends-on): Likewise.
12657         * modules/setsockopt (Depends-on): Likewise.
12658         * modules/shutdown (Depends-on): Likewise.
12659         * modules/sigaction (Depends-on): Likewise.
12660         * modules/signbit (Depends-on): Likewise.
12661         * modules/sigprocmask (Depends-on): Likewise.
12662         * modules/sinl (Depends-on): Likewise.
12663         * modules/sleep (Depends-on): Likewise.
12664         * modules/snprintf (Depends-on): Likewise.
12665         * modules/snprintf-posix (Depends-on): Likewise.
12666         * modules/socket (Depends-on): Likewise.
12667         * modules/sprintf-posix (Depends-on): Likewise.
12668         * modules/sqrtl (Depends-on): Likewise.
12669         * modules/stat (Depends-on): Likewise.
12670         * modules/strchrnul (Depends-on): Likewise.
12671         * modules/strdup-posix (Depends-on): Likewise.
12672         * modules/strerror (Depends-on): Likewise.
12673         * modules/strerror_r-posix (Depends-on): Likewise.
12674         * modules/strndup (Depends-on): Likewise.
12675         * modules/strnlen (Depends-on): Likewise.
12676         * modules/strptime (Depends-on): Likewise.
12677         * modules/strsep (Depends-on): Likewise.
12678         * modules/strsignal (Depends-on): Likewise.
12679         * modules/strstr-simple (Depends-on): Likewise.
12680         * modules/strtod (Depends-on): Likewise.
12681         * modules/strtoimax (Depends-on): Likewise.
12682         * modules/strtok_r (Depends-on): Likewise.
12683         * modules/strtoumax (Depends-on): Likewise.
12684         * modules/symlink (Depends-on): Likewise.
12685         * modules/symlinkat (Depends-on): Likewise.
12686         * modules/tanl (Depends-on): Likewise.
12687         * modules/tcgetsid (Depends-on): Likewise.
12688         * modules/tmpfile (Depends-on): Likewise.
12689         * modules/trunc (Depends-on): Likewise.
12690         * modules/truncf (Depends-on): Likewise.
12691         * modules/truncl (Depends-on): Likewise.
12692         * modules/uname (Depends-on): Likewise.
12693         * modules/unlink (Depends-on): Likewise.
12694         * modules/unlockpt (Depends-on): Likewise.
12695         * modules/unsetenv (Depends-on): Likewise.
12696         * modules/usleep (Depends-on): Likewise.
12697         * modules/utimensat (Depends-on): Likewise.
12698         * modules/vasprintf (Depends-on): Likewise.
12699         * modules/vdprintf (Depends-on): Likewise.
12700         * modules/vdprintf-posix (Depends-on): Likewise.
12701         * modules/vfprintf-posix (Depends-on): Likewise.
12702         * modules/vprintf-posix (Depends-on): Likewise.
12703         * modules/vsnprintf (Depends-on): Likewise.
12704         * modules/vsnprintf-posix (Depends-on): Likewise.
12705         * modules/vsprintf-posix (Depends-on): Likewise.
12706         * modules/wcrtomb (Depends-on): Likewise.
12707         * modules/wcscasecmp (Depends-on): Likewise.
12708         * modules/wcscspn (Depends-on): Likewise.
12709         * modules/wcsdup (Depends-on): Likewise.
12710         * modules/wcsncasecmp (Depends-on): Likewise.
12711         * modules/wcsnrtombs (Depends-on): Likewise.
12712         * modules/wcspbrk (Depends-on): Likewise.
12713         * modules/wcsrtombs (Depends-on): Likewise.
12714         * modules/wcsspn (Depends-on): Likewise.
12715         * modules/wcsstr (Depends-on): Likewise.
12716         * modules/wcstok (Depends-on): Likewise.
12717         * modules/wcswidth (Depends-on): Likewise.
12718         * modules/wctob (Depends-on): Likewise.
12719         * modules/wctomb (Depends-on): Likewise.
12720         * modules/wctype (Depends-on): Likewise.
12721         * modules/wcwidth (Depends-on): Likewise.
12722         * modules/write (Depends-on): Likewise.
12723
12724 2011-05-03  Bruno Haible  <bruno@clisp.org>
12725
12726         Support for conditional dependencies.
12727         * doc/gnulib.texi (Module description): Document the syntax of
12728         conditional dependencies.
12729         * gnulib-tool: New option --conditional-dependencies.
12730         (func_usage): Document it.
12731         (cond_dependencies): New variable.
12732         (func_get_automake_snippet_conditional,
12733         func_get_automake_snippet_unconditional): New functions, extracted from
12734         func_get_automake_snippet.
12735         (func_get_automake_snippet): Use them.
12736         (sed_first_32_chars): New variable.
12737         (func_module_shellfunc_name): New function.
12738         (func_module_shellvar_name): New function.
12739         (func_module_conditional_name): New function.
12740         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12741         func_cond_module_condition): New functions.
12742         (func_modules_transitive_closure): Add support for conditional
12743         dependencies.
12744         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12745         conditional automake snippet in an automake conditional.
12746         (func_emit_autoconf_snippets): Emit shell functions that contain the
12747         code for conditional modules.
12748         (func_import, func_create_testdir): Update specification.
12749
12750 2011-05-03  Eric Blake  <eblake@redhat.com>
12751
12752         test-getaddrinfo: report error information
12753         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12754
12755 2011-05-03  Jim Meyering  <meyering@redhat.com>
12756
12757         bootstrap: avoid build failure when $GZIP is set
12758         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12759         program name.  If defined at all, it is supposed to list gzip options.
12760         Reported by Alan Curry in http://debbugs.gnu.org/8609
12761
12762 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12763
12764         readme-release: new module with release instructions
12765         * modules/readme-release: New module.
12766         * top/README-release: New file, from coreutils, grep, diffutils.
12767         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12768
12769 2011-05-02  Eric Blake  <eblake@redhat.com>
12770
12771         fflush: also replace fclose when fixing fflush
12772         * modules/fflush (Depends-on): Add fclose.
12773         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12774         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12775         memstreams with no backing fd.
12776         * doc/posix-functions/fclose.texi (fclose): Document the use of
12777         fflush module to fix the bug.
12778         * tests/test-fclose.c (main): Relax test when fclose is used in
12779         isolation.
12780
12781         fclose: add some tests
12782         * modules/fclose-tests: New test module.
12783         * tests/test-fclose.c: New file.
12784         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12785
12786         fclose: reduced dependencies
12787         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12788         simpler lseek.
12789         * lib/fclose.c (rpl_fclose): Likewise.
12790         Reported by Simon Josefsson.
12791
12792         exit: drop remaining clients
12793         * modules/argmatch (Depends-on): Replace exit with stdlib.
12794         * modules/copy-file (Depends-on): Likewise.
12795         * modules/execute (Depends-on): Likewise.
12796         * modules/exitfail (Depends-on): Likewise.
12797         * modules/obstack (Depends-on): Likewise.
12798         * modules/pagealign_alloc (Depends-on): Likewise.
12799         * modules/pipe-filter-gi (Depends-on): Likewise.
12800         * modules/pipe-filter-ii (Depends-on): Likewise.
12801         * modules/savewd (Depends-on): Likewise.
12802         * modules/spawn-pipe (Depends-on): Likewise.
12803         * modules/wait-process (Depends-on): Likewise.
12804         * modules/xsetenv (Depends-on): Likewise.
12805         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12806         * modules/git-merge-changelog (Depends-on): Likewise.
12807         * modules/long-options (Depends-on): Likewise.
12808         * modules/pt_chown (Depends-on): Likewise.
12809         * modules/sysexits (Depends-on): Likewise.
12810
12811         freading: relax license from LGPLv3+ to LGPLv2+
12812         * modules/freading (License): Relax LGPL version.
12813
12814 2011-05-02  Bruno Haible  <bruno@clisp.org>
12815
12816         fchdir: Remove unused dependencies.
12817         * modules/fchdir (Depends-on): Remove include_next.
12818
12819 2011-05-02  Bruno Haible  <bruno@clisp.org>
12820
12821         gnulib-tool: Refactor.
12822         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12823         from func_emit_autoconf_snippets.
12824         (func_emit_autoconf_snippets): Use it.
12825
12826 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12827
12828         * NEWS: Document removal of 'exit'.
12829         * modules/exit: Remove file.
12830
12831 2011-05-01  Bruno Haible  <bruno@clisp.org>
12832
12833         Update DEPENDENCIES.
12834         * DEPENDENCIES (gettext): Recommend the newest release.
12835         Reported by Simon Josefsson.
12836
12837 2011-05-01  Bruno Haible  <bruno@clisp.org>
12838
12839         gnulib-tool: Reduce code duplication.
12840         * gnulib-tool (func_emit_autoconf_snippets): New function.
12841         (func_import, func_create_testdir): Use it.
12842
12843 2011-04-30  Eric Blake  <eblake@redhat.com>
12844
12845         fclose: don't fail on non-seekable input stream
12846         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12847         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12848         since fflush is allowed to fail in that case.
12849
12850 2011-04-30  Bruno Haible  <bruno@clisp.org>
12851
12852         dup3: cleanup
12853         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12854
12855 2011-04-30  Bruno Haible  <bruno@clisp.org>
12856
12857         netdb: Make it work in C++ mode.
12858         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12859         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12860         module.
12861         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12862         gl_MODULE_INDICATOR_FOR_TESTS.
12863         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12864         * modules/netdb-c++-tests: New file.
12865         * tests/test-netdb-c++.cc: New file.
12866
12867 2011-04-30  Bruno Haible  <bruno@clisp.org>
12868
12869         New modules 'vfscanf', 'vscanf'.
12870         * modules/vfscanf: New file.
12871         * modules/vscanf: New file.
12872         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12873         here.
12874         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12875         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12876
12877 2011-04-30  Bruno Haible  <bruno@clisp.org>
12878
12879         passfd: Add comments.
12880         * lib/passfd.c: Add comments about platforms.
12881
12882 2011-04-30  Bruno Haible  <bruno@clisp.org>
12883
12884         sys_uio: Make <sys/uio.h> self-contained.
12885         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12886         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12887
12888 2011-04-30  Bruno Haible  <bruno@clisp.org>
12889
12890         sys_socket: Ensure 'struct iovec' definition.
12891         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12892         <sys/socket.h>.
12893         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12894
12895 2011-04-30  Bruno Haible  <bruno@clisp.org>
12896
12897         sys_uio: Protect definition of 'struct iovec'.
12898         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12899         it as a C struct.
12900
12901 2011-04-30  Bruno Haible  <bruno@clisp.org>
12902
12903         manywarnings: fix indentation
12904         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12905
12906 2011-04-30  Pádraig Brady <P@draigBrady.com>
12907
12908         manywarnings: add -Wno-missing-field-initializers if needed.
12909         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12910         option if it's needed to allow initialization with { 0, }
12911
12912 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12913
12914         announce-gen: cosmetic improvement
12915         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12916
12917 2011-04-29  Jim Meyering  <meyering@redhat.com>
12918
12919         vc-list-files: indent with spaces, not TABs
12920         * build-aux/vc-list-files: Convert leading TABs to spaces,
12921         to match the style of most other files in gnulib.
12922
12923         announce-gen: indent with spaces, not TABs
12924         * build-aux/announce-gen: Convert all TABs to spaces, to match
12925         the style of most other files in gnulib.
12926
12927 2011-04-29  Eric Blake  <eblake@redhat.com>
12928
12929         quotearg: avoid uninitialized variable use
12930         * lib/quotearg.c (quoting_options_from_style): Initialize
12931         remaining fields, and ensure that custom styles are only used via
12932         quoting_options rather than quoting_style.
12933
12934 2011-04-29  Jim Meyering  <meyering@redhat.com>
12935
12936         maint.mk: remove unused VC-tag variable
12937         * top/maint.mk (VC-tag): Remove unused variable.
12938
12939 2011-04-29  Bruno Haible  <bruno@clisp.org>
12940
12941         netdb: fix gai_strerror replacements
12942         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12943         * modules/netdb: Substitute it.
12944
12945 2011-04-29  Jim Meyering  <meyering@redhat.com>
12946
12947         test-getcwd.c: avoid new set-but-not-used warning
12948         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12949         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12950         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12951         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12952
12953         test-hash.c: avoid a new shadowing warning
12954         * tests/test-hash.c (main): Don't shadow "dup".
12955
12956 2011-04-28  Eric Blake  <eblake@redhat.com>
12957
12958         getaddrinfo: fix gai_strerror signature
12959         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12960         and work around mingw with UNICODE defined.
12961         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12962         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12963         * modules/netdb (Makefile.am): Substitute it.
12964         * lib/netdb.in.h (gai_strerror): Declare replacement.
12965         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12966         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12967         the fix.
12968
12969         getsockopt: avoid compiler warning
12970         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12971         Reported by Matthias Bolte.
12972
12973         tests: drop unused link dependency
12974         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12975         * modules/dirent-safer-tests (Makefile.am): Likewise.
12976         * modules/fdopendir-tests (Makefile.am): Likewise.
12977         * modules/mkfifoat-tests (Makefile.am): Likewise.
12978         * modules/openat-safer-tests (Makefile.am): Likewise.
12979         * modules/openat-tests (Makefile.am): Likewise.
12980         * modules/readlinkat-tests (Makefile.am): Likewise.
12981         * modules/symlinkat-tests (Makefile.am): Likewise.
12982         * modules/linkat-tests (Makefile.am): Likewise.
12983         (Depends-on): Switch to filenamecat-lgpl.
12984         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12985         LIBINTL.
12986         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12987         * tests/test-linkat.c (main): Don't require xalloc.
12988
12989         hash, mgetgroups: drop xalloc dependency
12990         * lib/hash.c (includes): Adjust includes.
12991         * lib/mgetgroups.c (includes): Likewise.
12992         (xgetgroups): Move...
12993         * lib/xgetgroups.c: ...to new file.
12994         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12995         * modules/xgetgroups: New file, split from...
12996         * modules/mgetgroups: ...here.
12997         (Depends-on): Add xalloc-oversized.
12998         * modules/hash (Depends-on): Likewise.
12999         * modules/hash-tests (Depends-on): Drop xalloc.
13000         (test_hash_LDADD): Drop unused library.
13001         * tests/test-hash.c (main): Break xalloc dependency.
13002         (includes): Drop unused include.
13003
13004         xalloc-oversized: new module
13005         * modules/xalloc-oversized: New module.
13006         * modules/xalloc (Depends-on): Add it.
13007         * lib/xalloc.h (xalloc_oversized): Move...
13008         * lib/xalloc-oversized.h: ...into new file.
13009
13010         utimecmp: drop dependency on xmalloc
13011         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
13012         due to memory pressure.
13013         * modules/utimecmp (Depends-on): Drop xalloc.
13014
13015 2011-04-27  Eric Blake  <eblake@redhat.com>
13016
13017         getcwd: fix mingw bugs
13018         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
13019         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
13020         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
13021
13022 2011-04-27  Bruno Haible  <bruno@clisp.org>
13023
13024         mkstemps: Ensure declaration on MacOS X 10.5.
13025         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
13026         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13027         MacOS X.
13028
13029 2011-04-27  Bruno Haible  <bruno@clisp.org>
13030
13031         mkstemp: More documentation.
13032         * doc/posix-functions/mkstemp.texi: Document header file problem on
13033         MacOS X.
13034
13035 2011-04-27  Bruno Haible  <bruno@clisp.org>
13036
13037         mkstemp: Tweak configure message when cross-compiling.
13038         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
13039         result as a guess.
13040
13041 2011-04-27  Bruno Haible  <bruno@clisp.org>
13042
13043         clean-temp: Clarify what it does.
13044         * lib/clean-temp.h: Add more comments.
13045         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13046         module.
13047         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13048         * doc/glibc-functions/mkstemps.texi: Likewise.
13049         * doc/glibc-functions/mkostemps.texi: Likewise.
13050
13051 2011-04-27  Eric Blake  <eblake@redhat.com>
13052
13053         fchdir: avoid extra chdir and fix test
13054         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13055         getcwd-lgpl.
13056         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13057         have to be canonical.
13058         (canonicalize_file_name): Drop unused macro.
13059         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
13060
13061         filenamecat-lgpl: fix licence
13062         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13063         when it was first created.
13064
13065         linkat, renameat: add missing dependency
13066         * modules/linkat (Depends-on): Require getcwd-lgpl.
13067         * modules/renameat (Depends-on): Likewise.
13068
13069         tests: reduce dependencies
13070         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13071         * tests/test-renameat.c (main): Likewise.
13072         * modules/linkat-tests (Depends-on): Relax dependency.
13073         * modules/renameat-tests (Depends-on): Likewise.
13074         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13075         dependency explicit.
13076
13077         save-cwd: reduce default dependency
13078         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13079         * lib/save-cwd.c: Update comments.
13080         * NEWS: Document the semantic change.
13081
13082         getcwd: enhance tests
13083         * tests/test-getcwd-lgpl.c: New file, taken from...
13084         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13085         repeat long path stress tests from m4 probe.
13086         * modules/getcwd-lgpl-tests: New module.
13087         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13088         * m4/getcwd-abort-bug.m4: Update comment.
13089         * m4/getcwd-path-max.m4: Likewise.
13090
13091         getcwd-lgpl: new module
13092         * modules/getcwd-lgpl: New module.
13093         * lib/getcwd-lgpl.c: New file.
13094         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13095         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13096         * modules/getcwd (configure.ac): Set C witness.
13097         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13098
13099         getcwd: tweak comments
13100         * m4/getcwd-abort-bug.m4: Fix comments.
13101         * m4/getcwd-path-max.m4: Likewise.
13102         * m4/getcwd.m4: Likewise.
13103
13104 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13105         and Eric Blake  <eblake@redhat.com>
13106
13107         mkstemp: replace if system version uses wrong permissions
13108         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13109         read/write mode bits set in file created by mkstemp.
13110         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13111
13112 2011-04-27  Eric Blake  <eblake@redhat.com>
13113
13114         passfd: avoid compiler warning
13115         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13116         Reported by Laine Stump.
13117
13118 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13119
13120         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13121         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13122
13123 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13124         and Eric Blake  <eblake@redhat.com>
13125
13126         mkstemp: mention clean-temp module
13127         * lib/mkstemp.c: Add comment.
13128         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13129
13130 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13131
13132         inttypes: also provide default values for 32-bit tests
13133         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13134         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13135
13136 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13137
13138         strtoumax: remove dependency on strtoimax
13139         This is like the strtoull change of yesterday.
13140         * modules/strtoumax (Files): Add lib/strtoimax.c.
13141         (Depends-on): Remove strtoimax and add verify.
13142
13143         inttypes-incomplete: new module
13144         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13145         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13146         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13147         of gl_INTTYPES_H.
13148         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13149         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13150         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13151         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13152         * modules/strtoumax, modules/xstrtol (Depends-on):
13153         Depend on inttypes-incomplete, not inttypes.
13154         * modules/inttypes-incomplete: New module, containing the contents
13155         of the old modules/inttypes module, except that the Files: section
13156         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13157         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13158         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13159         (Depends-on): Depend only on inttypes-incomplete.
13160         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13161
13162         inttypes: omit now-redundant strtoimax and strtoumax work
13163         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13164         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13165
13166         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13167         This supports apps that need pointers to strtoimax and strtoumax,
13168         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13169         nonexistent functions.  See
13170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13171         et seq.
13172         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13173         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13174         a macro.
13175         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13176
13177 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13178
13179         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13180
13181 2011-04-25  Bruno Haible  <bruno@clisp.org>
13182
13183         strtol, strtoul: Mark modules as obsolete.
13184         * modules/strtol (Status, Notice): New sections.
13185         * modules/strtoul (Status, Notice): New sections.
13186
13187 2011-04-25  Bruno Haible  <bruno@clisp.org>
13188
13189         strtod: Remove check for strtod, unless supporting old platforms.
13190         * modules/strtod-obsolete: New file.
13191         * m4/strtod-obsolete.m4: New file.
13192         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13193         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13194         * modules/strtod (Depends-on): Add strtod-obsolete.
13195         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13196
13197 2011-04-25  Bruno Haible  <bruno@clisp.org>
13198
13199         strcase: Make module obsolete.
13200         * modules/strcase (Status, Notice): New sections.
13201
13202 2011-04-25  Bruno Haible  <bruno@clisp.org>
13203
13204         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13205         * modules/dup2-obsolete: New file.
13206         * m4/dup2-obsolete.m4: New file.
13207         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13208         gl_FUNC_DUP2_OBSOLETE is not also defined.
13209         * modules/dup2 (Depends-on): Add dup2-obsolete.
13210         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13211
13212 2011-04-25  Bruno Haible  <bruno@clisp.org>
13213
13214         strnlen: Avoid memchr related link error on old obsolete platforms.
13215         * modules/memchr-obsolete: New file.
13216         * m4/memchr-obsolete.m4: New file.
13217         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13218         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13219         * modules/memchr (Depends-on): Add memchr-obsolete.
13220         * modules/strnlen (Depends-on): Likewise.
13221         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13222
13223 2011-04-25  Jim Meyering  <meyering@redhat.com>
13224
13225         maint.mk: makefile_at_at_check extend and clean up
13226         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13227         in addition to */Makefile.am.
13228         Exempt legitimate uses of @VAR@ notation, e.g.,
13229         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13230         Remove obsolete coreutils-specific comment.
13231         Prompted by discussion here:
13232         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13233
13234 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13235
13236         strtoul: remove dependency on strtol
13237         This is so that 'configure' need not check for strtol merely because
13238         the application needs strtoul.
13239         * modules/strtoul (Files): Add lib/strtol.c.
13240         (Depends-on): Remove strtol.
13241
13242         strtoull: remove dependency on strtoul
13243         This is like the strtoll change.
13244         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13245         (Depends-on): Remove strtoul.
13246
13247         strtoll: remove dependency on strtol
13248         This is so that 'configure' need not check for strtol merely because
13249         the application needs strtoll.
13250         * modules/strtoll (Files): Add lib/strtol.c.
13251         (Depends-on): Remove strtol.
13252
13253 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13254
13255         inttypes: Move some configure check to module 'imaxdiv'.
13256         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13257         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13258         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13259
13260 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13261
13262         inttypes: Move some configure check to module 'imaxabs'.
13263         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13264         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13265         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13266
13267 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13268
13269         inttypes: Remove configure tests that are not needed since 2009-12-31.
13270         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13271         gl_cv_header_working_inttypes_h.
13272
13273 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13274
13275         * modules/strnlen (Depends-on): Remove memchr.
13276         The strnlen implementation doesn't need the memchr module's fixes; see
13277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13278
13279         strtol: remove dependency on wchar
13280         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13281         * modules/strtol (Depends-on): Remove wchar.
13282
13283 2011-04-21  Eric Blake  <eblake@redhat.com>
13284
13285         passfd: fix test regression on Linux
13286         * modules/passfd-tests (configure.ac): Correct socketpair check.
13287
13288         passfd: speed up configure and drop unused code
13289         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13290         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13291         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13292         Instead of probing at configure for unix_scm_rights_bsd44_way,
13293         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13294         check to a struct member probe.
13295         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13296         (sendfd, recvfd): Update preprocessor checks.
13297         * modules/passfd (Files): Reflect rename, and drop unused file.
13298         (Depends-on): Drop unused dependency.
13299
13300         passfd: allow compilation on mingw
13301         * modules/sys_socket (Depends-on): Add sys_uio.
13302         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13303         iovec and a minimal struct msghdr.
13304         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13305         * tests/test-sys_socket.c (main): Enhance test.
13306         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13307         guaranteed to provide what we need.
13308         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13309         * modules/passfd-tests (Depends-on): Add sys_wait.
13310         * tests/test-passfd.c (main): Skip test on mingw, for now.
13311         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13312         partial 'struct msghdr' implementation.
13313
13314         sys_uio: new module
13315         * modules/sys_uio: New module.
13316         * modules/sys_uio-tests: Likewise.
13317         * lib/sys_uio.in.h: New file.
13318         * m4/sys_uio_h.m4: Likewise.
13319         * tests/test-sys_uio.c: Likewise.
13320         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13321         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13322
13323 2011-04-20  Jim Meyering  <meyering@redhat.com>
13324
13325         useless-if-before-free: avoid false-positive
13326         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13327         disjunct so that it too requires a terminating ";".  Without that,
13328         this script would identify as useless one statement from gcc that
13329         was not:
13330           if (aligned_ptr)
13331             free (((void **) aligned_ptr) [-1]);
13332
13333 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13334
13335         doc: update users.txt.
13336         * users.txt: Add barcode.
13337
13338 2011-04-19  Bruno Haible  <bruno@clisp.org>
13339
13340         ioctl: Remove link dependency on native Windows.
13341         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13342         (gl_close_fn, gl_ioctl_fn): New types.
13343         (struct fd_hook): Renamed from struct close_hook. Change type of
13344         private_close_fn field. Add private_ioctl_fn field.
13345         (close_hook_fn): Add parameter for primary close method.
13346         (execute_close_hooks, execute_all_close_hooks): Likewise.
13347         (ioctl_hook_fn): New type.
13348         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13349         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13350         argument.
13351         (unregister_fd_hook): Renamed from unregister_close_hook.
13352         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13353         Don't include <unistd.h>.
13354         (close): Remove undef.
13355         (anchor): Update.
13356         (execute_close_hooks): Add argument for primary close method.
13357         (execute_all_close_hooks): Likewise.
13358         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13359         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13360         argument. Allow each argument to be NULL.
13361         (unregister_fd_hook): Renamed from unregister_close_hook.
13362         * lib/close.c (rpl_close): Pass 'close' function pointer to
13363         execute_all_close_hooks.
13364         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13365         (primary_ioctl): New function.
13366         (ioctl): Don't call ioctlsocket here. Instead, call
13367         execute_all_ioctl_hooks.
13368         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13369         close method.
13370         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13371         (fd_sockets_hook): Renamed from close_sockets_hook.
13372         (gl_sockets_startup, gl_sockets_cleanup): Update.
13373         * modules/fd-hook: Renamed from modules/close-hook. Update.
13374         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13375         * modules/sockets (Depends-on): Likewise.
13376         * modules/ioctl (Depends-on): Add fd-hook.
13377         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13378         GNULIB_SOCKET.
13379
13380 2011-04-19  Bruno Haible  <bruno@clisp.org>
13381
13382         Move the support of O_NONBLOCK in open() to the 'open' module.
13383         * modules/nonblocking (Depends-on): Remove 'open'.
13384         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13385         gl_cv_have_open_O_NONBLOCK.
13386         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13387         O_NONBLOCK support.
13388         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13389
13390 2011-04-17  Bruno Haible  <bruno@clisp.org>
13391
13392         pipe2: Simplify code.
13393         * lib/pipe2.c (pipe2): Reduce code duplication.
13394
13395 2011-04-17  Bruno Haible  <bruno@clisp.org>
13396
13397         nonblocking: Add comment.
13398         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13399
13400 2011-04-17  Bruno Haible  <bruno@clisp.org>
13401
13402         nonblocking: Add tests for sockets.
13403         * tests/test-nonblocking-socket.sh: New file.
13404         * tests/test-nonblocking-socket-main.c: New file.
13405         * tests/test-nonblocking-socket-child.c: New file.
13406         * tests/test-nonblocking-socket.h: New file.
13407         * tests/socket-server.h: New file.
13408         * tests/socket-client.h: New file.
13409         * modules/nonblocking-socket-tests: New file.
13410         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13411
13412 2011-04-17  Bruno Haible  <bruno@clisp.org>
13413
13414         nonblocking: Add tests for pipes.
13415         * tests/test-nonblocking-pipe.sh: New file.
13416         * tests/test-nonblocking-pipe-main.c: New file.
13417         * tests/test-nonblocking-pipe-child.c: New file.
13418         * tests/test-nonblocking-pipe.h: New file.
13419         * tests/test-nonblocking-writer.h: New file.
13420         * tests/test-nonblocking-reader.h: New file.
13421         * tests/test-nonblocking-misc.h: New file.
13422         * modules/nonblocking-pipe-tests: New file.
13423         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13424
13425 2011-04-16  Bruno Haible  <bruno@clisp.org>
13426
13427         gettext: Clarify the needed programmer actions.
13428         * modules/gettext (Notice): New field.
13429         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13430
13431 2011-04-16  Bruno Haible  <bruno@clisp.org>
13432
13433         strchrnul: Tweak last commit.
13434         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13435         bug.
13436         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13437         as in _GL_FUNCDECL_SYS.
13438         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13439         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13440
13441 2011-04-15  Eric Blake  <eblake@redhat.com>
13442
13443         strchrnul: work around cygwin bug
13444         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13445         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13447         * modules/string (Makefile.am): Substitute it.
13448         * lib/string.in.h (strchrnul): Use it.
13449
13450 2011-04-15  Bruno Haible  <bruno@clisp.org>
13451
13452         Don't require lib/stdio-write.c when only module 'stdio' is used.
13453         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13454         invocation.
13455         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13456
13457 2011-04-14  Bruno Haible  <bruno@clisp.org>
13458
13459         Support non-blocking pipe I/O in read() on native Windows.
13460         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13461         (read): New declaration.
13462         * lib/read.c: New file.
13463         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13464         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13465         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13466         vscanf): New declarations.
13467         * lib/stdio-read.c: New file.
13468         * m4/read.m4: New file.
13469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13470         REPLACE_READ.
13471         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13472         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13473         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13474         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13475         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13476         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13477         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13478         * modules/read: New file.
13479         * modules/nonblocking (Files): Add lib/stdio-read.c.
13480         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13481         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13482         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13483         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13484         * modules/pread (Depends-on): Add read.
13485         * modules/safe-read (Depends-on): Likewise.
13486         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13487         gets, scanf, vfscanf, vscanf): Verify signatures.
13488         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13489         problem with non-blocking pipes.
13490         * doc/posix-functions/fgetc.texi: Likewise.
13491         * doc/posix-functions/fgets.texi: Likewise.
13492         * doc/posix-functions/fread.texi: Likewise.
13493         * doc/posix-functions/fscanf.texi: Likewise.
13494         * doc/posix-functions/getc.texi: Likewise.
13495         * doc/posix-functions/getchar.texi: Likewise.
13496         * doc/posix-functions/gets.texi: Likewise.
13497         * doc/posix-functions/scanf.texi: Likewise.
13498         * doc/posix-functions/vfscanf.texi: Likewise.
13499         * doc/posix-functions/vscanf.texi: Likewise.
13500
13501 2011-04-14  Bruno Haible  <bruno@clisp.org>
13502
13503         Support non-blocking pipe I/O in write() on native Windows.
13504         * lib/write.c (rpl_write): Split a write request that failed merely
13505         because the byte count was larger than the pipe buffer's size.
13506         * doc/posix-functions/write.texi: Mention the problem with large byte
13507         counts.
13508
13509 2011-04-14  Bruno Haible  <bruno@clisp.org>
13510
13511         wchar: Ensure that wchar_t gets defined on uClibc.
13512         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13513         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13514
13515 2011-04-13  Bruno Haible  <bruno@clisp.org>
13516
13517         safe-write, full-read: Avoid unnecessary compilation units.
13518         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13519         (Depends-on): Remove safe-read. Add ssize_t.
13520         * modules/full-read (Files): Add lib/full-write.c.
13521         (Depends-on): Add full-write.
13522
13523 2011-04-13  Bruno Haible  <bruno@clisp.org>
13524
13525         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13526         * modules/pwrite (Depends-on): Add 'write'.
13527
13528 2011-04-13  Bruno Haible  <bruno@clisp.org>
13529
13530         Support non-blocking pipe I/O in write() on native Windows.
13531         * lib/unistd.in.h (write): Enable replacement also if
13532         GNULIB_UNISTD_H_NONBLOCKING is 1.
13533         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13534         (rpl_write): When failing to write on a non-blocking pipe, change
13535         errno from ENOSPC to EAGAIN.
13536         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13537         putchar, puts, vfprintf, vprintf): Enable replacement also if
13538         GNULIB_STDIO_H_NONBLOCKING is 1.
13539         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13540         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13541         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13542         CALL_WITH_SIGPIPE_EMULATION.
13543         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13544         * m4/nonblocking.m4: New file.
13545         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13546         for non-blocking I/O support.
13547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13548         GNULIB_UNISTD_H_NONBLOCKING.
13549         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13550         required for non-blocking I/O support.
13551         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13552         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13553         lib/stdio-write.c, m4/asm-underscore.m4.
13554         (Depends-on): Add stdio, unistd.
13555         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13556         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13557         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13558         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13559         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13560         problem with non-blocking pipes.
13561         * doc/posix-functions/fputc.texi: Likewise.
13562         * doc/posix-functions/fputs.texi: Likewise.
13563         * doc/posix-functions/fwrite.texi: Likewise.
13564         * doc/posix-functions/printf.texi: Likewise.
13565         * doc/posix-functions/putc.texi: Likewise.
13566         * doc/posix-functions/putchar.texi: Likewise.
13567         * doc/posix-functions/puts.texi: Likewise.
13568         * doc/posix-functions/vfprintf.texi: Likewise.
13569         * doc/posix-functions/vprintf.texi: Likewise.
13570         * doc/posix-functions/write.texi: Likewise.
13571
13572 2011-04-10  Jim Meyering  <meyering@redhat.com>
13573
13574         maint.mk: prohibit doubled words
13575         Detect them also when they're separated by a newline.
13576         There are 3 ways to customize it:
13577           - disable the test on a per file basis, as usual with rules using
13578             $(VC_LIST_EXCEPT)
13579           - replace the default doubled-word-selecting regexp (affects all files)
13580           - ignore a particular file-vs-doubled-word match
13581         I nearly used that last one to ignore the "is is" match in
13582         coreutils' NEWS file, since the text was "ls -is is ..."
13583         To do that, I would have added this line to cfg.mk:
13584           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13585         but it would have ignored any "is is" match in NEWS.
13586         Low probability, but still...
13587         Instead, I changed the text, slightly:
13588           -  ls -is is now consistent with ls -lis in ignoring values returned
13589           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13590         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13591         (prohibit_doubled_word_): Define.
13592         (sc_prohibit_doubled_word): New rule.
13593         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13594
13595 2011-04-10  Jim Meyering  <meyering@redhat.com>
13596
13597         maint: fix doubled-word typo in comment
13598         * m4/gethostname.m4: s/is is/it is/
13599         * m4/getdomainname.m4: Likewise.
13600
13601 2011-04-10  Jim Meyering  <meyering@redhat.com>
13602
13603         maint: remove doubled word: s/it it/it/
13604         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13605
13606 2011-04-10  Jim Meyering  <meyering@redhat.com>
13607
13608         maint.mk: remove useless semicolon and backslash
13609         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13610         semicolon and backslash.
13611
13612 2011-04-10  Bruno Haible  <bruno@clisp.org>
13613
13614         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13615         * modules/stdint-tests (Depends-on): Add wchar.
13616
13617 2011-04-10  Jim Meyering  <meyering@redhat.com>
13618
13619         maint: remove doubled words in comments, e.g., s/a a/a/
13620         * lib/strptime.c (day_of_the_week): s/the the/the/
13621         * tests/test-chown.h (test_chown): s/a a/a/
13622
13623         test-chown.h: correct a cast
13624         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13625         when the destination is a stat.st_gid.
13626
13627 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13628
13629         getaddrinfo: Fix test for sa_len member.
13630         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13631         include <sys/types.h> before <sys/socket.h>.
13632
13633 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13634
13635         maint: change "can not" to "cannot"
13636         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13637         boundaries.
13638
13639 2011-04-09  Jim Meyering  <meyering@redhat.com>
13640
13641         maint: change "a a" to "a"
13642         * tests/test-lchown.h (test_lchown): s/a a/a/
13643
13644         maint.mk: prohibit \<the the\>
13645         * top/maint.mk (sc_prohibit_the_the): New rule.
13646
13647         maint: fix "the the" in comment
13648         * lib/count-one-bits.h: s/the the/the/
13649
13650         maint: change "can not" to "cannot"
13651         But do not change the occurrences in maintain.texi or in
13652         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13653         * doc/gnulib-tool.texi: s/can not/cannot/
13654         * doc/posix-functions/accept.texi (accept): Likewise.
13655         * doc/posix-functions/socket.texi (socket): Likewise.
13656         * lib/mbrtowc.c: Likewise.
13657
13658         maint.mk: prohibit use of "can not"
13659         * top/maint.mk (sc_prohibit_can_not): New rule.
13660         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13661
13662 2011-04-09  Bruno Haible  <bruno@clisp.org>
13663
13664         careadlinkat: Guard against misuse of careadlinkatcwd.
13665         * lib/careadlinkat.c: Include <stdlib.h>.
13666         (careadlinkatcwd): Check that the fd argument is as expected.
13667
13668 2011-04-09  Bruno Haible  <bruno@clisp.org>
13669
13670         careadlinkat: Use common coding style.
13671         * lib/careadlinkat.c: Move gnulib includes after system includes.
13672
13673 2011-04-09  Bruno Haible  <bruno@clisp.org>
13674
13675         careadlinkat: Clarify specification.
13676         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13677         (careadlinkatcwd): Add comment.
13678         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13679
13680 2011-04-09  Bruno Haible  <bruno@clisp.org>
13681
13682         areadlinkat: Avoid link error on many platforms.
13683         * modules/areadlinkat (Depends-on): Add areadlink.
13684
13685 2011-04-09  Bruno Haible  <bruno@clisp.org>
13686
13687         allocator, careadlinkat: Fix double-inclusion guard.
13688         * lib/allocator.h: Fix double-inclusion guard.
13689         * lib/careadlinkat.h: Likewise.
13690
13691 2011-04-09  Bruno Haible  <bruno@clisp.org>
13692
13693         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13694         * lib/relocwrapper.c: Update dependencies hierarchy.
13695         * build-aux/install-reloc: Update list of files to be compiled.
13696         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13697         lib/allocator.[hc].
13698
13699 2011-04-08  Eric Blake  <eblake@redhat.com>
13700
13701         strftime: silence gnulib-tool warning
13702         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13703
13704 2011-04-08  Bruno Haible  <bruno@clisp.org>
13705
13706         verify: Fix syntax error with GCC 4.6 in C++ mode.
13707         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13708         (HAVE_STATIC_ASSERT): New macro.
13709         (verify_true, verify): Use 'static_assert' if it is supported and
13710         '_Static_assert' is not supported.
13711
13712 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13713
13714         allocator: New module.
13715         * modules/allocator, lib/allocator.c: New files.
13716         * lib/allocator.h (stdlib_allocator): New decl.
13717         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13718         Remove.  Do not include <stdlib.h>.
13719         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13720         * modules/careadlinkat (Files): Remove lib/allocator.h.
13721         (Depends-on): Add allocator.
13722
13723         stdlib: let modules use system malloc, realloc
13724         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13725         if !_GL_USE_STDLIB_ALLOC.
13726         (malloc, realloc): Limit this change to a smaller scope.
13727
13728         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13729         (malloc, realloc): Don't #undef; no longer needed.
13730         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13731         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13732         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13733         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13734         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13735         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13736         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13737         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13738
13739         careadlinkat: rename members to avoid problem
13740         * lib/allocator.h (struct allocator): Rename members from
13741         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13742         and realloc are #define'd.  Reported by Eric Blake in
13743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13744         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13745
13746 2011-04-08  Eric Blake  <eblake@redhat.com>
13747
13748         nonblocking: reduce dependency
13749         * tests/test-nonblocking.c: Only test sockets when in use.
13750         * modules/nonblocking-tests (Depends-on): Drop socket.
13751         (Makefile.am): Link even if sockets are not present.
13752         * modules/pipe2-tests (Makefile.am): Likewise.
13753         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13754
13755         pipe2: fix O_NONBLOCK support on mingw
13756         * modules/pipe2 (Depends-on): Add nonblocking.
13757         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13758         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13759         * tests/test-nonblocking.c (main): Likewise.
13760         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13761
13762         fcntl-h: fix O_ACCMODE on cygwin
13763         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13764         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13765
13766         pipe-filter: drop O_NONBLOCK workarounds
13767         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13768         * modules/pipe-filter-ii (Depends-on): Likewise.
13769         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13770
13771         nonblocking: provide O_NONBLOCK for mingw
13772         * modules/nonblocking (Depends-on): Add open.
13773         (configure.ac): Set new witness macro.
13774         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13775         * modules/fcntl-h (Makefile.am): Substitute it.
13776         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13777         nonblocking module is in use.
13778         * lib/nonblocking.c: Adjust portability test.
13779         * lib/open.c (open): Don't let native open see gnulib flag.
13780         * tests/test-fcntl-h.c (main): Enhance test.
13781         * tests/test-open.h (test_open): Likewise.
13782         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13783
13784         careadlinkat: fix compilation error on mingw
13785         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13786         within struct allocator.
13787
13788 2011-04-06  Eric Blake  <eblake@redhat.com>
13789
13790         binary-io: relicense under LGPLv2+
13791         * modules/binary-io (License): Relax to LGPLv2+.
13792         Requested for libvirt, and required by pipe2.
13793
13794 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13795
13796         verify: use _Static_assert if available
13797         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13798         (verify_true, verify): Use it if available.  This generates better
13799         diagnostics with GCC 4.6.0 and later.
13800
13801 2011-04-05  Bruno Haible  <bruno@clisp.org>
13802
13803         Remove leftover generated .h files after config.status changed.
13804
13805         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13806         GL_GENERATE_ALLOCA_H.
13807         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13808         GL_GENERATE_ALLOCA_H evaluates to false.
13809
13810         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13811         GL_GENERATE_ARGZ_H.
13812         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13813         evaluates to false.
13814
13815         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13816         GL_GENERATE_BYTESWAP_H.
13817         * modules/byteswap (Makefile.am): Remove byteswap.h if
13818         GL_GENERATE_BYTESWAP_H evaluates to false.
13819
13820         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13821         GL_GENERATE_ERRNO_H.
13822         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13823         evaluates to false.
13824
13825         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13826         GL_GENERATE_FLOAT_H.
13827         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13828         evaluates to false.
13829
13830         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13831         GL_GENERATE_FNMATCH_H.
13832         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13833         GL_GENERATE_FNMATCH_H evaluates to false.
13834
13835         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13836         GL_GENERATE_GLOB_H.
13837         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13838         evaluates to false.
13839
13840         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13841         automake conditional GL_GENERATE_ICONV_H.
13842         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13843         evaluates to false.
13844
13845         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13846         GL_GENERATE_NETINET_IN_H.
13847         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13848         GL_GENERATE_NETINET_IN_H evaluates to false.
13849
13850         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13851         conditional GL_GENERATE_PTHREAD_H.
13852         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13853         * modules/pthread (Makefile.am): Remove pthread.h if
13854         GL_GENERATE_PTHREAD_H evaluates to false.
13855
13856         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13857         GL_GENERATE_SCHED_H.
13858         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13859         evaluates to false.
13860
13861         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13862         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13863         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13864         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13865
13866         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13867         GL_GENERATE_STDARG_H.
13868         * modules/stdarg (Makefile.am): Remove stdarg.h if
13869         GL_GENERATE_STDARG_H evaluates to false.
13870
13871         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13872         GL_GENERATE_STDBOOL_H.
13873         * modules/stdbool (Makefile.am): Remove stdbool.h if
13874         GL_GENERATE_STDBOOL_H evaluates to false.
13875
13876         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13877         conditional GL_GENERATE_STDDEF_H.
13878         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13879         * modules/stddef (Makefile.am): Remove stddef.h if
13880         GL_GENERATE_STDDEF_H evaluates to false.
13881
13882         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13883         GL_GENERATE_STDINT_H.
13884         * modules/stdint (Makefile.am): Remove stdint.h if
13885         GL_GENERATE_STDINT_H evaluates to false.
13886
13887         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13888         GL_GENERATE_SYSEXITS_H.
13889         * modules/sysexits (Makefile.am): Remove sysexits.h if
13890         GL_GENERATE_SYSEXITS_H evaluates to false.
13891
13892         Reported by Karl Berry and Ralf Wildenhues.
13893
13894 2011-04-05  Bruno Haible  <bruno@clisp.org>
13895
13896         Ensure to rebuild generated .h files when config.status has changed.
13897         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13898         config.status.
13899         * modules/ctype (Makefile.am): Likewise.
13900         * modules/dirent (Makefile.am): Likewise.
13901         * modules/errno (Makefile.am): Likewise.
13902         * modules/fcntl-h (Makefile.am): Likewise.
13903         * modules/float (Makefile.am): Likewise.
13904         * modules/getopt-posix (Makefile.am): Likewise.
13905         * modules/glob (Makefile.am): Likewise.
13906         * modules/iconv-h (Makefile.am): Likewise.
13907         * modules/inttypes (Makefile.am): Likewise.
13908         * modules/langinfo (Makefile.am): Likewise.
13909         * modules/locale (Makefile.am): Likewise.
13910         * modules/math (Makefile.am): Likewise.
13911         * modules/netdb (Makefile.am): Likewise.
13912         * modules/netinet_in (Makefile.am): Likewise.
13913         * modules/poll-h (Makefile.am): Likewise.
13914         * modules/pthread (Makefile.am): Likewise.
13915         * modules/pty (Makefile.am): Likewise.
13916         * modules/sched (Makefile.am): Likewise.
13917         * modules/search (Makefile.am): Likewise.
13918         * modules/selinux-h (Makefile.am): Likewise.
13919         * modules/signal (Makefile.am): Likewise.
13920         * modules/spawn (Makefile.am): Likewise.
13921         * modules/stdarg (Makefile.am): Likewise.
13922         * modules/stdbool (Makefile.am): Likewise.
13923         * modules/stddef (Makefile.am): Likewise.
13924         * modules/stdint (Makefile.am): Likewise.
13925         * modules/stdio (Makefile.am): Likewise.
13926         * modules/stdlib (Makefile.am): Likewise.
13927         * modules/string (Makefile.am): Likewise.
13928         * modules/strings (Makefile.am): Likewise.
13929         * modules/sys_file (Makefile.am): Likewise.
13930         * modules/sys_ioctl (Makefile.am): Likewise.
13931         * modules/sys_select (Makefile.am): Likewise.
13932         * modules/sys_socket (Makefile.am): Likewise.
13933         * modules/sys_stat (Makefile.am): Likewise.
13934         * modules/sys_time (Makefile.am): Likewise.
13935         * modules/sys_times (Makefile.am): Likewise.
13936         * modules/sys_utsname (Makefile.am): Likewise.
13937         * modules/sys_wait (Makefile.am): Likewise.
13938         * modules/sysexits (Makefile.am): Likewise.
13939         * modules/termios (Makefile.am): Likewise.
13940         * modules/time (Makefile.am): Likewise.
13941         * modules/unistd (Makefile.am): Likewise.
13942         * modules/wchar (Makefile.am): Likewise.
13943         * modules/wctype-h (Makefile.am): Likewise.
13944         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13945
13946 2011-04-05  Bruno Haible  <bruno@clisp.org>
13947
13948         pipe2: Relicense under LGPLv2+.
13949         * modules/pipe2 (License): Change to LGPLv2+.
13950         Requested by Eric Blake, for libvirt.
13951
13952 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13953
13954         bootstrap: compute gnulib_extra_files after updating build_aux
13955         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13956         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13957
13958 2011-04-05  Eric Blake  <eblake@redhat.com>
13959
13960         bootstrap: preserve git whitelist item sorting
13961         * build-aux/bootstrap (sort_patterns): New function.
13962         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13963
13964 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13965
13966         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13967         sc_space_tab check.
13968
13969 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13970
13971         areadlink, areadlinkat: rewrite in terms of careadlinkat
13972         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13973         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13974         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13975         (malloc, realloc): Remove #undefs.
13976         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13977         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13978         readlink, ssize_t, stdint, unistd.
13979         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13980         areadlink, stdint.
13981
13982         careadlinkat: new module
13983         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13984         * modules/careadlinkat: New files, written by me with
13985         a review and feedback from Ben Pfaff in
13986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13987
13988 2011-04-01  Bruno Haible  <bruno@clisp.org>
13989
13990         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13991         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13992         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13993         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13994         Reported by Bruce Korb <bruce.korb@gmail.com>.
13995
13996 2011-04-01  Bruno Haible  <bruno@clisp.org>
13997
13998         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13999         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
14000         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14001         * modules/wcpcpy (Depends-on): Add extensions.
14002         * modules/wcpncpy (Depends-on): Likewise.
14003         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
14004         systems.
14005         * doc/posix-functions/wcpncpy.texi: Likewise.
14006         * doc/posix-functions/wcwidth.texi: Likewise.
14007
14008 2011-03-31  Eric Blake  <eblake@redhat.com>
14009
14010         nonblocking: fix mingw test failures
14011         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
14012         non-blocking flag on regular file.
14013         (get_nonblocking_flag): Set errno on invalid fd.
14014         * tests/test-nonblocking.c (main): Avoid test failure on
14015         directories if fchdir is not active.
14016         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
14017
14018 2011-03-31  Bruno Haible  <bruno@clisp.org>
14019
14020         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
14021         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
14022         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
14023         Reported by Simon Josefsson <simon@josefsson.org>.
14024
14025 2011-03-31  Bruno Haible  <bruno@clisp.org>
14026         and Eric Blake  <eblake@redhat.com>
14027
14028         nonblocking: new module
14029         * modules/nonblocking: New module.
14030         * modules/nonblocking-tests: Likewise.
14031         * lib/nonblocking.h: New file.
14032         * lib/nonblocking.c: Likewise.
14033         * tests/test-nonblocking.c: New test.
14034         * lib/ioctl.c (ioctl) [mingw]: Update comment.
14035
14036 2011-03-30  Bruno Haible  <bruno@clisp.org>
14037
14038         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
14039         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14040         instead of 'printf' format for GCC >= 4.4.
14041         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14042         (fprintf, printf, vfprintf, vprintf): Declare with
14043         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14044         the system's vfprintf() function.
14045         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14046
14047 2011-03-30  Eric Blake  <eblake@redhat.com>
14048
14049         passfd: fix scoping bug
14050         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14051         before sendmsg/recvmsg.
14052
14053         passfd: standardize coding conventions
14054         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14055         can be learned at compile time.
14056         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14057         ifdefs.
14058         (sendfd, recvfd): Follow gnulib code conventions.
14059
14060         passfd: fix incorrect sendmsg arguments
14061         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14062         incorrect msg_controllen value.
14063         * modules/passfd-tests (Depends-on): Check for alarm.
14064         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14065         Reported by Bastien ROUCARIES.
14066
14067 2011-03-30  Bruno Haible  <bruno@clisp.org>
14068
14069         c-strcasestr: Relicense under LGPLv2+.
14070         * modules/c-strcasestr (License): Change to LGPLv2+.
14071         Requested by Eric Blake, for libvirt.
14072
14073 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14074
14075         * users.txt: Add libidn2.  Fix libtasn1 link.
14076
14077 2011-03-30  Jim Meyering  <meyering@redhat.com>
14078
14079         tests: readlink* ("",... fails with EINVAL on newer kernels
14080         readlink and readlinkat have typically failed with ENOENT for
14081         the invalid, empty file name,  "".  However, with the advent
14082         of linux-2.6.39, they fail with EINVAL.
14083         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14084         when operating on the empty file name.
14085         * tests/test-readlink.h (test_readlink): Likewise.
14086
14087 2011-03-29  Bruno Haible  <bruno@clisp.org>
14088
14089         Relicense some modules under LGPLv2+, for libidn2.
14090         * modules/array-mergesort (License): Change to LGPLv2+.
14091         * modules/c-strcaseeq (License): Likewise.
14092         * modules/striconveh (License): Likewise.
14093         * modules/striconveha (License): Likewise.
14094         * modules/uniconv/base (License): Likewise.
14095         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14096         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14097         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14098         * modules/unictype/base (License): Likewise.
14099         * modules/unictype/bidiclass-of (License): Likewise.
14100         * modules/unictype/category-M (License): Likewise.
14101         * modules/unictype/category-none (License): Likewise.
14102         * modules/unictype/category-of (License): Likewise.
14103         * modules/unictype/category-test (License): Likewise.
14104         * modules/unictype/category-test-withtable (License): Likewise.
14105         * modules/unictype/combining-class (License): Likewise.
14106         * modules/unictype/joiningtype-of (License): Likewise.
14107         * modules/unictype/scripts (License): Likewise.
14108         * modules/uninorm/base (License): Likewise.
14109         * modules/uninorm/canonical-decomposition (License): Likewise.
14110         * modules/uninorm/composition (License): Likewise.
14111         * modules/uninorm/decompose-internal (License): Likewise.
14112         * modules/uninorm/decomposition-table (License): Likewise.
14113         * modules/uninorm/nfc (License): Likewise.
14114         * modules/uninorm/nfd (License): Likewise.
14115         * modules/uninorm/u32-normalize (License): Likewise.
14116         * modules/unistr/base (License): Likewise.
14117         * modules/unistr/u32-cpy (License): Likewise.
14118         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14119         * modules/unistr/u32-to-u8 (License): Likewise.
14120         * modules/unistr/u32-uctomb (License): Likewise.
14121         * modules/unistr/u8-check (License): Likewise.
14122         * modules/unistr/u8-mblen (License): Likewise.
14123         * modules/unistr/u8-mbtouc (License): Likewise.
14124         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14125         * modules/unistr/u8-mbtoucr (License): Likewise.
14126         * modules/unistr/u8-prev (License): Likewise.
14127         * modules/unistr/u8-strlen (License): Likewise.
14128         * modules/unistr/u8-to-u32 (License): Likewise.
14129         * modules/unistr/u8-uctomb (License): Likewise.
14130         * modules/unitypes (License): Likewise.
14131         Requested by Simon Josefsson.
14132
14133 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14134
14135         lib-symbol-visibility: Add a notice.
14136         * modules/lib-symbol-visibility (Notice): New field.
14137
14138 2011-03-29  Bruno Haible  <bruno@clisp.org>
14139
14140         getaddrinfo: Doc fix.
14141         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14142         section "fixed in Gnulib".
14143
14144 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14145
14146         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14147         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14148
14149 2011-03-26  Bruno Haible  <bruno@clisp.org>
14150
14151         unictype/property-byname: Reduce the number of load-time relocations.
14152         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14153         (UC_PROPERTY_INDEX_*): New enumeration values.
14154         (uc_property_byname): Convert an index from the lookup table to an
14155         uc_property_t.
14156         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14157         values.
14158
14159 2011-03-26  Bruno Haible  <bruno@clisp.org>
14160
14161         unictype/property-byname: Allow omitted word separators and aliases.
14162         * lib/unictype/pr_byname.gperf: Add property names without word
14163         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14164         for 'space'.
14165
14166 2011-03-26  Bruno Haible  <bruno@clisp.org>
14167
14168         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14169         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14170         also hyphens to space.
14171         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14172         without spaces.
14173         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14174
14175 2011-03-26  Bruno Haible  <bruno@clisp.org>
14176
14177         unictype/joiningtype-byname: Recognize long names as well.
14178         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14179         a long name.
14180         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14181         unictype/joiningtype_byname.h.
14182         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14183         * lib/unictype/joiningtype_byname.gperf: New file.
14184         * modules/unictype/joiningtype-byname (Files): Add
14185         lib/unictype/joiningtype_byname.gperf.
14186         (Depends-on): Add gperf.
14187         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14188         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14189         long names.
14190
14191         Tests for module 'unictype/joiningtype-longname'.
14192         * modules/unictype/joiningtype-longname-tests: New file.
14193         * tests/unictype/test-joiningtype_longname.c: New file.
14194
14195         New module 'unictype/joiningtype-longname'.
14196         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14197         * lib/unictype/joiningtype_longname.c: New file.
14198         * modules/unictype/joiningtype-longname: New file.
14199         * modules/unictype/joiningtype-all (Depends-on): Add
14200         unictype/joiningtype-longname.
14201
14202 2011-03-26  Bruno Haible  <bruno@clisp.org>
14203
14204         unictype/bidiclass-byname: Recognize long names as well.
14205         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14206         name.
14207         * lib/unictype/bidi_byname.c: Include <string.h>,
14208         unictype/bidi_byname.h.
14209         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14210         * lib/unictype/bidi_byname.gperf: New file.
14211         * modules/unictype/bidiclass-byname (Files): Add
14212         lib/unictype/bidi_byname.gperf.
14213         (Depends-on): Add gperf.
14214         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14215         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14216         long names.
14217
14218         Tests for module 'unictype/bidiclass-longname'.
14219         * modules/unictype/bidiclass-longname-tests: New file.
14220         * tests/unictype/test-bidi_longname.c: New file.
14221
14222         New module 'unictype/bidiclass-longname'.
14223         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14224         * lib/unictype/bidi_longname.c: New file.
14225         * modules/unictype/bidiclass-longname: New file.
14226         * modules/unictype/bidiclass-all (Depends-on): Add
14227         unictype/bidiclass-longname.
14228
14229 2011-03-26  Bruno Haible  <bruno@clisp.org>
14230
14231         unictype/bidi*: Rename modules.
14232         * modules/unictype/bidiclass-all: Renamed from
14233         modules/unictype/bidicategory-all.
14234         * modules/unictype/bidiclass-name: Renamed from
14235         modules/unictype/bidiclass-name.
14236         (Description): Update.
14237         * modules/unictype/bidiclass-name-tests: Renamed from
14238         modules/unictype/bidicategory-name-tests.
14239         * modules/unictype/bidiclass-byname: Renamed from
14240         modules/unictype/bidicategory-byname.
14241         (Description): Update.
14242         * modules/unictype/bidiclass-byname-tests: Renamed from
14243         modules/unictype/bidicategory-byname-tests.
14244         * modules/unictype/bidiclass-of: Renamed from
14245         modules/unictype/bidicategory-of.
14246         (Description): Update.
14247         * modules/unictype/bidiclass-of-tests: Renamed from
14248         modules/unictype/bidicategory-of-tests.
14249         * modules/unictype/bidiclass-test: Renamed from
14250         modules/unictype/bidicategory-test.
14251         (Description): Update.
14252         * modules/unictype/bidiclass-test-tests: Renamed from
14253         modules/unictype/bidicategory-test-tests.
14254         * modules/unictype/bidicategory-all: New file, a simple redirection.
14255         * modules/unictype/bidicategory-name: Likewise.
14256         * modules/unictype/bidicategory-byname: Likewise.
14257         * modules/unictype/bidicategory-of: Likewise.
14258         * modules/unictype/bidicategory-test: Likewise.
14259         * modules/unictype/property-bidi-* (Dependencies): Update.
14260         * lib/unictype/bidi_*.c: Update comment.
14261
14262 2011-03-26  Bruno Haible  <bruno@clisp.org>
14263
14264         unictype/bidi*: Rename functions, part 2.
14265         * modules/unictype/bidicategory-name (configure.ac): Update required
14266         libunistring version.
14267         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14268
14269 2011-03-25  Bruno Haible  <bruno@clisp.org>
14270
14271         New module 'unictype/combining-class-all'.
14272         * modules/unictype/combining-class-all: New file.
14273
14274         Tests for module 'unictype/combining-class-byname'.
14275         * modules/unictype/combining-class-byname-tests: New file.
14276         * tests/unictype/test-combiningclass_byname.c: New file.
14277
14278         New module 'unictype/combining-class-byname'.
14279         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14280         * lib/unictype/combiningclass_byname.c: New file.
14281         * lib/unictype/combiningclass_byname.gperf: New file.
14282         * modules/unictype/combining-class-byname: New file.
14283
14284         Tests for module 'unictype/combining-class-longname'.
14285         * modules/unictype/combining-class-longname-tests: New file.
14286         * tests/unictype/test-combiningclass_longname.c: New file.
14287
14288         New module 'unictype/combining-class-longname'.
14289         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14290         * lib/unictype/combiningclass_longname.c: New file.
14291         * modules/unictype/combining-class-longname: New file.
14292
14293         Tests for module 'unictype/combining-class-name'.
14294         * modules/unictype/combining-class-name-tests: New file.
14295         * tests/unictype/test-combiningclass_name.c: New file.
14296
14297         New module 'unictype/combining-class-name'.
14298         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14299         * lib/unictype/combiningclass_name.c: New file.
14300         * modules/unictype/combining-class-name: New file.
14301
14302 2011-03-25  Bruno Haible  <bruno@clisp.org>
14303
14304         unictype/combining-class: Rename source files.
14305         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14306         of unictype/combining.h.
14307         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14308         Update.
14309         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14310         * modules/unictype/combining-class (Description): Fix.
14311         (Files, Makefile.am): Update.
14312         * tests/unictype/test-combiningclass.c: Renamed from
14313         tests/unictype/test-combining.c.
14314         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14315
14316 2011-03-25  Bruno Haible  <bruno@clisp.org>
14317
14318         unictype: Update list of canonical combining classes.
14319         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14320
14321 2011-03-25  Bruno Haible  <bruno@clisp.org>
14322
14323         unictype/category-byname: Recognize long names as well.
14324         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14325         a long name.
14326         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14327         unictype/categ_byname.h.
14328         (UC_CATEGORY_INDEX_*): New enumeration values.
14329         (uc_general_category_byname): Use uc_general_category_lookup and
14330         convert from index to value.
14331         * lib/unictype/categ_byname.gperf: New file.
14332         * modules/unictype/category-byname (Files): Add
14333         lib/unictype/categ_byname.gperf.
14334         (Depends-on): Add gperf.
14335         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14336         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14337         long names.
14338
14339         Tests for module 'unictype/category-longname'.
14340         * modules/unictype/category-longname-tests: New file.
14341         * tests/unictype/test-categ_longname.c: New file.
14342
14343         New module 'unictype/category-longname'.
14344         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14345         * lib/unictype/categ_longname.c: New file.
14346         * modules/unictype/category-longname: New file.
14347         * modules/unictype/category-all (Depends-on): Add it.
14348
14349 2011-03-25  Bruno Haible  <bruno@clisp.org>
14350
14351         Tests for module 'unictype/category-LC'.
14352         * modules/unictype/category-LC-tests: New file.
14353         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14354
14355         New module 'unictype/category-LC'.
14356         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14357         (UC_CATEGORY_LC): New declaration.
14358         (UC_CASED_LETTER): New macro.
14359         * lib/gen-uni-tables.c (is_category_LC): New function.
14360         (output_categories): Also handle category LC.
14361         (UC_CATEGORY_MASK_LC): New enumeration value.
14362         (general_category_byname): Also handle category LC.
14363         * lib/unictype/categ_LC.c: New file.
14364         * lib/unictype/categ_LC.h: New file, automatically generated.
14365         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14366         category LC.
14367         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14368         * modules/unictype/category-LC: New file.
14369         * modules/unictype/category-byname (Depends-on): Add
14370         unictype/category-LC.
14371         * modules/unictype/category-all (Depends-on): Likewise.
14372
14373 2011-03-25  Eric Blake  <eblake@redhat.com>
14374
14375         xmalloc: revert yesterday's regression
14376         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14377         realloc's underlying behavior (allowing allocation of zero-size
14378         objects, especially if malloc-gnu is also in use).
14379
14380 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14381
14382         maint.mk: add missing version to VC-tag
14383         * top/maint.mk: git tag was missing actual tag name; add it.
14384
14385         valgrind: do leak checking, and exit with code 1 on error (not 0)
14386         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14387         to VALGRIND.
14388
14389 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14390
14391         posix-modules: say what it does.
14392         * posix-modules: Add a line to the --help output saying what it does.
14393
14394 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14395
14396         xmalloc: Do not leak if underlying realloc is C99 compatible.
14397         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14398         This avoids a leak on C99-based systems.  See
14399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14400
14401 2011-03-24  Eric Blake  <eblake@redhat.com>
14402
14403         realloc: document portability problem
14404         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14405         passing 0 size to realloc.
14406
14407 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14408
14409         doc: update users.txt
14410         * users.txt: Add cvsps, tmpwatch
14411
14412 2011-03-23  Matt Rice  <ratmice@gmail.com>
14413
14414         doc: update users.txt
14415         * users.txt: Add gdb.
14416
14417 2011-03-23  Jim Meyering  <meyering@redhat.com>
14418
14419         doc: update users.txt
14420         Looking through matches up to the following URL (there are still
14421         several more pages), I found several projects that use gnulib:
14422         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14423         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14424         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14425
14426 2011-03-22  Bruno Haible  <bruno@clisp.org>
14427
14428         unictype/bidi*: Rename functions.
14429         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14430         uc_bidi_class, uc_is_bidi_class): New declarations.
14431         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14432         uc_bidi_category_byname.
14433         (uc_bidi_category_byname): New function.
14434         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14435         u_bidi_category_name.
14436         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14437         (uc_bidi_category_name): New function.
14438         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14439         uc_bidi_category.
14440         (uc_bidi_category): New function.
14441         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14442         uc_is_bidi_category. Invoke uc_bidi_class.
14443         (uc_is_bidi_category): New function.
14444         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14445         instead of uc_bidi_category_byname.
14446         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14447         instead of uc_bidi_category_name.
14448         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14449         uc_bidi_category.
14450         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14451         instead of uc_is_bidi_category.
14452
14453 2011-03-21  Bruno Haible  <bruno@clisp.org>
14454
14455         New module 'unictype/joininggroup-all'.
14456         * modules/unictype/joininggroup-all: New file.
14457
14458         Tests for module 'unictype/joininggroup-of'.
14459         * modules/unictype/joininggroup-of-tests: New file.
14460         * tests/unictype/test-joininggroup_of.c: New file.
14461         * tests/unictype/test-joininggroup_of.h: New file, automatically
14462         generated by gen-uni-tables.
14463
14464         New module 'unictype/joininggroup-of'.
14465         * modules/unictype/joininggroup-of: New file.
14466         * lib/unictype/joininggroup_of.c: New file.
14467         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14468         gen-uni-tables.
14469
14470         Tests for module 'unictype/joininggroup-byname'.
14471         * modules/unictype/joininggroup-byname-tests: New file.
14472         * tests/unictype/test-joininggroup_byname.c: New file.
14473
14474         New module 'unictype/joininggroup-byname'.
14475         * modules/unictype/joininggroup-byname: New file.
14476         * lib/unictype/joininggroup_byname.c: New file.
14477         * lib/unictype/joininggroup_byname.gperf: New file.
14478
14479         Tests for module 'unictype/joininggroup-name'.
14480         * modules/unictype/joininggroup-name-tests: New file.
14481         * tests/unictype/test-joininggroup_name.c: New file.
14482
14483         New module 'unictype/joininggroup-name'.
14484         * modules/unictype/joininggroup-name: New file.
14485         * lib/unictype/joininggroup_name.c: New file.
14486         * lib/unictype/joininggroup_name.h: New file.
14487
14488         New module 'unictype/joiningtype-all'.
14489         * modules/unictype/joiningtype-all: New file.
14490
14491         Tests for module 'unictype/joiningtype-of'.
14492         * modules/unictype/joiningtype-of-tests: New file.
14493         * tests/unictype/test-joiningtype_of.c: New file.
14494         * tests/unictype/test-joiningtype_of.h: New file, automatically
14495         generated by gen-uni-tables.
14496
14497         New module 'unictype/joiningtype-of'.
14498         * modules/unictype/joiningtype-of: New file.
14499         * lib/unictype/joiningtype_of.c: New file.
14500         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14501         gen-uni-tables.
14502
14503         Tests for module 'unictype/joiningtype-byname'.
14504         * modules/unictype/joiningtype-byname-tests: New file.
14505         * tests/unictype/test-joiningtype_byname.c: New file.
14506
14507         New module 'unictype/joiningtype-byname'.
14508         * modules/unictype/joiningtype-byname: New file.
14509         * lib/unictype/joiningtype_byname.c: New file.
14510
14511         Tests for module 'unictype/joiningtype-name'.
14512         * modules/unictype/joiningtype-name-tests: New file.
14513         * tests/unictype/test-joiningtype_name.c: New file.
14514
14515         New module 'unictype/joiningtype-name'.
14516         * modules/unictype/joiningtype-name: New file.
14517         * lib/unictype/joiningtype_name.c: New file.
14518
14519         unictype: Add support for Arabic shaping properties.
14520         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14521         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14522         declarations.
14523         (UC_JOINING_GROUP_*): New enumeration values.
14524         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14525         declarations.
14526         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14527         (unicode_joining_type): New variable.
14528         (UC_JOINING_GROUP_*): New enumeration values.
14529         (unicode_joining_group): New variable.
14530         (fill_arabicshaping, joining_type_as_c_identifier,
14531         output_joining_type_test, output_joining_type,
14532         joining_group_as_c_identifier, output_joining_group_test,
14533         output_joining_group): New functions.
14534         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14535         fill_arabicshaping and output_joining_type_test, output_joining_type,
14536         output_joining_group_test, output_joining_group.
14537         Reported by Simon Josefsson.
14538
14539 2011-03-21  Jim Meyering  <meyering@redhat.com>
14540
14541         strftime: fix a bug in yesterday's change
14542         * lib/strftime.c (add): Accommodate width's initial value of -1.
14543         Otherwise, nstrftime would copy uninitialized data into
14544         the result buffer.
14545
14546 2011-03-21  Jim Meyering  <meyering@redhat.com>
14547
14548         tests: add strftime-tests module
14549         * tests/test-strftime.c: New file.
14550         * modules/strftime-tests: New module.
14551
14552 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14553
14554         strftime: don't assume a byte count fits in 'int'
14555         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14556         found this problem by static analysis, using gcc -Wstrict-overflow
14557         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14558         on an integer overflow having undefined behavior, but it turns out
14559         that the argument is a size, which might not fit in 'int' anyway,
14560
14561 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14562
14563         stdio: don't require ignore_value around fwrite
14564
14565         This patch works around libc bug 11959
14566         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14567         Without this patch, applications must often write
14568         ignore_value (fwrite (...)) even though the ignore_value is
14569         not helpful here.  It's common to write many objects, using
14570         fwrite/printf/etc., and then use ferror to detect output error.
14571
14572         I considered making this patch optional, but decided against it,
14573         because libc is obviously being inconsistent here: there is no
14574         reason libc should insist that user code must inspect fwrite
14575         return's value without also insisting that it inspect printf's,
14576         putchar's, etc.  If user code wants to have a strict style where
14577         all these functions' values are checked (so that ferror need not
14578         be checked), we could add support for that style in a new gnulib
14579         module, but in the meantime it's better to be consistent and to
14580         support common usage.
14581
14582         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14583         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14584         that we are compiling in checking mode, and if not C++, and
14585         if not already wrapping fwrite for some other reason.
14586         (fwrite): #define to rpl_fwrite if the latter is defined.
14587
14588 2011-03-20  Bruno Haible  <bruno@clisp.org>
14589
14590         verror: Fix compilation error introduced on 2011-02-13.
14591         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14592         instead of __attribute__.
14593         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14594
14595 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14596             Bruno Haible  <bruno@clisp.org>
14597
14598         socklen: do not depend on sys_socket
14599         While trying to modify Emacs to use gnulib's socklen module,
14600         I discovered a circular dependency: socklen depends on sys_socket
14601         and vice versa.  Emacs can use socklen, but it does not need
14602         sys_socket because it has its own substitute for sys/socket.h.
14603         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14604         gl_TYPE_SOCKLEN_T.
14605         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14606         gl_PREREQ_SYS_H_SOCKET.
14607         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14608         gl_PREREQ_SYS_H_SOCKET.
14609         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14610         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14611         * modules/socklen (Depends-on): Do not depend on sys_socket.
14612         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14613
14614 2011-03-20  Jim Meyering  <meyering@redhat.com>
14615
14616         maint.mk: sort file names *after* new transformation
14617         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14618         prefix would have led to an unwarranted failure in GNU parted.
14619         Sort after that transformation.
14620
14621 2011-03-19  Jim Meyering  <meyering@redhat.com>
14622
14623         maint.mk: fix po-file syntax-check rule
14624         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14625         Patch by Bruno Haible.
14626
14627 2011-03-19  Bruno Haible  <bruno@clisp.org>
14628
14629         socklen: Update comment.
14630         * m4/socklen.m4: Update comment about platforms.
14631
14632 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14633             Bruno Haible  <bruno@clisp.org>
14634
14635         inet_ntop, inet_pton: Simplify.
14636         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14637         documented to provide socklen_t and we already depend on sys_socket.
14638         * modules/inet_pton (Depends-on): Likewise.
14639         * lib/arpa_inet.in.h: Adjust comment.
14640
14641 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14642             Bruno Haible  <bruno@clisp.org>
14643
14644         netdb: Simplify.
14645         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14646         documented to provide socklen_t and we already depend on sys_socket.
14647         * lib/netdb.in.h: Adjust comment.
14648
14649 2011-03-19  Bruno Haible  <bruno@clisp.org>
14650
14651         sys_socket, netdb: Document problem with socklen_t.
14652         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14653         platforms.
14654         * doc/posix-headers/netdb.texi: Likewise.
14655
14656 2011-03-18  Eric Blake  <eblake@redhat.com>
14657
14658         maint.mk: let po check work in VPATH build
14659         * top/maint.mk (po_file): Allow cfg.mk override.
14660         (sc_po_check): Allow VPATH use.
14661         Reported by Jiri Denemark.
14662
14663 2011-03-16  Jim Meyering  <meyering@redhat.com>
14664
14665         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14666         Before, you would have had to create one .x-sc_ file per rule in order
14667         to exempt offending files.  Now, you may instead use a Make variable --
14668         usually defined in cfg.mk -- whose name identifies the affected rule.
14669         * top/maint.mk (_sc_excl): Define.
14670         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14671         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14672
14673 2011-03-13  Bruno Haible  <bruno@clisp.org>
14674
14675         ignore-value tests: Avoid warnings.
14676         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14677         empty for gcc < 3.4.
14678
14679 2011-03-13  Bruno Haible  <bruno@clisp.org>
14680
14681         passfd: Fix link error on Solaris.
14682         * modules/passfd (Description): Correct.
14683         (Depends-on): Add socketlib.
14684         (Link): New section.
14685         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14686
14687 2011-03-13  Bruno Haible  <bruno@clisp.org>
14688
14689         passfd: Fix link error on AIX 5.2.
14690         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14691
14692 2011-03-13  Bruno Haible  <bruno@clisp.org>
14693
14694         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14695         * lib/sys_socket.in.h: Include <stddef.h>.
14696         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14697         CMSG_FIRSTHDR. Remove unused variable.
14698
14699 2011-03-13  Bruno Haible  <bruno@clisp.org>
14700
14701         passfd: Fix compilation error on OpenBSD.
14702         * lib/passfd.c: Include <sys/uio.h>.
14703
14704 2011-03-13  Bruno Haible  <bruno@clisp.org>
14705
14706         passfd test: Fix warnings.
14707         * tests/test-passfd.c: Include <sys/wait.h>.
14708         (main): Fix typo.
14709
14710 2011-03-13  Bruno Haible  <bruno@clisp.org>
14711
14712         passfd module, part 4, tweaks.
14713         * tests/test-passfd.c: Reorder includes.
14714         (main): Fix perror and printf calls.
14715
14716 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14717
14718         passfd module, part 4.
14719         * modules/passfd-tests: New file.
14720         * tests/test-passfd.c: New file.
14721
14722 2011-03-13  Jim Meyering  <meyering@redhat.com>
14723
14724         Makefile: rely on GNU make; derive syntax-check rule names
14725         Rather than requiring that each sc_ rule be listed as a dependent
14726         of "check", use features of GNU make to derive the list.
14727         * Makefile (syntax-check-rules): Define.
14728         (check): Depend on the new variable, not the hard-coded list.
14729
14730 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14731             Bruno Haible  <bruno@clisp.org>
14732
14733         passfd module, part 3.
14734         * lib/passfd.h (recvfd): Add a flags argument.
14735         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14736         (recvfd): Add a flags argument.
14737         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14738         exists.
14739         * modules/passfd (Depends-on): Add cloexec.
14740         Suggested by Eric Blake.
14741
14742 2011-03-13  Bruno Haible  <bruno@clisp.org>
14743
14744         passfd module, part 2, tweaks.
14745         * modules/passfd (Files): Reorder.
14746         (Depends-on): Remove errno.
14747         (Include): Remove <sys/socket.h>, <sys/un.h>.
14748         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14749         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14750         specification header. Include <sys/socket.h> always. Don't include
14751         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14752         (sendfd): Clarify that it sets errno when it fails.
14753         (recvfd): Fix specification.
14754
14755 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14756
14757         passfd module, part 2.
14758         * modules/passfd: New file.
14759         * lib/passfd.h: New file.
14760         * lib/passfd.c: New file.
14761
14762 2011-03-12  Bruno Haible  <bruno@clisp.org>
14763
14764         wcswidth, mbswidth: Avoid integer overflow.
14765         * lib/wcswidth.c: Include <limits.h>.
14766         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14767         * lib/mbswidth.c: Include <limits.h>.
14768         (mbsnwidth): Avoid 'int' overflow.
14769         Reported by Jim Meyering.
14770
14771 2011-03-12  Bruno Haible  <bruno@clisp.org>
14772
14773         futimens, utimensat: Avoid endless recursion on Solaris 10.
14774         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14775         Solaris.
14776         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14777         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14778
14779 2011-03-11  Jim Meyering  <meyering@redhat.com>
14780
14781         maint.mk: relax a regexp to accommodate other formatting styles
14782         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14783         between "ngettext" and the following "(".
14784
14785 2011-03-11  Pádraig Brady <P@draigBrady.com>
14786
14787         maint.mk: suppress a false positive warning
14788         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14789         diagnostics are marked with ngettext.
14790
14791 2011-03-10  Eric Blake  <eblake@redhat.com>
14792
14793         wchar: add explicit dependencies, for Tru64
14794         * modules/mbmemcasecoll (Depends-on): Add wchar.
14795         * modules/mbtowc (Depends-on): Likewise.
14796         * modules/vasnprintf (Depends-on): Likewise.
14797         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14798         * modules/wctomb (Depends-on): Likewise.
14799         Reported by Peter O'Gorman.
14800
14801 2011-03-08  Bruno Haible  <bruno@clisp.org>
14802
14803         passfd module, part 1, tweaks.
14804         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14805         Improve indentation. Improve AC_MSG_CHECKING messages.
14806         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14807         gl_SOCKET_FAMILIES.
14808
14809 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14810
14811         passfd module, part 1.
14812         * m4/afunix.m4: New file.
14813         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14814         sockets.
14815
14816 2011-03-08  Bruno Haible  <bruno@clisp.org>
14817
14818         regex-quote: New API.
14819         * lib/regex-quote.h: Include <stdbool.h>.
14820         (struct regex_quote_spec): New type.
14821         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14822         New declarations.
14823         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14824         'const struct regex_quote_spec *' argument.
14825         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14826         (pcre_special): New constant.
14827         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14828         New functions.
14829         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14830         'const struct regex_quote_spec *' argument.
14831         * modules/regex-quote (Depends-on): Add stdbool.
14832         * tests/test-regex-quote.c (check): Update for new API. Add test for
14833         anchored results.
14834         * NEWS: Mention the API change.
14835         Reported by Reuben Thomas and Eric Blake.
14836
14837 2011-03-06  Bruno Haible  <bruno@clisp.org>
14838
14839         regex-quote: Fix creation of POSIX extended regular expressions.
14840         * lib/regex-quote.c (ere_special): Add grouping and alternation
14841         operators.
14842
14843 2011-03-05  Bruno Haible  <bruno@clisp.org>
14844
14845         doc: Improve doc regarding autopoint vs. gnulib.
14846         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14847         disable autopoint while running autoreconf.
14848         Suggested by Ralf Wildenhues.
14849
14850 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14851
14852         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14853         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14854
14855 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14856
14857         parse-duration: remove xalloc.h dependency
14858         * lib/parse-duration.c (parse_period): handle NULL return from
14859         strdup instead of calling xstrdup().
14860         * modules/parse-duration: remove "xalloc" dependency
14861
14862 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14863
14864         bootstrap: honor m4_base when running aclocal
14865         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14866
14867 2011-03-02  Jim Meyering  <meyering@redhat.com>
14868
14869         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14870         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14871         on request from Matt Booth.
14872
14873 2011-03-01  Eric Blake  <eblake@redhat.com>
14874
14875         test-link: work on Hurd
14876         * tests/test-link.h (test_link): Hurd rejects linking directories
14877         with EISDIR instead of the POSIX-mandated EPERM.
14878
14879 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14880
14881         stdio: simplify by moving files to printf-posix, sigpipe
14882         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14883         since this symbol is needed only if printf is replaced.
14884         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14885         Require gl_ASM_SYMBOL_PREFIX.
14886         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14887         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14888         (Depends-on): Add 'raise'.
14889         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14890         * modules/stdio (Files): Remove lib/stdio-write.c,
14891         m4/asm-underscore.m4.
14892         (Depends-on): Remove 'raise'.
14893
14894         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14895         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14896         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14897         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14898
14899 2011-02-28  Bruno Haible  <bruno@clisp.org>
14900
14901         localcharset: Assume ANSI C behaviour of free().
14902         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14903         calling free().
14904         Suggested by Simon Josefsson <simon@josefsson.org>.
14905
14906 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14907             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14908             Bruno Haible  <bruno@clisp.org>  (tiny change)
14909
14910         On Cygwin, use /proc file system instead of win32 API.
14911         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14912         Win32 file names.
14913         (DllMain): Simplify by removing Cygwin specific code.
14914         (find_shared_library_fullname): Use Linux specific implementation also
14915         for Cygwin.
14916         (get_shared_library_fullname): Update accordingly.
14917         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14918         Win32 file names.
14919         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14920         Cygwin specific code.
14921
14922 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14923             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14924
14925         Fix OpenMP flag detection for various Fortran compilers.
14926         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14927         OpenMP-conditional compilation construct, to force compile
14928         failure with missing OpenMP flag.
14929         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14930
14931 2011-02-25  Eric Blake  <eblake@redhat.com>
14932
14933         strstr: expand test coverage
14934         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14935         compilation.
14936         * tests/test-memmem.c (main): Duplicate tests.
14937         * tests/test-strcasestr.c (main): Likewise.
14938         * tests/test-c-strcasestr.c (main): Likewise.
14939
14940 2011-02-25  Jim Meyering  <meyering@redhat.com>
14941
14942         maint.mk: detect missing-NL-at-EOF, too
14943         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14944         it also detects when a file lacks a newline at EOF.
14945         (require_exactly_one_NL_at_EOF_): Renamed from
14946         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14947         since people may well have .x-sc_... file names tied to the
14948         existing name.  Suggested by Eric Blake.
14949
14950 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14951
14952         dirname: move m4/dos.m4 functionality into lib/dosname.h
14953
14954         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14955         extracts symbols from it, puts them into config.h; but it's much
14956         easier to use the symbols directly.  filename.h already does this,
14957         but it disagrees with dos.m4 in some respects.  This patch
14958         introduces a different include file dosname.h that packages up
14959         dos.m4, and then later we can work on merging filename.h and
14960         dosname.h.  Applications that need only the easy-to-configure
14961         symbols should consider including dosname.h rather than dirname.h.
14962         * NEWS: Mention incompatible changes.
14963         * m4/dos.m4: Remove.
14964         * lib/dosname.h, modules/dosname: New files.
14965         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14966         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14967         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14968         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14969         Include dosname.h, not dirname.h.
14970         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14971         Include dosname.h, for definitions of symbols like ISSLASH
14972         that used to be in config.h.
14973         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14974         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14975         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14976         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14977         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14978         * modules/rmdir (Files): Likewise.
14979         * modules/stat (Files): Likewise.
14980         * modules/unlink (Files): Likewise.
14981         * modules/dirname-lgpl (Depends-on): Add dosname.
14982         * modules/lstat (Depends-on): Likewise.
14983         * modules/openat (Depends-on): Likewise.
14984         * modules/rmdir (Depends-on): Likewise.
14985         * modules/savewd (Depends-on): Likewise.
14986         * modules/stat (Depends-on): Likewise.
14987         * modules/unlink (Depends-on): Likewise.
14988         * modules/openat (Depends-on): Remove dirname-lgpl.
14989         * modules/savewd (Depends-on): Likewise.
14990         * tests/test-dirname.c: Do not use removed symbols like
14991         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14992         the remaining symbols, e.g., ISSLASH ('\\').
14993
14994 2011-02-25  Eric Blake  <eblake@redhat.com>
14995
14996         strstr: revert patches that introduced bug and pessimization
14997         * lib/str-two-way.h: Add another reference.
14998         (two_way_short_needle, two_way_long_needle): Revert changes from
14999         2011-02-24; they pessimize search speed.
15000         (critical_factorization): Partially revert changes from
15001         2010-06-22; they violate the requirement that the left half of the
15002         needle be smaller than the period of the needle.
15003
15004 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15005
15006         filenamecat: remove unnecessary dependency on dirname-lgpl
15007         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
15008         is no direct dependency, just an indirect one via filenamecat-lgpl.
15009
15010         remove: remove unnecessary use of m4/dos.m4
15011         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
15012         * modules/remove (FILES): Remove m4/dos.m4.
15013
15014         * lib/openat-proc.c: Don't include dirname.h; not needed.
15015
15016         backupfile: remove unnecessary use of m4/dos.m4
15017         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
15018         of its symbols are used by the backupfile code.  backupfile.c does
15019         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
15020         for the rare case of programs that want all their backup file
15021         names to live within 8+3 limits, and dos.m4 doesn't address that.
15022         * modules/backupfile (Files): Remove m4/dos.m4.
15023
15024 2011-02-24  Jim Meyering  <meyering@redhat.com>
15025
15026         strstr: fix a bug whereby strstr would mistakenly return NULL
15027         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
15028         in period calculation.
15029         (two_way_long_needle): Likewise.
15030         The original problem was reported by Mike Stump in
15031         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
15032         Ralf Wildenhues provided the short needle and haystack.
15033         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
15034         Add a more involved test to trigger the bug in two_way_long_needle.
15035
15036 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15037
15038         gnulib-tool: remove use of bold display in help screen
15039         * gnulib-tool (func_usage): Do not use bold display anymore in the
15040         help screen.  That was just meant to be a temporary emphasis for a
15041         backward-incompatible change.
15042
15043 2011-02-23  Bruno Haible  <bruno@clisp.org>
15044
15045         Fix misindentation of preprocessor directives.
15046         * lib/argp-namefrob.h: Reindent preprocessor directives.
15047         * lib/getopt_int.h (struct _getopt_data): Likewise.
15048         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15049         * lib/vasnprintf.c (decode_long_double): Likewise.
15050         * tests/test-argmatch.c: Insert blank lines, for clarity.
15051         * tests/test-exclude.c: Likewise.
15052
15053 2011-02-22  Bruno Haible  <bruno@clisp.org>
15054
15055         ioctl: Fix for MacOS X in 64-bit mode.
15056         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15057         value.
15058         Suggested by Eric Blake.
15059         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
15060
15061 2011-02-22  Jim Meyering  <meyering@redhat.com>
15062
15063         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15064         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15065         in lib/.
15066
15067 2011-02-22  Eric Blake  <eblake@redhat.com>
15068
15069         maint: avoid any CDPATH issue
15070         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15071
15072         maint: adjust cpp indentation for my modules, as well
15073         * Makefile (sc_cpp_indent_check): Add my name.
15074         * lib/fbufmode.c: Filter through cppi.
15075         * lib/fpurge.c: Likewise.
15076         * lib/freadable.c: Likewise.
15077         * lib/freading.c: Likewise.
15078         * lib/fwritable.c: Likewise.
15079         * lib/fwriting.c: Likewise.
15080         * lib/sigaction.c: Likewise.
15081
15082 2011-02-22  Jim Meyering  <meyering@redhat.com>
15083
15084         maint: adjust cpp indentation to reflect nesting depth
15085         I.e., in a block of code that begins with an unnested "#if",
15086         put one space between the "#" in column 1 and following token.
15087         For example,
15088         -#include <sys/vfs.h>
15089         +# include <sys/vfs.h>
15090         Do this only in .c files that are part of a module I maintain.
15091         * lib/linkat.c: Filter through cppi.
15092         * lib/nanosleep.c: Likewise.
15093         * lib/openat.c: Likewise.
15094         * lib/openat-die.c: Likewise.
15095         * lib/dup3.c: Likewise.
15096         * lib/fchownat.c: Likewise.
15097         * lib/flock.c: Likewise.
15098         * lib/fsync.c: Likewise.
15099         * lib/fts.c: Likewise.
15100         * lib/getpass.c: Likewise.
15101         * lib/gettimeofday.c: Likewise.
15102         * lib/userspec.c: Likewise.
15103         * Makefile (sc_cpp_indent_check): New rule, to check this.
15104
15105 2011-02-22  Bruno Haible  <bruno@clisp.org>
15106
15107         New module 'wctomb'.
15108         * lib/stdlib.in.h (wctomb): New declaration.
15109         * lib/wctomb.c: New file.
15110         * lib/wctomb-impl.h: New file.
15111         * m4/wctomb.m4: New file.
15112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15113         REPLACE_WCTOMB.
15114         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15115         REPLACE_WCTOMB.
15116         * modules/wctomb: New file.
15117         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15118         * doc/posix-functions/wctomb.texi: Mention the new module.
15119         * modules/wctob (Depends-on): Add wctomb.
15120
15121 2011-02-22  Bruno Haible  <bruno@clisp.org>
15122
15123         New module 'mbtowc'.
15124         * lib/stdlib.in.h (mbtowc): New declaration.
15125         * lib/mbtowc.c: New file.
15126         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15127         * m4/mbtowc.m4: New file.
15128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15129         REPLACE_MBTOWC.
15130         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15131         REPLACE_MBTOWC.
15132         * modules/mbtowc: New file.
15133         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15134         * doc/posix-functions/mbtowc.texi: Mention the new module.
15135         * modules/btowc (Depends-on): Add mbtowc.
15136
15137 2011-02-22  Bruno Haible  <bruno@clisp.org>
15138
15139         wcrtomb: Add more tests for native Windows platforms.
15140         * tests/test-wcrtomb-w32-1.sh: New file.
15141         * tests/test-wcrtomb-w32-2.sh: New file.
15142         * tests/test-wcrtomb-w32-3.sh: New file.
15143         * tests/test-wcrtomb-w32-4.sh: New file.
15144         * tests/test-wcrtomb-w32-5.sh: New file.
15145         * tests/test-wcrtomb-w32.c: New file.
15146         * modules/wcrtomb-tests (Files): Add them.
15147         (Makefile.am): Arrange to run these tests.
15148         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15149         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15150
15151 2011-02-20  Bruno Haible  <bruno@clisp.org>
15152
15153         wcrtomb: Enhance test.
15154         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15155
15156 2011-02-20  Bruno Haible  <bruno@clisp.org>
15157
15158         mbrtowc: Tiny optimization.
15159         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15160
15161 2011-02-20  Jim Meyering  <meyering@redhat.com>
15162
15163         test-exclude.c: remove unmatched #endif
15164         * tests/test-exclude.c: Remove stray #endif, left over from
15165         the change of a week ago.
15166
15167 2011-02-19  Jim Meyering  <meyering@redhat.com>
15168
15169         git-version-gen: skip "-dirty" check when appropriate
15170         * build-aux/git-version-gen: Don't run any git commands when the
15171         version string comes from .tarball-version.  Prior to this, we
15172         would run git update-index --refresh even from a just-unpacked
15173         tarball directory, and that could affect a .git/ directory in a
15174         parent of the build directory.  Reported by Mike Frysinger.
15175
15176 2011-02-19  Bruno Haible  <bruno@clisp.org>
15177
15178         unictype/property-byname: Reduce the size of the 'data' segment.
15179         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15180
15181 2011-02-19  Bruno Haible  <bruno@clisp.org>
15182
15183         unictype/scripts: Reduce the size of the 'data' segment.
15184         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15185         '%pic'.
15186         * lib/unictype/scripts_byname.gperf: Regenerated.
15187
15188 2011-02-19  Bruno Haible  <bruno@clisp.org>
15189
15190         stdint: Update documentation.
15191         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15192
15193 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15194
15195         stdint: omit redundant check for wchar.h
15196         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15197         always tests whether wchar.h exists, so remove the now-redundant test.
15198
15199 2011-02-18  Bruno Haible  <bruno@clisp.org>
15200
15201         stdint: Cut dependency to module 'wchar'.
15202         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15203         include the necessary prerequisites.
15204         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15205         * modules/stdint (Depends-on): Remove wchar.
15206         (Makefile.am): Substitute HAVE_WCHAR_H.
15207         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15208
15209 2011-02-18  Eric Blake  <eblake@redhat.com>
15210
15211         longlong: skip, rather than fail, on cross-compilation
15212         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15213         when cross-compiling; regression from 2011-02-16.
15214
15215 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15216
15217         * NEWS: Mention 2011-02-08 change to stdlib.
15218
15219 2011-02-17  Bruno Haible  <bruno@clisp.org>
15220
15221         getloadavg: Add comments about platforms.
15222         * m4/getloadavg.m4: Add comment.
15223         * lib/getloadavg.c: Likewise.
15224
15225 2011-02-17  Bruno Haible  <bruno@clisp.org>
15226
15227         getloadavg: Fix link error on Solaris 2.6.
15228         * modules/getloadavg (Link): New section.
15229         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15230         linking test-getloadavg.
15231         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15232         getloadavg.
15233
15234 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15235
15236         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15237         It was 'int', but this doesn't match the IRIX 6.5 manual.
15238         Suggested by Bruno Haible in
15239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15240
15241 2011-02-17  Bruno Haible  <bruno@clisp.org>
15242
15243         havelib: Fix comments.
15244         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15245         change.
15246
15247 2011-02-17  Bruno Haible  <bruno@clisp.org>
15248
15249         havelib: Update config.rpath.
15250         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15251
15252 2011-02-17  Bruno Haible  <bruno@clisp.org>
15253
15254         getloadavg test: Add some plausibility checks.
15255         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15256         is improbable.
15257
15258 2011-02-16  Eric Blake  <eblake@redhat.com>
15259
15260         maintainer-makefile: make syntax-check a no-op from tarballs
15261         * top/maint.mk (no-vc-detected): New rule.
15262         (local-checks-available): Use it to avoid hanging if someone tries
15263         'make syntax-check' from a tarball.  Also append to any non-syntax
15264         checks already defined in cfg.mk.
15265
15266 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15267
15268         longlong: tune, particularly for common case of c99
15269
15270         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15271         or running anything if c99, or if unsigned long long int does not
15272         work.  In either case, we know the answer without further tests.
15273         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15274         it at most once, and use its results for both long long int and
15275         unsigned long long int.  This is more likely to be efficient in
15276         the common case where the program wants to check for both long
15277         long int and unsigned long long int.
15278         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15279         since the answer is already known.
15280
15281 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15282
15283         getloadavg: set errno
15284         * lib/getloadavg.c: Set errno when returning -1.  If no other
15285         error number looks appropriate, set it to ENOSYS if the getloadavg
15286         looks like it can't possibly ever work, ENOTSUP otherwise.
15287         Suggested by Bruno Haible in
15288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15289
15290         getloadavg: trim unused parts and speed up 'configure'
15291         * NEWS: Document this.
15292         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15293         always compiled if getloadavg is absent.
15294         Move test code to ...
15295         * tests/test-getloadavg.c: New file, containing previous
15296         contents of test from lib/getloadavg.c.  It also contains
15297         suggestions by Bruno Haible in
15298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15299         * modules/getloadavg-tests: New file.
15300         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15301         Do tests in the same order as they're needed for getloadavg.c.
15302         Omit setgid-related tests that generate symbols KMEM_GROUP,
15303         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15304         Do only the tests that are needed to see whether the system has
15305         getloadavg, moving the other tests into ...
15306         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15307         NLIST_NAME_UNION; nobody should be using it.  Do not define
15308         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15309         relevant, as the user of this module shouldn't care how getloadavg
15310         is implemented.
15311
15312         getloadavg: omit unused var
15313         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15314
15315 2011-02-15  Jim Meyering  <meyering@redhat.com>
15316
15317         doc: update users.txt
15318         * users.txt: Update iwhd's URL.
15319
15320 2011-02-13  Bruno Haible  <bruno@clisp.org>
15321
15322         Consistent macro naming for macros that use GCC __attribute__.
15323         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15324         _ATTRIBUTE_NONNULL_.
15325         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15326         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15327         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15328         ATTRIBUTE_DEPRECATED.
15329         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15330         ATTRIBUTE_NORETURN.
15331         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15332         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15333         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15334         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15335         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15336         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15337         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15338         ATTRIBUTE_SENTINEL.
15339         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15340         ATTRIBUTE_RETURN_CHECK.
15341         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15342         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15343         ATTRIBUTE_NORETURN.
15344         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15345         Reported by Paul Eggert.
15346
15347 2011-02-13  Bruno Haible  <bruno@clisp.org>
15348
15349         Don't interfere with a program's definition of __attribute__.
15350         * lib/argp.h (__attribute__): Remove definition.
15351         (_GL_ATTRIBUTE_FORMAT): New macro.
15352         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15353         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15354         (_GL_ATTRIBUTE_FORMAT): New macro.
15355         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15356         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15357         GCC 3 or newer.
15358         * lib/error.h (__attribute__): Remove definition.
15359         (_GL_ATTRIBUTE_FORMAT): New macro.
15360         (error, error_at_line): Use it.
15361         * lib/hash.h (__attribute__): Remove definition.
15362         (ATTRIBUTE_WUR): Update definition. Define always.
15363         * lib/openat.h (__attribute__): Remove definition.
15364         (ATTRIBUTE_NORETURN): Update definition. Define always.
15365         * lib/sigpipe-die.h (__attribute__): Remove definition.
15366         (ATTRIBUTE_NORETURN): Update definition. Define always.
15367         * lib/vasnprintf.h (__attribute__): Remove definition.
15368         (_GL_ATTRIBUTE_FORMAT): New macro.
15369         (asnprintf, vasnprintf): Use it.
15370         * lib/xalloc.h (__attribute__): Remove definition.
15371         (ATTRIBUTE_NORETURN): Update definition. Define always.
15372         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15373         * lib/xmemdup0.h (__attribute__): Remove definition.
15374         (ATTRIBUTE_NORETURN): Update definition. Define always.
15375         * lib/xprintf.h (__attribute__): Remove definition.
15376         (_GL_ATTRIBUTE_FORMAT): New macro.
15377         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15378         * lib/xstrtol.h (__attribute__): Remove definition.
15379         (ATTRIBUTE_NORETURN): Update definition. Define always.
15380         * lib/xvasprintf.h (__attribute__): Remove definition.
15381         (_GL_ATTRIBUTE_FORMAT): New macro.
15382         (xasprintf, xvasprintf): Use it.
15383         * tests/test-argmatch.c (__attribute__): Remove definition.
15384         (ATTRIBUTE_NORETURN): Update definition. Define always.
15385         * tests/test-exclude.c (__attribute__): Remove definition.
15386         (ATTRIBUTE_NORETURN): Update definition. Define always.
15387         Reported by Paul Eggert.
15388
15389 2011-02-13  Bruno Haible  <bruno@clisp.org>
15390
15391         mbrtowc: Add more tests for native Windows platforms.
15392         * tests/test-mbrtowc-w32-1.sh: New file.
15393         * tests/test-mbrtowc-w32-2.sh: New file.
15394         * tests/test-mbrtowc-w32-3.sh: New file.
15395         * tests/test-mbrtowc-w32-4.sh: New file.
15396         * tests/test-mbrtowc-w32-5.sh: New file.
15397         * tests/test-mbrtowc-w32.c: New file.
15398         * modules/mbrtowc-tests (Files): Add them.
15399         (Makefile.am): Arrange to run these tests.
15400         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15401         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15402
15403 2011-02-13  Bruno Haible  <bruno@clisp.org>
15404
15405         mbrtowc: Work around native Windows bug.
15406         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15407         guess when no suitable locale for testing was found.
15408         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15409
15410 2011-02-13  Bruno Haible  <bruno@clisp.org>
15411
15412         mbsinit: Work around mingw bug.
15413         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15414         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15415         Windows.
15416         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15417
15418 2011-02-13  Bruno Haible  <bruno@clisp.org>
15419
15420         mbsinit: Don't crash for a NULL argument.
15421         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15422         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15423
15424 2011-02-13  Bruno Haible  <bruno@clisp.org>
15425
15426         Don't interfere with a program's definition of __attribute__.
15427         * lib/stdio.in.h (__attribute__): Remove definition.
15428         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15429         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15430         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15431         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15432         * lib/string.in.h (__attribute__): Remove definition.
15433         Reported by Paul Eggert.
15434
15435 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15436
15437         stdlib: don't get in the way of non-GCC __attribute__
15438         See thread starting at
15439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15440         Revert previous stdlib change, installing the following instead:
15441         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15442         to get in the way of a non-GCC compiler that supports __attribute__.
15443         (_GL_ATTRIBUTE_RETURN): New macro.
15444         (_Exit): Use it instead of __attribute__.
15445
15446 2011-02-12  Bruno Haible  <bruno@clisp.org>
15447
15448         quotearg test: Avoid test failure on mingw.
15449         * tests/test-quotearg.sh: Convert the locale identifier from native
15450         Windows syntax to Unix syntax.
15451
15452 2011-02-12  Bruno Haible  <bruno@clisp.org>
15453
15454         setlocale: Prefer gnulib's override over libintl's override.
15455         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15456         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15457         GNULIB_defined_setlocale is set.
15458
15459 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15460
15461         stdlib: support non-GCC __attribute__
15462
15463         Fix a serious and tricky problem encountered when attempting to
15464         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15465         5.5, but it crashed due to memory corruption on Solaris 10 with
15466         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15467         bits that are otherwise zero.  This tagging is optional inside
15468         Emacs but is preferred and is used when __attribute__ ((__aligned
15469         (8))) works, as it does with both recent-enough GCC and with Sun C
15470         5.11.  However, Sun C 5.11 is not GCC and does not #define
15471         __GNUC__ and __GNUC_MINOR__.
15472
15473         When I added the getloadavg module to Emacs, it brought in
15474         stdlib.in.h, which contained this fragment:
15475
15476            #ifndef __attribute__
15477            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15478            #  define __attribute__(Spec)   /* empty */
15479            # endif
15480            #endif
15481
15482         When files that include <stdlib.h> were compiled with Sun C 5.11,
15483         the above code disabled __attribute__ ((__aligned (8))), which
15484         caused variables to not be properly aligned, which eventually led
15485         to the pointer corruption mentioned above.  (This was a bit hard
15486         to diagnose, unfortunately.)
15487
15488         Several "#define __attribute__(X) /* empty */" code snippets need
15489         to be eradicated from Gnulib to work with non-GCC compilers that
15490         support __attribute__.  The Autoconf way to do this is to test for
15491         each kind of attribute that we want support for, and selectively
15492         enable that in source code.
15493
15494         Fix this problem just for stdlib.h, by adding a test for the
15495         __noreturn__ attribute, and change stdlib.in.h to use that test
15496         when needed.  This technique can be easily generalized to the
15497         other *.in.h files and attributes, and a similar technique can be
15498         used for *.h and *.c files.  This patch is enough to solve the
15499         problem for Emacs + getloadavg, and I thought I'd publish it for
15500         feedback before undertaking further, similar fixes in other
15501         modules.
15502
15503         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15504         because it's not needed for stdlib.h.  It merely substitutes the
15505         value directly into stdlib.h.  We may well need to #define it, or
15506         similar symbols, for other modules, but it's nice to also have an
15507         option to not #define it for applications like Emacs that do not
15508         need it.
15509
15510         * lib/stdlib.in.h (__attribute__): Do not #define.
15511         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15512         be defined only if the _Exit module is also used.
15513         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15515         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15516         platforms.
15517         * modules/_Exit (Files): Add m4/attribute.m4.
15518         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15519         * m4/attribute.m4: New file.
15520
15521 2011-02-12  Bruno Haible  <bruno@clisp.org>
15522
15523         wcsrtombs: Work around bug on native Windows.
15524         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15525         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15526         instead of len.
15527         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15528
15529 2011-02-12  Bruno Haible  <bruno@clisp.org>
15530
15531         mbsrtowcs: Work around bug on native Windows.
15532         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15533         against mingw bug.
15534         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15535
15536 2011-02-12  Bruno Haible  <bruno@clisp.org>
15537
15538         Avoid setlocale bugs in tests.
15539         * modules/btowc (Dependencies): Add setlocale.
15540         * modules/c-strcase (Dependencies): Likewise.
15541         * modules/mbmemcasecmp (Dependencies): Likewise.
15542         * modules/mbmemcasecoll (Dependencies): Likewise.
15543         * modules/mbrtowc (Dependencies): Likewise.
15544         * modules/mbscasecmp (Dependencies): Likewise.
15545         * modules/mbscasestr (Dependencies): Likewise.
15546         * modules/mbschr (Dependencies): Likewise.
15547         * modules/mbscspn (Dependencies): Likewise.
15548         * modules/mbsinit (Dependencies): Likewise.
15549         * modules/mbsncasecmp (Dependencies): Likewise.
15550         * modules/mbsnrtowcs (Dependencies): Likewise.
15551         * modules/mbspbrk (Dependencies): Likewise.
15552         * modules/mbspcasecmp (Dependencies): Likewise.
15553         * modules/mbsrchr (Dependencies): Likewise.
15554         * modules/mbsrtowcs (Dependencies): Likewise.
15555         * modules/mbsspn (Dependencies): Likewise.
15556         * modules/mbsstr (Dependencies): Likewise.
15557         * modules/nl_langinfo (Dependencies): Likewise.
15558         * modules/quotearg (Dependencies): Likewise.
15559         * modules/unicase/locale-language (Dependencies): Likewise.
15560         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15561         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15562         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15563         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15564         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15565         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15566         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15567         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15568         * modules/vasnprintf-posix (Dependencies): Likewise.
15569         * modules/wcrtomb (Dependencies): Likewise.
15570         * modules/wcsnrtombs (Dependencies): Likewise.
15571         * modules/wcsrtombs (Dependencies): Likewise.
15572
15573 2011-02-12  Bruno Haible  <bruno@clisp.org>
15574
15575         setlocale: Workaround native Windows bug.
15576         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15577         succeeds but sets LC_CTYPE to "C", report a failure.
15578         * tests/test-setlocale2.sh: New file.
15579         * tests/test-setlocale2.c: New file.
15580         * modules/setlocale-tests (Files): Add the new files.
15581         (Makefile.am): Enable test-setlocale2.sh test.
15582         * doc/posix-functions/setlocale.texi: Mention workaround.
15583
15584 2011-02-11  Bruno Haible  <bruno@clisp.org>
15585
15586         Tests for module 'setlocale'.
15587         * modules/setlocale-tests: New file.
15588         * tests/test-setlocale1.sh: New file.
15589         * tests/test-setlocale1.c: New file.
15590
15591         New module 'setlocale'.
15592         * lib/locale.in.h (setlocale): New declaration.
15593         * lib/setlocale.c: New file, based on
15594         gettext/gettext-runtime/intl/setlocale.c.
15595         * m4/setlocale.m4: New file.
15596         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15597         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15598         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15599         REPLACE_SETLOCALE.
15600         * modules/setlocale: New file.
15601         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15602         * doc/posix-functions/setlocale.texi: Mention the new module.
15603
15604 2011-02-11  Bruno Haible  <bruno@clisp.org>
15605
15606         Prepare for locale dependent tests on mingw.
15607         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15608         because it has the wrong locale encoding.
15609         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15610         French_France.1252 instead of "fr".
15611         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15612         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15613         because it has the wrong locale encoding.
15614         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15615         native Windows, try Turkish_Turkey.65001.
15616         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15617         Chinese_China.54936.
15618
15619         Prepare for locale dependent tests on mingw.
15620         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15621         differently.
15622         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15623         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15624         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15625         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15626
15627 2011-02-11  Eric Blake  <eblake@redhat.com>
15628
15629         strptime: avoid compiler warnings
15630         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15631         compiler warnings about dead code.
15632         Reported by Daniel P. Berrange.
15633
15634 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15635
15636         doc: update users.txt
15637         * users.txt: Add rcs.
15638
15639 2011-02-10  John W. Eaton  <jwe@gnu.org>
15640
15641         doc: update users.txt
15642         * users.txt: Add octave.
15643
15644 2011-02-10  Jim Meyering  <meyering@redhat.com>
15645
15646         doc: update users.txt
15647         * users.txt: Add iwhd.
15648
15649 2011-02-09  Bruno Haible  <bruno@clisp.org>
15650
15651         gnulib-tool: Make copyright notice adjustment more robust.
15652         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15653         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15654         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15655         License".
15656         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15657
15658 2011-02-06  Bruno Haible  <bruno@clisp.org>
15659
15660         New module 'towctrans'.
15661         * modules/towctrans: New file.
15662         * lib/wctype.in.h (towctrans): New declaration.
15663         * lib/towctrans.c: New file.
15664         * lib/towctrans-impl.h: New file.
15665         * m4/towctrans.m4: New file.
15666         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15667         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15668         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15669         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15670         * doc/posix-functions/towctrans.texi: Mention the new module.
15671
15672 2011-02-06  Bruno Haible  <bruno@clisp.org>
15673
15674         New module 'wctrans'.
15675         * modules/wctrans: New file.
15676         * lib/wctype.in.h (wctrans): New declaration.
15677         * lib/wctrans.c: New file.
15678         * lib/wctrans-impl.h: New file.
15679         * m4/wctrans.m4: New file.
15680         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15681         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15682         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15683         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15684         * doc/posix-functions/wctrans.texi: Mention the new module.
15685
15686 2011-02-06  Bruno Haible  <bruno@clisp.org>
15687
15688         New module 'iswctype'.
15689         * modules/iswctype: New file.
15690         * lib/wctype.in.h (iswctype): New declaration.
15691         * lib/iswctype.c: New file.
15692         * lib/iswctype-impl.h: New file.
15693         * m4/iswctype.m4: New file.
15694         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15695         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15696         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15697         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15698         * doc/posix-functions/iswctype.texi: Mention the new module and the
15699         HP-UX 11.00 problem.
15700
15701 2011-02-06  Bruno Haible  <bruno@clisp.org>
15702
15703         New module 'wctype'.
15704         * modules/wctype: Change to represent the wctype() substitute.
15705         * lib/wctype.in.h (wctype): New declaration.
15706         * lib/wctype.c: New file.
15707         * lib/wctype-impl.h: New file.
15708         * m4/wctype.m4: New file.
15709         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15710         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15711         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15712         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15713         * doc/posix-functions/wctype.texi: Mention the new module and the
15714         HP-UX 11.00 problem.
15715
15716 2011-02-06  Bruno Haible  <bruno@clisp.org>
15717
15718         wctype-h: Ensure wctype_t and wctrans_t are defined.
15719         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15720         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15721         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15722         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15723         HAVE_WCTRANS_T.
15724         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15725
15726 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15727
15728         flock: fix license typo
15729
15730         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15731         omitted.
15732
15733 2011-02-08  Bruno Haible  <bruno@clisp.org>
15734
15735         Split large sed scripts, for HP-UX sed.
15736         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15737         to avoid HP-UX limit of 99 commands, in the near future.
15738         * modules/stdlib (Makefile.am): Likewise.
15739         * modules/unistd (Makefile.am): Likewise.
15740         * modules/wchar (Makefile.am): Likewise.
15741         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15742         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15743         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15744
15745 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15746             Bruno Haible  <bruno@clisp.org>
15747
15748         stdlib: improve random_r modularization
15749         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15750         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15751         you also need the random_r module to get this material right.
15752         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15753         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15754         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15755
15756 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15757
15758         stdlib: don't depend on stdint
15759         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15760         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15761         be independent of whether stdint.h is needed.
15762         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15763         here, instead of ...
15764         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15765         struct random_data should be using the random_r module, not just
15766         the stdlib module (which wouldn't make sense: what package needs
15767         just struct random_data without also needing random_r?).
15768         * modules/stdlib (Depends-on): Remove stdint.
15769
15770         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15771         See the thread rooted at
15772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15773         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15774         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15775         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15776         __VMS)); previously it was always included (via fcntl--.h).
15777         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15778         hand; this is good enough for load averages.  Also, do not use
15779         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15780         flags directly if available and don't bother otherwise.  (Packages
15781         that need the extra reliability should use the modules that define
15782         these flags on older platforms that lack them.)
15783         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15784         fcntl-safer.
15785
15786 2011-02-08  Jim Meyering  <meyering@redhat.com>
15787
15788         di-set.h, ino-map.h: add multiple-inclusion guard
15789         Technically, the guard is required only for ino-map.h, due to its
15790         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15791         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15792         * lib/ino-map.h: Likewise.
15793
15794 2011-02-06  Bruno Haible  <bruno@clisp.org>
15795
15796         iswblank: Ensure declaration on glibc systems.
15797         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15798         * modules/iswblank (Dependencies): Add 'extensions'.
15799         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15800
15801 2011-02-06  Bruno Haible  <bruno@clisp.org>
15802
15803         New module 'iswblank'.
15804         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15805         * modules/iswblank: New file.
15806         * modules/wctype-h (Files): Remove lib/iswblank.c.
15807         (Makefile.am): Substitute GNULIB_ISWBLANK.
15808         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15809         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15810         (gl_WCTYPE_H_DEFAULTS): New macro.
15811         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15812         * modules/iswblank-tests: New file.
15813         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15814         * tests/test-wctype-h.c (main): Remove iswblank tests.
15815         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15816         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15817         of 'wctype-h'.
15818         * NEWS: Mention the change.
15819         * modules/mbchar (Depends-on): Add iswblank.
15820
15821 2011-02-08  Bruno Haible  <bruno@clisp.org>
15822
15823         di-set tests: Refactor.
15824         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15825         unnecessary includes.
15826         (ASSERT): Remove macro.
15827         (main): Make C90 compliant by avoiding variable declaration after
15828         statement.
15829         * modules/di-set-tests (Files): Add tests/macros.h.
15830
15831 2011-02-08  Bruno Haible  <bruno@clisp.org>
15832
15833         ino-map tests: Refactor.
15834         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15835         unnecessary includes.
15836         (ASSERT): Remove macro.
15837         (main): Make C90 compliant by avoiding variable declaration after
15838         statement.
15839         * modules/ino-map-tests (Files): Add tests/macros.h.
15840
15841 2011-02-08  Jim Meyering  <meyering@redhat.com>
15842
15843         di-set: add "const" to a cast
15844         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15845         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15846
15847 2011-02-06  Bruno Haible  <bruno@clisp.org>
15848
15849         Rename module 'wctype' to 'wctype-h'.
15850         * modules/wctype-h: Renamed from modules/wctype.
15851         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15852         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15853         (Files, Depends-on, Makefile.am): Update.
15854         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15855         (Files, Makefile.am): Update.
15856         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15857         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15858         * doc/posix-headers/wctype.texi: Update.
15859         * doc/posix-functions/iswalnum.texi: Update.
15860         * doc/posix-functions/iswalpha.texi: Update.
15861         * doc/posix-functions/iswblank.texi: Update.
15862         * doc/posix-functions/iswcntrl.texi: Update.
15863         * doc/posix-functions/iswdigit.texi: Update.
15864         * doc/posix-functions/iswgraph.texi: Update.
15865         * doc/posix-functions/iswlower.texi: Update.
15866         * doc/posix-functions/iswprint.texi: Update.
15867         * doc/posix-functions/iswpunct.texi: Update.
15868         * doc/posix-functions/iswspace.texi: Update.
15869         * doc/posix-functions/iswupper.texi: Update.
15870         * doc/posix-functions/iswxdigit.texi: Update.
15871         * doc/posix-functions/towlower.texi: Update.
15872         * doc/posix-functions/towupper.texi: Update.
15873         * NEWS: Mention the change.
15874         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15875         * modules/mbchar (Dependencies): Likewise.
15876         * modules/mbswidth (Dependencies): Likewise.
15877         * modules/quotearg (Dependencies): Likewise.
15878         * modules/regex (Dependencies): Likewise.
15879         * modules/wcscasecmp (Dependencies): Likewise.
15880         * modules/wcsncasecmp (Dependencies): Likewise.
15881         * modules/wcwidth (Dependencies): Likewise.
15882
15883 2011-02-06  Bruno Haible  <bruno@clisp.org>
15884
15885         New module 'wcswidth'.
15886         * modules/wcswidth: New file.
15887         * lib/wchar.in.h (wcswidth): New declaration.
15888         * lib/wcswidth.c: New file.
15889         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15890         * m4/wcswidth.m4: New file.
15891         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15892         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15893         REPLACE_WCSWIDTH.
15894         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15895         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15896         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15897         * doc/posix-functions/wcswidth.texi: Mention the new module.
15898
15899 2011-02-06  Bruno Haible  <bruno@clisp.org>
15900
15901         New module 'wcstok'.
15902         * modules/wcstok: New file.
15903         * lib/wchar.in.h (wcstok): New declaration.
15904         * lib/wcstok.c: New file.
15905         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15906         * m4/wcstok.m4: New file.
15907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15910         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15911         * doc/posix-functions/wcstok.texi: Mention the new module.
15912
15913 2011-02-06  Bruno Haible  <bruno@clisp.org>
15914
15915         New module 'wcsstr'.
15916         * modules/wcsstr: New file.
15917         * lib/wchar.in.h (wcsstr): New declaration.
15918         * lib/wcsstr.c: New file.
15919         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15920         * m4/wcsstr.m4: New file.
15921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15924         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15925         * doc/posix-functions/wcsstr.texi: Mention the new module.
15926
15927 2011-02-06  Bruno Haible  <bruno@clisp.org>
15928
15929         New module 'wcspbrk'.
15930         * modules/wcspbrk: New file.
15931         * lib/wchar.in.h (wcspbrk): New declaration.
15932         * lib/wcspbrk.c: New file.
15933         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15934         * m4/wcspbrk.m4: New file.
15935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15938         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15939         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15940
15941 2011-02-06  Bruno Haible  <bruno@clisp.org>
15942
15943         New module 'wcsspn'.
15944         * modules/wcsspn: New file.
15945         * lib/wchar.in.h (wcsspn): New declaration.
15946         * lib/wcsspn.c: New file.
15947         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15948         * m4/wcsspn.m4: New file.
15949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15952         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15953         * doc/posix-functions/wcsspn.texi: Mention the new module.
15954
15955 2011-02-06  Bruno Haible  <bruno@clisp.org>
15956
15957         New module 'wcscspn'.
15958         * modules/wcscspn: New file.
15959         * lib/wchar.in.h (wcscspn): New declaration.
15960         * lib/wcscspn.c: New file.
15961         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15962         * m4/wcscspn.m4: New file.
15963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15966         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15967         * doc/posix-functions/wcscspn.texi: Mention the new module.
15968
15969 2011-02-06  Bruno Haible  <bruno@clisp.org>
15970
15971         New module 'wcsrchr'.
15972         * modules/wcsrchr: New file.
15973         * lib/wchar.in.h (wcsrchr): New declaration.
15974         * lib/wcsrchr.c: New file.
15975         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15976         * m4/wcsrchr.m4: New file.
15977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15979         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15980         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15981         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15982
15983 2011-02-06  Bruno Haible  <bruno@clisp.org>
15984
15985         New module 'wcschr'.
15986         * modules/wcschr: New file.
15987         * lib/wchar.in.h (wcschr): New declaration.
15988         * lib/wcschr.c: New file.
15989         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15990         * m4/wcschr.m4: New file.
15991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15993         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15994         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15995         * doc/posix-functions/wcschr.texi: Mention the new module.
15996
15997 2011-02-06  Bruno Haible  <bruno@clisp.org>
15998
15999         New module 'wcsdup'.
16000         * modules/wcsdup: New file.
16001         * lib/wchar.in.h (wcsdup): New declaration.
16002         * lib/wcsdup.c: New file.
16003         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
16004         * m4/wcsdup.m4: New file.
16005         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
16006         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
16007         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
16008         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
16009         * doc/posix-functions/wcsdup.texi: Mention the new module.
16010
16011 2011-02-06  Bruno Haible  <bruno@clisp.org>
16012
16013         New module 'wcsxfrm'.
16014         * modules/wcsxfrm: New file.
16015         * lib/wchar.in.h (wcsxfrm): New declaration.
16016         * lib/wcsxfrm.c: New file.
16017         * lib/wcsxfrm-impl.h: New file.
16018         * m4/wcsxfrm.m4: New file.
16019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
16020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
16021         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
16022         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
16023         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
16024
16025 2011-02-06  Bruno Haible  <bruno@clisp.org>
16026
16027         New module 'wcscoll'.
16028         * modules/wcscoll: New file.
16029         * lib/wchar.in.h (wcscoll): New declaration.
16030         * lib/wcscoll.c: New file.
16031         * lib/wcscoll-impl.h: New file.
16032         * m4/wcscoll.m4: New file.
16033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
16034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
16035         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
16036         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
16037         * doc/posix-functions/wcscoll.texi: Mention the new module.
16038
16039 2011-02-06  Bruno Haible  <bruno@clisp.org>
16040
16041         New module 'wcsncasecmp'.
16042         * modules/wcsncasecmp: New file.
16043         * lib/wchar.in.h (wcsncasecmp): New declaration.
16044         * lib/wcsncasecmp.c: New file.
16045         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16046         * m4/wcsncasecmp.m4: New file.
16047         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16048         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16049         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16050         HAVE_WCSNCASECMP.
16051         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16052         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16053
16054 2011-02-06  Bruno Haible  <bruno@clisp.org>
16055
16056         New module 'wcscasecmp'.
16057         * modules/wcscasecmp: New file.
16058         * lib/wchar.in.h (wcscasecmp): New declaration.
16059         * lib/wcscasecmp.c: New file.
16060         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
16061         * m4/wcscasecmp.m4: New file.
16062         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16063         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16064         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16065         HAVE_WCSCASECMP.
16066         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16067         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16068
16069 2011-02-05  Bruno Haible  <bruno@clisp.org>
16070
16071         New module 'wcsncmp'.
16072         * modules/wcsncmp: New file.
16073         * lib/wchar.in.h (wcsncmp): New declaration.
16074         * lib/wcsncmp.c: New file.
16075         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16076         * m4/wcsncmp.m4: New file.
16077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16079         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16080         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16081         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16082
16083 2011-02-05  Bruno Haible  <bruno@clisp.org>
16084
16085         New module 'wcscmp'.
16086         * modules/wcscmp: New file.
16087         * lib/wchar.in.h (wcscmp): New declaration.
16088         * lib/wcscmp.c: New file.
16089         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16090         * m4/wcscmp.m4: New file.
16091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16094         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16095         * doc/posix-functions/wcscmp.texi: Mention the new module.
16096
16097 2011-02-05  Bruno Haible  <bruno@clisp.org>
16098
16099         New module 'wcsncat'.
16100         * modules/wcsncat: New file.
16101         * lib/wchar.in.h (wcsncat): New declaration.
16102         * lib/wcsncat.c: New file.
16103         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16104         * m4/wcsncat.m4: New file.
16105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16108         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16109         * doc/posix-functions/wcsncat.texi: Mention the new module.
16110
16111 2011-02-05  Bruno Haible  <bruno@clisp.org>
16112
16113         New module 'wcscat'.
16114         * modules/wcscat: New file.
16115         * lib/wchar.in.h (wcscat): New declaration.
16116         * lib/wcscat.c: New file.
16117         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16118         * m4/wcscat.m4: New file.
16119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16121         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16122         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16123         * doc/posix-functions/wcscat.texi: Mention the new module.
16124
16125 2011-02-05  Bruno Haible  <bruno@clisp.org>
16126
16127         New module 'wcpncpy'.
16128         * modules/wcpncpy: New file.
16129         * lib/wchar.in.h (wcpncpy): New declaration.
16130         * lib/wcpncpy.c: New file.
16131         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16132         * m4/wcpncpy.m4: New file.
16133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16135         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16136         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16137         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16138
16139 2011-02-05  Bruno Haible  <bruno@clisp.org>
16140
16141         New module 'wcsncpy'.
16142         * modules/wcsncpy: New file.
16143         * lib/wchar.in.h (wcsncpy): New declaration.
16144         * lib/wcsncpy.c: New file.
16145         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16146         * m4/wcsncpy.m4: New file.
16147         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16148         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16149         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16150         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16151         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16152
16153 2011-02-05  Bruno Haible  <bruno@clisp.org>
16154
16155         New module 'wcpcpy'.
16156         * modules/wcpcpy: New file.
16157         * lib/wchar.in.h (wcpcpy): New declaration.
16158         * lib/wcpcpy.c: New file.
16159         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16160         * m4/wcpcpy.m4: New file.
16161         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16162         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16163         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16164         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16165         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16166
16167 2011-02-05  Bruno Haible  <bruno@clisp.org>
16168
16169         New module 'wcscpy'.
16170         * modules/wcscpy: New file.
16171         * lib/wchar.in.h (wcscpy): New declaration.
16172         * lib/wcscpy.c: New file.
16173         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16174         * m4/wcscpy.m4: New file.
16175         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16176         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16177         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16178         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16179         * doc/posix-functions/wcscpy.texi: Mention the new module.
16180
16181 2011-02-05  Bruno Haible  <bruno@clisp.org>
16182
16183         New module 'wcsnlen'.
16184         * modules/wcsnlen: New file.
16185         * lib/wchar.in.h (wcsnlen): New declaration.
16186         * lib/wcsnlen.c: New file.
16187         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16188         * m4/wcsnlen.m4: New file.
16189         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16190         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16191         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16192         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16193         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16194
16195 2011-02-05  Bruno Haible  <bruno@clisp.org>
16196
16197         New module 'wcslen'.
16198         * modules/wcslen: New file.
16199         * lib/wchar.in.h (wcslen): New declaration.
16200         * lib/wcslen.c: New file.
16201         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16202         * m4/wcslen.m4: New file.
16203         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16204         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16205         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16206         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16207         * doc/posix-functions/wcslen.texi: Mention the new module.
16208
16209 2011-02-05  Bruno Haible  <bruno@clisp.org>
16210
16211         New module 'wmemset'.
16212         * modules/wmemset: New file.
16213         * lib/wchar.in.h (wmemset): New declaration.
16214         * lib/wmemset.c: New file.
16215         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16216         * m4/wmemset.m4: New file.
16217         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16218         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16219         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16220         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16221         * doc/posix-functions/wmemset.texi: Mention the new module.
16222
16223 2011-02-05  Bruno Haible  <bruno@clisp.org>
16224
16225         New module 'wmemmove'.
16226         * modules/wmemmove: New file.
16227         * lib/wchar.in.h (wmemmove): New declaration.
16228         * lib/wmemmove.c: New file.
16229         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16230         * m4/wmemmove.m4: New file.
16231         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16232         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16233         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16234         HAVE_WMEMMOVE.
16235         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16236         * doc/posix-functions/wmemmove.texi: Mention the new module.
16237
16238 2011-02-05  Bruno Haible  <bruno@clisp.org>
16239
16240         New module 'wmemcpy'.
16241         * modules/wmemcpy: New file.
16242         * lib/wchar.in.h (wmemcpy): New declaration.
16243         * lib/wmemcpy.c: New file.
16244         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16245         * m4/wmemcpy.m4: New file.
16246         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16247         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16248         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16249         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16250         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16251
16252 2011-02-05  Bruno Haible  <bruno@clisp.org>
16253
16254         New module 'wmemcmp'.
16255         * modules/wmemcmp: New file.
16256         * lib/wchar.in.h (wmemcmp): New declaration.
16257         * lib/wmemcmp.c: New file.
16258         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16259         * m4/wmemcmp.m4: New file.
16260         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16261         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16262         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16263         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16264         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16265
16266 2011-02-07  Jim Meyering  <meyering@redhat.com>
16267
16268         di-set, ino-map: new modules, from coreutils
16269         * lib/di-set.c: New file.
16270         * lib/di-set.h: Likewise.
16271         * lib/ino-map.c: Likewise.
16272         * lib/ino-map.h: Likewise.
16273         * modules/di-set: Likewise.
16274         * modules/di-set-tests: Likewise.
16275         * modules/ino-map: Likewise.
16276         * modules/ino-map-tests: Likewise.
16277         * tests/test-di-set.c: Likewise.
16278         * tests/test-ino-map.c: Likewise.
16279
16280 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16281
16282         getloadavg: merge minor changes from Emacs
16283
16284         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16285         (getloadavg): Use memset, not bzero.
16286
16287         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16288         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16289         clash (bug#86).
16290
16291 2010-11-14  Bruno Haible  <bruno@clisp.org>
16292
16293         Allow multiple gnulib generated replacements to coexist.
16294         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16295         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16296         * lib/langinfo.in.h (nl_item): Likewise.
16297         * lib/math.in.h (_NaN, NAN): Likewise.
16298         * lib/netdb.in.h (struct addrinfo): Likewise.
16299         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16300         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16301         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16302         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16303         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16304         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16305         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16306         pthread_mutexattr_init, pthread_mutexattr_settype,
16307         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16308         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16309         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16310         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16311         * lib/sched.in.h (struct sched_param): Likewise.
16312         * lib/se-selinux.in.h (security_class_t, security_context_t,
16313         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16314         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16315         lsetfilecon, fsetfilecon, security_check_context,
16316         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16317         Likewise.
16318         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16319         Likewise.
16320         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16321         _gl_function_taking_int_returning_void_t, union sigval,
16322         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16323         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16324         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16325         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16326         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16327         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16328         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16329         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16330         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16331         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16332         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16333         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16334         socklen_t, rpl_fd_isset): Likewise.
16335         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16336         * lib/sys_time.in.h (struct timeval): Likewise.
16337         * lib/sys_times.in.h (struct tms): Likewise.
16338         * lib/sys_utsname.in.h (struct utsname):
16339         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16340         * lib/unistd.in.h (getpagesize): Likewise.
16341         * lib/wchar.in.h (mbstate_t): Likewise.
16342         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16343         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16344         towlower, towupper): Likewise.
16345         Reported by Sam Steingold <sds@gnu.org>.
16346
16347 2011-02-05  Eric Blake  <eblake@redhat.com>
16348
16349         unsetenv: work around Haiku issues
16350         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16351         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16352
16353 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16354
16355         libposix: avoid calling error() within libposix
16356         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16357         is defined.
16358
16359 2011-02-05  Eric Blake  <eblake@redhat.com>
16360
16361         strerror_r-posix: port to cygwin
16362         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16363         implementation.
16364         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16365         * tests/test-strerror_r.c (main): Fix test.
16366         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16367         issue.
16368
16369 2011-02-05  Bruno Haible  <bruno@clisp.org>
16370
16371         New module 'wmemchr'.
16372         * modules/wmemchr: New file.
16373         * lib/wchar.in.h (wmemchr): New declaration.
16374         * lib/wmemchr.c: New file.
16375         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16376         * m4/wmemchr.m4: New file.
16377         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16378         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16379         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16380         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16381         * doc/posix-functions/wmemchr.texi: Mention the new module.
16382
16383 2011-02-04  Eric Blake  <eblake@redhat.com>
16384
16385         fdopendir: detect FreeBSD bug
16386         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16387         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16388
16389 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16390
16391         stdbool: do not define HAVE_STDBOOL_H
16392         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16393         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16394         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16395         imported from the latest Autoconf git.  It was motivated by Emacs,
16396         which uses gnulib but does not need HAVE_STDBOOL_H.
16397
16398 2011-02-04  Bruno Haible  <bruno@clisp.org>
16399
16400         wcsnrtombs: Prepare for new module wwcsnrtombs.
16401         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16402         * lib/wcsnrtombs.c: Include it.
16403         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16404
16405         wcsrtombs: Prepare for new module wwcsrtombs.
16406         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16407         * lib/wcsrtombs.c: Include it.
16408         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16409
16410         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16411         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16412         * lib/mbsnrtowcs.c: Include it.
16413         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16414
16415         mbsrtowcs: Prepare for new module mbsrtowwcs.
16416         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16417         * lib/mbsrtowcs.c: Include it.
16418         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16419
16420 2011-02-04  Bruno Haible  <bruno@clisp.org>
16421
16422         vasnprintf: Reduce use of malloc for small format strings.
16423         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16424         (arguments): Add room for the first 7 arguments.
16425         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16426         (char_directives, u8_directives, u16_directives, u32_directives): Add
16427         room for the first 7 directives.
16428         * lib/printf-parse.c: Include <string.h>.
16429         (PRINTF_PARSE): Change memory handling code so that it uses the first
16430         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16431         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16432         Reported by Pádraig Brady <P@draigbrady.com>.
16433
16434 2011-01-31  Eric Blake  <eblake@redhat.com>
16435
16436         dup2: work around Haiku bug
16437         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16438         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16439         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16440         * tests/test-dup2.c (main): Enhance test.
16441
16442 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16443
16444         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16445         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16446         declared by eglibc 2.11.2.
16447         * lib/stdio.in.h: Likewise.
16448
16449 2011-01-31  Eric Blake  <eblake@redhat.com>
16450
16451         ignore-value: add missing test dependency
16452         * tests/test-ignore-value.c: Revert previous change; stdio.h
16453         provides off_t.
16454         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16455
16456 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16457
16458         mktime: clarify long_int width checking
16459         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16460         the top level, to make it clearer that the assumption about
16461         long_int width is being checked.  See
16462         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16463
16464 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16465
16466         ignore-value: Fix self-test.
16467         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16468
16469 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16470
16471         TYPE_MAXIMUM: avoid theoretically undefined behavior
16472         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16473         negative number, which the C Standard says has undefined behavior.
16474         In practice this is not a problem, but might as well do it by the book.
16475         Reported by Rich Felker and Eric Blake; see
16476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16477         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16478         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16480         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16481         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16482         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16483
16484         mktime: #undef mktime before #defining it
16485         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16486
16487         mktime: systematically normalize tm_isdst comparisons
16488         * lib/mktime.c (isdst_differ): New function.
16489         (__mktime_internal): Use it systematically for all isdst comparisons.
16490         This completes the fix for libc BZ #6723, and removes the need for
16491         normalizing tm_isdst.  See
16492         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16493         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16494
16495         mktime: fix some integer overflow issues and sidestep the rest
16496
16497         This was prompted by a bug report by Benjamin Lindner for MinGW
16498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16499         His bug is due to signed integer overflow (0 - INT_MIN), and I
16500         I scanned through mktime.c looking for other integer overflow
16501         problems, fixing all the bugs I found.
16502
16503         Although the C Standard says the resulting code is still not safe
16504         in the presence of integer overflow, in practice it should be good
16505         enough for all real-world two's-complement implementations, except
16506         for debugging environments that deliberately trap on integer
16507         overflow (e.g., gcc -ftrapv).
16508
16509         * lib/mktime.c (WRAPV): New macro.
16510         (SHR): Also check that long_int and time_t shift right in the
16511         usual way, before using the fast-but-unportable method.
16512         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16513         used.  The code already assumed two's complement, so there's
16514         no need to test for alternatives.  All uses removed.
16515         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16516         the C standard.  Problem reported by Rich Felker in
16517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16518         (twos_complement_arithmetic): Also check long_int and time_t.
16519         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16520         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16521         (__mktime_internal): Avoid integer overflow with unary subtraction
16522         in two instances where -1 - X is an adequate replacement for -X,
16523         since the calculations are approximate.
16524
16525 2011-01-29  Eric Blake  <eblake@redhat.com>
16526
16527         mktime: avoid infinite loop
16528         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16529         type; behavior is still undefined but portable to all known targets.
16530         Reported by Rich Felker.
16531
16532 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16533
16534         rename, unlink, same-inode: Relicense.
16535         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16536         * modules/unlink (License): Likewise.
16537         * modules/same-inode (License): Likewise.
16538
16539 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16540
16541         mktime: avoid problems on NetBSD 5 / i386
16542         * lib/mktime.c (long_int): New type.  This works around a problem
16543         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16544         but time_t is 64 bits, and where I expect the existing code is
16545         wrong in some cases.
16546         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16547         (ydhms_diff): Bring back the compile-time check for wide-enough
16548         year and yday.
16549
16550         mktime: fix misspelling in comment
16551         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16552         This merges all recent glibc changes of importance.
16553
16554 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16555
16556         move-if-change: cope with concurrent mv of identical file.
16557         * build-aux/move-if-change (CMPPROG): Accept environment
16558         variable as an override for `cmp'.
16559         (usage): Document CMPPROG.
16560         Adjust comparison to drop stdout.  Cope with failure of mv if
16561         the target file exists and is identical to the source, for
16562         parallel builds.
16563         Report from H.J. Lu against binutils in PR binutils/12283.
16564
16565 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16566
16567         * users.txt: Mention sharutils.
16568
16569 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16570
16571         * users.txt: Mention OATH Toolkit.
16572
16573 2011-01-27  Bruno Haible  <bruno@clisp.org>
16574
16575         Prepare for supporting FreeBSD 10.
16576         * build-aux/config.libpath: Remove handling of freebsd1*.
16577
16578 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16579
16580         Prepare for supporting FreeBSD 10.
16581         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16582         match FreeBSD 10.0.
16583
16584 2011-01-27  Bruno Haible  <bruno@clisp.org>
16585
16586         vma-iter, get-rusage-as: Add OpenBSD support.
16587         * modules/vma-iter (configure.ac): Test for mquery.
16588         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16589         * lib/vma-iter.c: Include <sys/mman.h>.
16590         (vma_iterate): Add an implementation based on mquery().
16591         * lib/resource-ext.h (get_rusage_as): Update comments.
16592         * lib/get-rusage-as.c: Likewise.
16593         * lib/get-rusage-data.c: Likewise.
16594
16595 2011-01-26  Karl Berry  <karl@gnu.org>
16596
16597         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16598         variables to make it easier to override the makeinfo program used.
16599
16600 2011-01-26  Eric Blake  <eblake@redhat.com>
16601
16602         fcntl: work around Haiku F_DUPFD bugs
16603         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16604         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16605         cloexec bit on duplication.
16606         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16607
16608 2011-01-26  Bruno Haible  <bruno@clisp.org>
16609
16610         Enable memory leak tests on AIX.
16611         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16612         * tests/test-fprintf-posix3.c (main): Likewise.
16613
16614 2011-01-26  Bruno Haible  <bruno@clisp.org>
16615
16616         Tests for module 'get-rusage-data'.
16617         * modules/get-rusage-data-tests: New file.
16618         * tests/test-get-rusage-data.c: New file.
16619
16620         New module 'get-rusage-data'.
16621         * lib/resource-ext.h (get_rusage_data): New declaration.
16622         * lib/get-rusage-data.c: New file.
16623         * modules/get-rusage-data: New file.
16624
16625 2011-01-25  Bruno Haible  <bruno@clisp.org>
16626
16627         get-rusage-as: Allow for easier testing.
16628         * lib/resource-ext.h (get_rusage_as): Add comment.
16629         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16630         (main): New function for interactive testing.
16631
16632 2011-01-25  Bruno Haible  <bruno@clisp.org>
16633
16634         vma-iter: Treat Haiku like BeOS.
16635         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16636         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16637
16638 2011-01-25  Eric Blake  <eblake@redhat.com>
16639
16640         c-stack: fix regression on cygwin when libsigsegv is present
16641         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16642
16643 2011-01-24  Bruno Haible  <bruno@clisp.org>
16644
16645         vma-iter: Avoid empty intervals.
16646         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16647         on an empty interval.
16648
16649 2011-01-24  Jim Meyering  <meyering@redhat.com>
16650
16651         u64: remove unnecessary #include
16652         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16653
16654 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16655
16656         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16657         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16658
16659 2011-01-23  Bruno Haible  <bruno@clisp.org>
16660
16661         New module 'vma-iter'.
16662         * lib/vma-iter.h: New file.
16663         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16664         * modules/vma-iter: New file.
16665         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16666         for get_rusage_as_via_iterator.
16667         (vma_iterate_callback): New function.
16668         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16669         * modules/get-rusage-as (Depends-on): Add vma-iter.
16670
16671 2011-01-23  Bruno Haible  <bruno@clisp.org>
16672
16673         uninorm: Tweak includes.
16674         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16675         Reported by Jim Meyering.
16676
16677 2011-01-23  Bruno Haible  <bruno@clisp.org>
16678
16679         get-rusage-as: Improve on NetBSD.
16680         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16681         /proc, like on FreeBSD.
16682
16683 2011-01-23  Jim Meyering  <meyering@redhat.com>
16684
16685         xreadlink.h: remove unnecessary #include
16686         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16687
16688         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16689         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16690
16691 2011-01-23  Bruno Haible  <bruno@clisp.org>
16692
16693         get-rusage-as: Fix bug.
16694         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16695         original limit when aborting the first loop.
16696
16697 2011-01-23  Bruno Haible  <bruno@clisp.org>
16698
16699         wctype: Ensure valid C syntax.
16700         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16701         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16702
16703 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16704
16705         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16707         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16708         as they are needed only for configure's test case.
16709         This removes two unnecessary symbols from config.h.
16710
16711         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16712         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16714         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16715         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16716         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16717         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16718         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16719         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16720         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16721         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16722         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16723         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16724         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16725         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16726         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16727         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16728         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16729
16730 2011-01-21  Eric Blake  <eblake@redhat.com>
16731
16732         maintainer-makefile: work with older git for submodule check
16733         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16734         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16735         Reported by Matthias Bolte.
16736
16737         bootstrap: minor portability fixes
16738         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16739         (usage): Omit leading capital and trailing . on help phrases, per
16740         GNU Coding Standards.
16741         (check_versions, top level): Prefix messages with script name.
16742
16743 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16744
16745         bootstrap: support --no-git option
16746         * build-aux/bootstrap: Add --no-git option, to be used when
16747         --gnulib-srcdir points to the exact desired checkout.
16748
16749 2011-01-21  Eric Blake  <eblake@redhat.com>
16750
16751         strerror_r-posix: work with glibc 2.13
16752         * lib/strerror_r.c (strerror_r): Fix return type.
16753
16754 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16755             Bruno Haible  <bruno@clisp.org>
16756
16757         uN_strstr: New unit tests.
16758         * modules/unistr/u8-strstr-tests: New file.
16759         * modules/unistr/u16-strstr-tests: New file.
16760         * modules/unistr/u32-strstr-tests: New file.
16761         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16762         * tests/unistr/test-u8-strstr.c: New file.
16763         * tests/unistr/test-u16-strstr.c: New file.
16764         * tests/unistr/test-u32-strstr.c: New file.
16765
16766 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16767             Bruno Haible  <bruno@clisp.org>
16768
16769         Make uN_strstr functions O(n) worst-case.
16770         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16771         16-bit and 32-bit unit cases, use the unibyte algorithm from
16772         lib/mbsstr.c.
16773         * lib/unistr/u8-strstr.c: Include <string.h>.
16774         (UNIT_IS_UINT8_T): New macro.
16775         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16776         (U_STRLEN, U_STRNLEN): New macros.
16777         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16778         (U_STRLEN, U_STRNLEN): New macros.
16779         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16780         (configure.ac): Update required libunistring version.
16781         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16782         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16783         malloca.
16784         (configure.ac): Update required libunistring version.
16785         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16786         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16787         malloca.
16788         (configure.ac): Update required libunistring version.
16789
16790 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16791             Bruno Haible  <bruno@clisp.org>
16792
16793         Prepare for faster uN_strstr functions.
16794         * lib/str-kmp.h: Support definable UNITs.
16795         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16796         needle_len argument.
16797         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16798         * lib/mbscasestr.c (mbscasestr): Likewise.
16799
16800 2011-01-21  Pádraig Brady <P@draigBrady.com>
16801
16802         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16803         * tests/test-malloca.c (main): Unset the environment variable
16804         to greatly speed up the test.
16805         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16806         * modules/malloca-tests: Depend on unsetenv.
16807
16808 2011-01-21  Pádraig Brady <P@draigBrady.com>
16809
16810         ignore-value: remove stdint dependency
16811         * lib/ignore-value.h: Remove <stdint.h>
16812         * modules/ignore-value: Remove stdint dependency.
16813
16814 2011-01-21  Jim Meyering  <meyering@redhat.com>
16815
16816         maint.mk: adjust variable name to be consistent with other gl_ vars
16817         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16818         to be lower case.
16819
16820 2011-01-20  Jim Meyering  <meyering@redhat.com>
16821
16822         maint.mk: make "check" depend on public-submodule-commit by default
16823         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16824
16825 2011-01-20  Bruno Haible  <bruno@clisp.org>
16826
16827         mbfile, mbiter: Complete change from 2008-12-21.
16828         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16829         * m4/mbiter.m4 (gl_MBITER): Likewise.
16830
16831 2011-01-20  Jim Meyering  <meyering@redhat.com>
16832
16833         init.sh: insert space between each function name and "()"
16834         * tests/init.sh: Make it a little easier to see that a function's
16835         name is "warn_", and not "warn" when looking at the first part of
16836         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16837
16838 2011-01-20  Jim Meyering  <meyering@redhat.com>
16839
16840         mountlist: clean up code formatting
16841         * lib/mountlist.c (read_file_system_list): Split a long line,
16842         correct bracing style, use NULL in place of "(struct statfs *)0",
16843         don't parenthesize return value, add spaces around "=" and after
16844         ";-in-for-stmt".
16845
16846 2011-01-14  Markus Duft <mduft@gentoo.org>
16847
16848         mountlist: add support for Interix
16849         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16850         Apply statvfs to all entries of /dev/fs.
16851         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16852         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16853
16854 2011-01-20  Jim Meyering  <meyering@redhat.com>
16855
16856         maint.mk: improve the public-submodule-commit rule
16857         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16858         to suppress printing of its commands... unless V=1.
16859         Add git submodule's --quiet option to suppress printing of e.g.,
16860         "Entering gnulib" output.
16861         "cd" into $(srcdir) before running git submodule.
16862
16863 2011-01-20  Bruno Haible  <bruno@clisp.org>
16864
16865         include_next: Fix bug introduced on 2011-01-18.
16866         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16867         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16868         ac_cv_header_... variable if the second argument is not 'check'.
16869         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16870         gl_NEXT_HEADERS_INTERNAL.
16871
16872 2011-01-20  Bruno Haible  <bruno@clisp.org>
16873
16874         Allow the user to avoid the GNULIB_TEST_* macros.
16875         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16876         Suggested by Paul Eggert.
16877
16878 2011-01-14  Jim Meyering  <meyering@redhat.com>
16879
16880         bootstrap: avoid failure when there is no .gitmodules file
16881         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16882         has been assigned to, even when its value is the empty string.
16883         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16884         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16885         Reported by John W. Eaton <jwe@gnu.org>.
16886
16887 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16888
16889         assume <ctype.h>, ..., <time.h> exist
16890         For years gnulib has been assuming the existence of the headers
16891         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16892         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16893         them, since they don't appear to be needed.
16894         * README (Portability guidelines): Document this.
16895         * lib/flock.c: Assume <fcntl.h> exists.
16896         * lib/regex_internal.h: Assume <locale.h> exists.
16897         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16898         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16899         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16900         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16901         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16902         * m4/regex.m4 (gl_REGEX): Likewise.
16903         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16904         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16905         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16906         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16907         * tests/test-argp.c: Likewise.
16908         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16909
16910         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16911         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16912         AA_APPLE_UNIVERSAL_BUILD.  See
16913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16914         * NEWS: Document this.
16915
16916 2011-01-19  Eric Blake  <eblake@redhat.com>
16917
16918         c-stack: assume stack overflow if SA_SIGINFO unsupported
16919         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16920         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16921         sigaction will work.
16922         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16923         behavior match Linux.
16924         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16925
16926         stdbool-tests: accomodate Haiku
16927         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16928
16929         binary-io: fix O_TEXT on Haiku
16930         * modules/binary-io (Depends-on): Add fcntl-h.
16931         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16932         than blindly undefining O_TEXT.
16933         Reported by Scott McCreary.
16934
16935 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16936
16937         include_next: do not check for standard headers like stddef.h
16938
16939         I found this problem when modifying Emacs to use gnulib.
16940         I noticed that it added HAVE_STDDEF_H to config.h, even though
16941         gnulib always assumes <stddef.h> exists as per README and this
16942         symbol is unnecessary.
16943         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16944         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16945         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16946         faster for headers like stddef.h that are known to exist.
16947         (gl_CHECK_NEXT_HEADERS): Use it.
16948         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16949         rather than gl_CHECK_NEXT_HEADERS.
16950         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16951         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16952
16953 2011-01-18  Eric Blake  <eblake@redhat.com>
16954
16955         ansi-c++-opt: skip C++ dependency style if C++ is unused
16956         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16957         tests when we know C++ compilation is not desired.
16958         Reported by Scott McCreary.
16959
16960 2011-01-18  Bruno Haible  <bruno@clisp.org>
16961
16962         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16963         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16964         (main): Perform test also when getrlimit and setrlimit don't exist or
16965         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16966         limiting the address space size using setrlimit, compare the address
16967         space size before and after the the test.
16968         * tests/test-dprintf-posix2.c: Likewise.
16969         * tests/test-fprintf-posix3.sh: Update skip messages.
16970         * tests/test-dprintf-posix2.sh: Likewise.
16971         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16972         * modules/dprintf-posix-tests (Depends-on): Likewise.
16973         Reported by Bruce Korb <bkorb@gnu.org> and
16974         Gary V. Vaughan <gary@gnu.org>.
16975
16976 2011-01-18  Bruno Haible  <bruno@clisp.org>
16977
16978         get-rusage-as: Improvement for Cygwin.
16979         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16980         areas that are merely reserved.
16981
16982 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16983
16984         strftime: remove dependencies on multibyte modules
16985
16986         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16987         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16988         only if __osf__ is defined, and I suspect OSF doesn't need these
16989         other modules.  If my guess is wrong, we'll need to come up with a
16990         variant of strftime that doesn't need the multibyte modules.
16991
16992         I discovered this problem when attempting modify Emacs to use the
16993         strftime module.  With the previous gnulib, this caused Emacs to
16994         need 31 new files, ranging from lib/config.charset to
16995         m4/wint_t.m4.  This was overkill and I expect would be offputting
16996         to the Emacs maintainers.  After this change, only 6 new files are
16997         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16998         stdbool.m4, and tm_gmtoff.m4.
16999
17000         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
17001         Suggested by Bruno Haible in
17002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
17003         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
17004         and do not check for wchar.h.
17005         * modules/strftime (Files): Remove m4/mbstate_t.m4.
17006         (Depends-on): Remove mbrlen, mbsinit, wchar.
17007
17008 2011-01-18  Bruno Haible  <bruno@clisp.org>
17009
17010         Tests for module 'get-rusage-as'.
17011         * modules/get-rusage-as-tests: New file.
17012         * tests/test-get-rusage-as.c: New file.
17013
17014         New module 'get-rusage-as'.
17015         * modules/get-rusage-as: New file.
17016         * lib/resource-ext.h: New file.
17017         * lib/get-rusage-as.c: New file.
17018
17019 2011-01-17  Eric Blake  <eblake@redhat.com>
17020
17021         sigaction: relax license from LGPLv3+ to LGPLv2+
17022         * modules/sigaction (License): Relax to LGPLv2+.
17023
17024 2011-01-14  Bruno Haible  <bruno@clisp.org>
17025
17026         filemode: Make function declarations usable in C++ mode.
17027         * lib/filemode.h: Enclose function declarations in extern "C" block.
17028         Reported by John W. Eaton <jwe@gnu.org>.
17029
17030 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
17031
17032         save-cwd: no longer include "xgetcwd.h"
17033         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
17034         This avoids a compilation failure in projects that use save-cwd
17035         without also using the xgetcwd module.
17036
17037 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17038
17039         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17040         This is so that a program like Emacs, which needs only dtoastr,
17041         does not have to bother with distributing and compiling ftoastr
17042         and ldtoastr.
17043         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17044         * modules/dtoastr, modules/ldtoastr: New files.
17045         * modules/ftoastr: Now works just for 'float'.
17046         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17047         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17048         dtoastr.c, ldtoastr.c.
17049
17050 2011-01-11  Jim Meyering  <meyering@redhat.com>
17051
17052         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17053         There is no need to work around the lack of the fchdir function,
17054         since gnulib can now provide a replacement when required.
17055         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17056         * modules/save-cwd (Depends-on): Add fchdir.
17057
17058 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17059
17060         openat, save-cwd: avoid xmalloc
17061
17062         This removes a direct (but undocumented) dependency of openat on
17063         xalloc, along with an indirect dependency via save-cwd.  It also
17064         removes a dependency of save-cwd on xgetcwd, and thereby
17065         indirectly on xalloc.  This change causes the openat substitute
17066         to fall back on save_cwd when memory is tight, and for save_cwd to
17067         fail instead of dying when memory is tight, but that's good enough.
17068         Problem and initial idea for fix reported by Bastien Roucaries in
17069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17070
17071         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17072         xalloc.h (for xmalloc).
17073         (openat_proc_name): Use malloc, not xmalloc.
17074         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17075         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17076
17077         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17078         This avoids heap allocation for file names whose lengths are in
17079         the range 512..1023, with the upper bound increasing to at most
17080         4031 depending on the platform's PATH_MAX.  (We do not want
17081         pathmax.h here as it might supply a non-constant PATH_MAX.)
17082         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17083         Perhaps they should be moved to malloca.h?
17084         (OPENAT_BUFFER_SIZE): Use them.
17085
17086 2011-01-10  Bruno Haible  <bruno@clisp.org>
17087
17088         doc: Update users.txt.
17089         * users.txt: Add recutils.
17090
17091 2011-01-09  Karl Berry  <karl@gnu.org>
17092
17093         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17094
17095         * doc/configmake.texi: New file.
17096         * doc/gnulib.texi: Include it.
17097         * modules/configmake: Move documentation from here.
17098
17099 2011-01-09  Bruno Haible  <bruno@clisp.org>
17100
17101         Update to Unicode 6.0.0.
17102         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17103         (get_lbp): Update for Unicode 6.0.0.
17104         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17105         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17106         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17107         U+11001, U+11038..U+11046. Remove U+06DE.
17108         (uc_width): Fix bounds of planes.
17109         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17110         lib/uniwidth/width.c.
17111         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17112         trailing whitespace removed.
17113         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17114         without comments, but with the original copyright notice.
17115         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17116         * lib/unicase/ignorable.h: Likewise.
17117         * lib/unicase/tocasefold.h: Likewise.
17118         * lib/unicase/tolower.h: Likewise.
17119         * lib/unicase/totitle.h: Likewise.
17120         * lib/unicase/toupper.h: Likewise.
17121         * lib/unictype/bidi_of.h: Likewise.
17122         * lib/unictype/blocks.h: Likewise.
17123         * lib/unictype/categ_C.h: Likewise.
17124         * lib/unictype/categ_Cn.h: Likewise.
17125         * lib/unictype/categ_L.h: Likewise.
17126         * lib/unictype/categ_Ll.h: Likewise.
17127         * lib/unictype/categ_Lm.h: Likewise.
17128         * lib/unictype/categ_Lo.h: Likewise.
17129         * lib/unictype/categ_Lu.h: Likewise.
17130         * lib/unictype/categ_M.h: Likewise.
17131         * lib/unictype/categ_Mc.h: Likewise.
17132         * lib/unictype/categ_Me.h: Likewise.
17133         * lib/unictype/categ_Mn.h: Likewise.
17134         * lib/unictype/categ_N.h: Likewise.
17135         * lib/unictype/categ_Nd.h: Likewise.
17136         * lib/unictype/categ_No.h: Likewise.
17137         * lib/unictype/categ_P.h: Likewise.
17138         * lib/unictype/categ_Po.h: Likewise.
17139         * lib/unictype/categ_S.h: Likewise.
17140         * lib/unictype/categ_Sc.h: Likewise.
17141         * lib/unictype/categ_Sk.h: Likewise.
17142         * lib/unictype/categ_Sm.h: Likewise.
17143         * lib/unictype/categ_So.h: Likewise.
17144         * lib/unictype/categ_of.h: Likewise.
17145         * lib/unictype/combining.h: Likewise.
17146         * lib/unictype/ctype_alnum.h: Likewise.
17147         * lib/unictype/ctype_alpha.h: Likewise.
17148         * lib/unictype/ctype_graph.h: Likewise.
17149         * lib/unictype/ctype_lower.h: Likewise.
17150         * lib/unictype/ctype_print.h: Likewise.
17151         * lib/unictype/ctype_punct.h: Likewise.
17152         * lib/unictype/ctype_upper.h: Likewise.
17153         * lib/unictype/decdigit.h: Likewise.
17154         * lib/unictype/digit.h: Likewise.
17155         * lib/unictype/numeric.h: Likewise.
17156         * lib/unictype/pr_alphabetic.h: Likewise.
17157         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17158         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17159         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17160         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17161         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17162         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17163         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17164         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17165         * lib/unictype/pr_case_ignorable.h: Likewise.
17166         * lib/unictype/pr_cased.h: Likewise.
17167         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17168         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17169         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17170         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17171         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17172         * lib/unictype/pr_combining.h: Likewise.
17173         * lib/unictype/pr_composite.h: Likewise.
17174         * lib/unictype/pr_currency_symbol.h: Likewise.
17175         * lib/unictype/pr_decimal_digit.h: Likewise.
17176         * lib/unictype/pr_deprecated.h: Likewise.
17177         * lib/unictype/pr_format_control.h: Likewise.
17178         * lib/unictype/pr_grapheme_base.h: Likewise.
17179         * lib/unictype/pr_grapheme_extend.h: Likewise.
17180         * lib/unictype/pr_grapheme_link.h: Likewise.
17181         * lib/unictype/pr_id_continue.h: Likewise.
17182         * lib/unictype/pr_id_start.h: Likewise.
17183         * lib/unictype/pr_ideographic.h: Likewise.
17184         * lib/unictype/pr_lowercase.h: Likewise.
17185         * lib/unictype/pr_math.h: Likewise.
17186         * lib/unictype/pr_numeric.h: Likewise.
17187         * lib/unictype/pr_other_alphabetic.h: Likewise.
17188         * lib/unictype/pr_other_id_continue.h: Likewise.
17189         * lib/unictype/pr_other_math.h: Likewise.
17190         * lib/unictype/pr_punctuation.h: Likewise.
17191         * lib/unictype/pr_sentence_terminal.h: Likewise.
17192         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17193         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17194         * lib/unictype/pr_unified_ideograph.h: Likewise.
17195         * lib/unictype/pr_uppercase.h: Likewise.
17196         * lib/unictype/pr_xid_continue.h: Likewise.
17197         * lib/unictype/pr_xid_start.h: Likewise.
17198         * lib/unictype/scripts.h: Likewise.
17199         * lib/unictype/scripts_byname.gperf: Likewise.
17200         * lib/unictype/sy_java_ident.h: Likewise.
17201         * lib/unigbrk/gbrkprop.h: Likewise.
17202         * lib/unilbrk/lbrkprop1.h: Likewise.
17203         * lib/unilbrk/lbrkprop2.h: Likewise.
17204         * lib/uninorm/decomposition-table2.h: Likewise.
17205         * lib/uniwbrk/wbrkprop.h: Likewise.
17206         * tests/unicase/test-cased.c: Likewise.
17207         * tests/unicase/test-ignorable.c: Likewise.
17208         * tests/unicase/test-uc_tolower.c: Likewise.
17209         * tests/unicase/test-uc_totitle.c: Likewise.
17210         * tests/unicase/test-uc_toupper.c: Likewise.
17211         * tests/unictype/test-categ_C.c: Likewise.
17212         * tests/unictype/test-categ_Cn.c: Likewise.
17213         * tests/unictype/test-categ_L.c: Likewise.
17214         * tests/unictype/test-categ_Ll.c: Likewise.
17215         * tests/unictype/test-categ_Lm.c: Likewise.
17216         * tests/unictype/test-categ_Lo.c: Likewise.
17217         * tests/unictype/test-categ_Lu.c: Likewise.
17218         * tests/unictype/test-categ_M.c: Likewise.
17219         * tests/unictype/test-categ_Mc.c: Likewise.
17220         * tests/unictype/test-categ_Me.c: Likewise.
17221         * tests/unictype/test-categ_Mn.c: Likewise.
17222         * tests/unictype/test-categ_N.c: Likewise.
17223         * tests/unictype/test-categ_Nd.c: Likewise.
17224         * tests/unictype/test-categ_No.c: Likewise.
17225         * tests/unictype/test-categ_P.c: Likewise.
17226         * tests/unictype/test-categ_Po.c: Likewise.
17227         * tests/unictype/test-categ_S.c: Likewise.
17228         * tests/unictype/test-categ_Sc.c: Likewise.
17229         * tests/unictype/test-categ_Sk.c: Likewise.
17230         * tests/unictype/test-categ_Sm.c: Likewise.
17231         * tests/unictype/test-categ_So.c: Likewise.
17232         * tests/unictype/test-ctype_alnum.c: Likewise.
17233         * tests/unictype/test-ctype_alpha.c: Likewise.
17234         * tests/unictype/test-ctype_graph.c: Likewise.
17235         * tests/unictype/test-ctype_lower.c: Likewise.
17236         * tests/unictype/test-ctype_print.c: Likewise.
17237         * tests/unictype/test-ctype_punct.c: Likewise.
17238         * tests/unictype/test-ctype_upper.c: Likewise.
17239         * tests/unictype/test-decdigit.h: Likewise.
17240         * tests/unictype/test-digit.h: Likewise.
17241         * tests/unictype/test-numeric.h: Likewise.
17242         * tests/unictype/test-pr_alphabetic.c: Likewise.
17243         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17244         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17245         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17246         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17247         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17248         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17249         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17250         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17251         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17252         * tests/unictype/test-pr_cased.c: Likewise.
17253         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17254         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17255         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17256         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17257         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17258         * tests/unictype/test-pr_combining.c: Likewise.
17259         * tests/unictype/test-pr_composite.c: Likewise.
17260         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17261         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17262         * tests/unictype/test-pr_deprecated.c: Likewise.
17263         * tests/unictype/test-pr_format_control.c: Likewise.
17264         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17265         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17266         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17267         * tests/unictype/test-pr_id_continue.c: Likewise.
17268         * tests/unictype/test-pr_id_start.c: Likewise.
17269         * tests/unictype/test-pr_ideographic.c: Likewise.
17270         * tests/unictype/test-pr_lowercase.c: Likewise.
17271         * tests/unictype/test-pr_math.c: Likewise.
17272         * tests/unictype/test-pr_numeric.c: Likewise.
17273         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17274         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17275         * tests/unictype/test-pr_other_math.c: Likewise.
17276         * tests/unictype/test-pr_punctuation.c: Likewise.
17277         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17278         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17279         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17280         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17281         * tests/unictype/test-pr_uppercase.c: Likewise.
17282         * tests/unictype/test-pr_xid_continue.c: Likewise.
17283         * tests/unictype/test-pr_xid_start.c: Likewise.
17284         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17285         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17286         changes.
17287         * lib/unictype/categ_Cc.h: Likewise.
17288         * lib/unictype/categ_Cf.h: Likewise.
17289         * lib/unictype/categ_Co.h: Likewise.
17290         * lib/unictype/categ_Cs.h: Likewise.
17291         * lib/unictype/categ_Lt.h: Likewise.
17292         * lib/unictype/categ_Nl.h: Likewise.
17293         * lib/unictype/categ_Pc.h: Likewise.
17294         * lib/unictype/categ_Pd.h: Likewise.
17295         * lib/unictype/categ_Pe.h: Likewise.
17296         * lib/unictype/categ_Pf.h: Likewise.
17297         * lib/unictype/categ_Pi.h: Likewise.
17298         * lib/unictype/categ_Ps.h: Likewise.
17299         * lib/unictype/categ_Z.h: Likewise.
17300         * lib/unictype/categ_Zl.h: Likewise.
17301         * lib/unictype/categ_Zp.h: Likewise.
17302         * lib/unictype/categ_Zs.h: Likewise.
17303         * lib/unictype/ctype_blank.h: Likewise.
17304         * lib/unictype/ctype_cntrl.h: Likewise.
17305         * lib/unictype/ctype_digit.h: Likewise.
17306         * lib/unictype/ctype_space.h: Likewise.
17307         * lib/unictype/ctype_xdigit.h: Likewise.
17308         * lib/unictype/mirror.h: Likewise.
17309         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17310         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17311         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17312         * lib/unictype/pr_bidi_control.h: Likewise.
17313         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17314         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17315         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17316         * lib/unictype/pr_bidi_pdf.h: Likewise.
17317         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17318         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17319         * lib/unictype/pr_dash.h: Likewise.
17320         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17321         * lib/unictype/pr_diacritic.h: Likewise.
17322         * lib/unictype/pr_extender.h: Likewise.
17323         * lib/unictype/pr_hex_digit.h: Likewise.
17324         * lib/unictype/pr_hyphen.h: Likewise.
17325         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17326         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17327         * lib/unictype/pr_ignorable_control.h: Likewise.
17328         * lib/unictype/pr_iso_control.h: Likewise.
17329         * lib/unictype/pr_join_control.h: Likewise.
17330         * lib/unictype/pr_left_of_pair.h: Likewise.
17331         * lib/unictype/pr_line_separator.h: Likewise.
17332         * lib/unictype/pr_logical_order_exception.h: Likewise.
17333         * lib/unictype/pr_non_break.h: Likewise.
17334         * lib/unictype/pr_not_a_character.h: Likewise.
17335         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17336         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17337         * lib/unictype/pr_other_id_start.h: Likewise.
17338         * lib/unictype/pr_other_lowercase.h: Likewise.
17339         * lib/unictype/pr_other_uppercase.h: Likewise.
17340         * lib/unictype/pr_paired_punctuation.h: Likewise.
17341         * lib/unictype/pr_paragraph_separator.h: Likewise.
17342         * lib/unictype/pr_pattern_syntax.h: Likewise.
17343         * lib/unictype/pr_pattern_white_space.h: Likewise.
17344         * lib/unictype/pr_private_use.h: Likewise.
17345         * lib/unictype/pr_quotation_mark.h: Likewise.
17346         * lib/unictype/pr_radical.h: Likewise.
17347         * lib/unictype/pr_soft_dotted.h: Likewise.
17348         * lib/unictype/pr_space.h: Likewise.
17349         * lib/unictype/pr_titlecase.h: Likewise.
17350         * lib/unictype/pr_variation_selector.h: Likewise.
17351         * lib/unictype/pr_white_space.h: Likewise.
17352         * lib/unictype/pr_zero_width.h: Likewise.
17353         * lib/unictype/sy_c_ident.h: Likewise.
17354         * lib/unictype/sy_c_whitespace.h: Likewise.
17355         * lib/unictype/sy_java_whitespace.h: Likewise.
17356         * lib/uninorm/composition-table.gperf: Likewise.
17357         * lib/uninorm/decomposition-table1.h: Likewise.
17358         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17359         LB8.
17360         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17361         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17362         * modules/unictype/*: Bump version number of expected libunistring
17363         version.
17364
17365 2011-01-09  Bruno Haible  <bruno@clisp.org>
17366
17367         Update to Unicode 5.2.0.
17368         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17369         trailing whitespace removed.
17370
17371 2011-01-09  Bruno Haible  <bruno@clisp.org>
17372
17373         New Unicode character properties, from Unicode 5.2.0.
17374         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17375         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17376         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17377         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17378         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17379         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17380         uc_is_property_cased, uc_is_property_case_ignorable,
17381         uc_is_property_changes_when_lowercased,
17382         uc_is_property_changes_when_uppercased,
17383         uc_is_property_changes_when_titlecased,
17384         uc_is_property_changes_when_casefolded,
17385         uc_is_property_changes_when_casemapped): New declarations.
17386         * lib/unictype/pr_byname.gperf: Add the new properties.
17387         * modules/unictype/property-byname (Depends-on): Depend on the new
17388         properties modules.
17389         * modules/unictype/property-all (Depends-on): Likewise.
17390         * MODULES.html.sh (Unicode string functions): Add
17391         unictype/property-case-ignorable, unictype/property-cased,
17392         unictype/property-changes-when-casefolded,
17393         unictype/property-changes-when-casemapped,
17394         unictype/property-changes-when-lowercased,
17395         unictype/property-changes-when-titlecased,
17396         unictype/property-changes-when-uppercased.
17397
17398         New module 'unictype/property-changes-when-casemapped'.
17399         * modules/unictype/property-changes-when-casemapped: New file.
17400         * lib/unictype/pr_changes_when_casemapped.c: New file.
17401         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17402         generated by gen-uni-tables.
17403         * modules/unictype/property-changes-when-casemapped-tests: New file.
17404         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17405         automatically generated by gen-uni-tables.
17406
17407         New module 'unictype/property-changes-when-casefolded'.
17408         * modules/unictype/property-changes-when-casefolded: New file.
17409         * lib/unictype/pr_changes_when_casefolded.c: New file.
17410         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17411         generated by gen-uni-tables.
17412         * modules/unictype/property-changes-when-casefolded-tests: New file.
17413         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17414         automatically generated by gen-uni-tables.
17415
17416         New module 'unictype/property-changes-when-titlecased'.
17417         * modules/unictype/property-changes-when-titlecased: New file.
17418         * lib/unictype/pr_changes_when_titlecased.c: New file.
17419         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17420         generated by gen-uni-tables.
17421         * modules/unictype/property-changes-when-titlecased-tests: New file.
17422         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17423         automatically generated by gen-uni-tables.
17424
17425         New module 'unictype/property-changes-when-uppercased'.
17426         * modules/unictype/property-changes-when-uppercased: New file.
17427         * lib/unictype/pr_changes_when_uppercased.c: New file.
17428         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17429         generated by gen-uni-tables.
17430         * modules/unictype/property-changes-when-uppercased-tests: New file.
17431         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17432         automatically generated by gen-uni-tables.
17433
17434         New module 'unictype/property-changes-when-lowercased'.
17435         * modules/unictype/property-changes-when-lowercased: New file.
17436         * lib/unictype/pr_changes_when_lowercased.c: New file.
17437         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17438         generated by gen-uni-tables.
17439         * modules/unictype/property-changes-when-lowercased-tests: New file.
17440         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17441         automatically generated by gen-uni-tables.
17442
17443         New module 'unictype/property-case-ignorable'.
17444         * modules/unictype/property-case-ignorable: New file.
17445         * lib/unictype/pr_case_ignorable.c: New file.
17446         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17447         by gen-uni-tables.
17448         * modules/unictype/property-case-ignorable-tests: New file.
17449         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17450         generated by gen-uni-tables.
17451
17452         New module 'unictype/property-cased'.
17453         * modules/unictype/property-cased: New file.
17454         * lib/unictype/pr_cased.c: New file.
17455         * lib/unictype/pr_cased.h: New file, automatically generated by
17456         gen-uni-tables.
17457         * modules/unictype/property-cased-tests: New file.
17458         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17459         gen-uni-tables.
17460
17461 2011-01-09  Bruno Haible  <bruno@clisp.org>
17462
17463         Update to Unicode 5.2.0.
17464         * lib/gen-uni-tables.c (output_predicate, output_category,
17465         output_combclass, output_bidi_category, output_decimal_digit_test,
17466         output_decimal_digit, output_digit_test, output_digit,
17467         output_numeric_test, output_numeric, output_mirror, output_scripts,
17468         output_scripts_byname, output_blocks, output_ident_category): Fix
17469         comment header.
17470         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17471         get_wbp.
17472         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17473         items.
17474         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17475         Changes_When_Lowercased, Changes_When_Uppercased,
17476         Changes_When_Titlecased, Changes_When_Casefolded,
17477         Changes_When_Casemapped.
17478         (is_property_alphabetic, is_property_default_ignorable_code_point):
17479         Update for Unicode 5.2.0.
17480         (is_property_cased, is_property_case_ignorable,
17481         is_property_changes_when_lowercased,
17482         is_property_changes_when_uppercased,
17483         is_property_changes_when_titlecased,
17484         is_property_changes_when_casefolded,
17485         is_property_changes_when_casemapped): New functions.
17486         (output_properties): Output also the properties cased, case_ignorable,
17487         changes_when_lowercased, changes_when_uppercased,
17488         changes_when_titlecased, changes_when_casefolded,
17489         changes_when_casemapped.
17490         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17491         Unicode TR#11 revision 17 -> 19.
17492         (LBP_CP): New enumeration value.
17493         (LBP_*): Adjust values accordingly.
17494         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17495         TR#14 revision 22 -> 24.
17496         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17497         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17498         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17499         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17500         is_WBP_MIDLETTER.
17501         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17502         the code1 and code2 of each composition rule.
17503         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17504         * lib/unicase/ignorable.h: Likewise.
17505         * lib/unicase/tocasefold.h: Likewise.
17506         * lib/unicase/tolower.h: Likewise.
17507         * lib/unicase/totitle.h: Likewise.
17508         * lib/unicase/toupper.h: Likewise.
17509         * lib/unictype/bidi_of.h: Likewise.
17510         * lib/unictype/blocks.h: Likewise.
17511         * lib/unictype/categ_C.h: Likewise.
17512         * lib/unictype/categ_Cf.h: Likewise.
17513         * lib/unictype/categ_Cn.h: Likewise.
17514         * lib/unictype/categ_L.h: Likewise.
17515         * lib/unictype/categ_Ll.h: Likewise.
17516         * lib/unictype/categ_Lm.h: Likewise.
17517         * lib/unictype/categ_Lo.h: Likewise.
17518         * lib/unictype/categ_Lu.h: Likewise.
17519         * lib/unictype/categ_M.h: Likewise.
17520         * lib/unictype/categ_Mc.h: Likewise.
17521         * lib/unictype/categ_Mn.h: Likewise.
17522         * lib/unictype/categ_N.h: Likewise.
17523         * lib/unictype/categ_Nd.h: Likewise.
17524         * lib/unictype/categ_Nl.h: Likewise.
17525         * lib/unictype/categ_No.h: Likewise.
17526         * lib/unictype/categ_P.h: Likewise.
17527         * lib/unictype/categ_Pd.h: Likewise.
17528         * lib/unictype/categ_Po.h: Likewise.
17529         * lib/unictype/categ_S.h: Likewise.
17530         * lib/unictype/categ_Sc.h: Likewise.
17531         * lib/unictype/categ_So.h: Likewise.
17532         * lib/unictype/categ_of.h: Likewise.
17533         * lib/unictype/combining.h: Likewise.
17534         * lib/unictype/ctype_alnum.h: Likewise.
17535         * lib/unictype/ctype_alpha.h: Likewise.
17536         * lib/unictype/ctype_graph.h: Likewise.
17537         * lib/unictype/ctype_lower.h: Likewise.
17538         * lib/unictype/ctype_print.h: Likewise.
17539         * lib/unictype/ctype_punct.h: Likewise.
17540         * lib/unictype/ctype_upper.h: Likewise.
17541         * lib/unictype/decdigit.h: Likewise.
17542         * lib/unictype/digit.h: Likewise.
17543         * lib/unictype/numeric.h: Likewise.
17544         * lib/unictype/pr_alphabetic.h: Likewise.
17545         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17546         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17547         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17548         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17549         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17550         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17551         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17552         * lib/unictype/pr_combining.h: Likewise.
17553         * lib/unictype/pr_composite.h: Likewise.
17554         * lib/unictype/pr_currency_symbol.h: Likewise.
17555         * lib/unictype/pr_dash.h: Likewise.
17556         * lib/unictype/pr_decimal_digit.h: Likewise.
17557         * lib/unictype/pr_deprecated.h: Likewise.
17558         * lib/unictype/pr_diacritic.h: Likewise.
17559         * lib/unictype/pr_extender.h: Likewise.
17560         * lib/unictype/pr_grapheme_base.h: Likewise.
17561         * lib/unictype/pr_grapheme_extend.h: Likewise.
17562         * lib/unictype/pr_grapheme_link.h: Likewise.
17563         * lib/unictype/pr_id_continue.h: Likewise.
17564         * lib/unictype/pr_id_start.h: Likewise.
17565         * lib/unictype/pr_ideographic.h: Likewise.
17566         * lib/unictype/pr_ignorable_control.h: Likewise.
17567         * lib/unictype/pr_logical_order_exception.h: Likewise.
17568         * lib/unictype/pr_lowercase.h: Likewise.
17569         * lib/unictype/pr_numeric.h: Likewise.
17570         * lib/unictype/pr_other_alphabetic.h: Likewise.
17571         * lib/unictype/pr_punctuation.h: Likewise.
17572         * lib/unictype/pr_sentence_terminal.h: Likewise.
17573         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17574         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17575         * lib/unictype/pr_unified_ideograph.h: Likewise.
17576         * lib/unictype/pr_uppercase.h: Likewise.
17577         * lib/unictype/pr_xid_continue.h: Likewise.
17578         * lib/unictype/pr_xid_start.h: Likewise.
17579         * lib/unictype/pr_zero_width.h: Likewise.
17580         * lib/unictype/scripts.h: Likewise.
17581         * lib/unictype/scripts_byname.gperf: Likewise.
17582         * lib/unictype/sy_java_ident.h: Likewise.
17583         * lib/unigbrk/gbrkprop.h: Likewise.
17584         * lib/unilbrk/lbrkprop1.h: Likewise.
17585         * lib/unilbrk/lbrkprop2.h: Likewise.
17586         * lib/unilbrk/lbrktables.h: Likewise.
17587         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17588         LBP_CP. Implement rule LB30.
17589         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17590         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17591         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17592         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17593         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17594         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17595         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17596         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17597         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17598         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17599         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17600         bits instead of 16 bits in the code1 and code2 of each composition
17601         rule.
17602         (uc_composition): Update for Unicode 5.2.0.
17603         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17604         * lib/uninorm/decomposition-table2.h: Likewise.
17605         * lib/uniwbrk/wbrkprop.h: Likewise.
17606         * tests/unicase/test-cased.c: Likewise.
17607         * tests/unicase/test-ignorable.c: Likewise.
17608         * tests/unicase/test-uc_tolower.c: Likewise.
17609         * tests/unicase/test-uc_totitle.c: Likewise.
17610         * tests/unicase/test-uc_toupper.c: Likewise.
17611         * tests/unictype/test-categ_C.c: Likewise.
17612         * tests/unictype/test-categ_Cf.c: Likewise.
17613         * tests/unictype/test-categ_Cn.c: Likewise.
17614         * tests/unictype/test-categ_L.c: Likewise.
17615         * tests/unictype/test-categ_Ll.c: Likewise.
17616         * tests/unictype/test-categ_Lm.c: Likewise.
17617         * tests/unictype/test-categ_Lo.c: Likewise.
17618         * tests/unictype/test-categ_Lu.c: Likewise.
17619         * tests/unictype/test-categ_M.c: Likewise.
17620         * tests/unictype/test-categ_Mc.c: Likewise.
17621         * tests/unictype/test-categ_Mn.c: Likewise.
17622         * tests/unictype/test-categ_N.c: Likewise.
17623         * tests/unictype/test-categ_Nd.c: Likewise.
17624         * tests/unictype/test-categ_Nl.c: Likewise.
17625         * tests/unictype/test-categ_No.c: Likewise.
17626         * tests/unictype/test-categ_P.c: Likewise.
17627         * tests/unictype/test-categ_Pd.c: Likewise.
17628         * tests/unictype/test-categ_Po.c: Likewise.
17629         * tests/unictype/test-categ_S.c: Likewise.
17630         * tests/unictype/test-categ_Sc.c: Likewise.
17631         * tests/unictype/test-categ_So.c: Likewise.
17632         * tests/unictype/test-ctype_alnum.c: Likewise.
17633         * tests/unictype/test-ctype_alpha.c: Likewise.
17634         * tests/unictype/test-ctype_graph.c: Likewise.
17635         * tests/unictype/test-ctype_lower.c: Likewise.
17636         * tests/unictype/test-ctype_print.c: Likewise.
17637         * tests/unictype/test-ctype_punct.c: Likewise.
17638         * tests/unictype/test-ctype_upper.c: Likewise.
17639         * tests/unictype/test-decdigit.h: Likewise.
17640         * tests/unictype/test-digit.h: Likewise.
17641         * tests/unictype/test-numeric.h: Likewise.
17642         * tests/unictype/test-pr_alphabetic.c: Likewise.
17643         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17644         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17645         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17646         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17647         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17648         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17649         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17650         * tests/unictype/test-pr_combining.c: Likewise.
17651         * tests/unictype/test-pr_composite.c: Likewise.
17652         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17653         * tests/unictype/test-pr_dash.c: Likewise.
17654         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17655         * tests/unictype/test-pr_deprecated.c: Likewise.
17656         * tests/unictype/test-pr_diacritic.c: Likewise.
17657         * tests/unictype/test-pr_extender.c: Likewise.
17658         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17659         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17660         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17661         * tests/unictype/test-pr_id_continue.c: Likewise.
17662         * tests/unictype/test-pr_id_start.c: Likewise.
17663         * tests/unictype/test-pr_ideographic.c: Likewise.
17664         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17665         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17666         * tests/unictype/test-pr_lowercase.c: Likewise.
17667         * tests/unictype/test-pr_numeric.c: Likewise.
17668         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17669         * tests/unictype/test-pr_punctuation.c: Likewise.
17670         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17671         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17672         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17673         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17674         * tests/unictype/test-pr_uppercase.c: Likewise.
17675         * tests/unictype/test-pr_xid_continue.c: Likewise.
17676         * tests/unictype/test-pr_xid_start.c: Likewise.
17677         * tests/unictype/test-pr_zero_width.c: Likewise.
17678         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17679         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17680         changed behaviour: line breaking is now disallowed between a letter
17681         or '=' and '('.
17682         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17683         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17684         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17685         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17686         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17687         lib/uniwidth/width.c.
17688         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17689         without comments, but with the original copyright notice.
17690         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17691         changes.
17692         * lib/unictype/categ_Cc.h: Likewise.
17693         * lib/unictype/categ_Co.h: Likewise.
17694         * lib/unictype/categ_Cs.h: Likewise.
17695         * lib/unictype/categ_Lt.h: Likewise.
17696         * lib/unictype/categ_Me.h: Likewise.
17697         * lib/unictype/categ_Pc.h: Likewise.
17698         * lib/unictype/categ_Pe.h: Likewise.
17699         * lib/unictype/categ_Pf.h: Likewise.
17700         * lib/unictype/categ_Pi.h: Likewise.
17701         * lib/unictype/categ_Ps.h: Likewise.
17702         * lib/unictype/categ_Sk.h: Likewise.
17703         * lib/unictype/categ_Sm.h: Likewise.
17704         * lib/unictype/categ_Z.h: Likewise.
17705         * lib/unictype/categ_Zl.h: Likewise.
17706         * lib/unictype/categ_Zp.h: Likewise.
17707         * lib/unictype/categ_Zs.h: Likewise.
17708         * lib/unictype/ctype_blank.h: Likewise.
17709         * lib/unictype/ctype_cntrl.h: Likewise.
17710         * lib/unictype/ctype_digit.h: Likewise.
17711         * lib/unictype/ctype_space.h: Likewise.
17712         * lib/unictype/ctype_xdigit.h: Likewise.
17713         * lib/unictype/mirror.h: Likewise.
17714         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17715         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17716         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17717         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17718         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17719         * lib/unictype/pr_bidi_control.h: Likewise.
17720         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17721         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17722         * lib/unictype/pr_bidi_pdf.h: Likewise.
17723         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17724         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17725         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17726         * lib/unictype/pr_format_control.h: Likewise.
17727         * lib/unictype/pr_hex_digit.h: Likewise.
17728         * lib/unictype/pr_hyphen.h: Likewise.
17729         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17730         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17731         * lib/unictype/pr_iso_control.h: Likewise.
17732         * lib/unictype/pr_join_control.h: Likewise.
17733         * lib/unictype/pr_left_of_pair.h: Likewise.
17734         * lib/unictype/pr_line_separator.h: Likewise.
17735         * lib/unictype/pr_math.h: Likewise.
17736         * lib/unictype/pr_non_break.h: Likewise.
17737         * lib/unictype/pr_not_a_character.h: Likewise.
17738         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17739         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17740         * lib/unictype/pr_other_id_continue.h: Likewise.
17741         * lib/unictype/pr_other_id_start.h: Likewise.
17742         * lib/unictype/pr_other_lowercase.h: Likewise.
17743         * lib/unictype/pr_other_math.h: Likewise.
17744         * lib/unictype/pr_other_uppercase.h: Likewise.
17745         * lib/unictype/pr_paired_punctuation.h: Likewise.
17746         * lib/unictype/pr_paragraph_separator.h: Likewise.
17747         * lib/unictype/pr_pattern_syntax.h: Likewise.
17748         * lib/unictype/pr_pattern_white_space.h: Likewise.
17749         * lib/unictype/pr_private_use.h: Likewise.
17750         * lib/unictype/pr_quotation_mark.h: Likewise.
17751         * lib/unictype/pr_radical.h: Likewise.
17752         * lib/unictype/pr_soft_dotted.h: Likewise.
17753         * lib/unictype/pr_space.h: Likewise.
17754         * lib/unictype/pr_titlecase.h: Likewise.
17755         * lib/unictype/pr_variation_selector.h: Likewise.
17756         * lib/unictype/pr_white_space.h: Likewise.
17757         * lib/unictype/sy_c_ident.h: Likewise.
17758         * lib/unictype/sy_c_whitespace.h: Likewise.
17759         * lib/unictype/sy_java_whitespace.h: Likewise.
17760         * modules/uni*/*: Bump version number of expected libunistring version.
17761         Reported by Simon Josefsson.
17762
17763 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17764
17765         useless-if-before-free: fix typo in --help and make the internal,
17766         automatic version date update process work once again.
17767         --help output contained a NUL character instead of the
17768         backslash-zero that was intended.  Also, the "must lie within
17769         the first 8 lines" line is on line 9, and hence not getting
17770         automatically updated.
17771         * build-aux/useless-if-before-free: Fix the former by adding a
17772         backslash, and the latter by condensing the three lines of what-it-does
17773         to a single line, leaving one line of slack for the future.
17774
17775 2011-01-09  Bruno Haible  <bruno@clisp.org>
17776
17777         uniwidth/width: Fix width of U+1D173..U+1D17A.
17778         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17779         symbolic_width, output_width_property_test): New functions.
17780         (main): Invoke output_nonspacing_property, output_width_property_test.
17781         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17782         U+1D173..U+1D17A.
17783         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17784         1.
17785         * modules/uniwidth/*: Bump version number of expected libunistring
17786         version.
17787         * modules/unilbrk/*: Likewise.
17788
17789 2011-01-08  Bruno Haible  <bruno@clisp.org>
17790
17791         uninorm tests: Preserve copyright of Unicode data file.
17792         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17793         Mention modifications.
17794
17795 2011-01-08  Bruno Haible  <bruno@clisp.org>
17796
17797         gen-uni-tables: Prepare for Unicode 5.2.0.
17798         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17799         (debug_output_lbp, output_lbp): Update.
17800
17801 2011-01-08  Bruno Haible  <bruno@clisp.org>
17802
17803         unilbrk: Clarify gen-uni-tables.c code.
17804         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17805         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17806         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17807
17808 2011-01-07  Bruno Haible  <bruno@clisp.org>
17809
17810         strtod: Restore errno when successfully parsing Infinity or NaN.
17811         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17812         restore the original errno.
17813
17814 2011-01-07  Bruno Haible  <bruno@clisp.org>
17815
17816         remove test: Avoid failure on HP-UX 11.
17817         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17818
17819 2011-01-07  Bruno Haible  <bruno@clisp.org>
17820
17821         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17822         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17823         error code.
17824
17825 2011-01-07  Pádraig Brady <P@draigBrady.com>
17826
17827         ignore-value: fixup comments, and add Eric Blake
17828         as an author since he rewrote the macros.
17829         * lib/ignore-value.h (ignore_value):  State that
17830         we now support aggregates.  Also specify exactly
17831         when the GCC warn_unused_result feature was added.
17832
17833 2011-01-06  Eric Blake  <eblake@redhat.com>
17834
17835         ignore-value: support aggregate types
17836         * lib/ignore-value.h (ignore_value): Provide separate gcc
17837         definition.
17838         * modules/ignore-value-tests: New test module.
17839         * tests/test-ignore-value.c: New test.
17840
17841         maint.mk: improve sc_prohibit_strcmp regex
17842         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17843         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17844         definition of STRNEQ.
17845
17846         signal: work around Haiku issue with SIGBUS
17847         * lib/siglist.h: Add comment.
17848         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17849         strsignal's favoring of SIGSEGV.
17850         * tests/test-signal.c (main): Avoid test failure.
17851         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17852         Reported by Scott McCreary.
17853
17854         maint.mk: add pre-release check to ensure submodule commits are public
17855         * top/maint.mk (public-submodule-commit): New rule.
17856         (submodule-checks): New variable.
17857         (alpha beta stable): Depend on the variable.
17858
17859 2011-01-05  Pádraig Brady <P@draigBrady.com>
17860         and Jim Meyering  <meyering@redhat.com>
17861
17862         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17863         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17864         (ATTRIBUTE_DEPRECATED): Define.
17865         (_ignore_case): New function.
17866         (ignore_value): New macro, to replace the old function.
17867         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17868         * modules/ignore-value (Depends-on): Add stdint.
17869
17870 2011-01-04  Eric Blake  <eblake@redhat.com>
17871
17872         doc: regenerate INSTALL
17873         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17874         @firstparagraphindent support, now that autoconf dropped it.
17875         (INSTALL_PRELUDE): Reinstate old macro.
17876         * doc/install.texi: Resync from autoconf.
17877         * doc/INSTALL: Reflect recent autoconf update.
17878         * doc/INSTALL.ISO: Likewise.
17879         * doc/INSTALL.UTF-8: Likewise.
17880         Reported by Karl Berry.
17881
17882 2011-01-04  Bruce Korb  <address@hidden>
17883
17884         git-version-gen: avoid a sub-shell
17885         * build-aux/git-version-gen: Redirect stderr in `...` via
17886         "exec 2>...", rather than via an added sub-shell.
17887
17888 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17889
17890         git-version-gen: use (...) rather than sh -c '...'
17891         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17892         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17893
17894 2011-01-03  Jim Meyering  <meyering@redhat.com>
17895
17896         git-version-gen: convert leading TABs to spaces
17897         * build-aux/git-version-gen: Expand leading TABs.
17898
17899         git-version-gen: handle failed "git rev-list"
17900         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17901         from git and proceeding as if it had succeeded but printed no SHA1
17902         checksums, suppress the diagnostic and handle the failure.
17903         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17904
17905         git-version-gen: include command name in one more diagnostic
17906         * build-aux/git-version-gen: When the required .tarball-version file
17907         was missing or unreadable, you might see the diagnostic from "cat",
17908         but no trace of the name of the invoking script.  Now, you still see
17909         the diagnostic from cat, but also get one from "git-version-gen: ".
17910         Inspired by a patch from Bruce Korb.
17911
17912         update-copyright: adjust test to match changed code
17913         * tests/test-update-copyright.sh: Change test's expected output
17914         to match new actual output.
17915
17916 2011-01-02  Bruno Haible  <bruno@clisp.org>
17917
17918         getlogin_r: Avoid test failure on HP-UX 11.
17919         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17920         ERANGE when the second argument is zero.
17921         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17922         portability problem.
17923
17924 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17925
17926         * build-aux/update-copyright: doc Simon's changes
17927
17928 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17929
17930         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17931         environment variable.
17932
17933 2011-01-02  Bruno Haible  <bruno@clisp.org>
17934
17935         unigbrk: Avoid gcc warnings.
17936         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17937         unused variable.
17938         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17939         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17940         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17941         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17942         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17943         Change type of first argument to 'const char *'.
17944         (main): Remove unused variable.
17945         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17946         type of first argument to 'const char *'.
17947         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17948         Likewise.
17949         (main): Change type of variable 's'.
17950         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17951         to 'int'.
17952
17953 2011-01-02  Bruno Haible  <bruno@clisp.org>
17954
17955         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17956         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17957         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17958         bug.
17959         * lib/pwrite.c: Undo 2010-12-31 patch.
17960         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17961
17962 2011-01-02  Bruno Haible  <bruno@clisp.org>
17963
17964         pread: Fix test whether it works.
17965         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17966
17967 2011-01-02  Bruno Haible  <bruno@clisp.org>
17968
17969         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17970         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17971         ends in "6". Don't require a specific month name. Try also the locale
17972         names found on HP-UX 11 and Solaris 7.
17973
17974 2011-01-02  Bruno Haible  <bruno@clisp.org>
17975
17976         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17977         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17978         C linkage.
17979         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17980
17981 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17982
17983         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17984         for consistency, since the "cluster" term is not used elsewhere.
17985         * lib/unigbrk.in.h: Update name.
17986         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17987         * lib/unigbrk/u16-grapheme-next.c: Update name.
17988         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17989         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17990         * lib/unigbrk/u32-grapheme-next.c: Update name.
17991         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17992         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17993         * lib/unigbrk/u8-grapheme-next.c: Update name.
17994         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17995         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17996         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17997         Suggested by Bruno Haible.
17998
17999 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18000
18001         Remove module 'u8-grapheme-len' as too redundant with
18002         'u8-grapheme-next'.
18003         * modules/unigbrk/u8-grapheme-len: Delete file.
18004         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
18005         * lib/unigbrk.in.h: Remove prototype for deleted function.
18006         * lib/unigbrk/u8-grapheme-len.c: Delete file.
18007         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
18008
18009         Remove module 'u16-grapheme-len' as too redundant with
18010         'u16-grapheme-next'.
18011         * modules/unigbrk/u16-grapheme-len: Delete file.
18012         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
18013         * lib/unigbrk.in.h: Remove prototype for deleted function.
18014         * lib/unigbrk/u16-grapheme-len.c: Delete file.
18015         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
18016
18017         Remove module 'u32-grapheme-len' as too redundant with
18018         'u32-grapheme-next'.
18019         * modules/unigbrk/u32-grapheme-len: Delete file.
18020         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
18021         * lib/unigbrk.in.h: Remove prototype for deleted function.
18022         * lib/unigbrk/u32-grapheme-len.c: Delete file.
18023         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
18024
18025         Suggested by Bruno Haible.
18026
18027 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18028
18029         * unigbrk.in.h: Fix typo: "ben" => "been".
18030         Reported by Bruno Haible.
18031
18032 2011-01-01  Jim Meyering  <meyering@redhat.com>
18033
18034         maint: update almost all copyright ranges to include 2011
18035         Run the new "make update-copyright" rule.
18036
18037 2011-01-01  Jim Meyering  <meyering@redhat.com>
18038
18039         maint: update-copyright: exempt doc/INSTALL*
18040         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18041         since they are generated.  Suggested by Bruno Haible.
18042
18043 2011-01-01  Jim Meyering  <meyering@redhat.com>
18044
18045         maint: refine the update-copyright rule
18046         * Makefile (update-copyright): Also exclude any file that includes
18047         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18048         code that merely generates the comment.
18049
18050 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18051
18052         New module 'u8-grapheme-len'.
18053         * modules/unigbrk/u8-grapheme-len: New file.
18054         * modules/unigbrk/u8-grapheme-len-tests: New file.
18055         * lib/unigbrk.in.h: Add prototype for new function.
18056         * lib/unigbrk/u8-grapheme-len.c: New file.
18057         * tests/unigbrk/test-u8-grapheme-len.c: New file.
18058
18059         New module 'u16-grapheme-len'.
18060         * modules/unigbrk/u16-grapheme-len: New file.
18061         * modules/unigbrk/u16-grapheme-len-tests: New file.
18062         * lib/unigbrk.in.h: Add prototype for new function.
18063         * lib/unigbrk/u16-grapheme-len.c: New file.
18064         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18065
18066         New module 'u32-grapheme-len'.
18067         * modules/unigbrk/u32-grapheme-len: New file.
18068         * modules/unigbrk/u32-grapheme-len-tests: New file.
18069         * lib/unigbrk.in.h: Add prototype for new function.
18070         * lib/unigbrk/u32-grapheme-len.c: New file.
18071         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18072
18073         New module 'u8-grapheme-next'.
18074         * modules/unigbrk/u8-grapheme-next: New file.
18075         * modules/unigbrk/u8-grapheme-next-tests: New file.
18076         * lib/unigbrk.in.h: Add prototype for new function.
18077         * lib/unigbrk/u8-grapheme-next.c: New file.
18078         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18079
18080         New module 'u16-grapheme-next'.
18081         * modules/unigbrk/u16-grapheme-next: New file.
18082         * modules/unigbrk/u16-grapheme-next-tests: New file.
18083         * lib/unigbrk.in.h: Add prototype for new function.
18084         * lib/unigbrk/u16-grapheme-next.c: New file.
18085         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18086
18087         New module 'u32-grapheme-next'.
18088         * modules/unigbrk/u32-grapheme-next: New file.
18089         * modules/unigbrk/u32-grapheme-next-tests: New file.
18090         * lib/unigbrk.in.h: Add prototype for new function.
18091         * lib/unigbrk/u32-grapheme-next.c: New file.
18092         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18093
18094         New module 'u8-grapheme-prev'.
18095         * modules/unigbrk/u8-grapheme-prev: New file.
18096         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18097         * lib/unigbrk.in.h: Add prototype for new function.
18098         * lib/unigbrk/u8-grapheme-prev.c: New file.
18099         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18100
18101         New module 'u16-grapheme-prev'.
18102         * modules/unigbrk/u16-grapheme-prev: New file.
18103         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18104         * lib/unigbrk.in.h: Add prototype for new function.
18105         * lib/unigbrk/u16-grapheme-prev.c: New file.
18106         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18107
18108         New module 'u32-grapheme-prev'.
18109         * modules/unigbrk/u32-grapheme-prev: New file.
18110         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18111         * lib/unigbrk.in.h: Add prototype for new function.
18112         * lib/unigbrk/u32-grapheme-prev.c: New file.
18113         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18114
18115         New module 'u8-grapheme-breaks'.
18116         * modules/unigbrk/u8-grapheme-breaks: New file.
18117         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18118         * lib/unigbrk.in.h: Add prototype for new function.
18119         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18120         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18121
18122         New module 'u16-grapheme-breaks'.
18123         * modules/unigbrk/u16-grapheme-breaks: New file.
18124         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18125         * lib/unigbrk.in.h: Add prototype for new function.
18126         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18127         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18128
18129         New module 'u32-grapheme-breaks'.
18130         * modules/unigbrk/u32-grapheme-breaks: New file.
18131         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18132         * lib/unigbrk.in.h: Add prototype for new function.
18133         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18134         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18135
18136         New module 'ulc-grapheme-breaks'.
18137         * modules/unigbrk/ulc-grapheme-breaks: New file.
18138         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18139         * m4/locale-ar.m4: New file.
18140         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18141         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18142         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18143
18144 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18145
18146         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18147         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18148         modified how this file was generated before I initially submitted
18149         the module, but failed to regenerate it.  This meant that several
18150         of the level2 entries were wrong.
18151         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18152         Remove the division-by-2 that is folded into the table now that
18153         gbrkprop.h has been regenerated properly.  Now -1 entries are
18154         handled correctly.
18155
18156         New module 'unigbrk/uc-gbrk-prop-tests'.
18157         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18158         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18159         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18160         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18161
18162 2011-01-01  Bruno Haible  <bruno@clisp.org>
18163
18164         Avoid use of hexadecimal escapes.
18165         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18166         instead of hexadecimal escapes.
18167
18168 2011-01-01  Jim Meyering  <meyering@redhat.com>
18169
18170         maint: new rule to update copyright year ranges
18171         * Makefile (update-copyright): New rule.
18172
18173         maint: indent with TABs in Makefile
18174         * Makefile: Expand leading sequences of spaces to TABs
18175
18176         version-etc: update the copyright year it reports
18177         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18178
18179 2010-12-31  Bruno Haible  <bruno@clisp.org>
18180
18181         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18182         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18183         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18184         zero.
18185
18186 2010-12-31  Bruno Haible  <bruno@clisp.org>
18187
18188         pwrite: Work around HP-UX 11.11 bug.
18189         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18190         works and set REPLACE_PWRITE if not.
18191         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18192         function.
18193         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18194
18195 2010-12-31  Bruno Haible  <bruno@clisp.org>
18196
18197         pread: Work around HP-UX 11 bugs.
18198         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18199         and set REPLACE_PREAD if not.
18200         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18201
18202 2010-12-31  Eric Blake  <eblake@redhat.com>
18203
18204         nl_langinfo: fix YESEXPR on Irix 6.5
18205         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18206         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18207         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18208         it.
18209
18210 2010-12-31  Bruno Haible  <bruno@clisp.org>
18211
18212         iconv: Document HP-UX 11 bug.
18213         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18214
18215 2010-12-31  Bruno Haible  <bruno@clisp.org>
18216
18217         ldexpl: Fix link error on HP-UX 11.
18218         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18219         LDEXPL_LIBM, using $ISNANL_LIBM.
18220
18221 2010-12-31  Eric Blake  <eblake@redhat.com>
18222
18223         ftello: avoid compilation failure with SunStudio c89
18224         * lib/ftello.c (ftello): Use lseek, not llseek.
18225
18226         tests: avoid failing coreutils tests on cygwin
18227         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18228         (create_exe_shims_): Return 0 when skipping.
18229
18230 2010-12-31  Bruno Haible  <bruno@clisp.org>
18231
18232         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18233         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18234
18235 2010-12-31  Bruno Haible  <bruno@clisp.org>
18236
18237         waitpid: Fix link error in C++ mode.
18238         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18239
18240 2010-12-31  Bruno Haible  <bruno@clisp.org>
18241
18242         isnan: Use GCC built-ins when possible.
18243         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18244         __builtin_isnan.
18245         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18246         (isnan): Define using GCC built-ins for GCC >= 4.0.
18247
18248 2010-12-31  Bruno Haible  <bruno@clisp.org>
18249
18250         isnand: Fix mistake.
18251         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18252         __builtin_isnand.
18253
18254 2010-12-31  Bruno Haible  <bruno@clisp.org>
18255
18256         open: Avoid C++ error on HP-UX 11.
18257         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18258
18259 2010-12-31  Bruno Haible  <bruno@clisp.org>
18260
18261         time_r: Add missing declarations on HP-UX 11.
18262         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18263         instead of HAVE_LOCALTIME_R.
18264         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18265         HAVE_LOCALTIME_R always.
18266         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18267         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18268         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18269         HAVE_LOCALTIME_R.
18270         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18271         * doc/posix-functions/localtime_r.texi: Likewise.
18272
18273 2010-12-29  Eric Blake  <eblake@redhat.com>
18274
18275         mountlist: tweak previous commit
18276         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18277         Reported by Paul Eggert.
18278
18279         mountlist: fix local drive detection on cygwin
18280         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18281         that works for cygwin.
18282
18283 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18284
18285         ftoastr, snprintf: ftoastr + snprintf module
18286         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18287         since the snprintf module now should be good enough here.
18288         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18289         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18290         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18291         GNULIB_SNPRINTF only for the test directory, and the latter
18292         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18293         seems to suffice by itself.
18294
18295 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18296
18297         alloca: one step towards thread-safety
18298         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18299         need for a static variable.  All callers changed.  This does not
18300         make the alloca replacement thread-safe, but it's one step.
18301
18302         tests: minor indenting change
18303         * tests/init.sh: Sync from coreutils housekeeping patch
18304         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18305         to keep lines within 80 columns.
18306
18307 2010-12-28  Jim Meyering  <meyering@redhat.com>
18308
18309         regex: don't infloop on persistent failing calloc
18310         * lib/regexec.c (build_trtable): Return failure indication upon
18311         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18312         In glibc, this was fixed for version 2.13:
18313         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18314
18315 2010-12-28  Bruno Haible  <bruno@clisp.org>
18316             Paul Eggert <eggert@cs.ucla.edu>
18317
18318         linkat: Make implementation robust against system behaviour variations.
18319         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18320         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18321         way, and to -2 if it needs a generic runtime test.
18322         * lib/linkat.c (solaris_optimized_link_immediate,
18323         solaris_optimized_link_follow): New functions.
18324         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18325         (check_same_link): Use it.
18326
18327 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18328
18329         New module 'unigbrk/base'.
18330         * modules/unigbrk/base: New file.
18331         * lib/unigbrk.in.h: New file.
18332
18333         New module 'unigbrk/uc-gbrk-prop'.
18334         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18335         * modules/unigbrk/uc-gbrk-prop: New file.
18336         * lib/unigbrk/gbrkprop.h: New file.
18337         * lib/unigbrk/uc-gbrk-prop.c: New file.
18338
18339         New module 'unigbrk/uc-is-grapheme-break'.
18340         * modules/unigbrk/uc-is-grapheme-break: New file.
18341         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18342         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18343         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18344         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18345         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18346
18347         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18348
18349 2010-12-27  Bruno Haible  <bruno@clisp.org>
18350
18351         linkat test: Avoid failure on Solaris 11 2010-11.
18352         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18353
18354 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18355
18356         utimens: work around glibc rounding bug on more platforms
18357         * lib/utimens.c (fdutimens): Work around rounding bug even if
18358         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18359         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18360
18361 2010-12-27  Bruno Haible  <bruno@clisp.org>
18362
18363         select tests: Improve comments.
18364         * tests/test-select.c (do_select): Add comments.
18365
18366 2010-12-27  Bruno Haible  <bruno@clisp.org>
18367
18368         select tests: Safer way of handling timeout.
18369         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18370         at every invocation.
18371
18372 2010-12-27  Bruno Haible  <bruno@clisp.org>
18373
18374         select tests: Use 'bool' where appropriate.
18375         * tests/test-select.c (connect_to_socket): Change argument type to
18376         'bool'.
18377
18378 2010-12-27  Bruno Haible  <bruno@clisp.org>
18379
18380         select tests: Use existing modules.
18381         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18382         (configure.ac): Don't test for unistd.h.
18383         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18384         declared in <unistd.h>.
18385
18386 2010-12-27  Bruno Haible  <bruno@clisp.org>
18387
18388         mbrtowc: Work around a Solaris 7 bug.
18389         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18390         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18391         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18392         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18393         MBRTOWC_NULL_ARG1_BUG.
18394         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18395         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18396         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18397         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18398
18399 2010-12-27  Jim Meyering  <meyering@redhat.com>
18400
18401         read-file.c: tweak syntax
18402         * lib/read-file.c (fread_file): Remove space after "*" in function
18403         definitions.
18404
18405 2010-12-27  Bruno Haible  <bruno@clisp.org>
18406
18407         times test: Avoid gcc warnings on OSF/1.
18408         * tests/test-times.c (main): Cast printf arguments from clock_t to
18409         'long int'.
18410
18411 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18412
18413         utimens: work around glibc rounding bug on older Linux kernels
18414         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18415         on Linux with a glibc whose utimes might not work, then work
18416         around a longstanding glibc bug involving rounding rather than
18417         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18418         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18419
18420 2010-12-26  Bruno Haible  <bruno@clisp.org>
18421
18422         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18423         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18424         _GL_CXXALIAS_SYS.
18425         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18426
18427 2010-12-26  Bruno Haible  <bruno@clisp.org>
18428
18429         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18430         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18431         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18432         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18433         looking for the declaration.
18434         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18435         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18436         problem.
18437         * doc/posix-functions/inet_pton.texi: Likewise.
18438
18439 2010-12-26  Bruno Haible  <bruno@clisp.org>
18440
18441         arpa_inet: Use the common idioms with C++ support.
18442         * lib/arpa_inet.in.h: Include c++defs.h.
18443         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18444         support.
18445         * modules/arpa_inet (Depends-on): Add c++defs.
18446         (Makefile.am): Substitute the contents of c++defs.h.
18447         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18448         * modules/arpa_inet-c++-tests: New file.
18449         * tests/test-arpa_inet-c++.cc: New file.
18450
18451 2010-12-25  Bruno Haible  <bruno@clisp.org>
18452
18453         Fix more C++ link errors on Solaris 8.
18454         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18455         $(LIB_EACCESS).
18456         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18457         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18458         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18459         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18460         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18461
18462 2010-12-25  Bruno Haible  <bruno@clisp.org>
18463
18464         printf-posix: Fix link error when a non-GCC compiler is used.
18465         * lib/stdio.in.h (printf): When not using GCC, override printf
18466         correctly.
18467         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18468
18469 2010-12-25  Bruno Haible  <bruno@clisp.org>
18470
18471         strerror_r-posix: Update doc.
18472         * doc/posix-functions/strerror_r.texi: Update doc about the return
18473         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18474
18475 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18476
18477         utimens: simplify the logic of the previous change
18478         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18479         This should not affect whether the test succeeds or fails.
18480
18481         utimens: configure better on hosts with NFS clock skew
18482         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18483         uses the clock of the local host.  It might use the clock of the
18484         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18485         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18486
18487 2010-12-25  Bruno Haible  <bruno@clisp.org>
18488
18489         ptsname test: Avoid failure on Solaris.
18490         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18491         open a pseudo-terminal; don't use BSD-style ptys.
18492         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18493
18494 2010-12-25  Bruno Haible  <bruno@clisp.org>
18495
18496         ptsname: Avoid ERANGE failure on some systems.
18497         * lib/ptsname.c (buffer): Increase size.
18498
18499 2010-12-25  Bruno Haible  <bruno@clisp.org>
18500
18501         rename, renameat: Avoid test failures at NFS mounted locations.
18502         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18503         so that subsequent mkdir calls succeed.
18504
18505 2010-12-25  Bruno Haible  <bruno@clisp.org>
18506
18507         iswblank: Fix C++ link error on Solaris 8.
18508         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18509         _GL_FUNCDECL_SYS.
18510
18511 2010-12-25  Bruno Haible  <bruno@clisp.org>
18512
18513         unistd: Fix C++ link error on Solaris 8.
18514         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18515
18516 2010-12-25  Bruno Haible  <bruno@clisp.org>
18517
18518         readlink doc: Mention an old glibc bug.
18519         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18520
18521 2010-12-25  Bruno Haible  <bruno@clisp.org>
18522
18523         fcntl-h: Fix for use of C++ on glibc systems.
18524         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18525         also on glibc systems in C++ mode.
18526         Reported by Gary V. Vaughan <gary@gnu.org>.
18527
18528 2010-12-25  Bruno Haible  <bruno@clisp.org>
18529
18530         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18531         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18532
18533 2010-12-25  Bruno Haible  <bruno@clisp.org>
18534
18535         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18536         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18537         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18538         test whether truncl works according to ISO C 99 with IEC 60559.
18539         * m4/truncl-ieee.m4: New file.
18540         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18541         m4/signbit.m4.
18542         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18543
18544 2010-12-25  Bruno Haible  <bruno@clisp.org>
18545
18546         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18547         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18548         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18549         test whether ceill works according to ISO C 99 with IEC 60559.
18550         * m4/ceill-ieee.m4: New file.
18551         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18552         m4/signbit.m4.
18553         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18554
18555 2010-12-25  Bruno Haible  <bruno@clisp.org>
18556
18557         Ensure all prerequisites of <wchar.h> are included.
18558         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18559         before <wchar.h>.
18560         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18561         gl_MBRLEN_NUL_RETVAL): Likewise.
18562         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18563         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18564         AC_FUNC_MBRTOWC): Likewise.
18565         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18566         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18567         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18568         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18569         Likewise.
18570         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18571         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18572         (gl_WCHAR_H): Improve comments.
18573         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18574
18575 2010-12-25  Bruno Haible  <bruno@clisp.org>
18576
18577         strtok_r: Fix C syntax error in autoconf macro.
18578         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18579         characters in test program.
18580
18581 2010-12-24  Bruno Haible  <bruno@clisp.org>
18582
18583         ceil, trunc, round: Fix gcc warnings.
18584         * lib/ceil.c (MIN): Undefine before redefining.
18585         * lib/trunc.c (MIN): Likewise.
18586         * lib/round.c (MIN): Likewise.
18587         Include <math.h> first.
18588
18589 2010-12-24  Bruno Haible  <bruno@clisp.org>
18590
18591         select tests: Avoid failures on OSF/1 5.1.
18592         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18593         failure of closing the last socket; it may fail with ECONNRESET.
18594
18595 2010-12-24  Eric Blake  <eblake@redhat.com>
18596
18597         stdint: avoid HP-UX 10.20 preprocessor bug
18598         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18599         than #if.
18600         * tests/test-floor2.c (main): Likewise.
18601         Reported by Peter O'Gorman.
18602
18603         pipe: make obsoletion transition easier
18604         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18605         * modules/pipe (Files): Include revived file.
18606         (Include): Drop reference, to mirror getdate's behavior.
18607
18608 2010-12-24  Bruno Haible  <bruno@clisp.org>
18609
18610         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18611         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18612         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18613         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18614
18615 2010-12-24  Bruno Haible  <bruno@clisp.org>
18616
18617         gethostname: Ensure declaration on NonStop Kernel.
18618         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18619         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18620
18621 2010-12-24  Bruno Haible  <bruno@clisp.org>
18622
18623         sys_select: Ensure all necessary types on NonStop Kernel.
18624         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18625         include <sys/time.h>.
18626         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18627         NonStop Kernel.
18628         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18629
18630 2010-12-24  Bruno Haible  <bruno@clisp.org>
18631
18632         sys_select: Remove unneeded include.
18633         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18634         have <sys/select.h>.
18635
18636 2010-12-24  Bruno Haible  <bruno@clisp.org>
18637
18638         gethostname: Provide a fallback for HOST_NAME_MAX.
18639         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18640         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18641         instead.
18642         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18643
18644 2010-12-24  Bruno Haible  <bruno@clisp.org>
18645
18646         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18647         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18648         (SA_RESTART): Likewise.
18649         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18650
18651 2010-12-24  Bruno Haible  <bruno@clisp.org>
18652
18653         signal: Define NSIG.
18654         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18655         * tests/test-signal.c (nsig): New variable.
18656         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18657
18658 2010-12-24  Bruno Haible  <bruno@clisp.org>
18659
18660         rename, renameat: Avoid test failures on OSF/1 5.1.
18661         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18662         alternative error codes.
18663         * tests/test-renameat.c (main): Likewise.
18664
18665 2010-12-24  Bruno Haible  <bruno@clisp.org>
18666
18667         *printf: Detect large precisions bug on Solaris 10/SPARC.
18668         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18669         by Paul Eggert.
18670         * tests/test-snprintf-posix.h (test_function): Add this test code here
18671         too.
18672         * tests/test-sprintf-posix.h (test_function): Likewise.
18673         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18674         * tests/test-vasprintf-posix.c (test_function): Likewise.
18675         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18676         around by gnulib.
18677         * doc/posix-functions/printf.texi: Likewise.
18678         * doc/posix-functions/snprintf.texi: Likewise.
18679         * doc/posix-functions/sprintf.texi: Likewise.
18680         * doc/posix-functions/vfprintf.texi: Likewise.
18681         * doc/posix-functions/vprintf.texi: Likewise.
18682         * doc/posix-functions/vsnprintf.texi: Likewise.
18683         * doc/posix-functions/vsprintf.texi: Likewise.
18684         * doc/posix-functions/dprintf.texi: Undo last commit.
18685         * doc/posix-functions/vdprintf.texi: Likewise.
18686
18687 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18688
18689         tests: port test-fdutimensat.c to Solaris 8
18690         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18691         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18692         On Solaris 8, it fails with errno == ENOSYS, because there is no
18693         futimens (so it can't use the fd), and there is no lutimens (so it
18694         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18695
18696         vsnprintf: make more consistent with snprintf; doc fixes
18697
18698         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18699         the byte count return problem was promoted from the snprintf-posix
18700         to the snprintf module.
18701         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18702         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18703         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18704         * tests/test-snprintf.c (main): Check the byte count returned.
18705         * tests/test-vsnprintf.c (main): Likewise.
18706
18707 2010-12-23  Eric Blake  <eblake@redhat.com>
18708
18709         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18710         * modules/sigpipe (License): Relax license.
18711
18712 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18713
18714         doc: document Solaris printf bug with large float precisions
18715         * doc/posix-functions/dprintf.texi (dprintf):
18716         * doc/posix-functions/fprintf.texi (fprintf):
18717         * doc/posix-functions/printf.texi (printf):
18718         * doc/posix-functions/snprintf.texi (snprintf):
18719         * doc/posix-functions/sprintf.texi (sprintf):
18720         * doc/posix-functions/vdprintf.texi (vdprintf):
18721         * doc/posix-functions/vfprintf.texi (vfprintf):
18722         * doc/posix-functions/vprintf.texi (vprintf):
18723         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18724         * doc/posix-functions/vsprintf.texi (vsprintf):
18725         Mention that these functions mishandle large floating point
18726         precisions on Solaris 10.  The same bug is also present in Solaris
18727         8, and I assume earlier.  This causes "cd gnulib-tests; make
18728         check" to fail on Solaris 8 (and I assume, later) when building
18729         the latest coreutils, in test-vasprintf-posix's call to
18730         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18731         the wide flavors (e.g., wprintf) so this patch just updates the
18732         documentation for the narrow ones.
18733
18734         test-posixtm.c: add two tests
18735         * tests/test-posixtm.c: Add two tests, to highlight the
18736         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18737         around this bug; this is merely to document it.
18738
18739 2010-12-22  Bruno Haible  <bruno@clisp.org>
18740
18741         getlogin_r: Work around portability problem on OSF/1.
18742         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18743         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18744         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18745         test for a truncated result.
18746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18747         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18748         * modules/getlogin_r (Depends-on): Add memchr.
18749         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18750
18751 2010-12-22  Bruno Haible  <bruno@clisp.org>
18752
18753         ptsname: Avoid test failure on OSF/1 5.1.
18754         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18755         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18756         (same_slave): New function.
18757         (main): Use it to compare ptsname's result with the expected file name.
18758
18759 2010-12-22  Bruno Haible  <bruno@clisp.org>
18760
18761         Port extended stdio modules to HP NonStop Kernel.
18762         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18763         macros.
18764         * lib/fbufmode.c: Update comments.
18765         * lib/fflush.c: Likewise.
18766         * lib/fpurge.c: Likewise.
18767         * lib/freadable.c: Likewise.
18768         * lib/freadahead.c: Likewise.
18769         * lib/freading.c: Likewise.
18770         * lib/freadptr.c: Likewise.
18771         * lib/freadseek.c: Likewise.
18772         * lib/fseeko.c: Likewise.
18773         * lib/fseterr.c: Likewise.
18774         * lib/fwritable.c: Likewise.
18775         * lib/fwriting.c: Likewise.
18776         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18777
18778 2010-12-22  Bruno Haible  <bruno@clisp.org>
18779
18780         ttyname_r: Work around bug on OSF/1 5.1.
18781         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18782         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18783         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18784         present.
18785         * lib/ttyname_r.c (ttyname_r): Update comments.
18786
18787 2010-12-22  Bruno Haible  <bruno@clisp.org>
18788
18789         round: Implement result sign according to IEEE 754.
18790         * lib/round.c (MIN, MINUS_ZERO): New macros.
18791         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18792         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18793         * tests/test-round-ieee.c (main): Likewise.
18794         * tests/test-roundl-ieee.c (main): Likewise.
18795
18796         trunc: Implement result sign according to IEEE 754.
18797         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18798         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18799         * tests/test-trunc2.c: Include minus-zero.h.
18800         (MINUS_ZERO): New macro.
18801         (trunc_reference): Keep in sync with lib/trunc.c.
18802         * tests/test-truncf2.c: Include minus-zero.h.
18803         (MINUS_ZERO): New macro.
18804         (truncf_reference): Keep in sync with lib/trunc.c.
18805         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18806         * tests/test-trunc-ieee.c (main): Likewise.
18807         * tests/test-truncl-ieee.c (main): Likewise.
18808
18809         ceil: Implement result sign according to IEEE 754.
18810         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18811         (FUNC): Return -0.0 for -1 < x < 0.
18812         * tests/test-ceil2.c: Include minus-zero.h.
18813         (MINUS_ZERO): New macro.
18814         (ceil_reference): Keep in sync with lib/ceil.c.
18815         * tests/test-ceilf2.c: Include minus-zero.h.
18816         (MINUS_ZERO): New macro.
18817         (ceilf_reference): Keep in sync with lib/ceil.c.
18818         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18819         * tests/test-ceil-ieee.c (main): Likewise.
18820         * tests/test-ceill-ieee.c (main): Likewise.
18821
18822         floor: Implement result sign according to IEEE 754.
18823         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18824         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18825         * tests/test-floorf2.c (floorf_reference): Likewise.
18826         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18827         * tests/test-floor-ieee.c (main): Likewise.
18828         * tests/test-floorl-ieee.c (main): Likewise.
18829
18830 2010-12-22  Bruno Haible  <bruno@clisp.org>
18831
18832         getaddrinfo: Update doc.
18833         * doc/posix-functions/gai_strerror.texi: Return type is also different
18834         on AIX and HP-UX.
18835
18836 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18837
18838         getaddrinfo, inet_ntop: Update doc for Solaris.
18839         * doc/posix-functions/gai_strerror.texi: Return type is also an
18840         issue on Solaris 9 and earlier.
18841         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18842         on Solaris 10 and earlier.
18843
18844 2010-12-21  Bruno Haible  <bruno@clisp.org>
18845
18846         New module 'roundl-ieee'.
18847         * modules/roundl-ieee: New file.
18848         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18849         test whether roundl works according to ISO C 99 with IEC 60559.
18850         * m4/roundl-ieee.m4: New file.
18851         * modules/roundl-ieee-tests: New file.
18852         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18853         * tests/test-roundl.c (main): Remove signbit tests.
18854         * modules/roundl-tests (Depends-on): Remove signbit.
18855         * doc/posix-functions/roundl.texi: Mention the new module.
18856
18857 2010-12-21  Bruno Haible  <bruno@clisp.org>
18858
18859         New module 'truncl-ieee'.
18860         * modules/truncl-ieee: New file.
18861         * modules/truncl-ieee-tests: New file.
18862         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18863         * tests/test-truncl.c (main): Remove signbit tests.
18864         * modules/truncl-tests (Depends-on): Remove signbit.
18865         * doc/posix-functions/truncl.texi: Mention the new module.
18866
18867 2010-12-21  Bruno Haible  <bruno@clisp.org>
18868
18869         New module 'ceill-ieee'.
18870         * modules/ceill-ieee: New file.
18871         * modules/ceill-ieee-tests: New file.
18872         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18873         * tests/test-ceill.c (main): Remove signbit tests.
18874         * modules/ceill-tests (Depends-on): Remove signbit.
18875         * doc/posix-functions/ceill.texi: Mention the new module.
18876
18877 2010-12-21  Bruno Haible  <bruno@clisp.org>
18878
18879         New module 'floorl-ieee'.
18880         * modules/floorl-ieee: New file.
18881         * modules/floorl-ieee-tests: New file.
18882         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18883         * tests/test-floorl.c (main): Remove signbit tests.
18884         * modules/floorl-tests (Depends-on): Remove signbit.
18885         * doc/posix-functions/floorl.texi: Mention the new module.
18886
18887 2010-12-21  Bruno Haible  <bruno@clisp.org>
18888
18889         New module 'round-ieee'.
18890         * modules/round-ieee: New file.
18891         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18892         whether round works according to ISO C 99 with IEC 60559.
18893         * m4/round-ieee.m4: New file.
18894         * modules/round-ieee-tests: New file.
18895         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18896         * tests/test-round1.c (main): Remove signbit tests.
18897         * modules/round-tests (Depends-on): Remove 'signbit'.
18898         * doc/posix-functions/round.texi: Mention the new module.
18899
18900 2010-12-21  Bruno Haible  <bruno@clisp.org>
18901
18902         New module 'trunc-ieee'.
18903         * modules/trunc-ieee: New file.
18904         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18905         whether trunc works according to ISO C 99 with IEC 60559.
18906         * m4/trunc-ieee.m4: New file.
18907         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18909         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18910         * modules/trunc-ieee-tests: New file.
18911         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18912         * tests/test-trunc1.c (main): Remove signbit tests.
18913         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18914         * doc/posix-functions/trunc.texi: Mention the new module.
18915
18916 2010-12-21  Bruno Haible  <bruno@clisp.org>
18917
18918         New module 'ceil-ieee'.
18919         * modules/ceil-ieee: New file.
18920         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18921         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18922         ISO C 99 with IEC 60559.
18923         * m4/ceil-ieee.m4: New file.
18924         * modules/ceil (Files): Add lib/ceil.c.
18925         (Depends-on): Add 'float'.
18926         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18927         * lib/math.in.h (ceil): New declaration.
18928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18929         REPLACE_CEIL.
18930         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18931         * modules/ceil-ieee-tests: New file.
18932         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18933         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18934         * doc/posix-functions/ceil.texi: Mention the new module.
18935
18936 2010-12-21  Bruno Haible  <bruno@clisp.org>
18937
18938         New module 'floor-ieee'.
18939         * modules/floor-ieee: New file.
18940         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18941         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18942         ISO C 99 with IEC 60559.
18943         * m4/floor-ieee.m4: New file.
18944         * modules/floor (Files): Add lib/floor.c.
18945         (Depends-on): Add 'float'.
18946         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18947         * lib/math.in.h (floor): New declaration.
18948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18949         REPLACE_FLOOR.
18950         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18951         * modules/floor-ieee-tests: New file.
18952         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18953         * tests/test-math-c++.cc: Check the signature of 'floor'.
18954         * doc/posix-functions/floor.texi: Mention the new module.
18955
18956 2010-12-21  Bruno Haible  <bruno@clisp.org>
18957
18958         New module 'roundf-ieee'.
18959         * modules/roundf-ieee: New file.
18960         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18961         test whether roundf works according to ISO C 99 with IEC 60559.
18962         * m4/roundf-ieee.m4: New file.
18963         * modules/roundf-ieee-tests: New file.
18964         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18965         * tests/test-roundf1.c (main): Remove signbit tests.
18966         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18967         * doc/posix-functions/roundf.texi: Mention the new module.
18968
18969 2010-12-21  Bruno Haible  <bruno@clisp.org>
18970
18971         New module 'truncf-ieee'.
18972         * modules/truncf-ieee: New file.
18973         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18974         test whether truncf works according to ISO C 99 with IEC 60559.
18975         * m4/truncf-ieee.m4: New file.
18976         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18978         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18979         * modules/truncf-ieee-tests: New file.
18980         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18981         * tests/test-truncf1.c (main): Remove signbit tests.
18982         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18983         * doc/posix-functions/truncf.texi: Mention the new module.
18984
18985 2010-12-21  Bruno Haible  <bruno@clisp.org>
18986
18987         New module 'ceilf-ieee'.
18988         * modules/ceilf-ieee: New file.
18989         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18990         test whether ceilf works according to ISO C 99 with IEC 60559.
18991         * m4/ceilf-ieee.m4: New file.
18992         * modules/ceilf-ieee-tests: New file.
18993         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18994         * tests/test-ceilf1.c (main): Remove signbit tests.
18995         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18996         * doc/posix-functions/ceilf.texi: Mention the new module.
18997
18998 2010-12-21  Bruno Haible  <bruno@clisp.org>
18999
19000         New module 'floorf-ieee'.
19001         * modules/floorf-ieee: New file.
19002         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
19003         test whether floorf works according to ISO C 99 with IEC 60559.
19004         * m4/floorf-ieee.m4: New file.
19005         * modules/floorf-ieee-tests: New file.
19006         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
19007         * tests/test-floorf1.c (main): Remove signbit tests.
19008         * modules/floorf-tests (Depends-on): Remove 'signbit'.
19009         * doc/posix-functions/floorf.texi: Mention the new module.
19010
19011 2010-12-21  Bruno Haible  <bruno@clisp.org>
19012
19013         Support for minus zero in autoconf macros.
19014         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
19015         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
19016         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
19017         * tests/minus-zero.h: Update comments.
19018
19019 2010-12-21  Bruno Haible  <bruno@clisp.org>
19020
19021         Tests for module 'ceil'.
19022         * modules/ceil-tests: New file.
19023         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
19024         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
19025
19026 2010-12-21  Bruno Haible  <bruno@clisp.org>
19027
19028         Tests for module 'floor'.
19029         * modules/floor-tests: New file.
19030         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
19031         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
19032
19033 2010-12-21  Bruno Haible  <bruno@clisp.org>
19034
19035         math: Fix indentation.
19036         * lib/math.in.h (floorf): Fix indentation.
19037
19038 2010-12-21  Bruno Haible  <bruno@clisp.org>
19039
19040         Fix cross-compilation guesses on Solaris.
19041         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19042         not match "solaris2.10".
19043         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19044         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19045         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19046
19047 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19048
19049         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19050         This fixes a problem observed with the latest coreutils snapshot
19051         that caused a test to fail on Solaris 8.  src/csplit.c's call
19052         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19053         earlier, instead of returning the number of bytes that would have
19054         been generated; this causes csplit to incorrectly report memory
19055         exhaustion.
19056         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19057         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
19058         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
19059         comments to match.
19060         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
19061         Fix typo in matching older versions of Solaris: "solaris2.10"
19062         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19063         only for guessing while cross-compiling.
19064         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19065
19066 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19067
19068         ftoastr: fix comment again
19069         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19070         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19071         Also, simplify example a bit by using flags = 0.
19072
19073 2010-12-20  Bruno Haible  <bruno@clisp.org>
19074
19075         round*, trunc*: Update documentation regarding glibc.
19076         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19077         * doc/posix-functions/round.texi: Likewise.
19078         * doc/posix-functions/roundl.texi: Likewise.
19079         * doc/posix-functions/truncf.texi: Likewise.
19080         * doc/posix-functions/trunc.texi: Likewise.
19081         * doc/posix-functions/truncl.texi: Likewise.
19082
19083 2010-12-20  Bruno Haible  <bruno@clisp.org>
19084
19085         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19086         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19087         * doc/posix-functions/round.texi: Likewise.
19088         * doc/posix-functions/roundl.texi: Likewise.
19089
19090 2010-12-20  Bruno Haible  <bruno@clisp.org>
19091
19092         ttyname_r: Add missing declaration on HP-UX 11.
19093         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19094         HAVE_TTYNAME_R.
19095         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19096         declared. Set HAVE_TTYNAME_R always.
19097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19098         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19099         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19100         HAVE_TTYNAME_R.
19101         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19102
19103 2010-12-20  Bruno Haible  <bruno@clisp.org>
19104
19105         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19106         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19107         * doc/posix-functions/getlogin_r.texi: Likewise.
19108         * tests/test-getlogin.c: Include <errno.h>.
19109         (main): Avoid test failure on HP-UX 11.11.
19110         * tests/test-getlogin_r.c (main): Likewise.
19111
19112 2010-12-20  Bruno Haible  <bruno@clisp.org>
19113
19114         getlogin_r: Add missing declaration on HP-UX 11.
19115         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19116         declared also when it exists as a function.
19117         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19118
19119 2010-12-20  Bruno Haible  <bruno@clisp.org>
19120
19121         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19122         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19123         through wcrtomb.
19124
19125 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19126
19127         ftoastr: fix comment
19128         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19129         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19130
19131 2010-12-19  Bruno Haible  <bruno@clisp.org>
19132
19133         isnan: Ensure it is a macro.
19134         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19135         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19136         Solaris.
19137
19138 2010-12-19  Bruno Haible  <bruno@clisp.org>
19139
19140         ldexpl test: Fix link error on OSF/1 5.1.
19141         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19142
19143 2010-12-19  Bruno Haible  <bruno@clisp.org>
19144
19145         wctype: Make it work in C++ mode on OSF/1 5.1.
19146         * lib/wctype.in.h (iswblank): Declare but not define here.
19147         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19148         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19149         * modules/wctype (Files): Add lib/iswblank.c.
19150
19151 2010-12-19  Bruno Haible  <bruno@clisp.org>
19152
19153         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19154         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19155         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19156
19157 2010-12-19  Bruno Haible  <bruno@clisp.org>
19158
19159         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19161         _POSIX_PII_SOCKET.
19162         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19163         * doc/posix-functions/recvfrom.texi: Likewise.
19164         * doc/posix-functions/send.texi: Likewise.
19165         * doc/posix-functions/sendto.texi: Likewise.
19166
19167 2010-12-19  Bruno Haible  <bruno@clisp.org>
19168
19169         tcgetsid: Add missing declaration on OSF/1 5.1.
19170         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19171         HAVE_TCGETSID.
19172         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19173         Don't set HAVE_TCGETSID.
19174         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19175         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19176         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19177         HAVE_TCGETSID.
19178         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19179
19180 2010-12-19  Bruno Haible  <bruno@clisp.org>
19181
19182         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19183         * lib/stdio.in.h: During the include_next statement, let recursive
19184         includes of this file include only the system header file.
19185
19186 2010-12-19  Bruno Haible  <bruno@clisp.org>
19187
19188         iconv_open: Fix regression from 2010-12-04.
19189         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19190         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19191
19192 2010-12-19  Bruno Haible  <bruno@clisp.org>
19193
19194         stdbool test: Avoid a gcc warning.
19195         * tests/test-stdbool.c (main): Fail if e1 is false.
19196         Reported by Jim Meyering.
19197
19198 2010-12-19  Jim Meyering  <meyering@redhat.com>
19199
19200         setenv: restore to working order
19201         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19202         mistakenly removed.
19203         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19204         HAVE_SETENV.
19205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19206         HAVE_SETENV.
19207
19208 2010-12-19  Bruno Haible  <bruno@clisp.org>
19209
19210         Document some different function declarations on OSF/1 5.1.
19211         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19212         * doc/posix-functions/inet_ntop.texi: Likewise.
19213         * doc/posix-functions/gethostname.texi: Likewise.
19214         * lib/unistd.in.h (gethostname): Update comment.
19215
19216 2010-12-19  Bruno Haible  <bruno@clisp.org>
19217
19218         doc: Mention vasprintf-posix module.
19219         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19220         the 'vasprintf-posix' module.
19221         * doc/glibc-functions/vasprintf.texi: Likewise.
19222
19223 2010-12-19  Bruno Haible  <bruno@clisp.org>
19224
19225         unsetenv: Add missing declaration on OSF/1 5.1.
19226         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19227         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19228         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19230         not HAVE_UNSETENV.
19231         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19232         HAVE_UNSETENV.
19233         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19234
19235 2010-12-19  Bruno Haible  <bruno@clisp.org>
19236
19237         setenv: Add missing declaration on OSF/1 5.1.
19238         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19239         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19240         declared. Don't set HAVE_SETENV.
19241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19242         not HAVE_SETENV.
19243         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19244         HAVE_SETENV.
19245         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19246
19247 2010-12-19  Bruno Haible  <bruno@clisp.org>
19248
19249         nl_langinfo tests: Avoid gcc warning.
19250         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19251
19252 2010-12-19  Bruno Haible  <bruno@clisp.org>
19253
19254         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19255         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19256         _GL_CXXALIAS_SYS.
19257
19258 2010-12-19  Bruno Haible  <bruno@clisp.org>
19259
19260         stdbool: Relax test.
19261         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19262         address to 'bool' work in static initializer, for compilers other than
19263         GCC.
19264
19265 2010-12-19  Bruno Haible  <bruno@clisp.org>
19266
19267         ftello: Add missing declaration on OSF/1 5.1.
19268         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19269         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19271         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19272         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19273
19274 2010-12-19  Bruno Haible  <bruno@clisp.org>
19275
19276         fseeko: Add missing declaration on OSF/1 5.1.
19277         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19278         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19280         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19281         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19282
19283 2010-12-19  Bruno Haible  <bruno@clisp.org>
19284
19285         fchdir: Add missing declaration on OSF/1 5.1.
19286         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19287         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19289         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19290         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19291
19292 2010-12-19  Bruno Haible  <bruno@clisp.org>
19293
19294         relocatable-prog-wrapper: Separate from relocatable-prog.
19295         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19296         uninstall-relocwrapper rule here.
19297         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19298         Reported by Ian Beckwith <ianb@erislabs.net>.
19299
19300 2010-12-19  Bruno Haible  <bruno@clisp.org>
19301
19302         unistr/u8-mbsnlen: Add missing dependency.
19303         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19304         Reported by Ian Beckwith <ianb@erislabs.net>.
19305
19306 2010-12-19  Bruno Haible  <bruno@clisp.org>
19307
19308         iconv: Make it possible again to use this module without 'iconv-h'.
19309         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19310         if it is not defined.
19311         Reported by Ian Beckwith <ianb@erislabs.net>.
19312
19313 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19314
19315         acl: port to Solaris 8 when copying from tmpfs to ufs
19316         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19317         error number.  Problem observed on Solaris 8 with latest
19318         coreutils, with "mv A B", where A is on a tmpfs file system and B
19319         is on a ufs file system.  This caused coreutils' mv/part-symlink
19320         test to fail.
19321
19322         tests: set fail=0 at start
19323         * tests/init.sh (setup_): Move fail=0 initialization here ...
19324         (mktempd_): ... from here, so that tests can rely on fail being
19325         set to 0 initially.  This fixes a problem in coreutils; see:
19326         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19327
19328 2010-12-18  Bruno Haible  <bruno@clisp.org>
19329
19330         memmem-simple: Stylistic changes.
19331         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19332         Fix preprocessor directive indentation.
19333
19334 2010-12-15  Pádraig Brady <P@draigBrady.com>
19335
19336         memmem, memmem-simple: reorganize and expand empty needle check
19337         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19338         functional checks to memmem-simple so that one has a fully functional
19339         memmem by using just this module.
19340         Restrict the performance only check to the memmem module.
19341         Also expand the empty needle check to ensure the correct
19342         pointer is returned, not just a non NULL pointer.
19343         * doc/glibc-functions/memmem.texi: Rearrange the portability
19344         documentation to correlate with the rearranged checks.
19345         Clarify exactly how the memmem and memmem-simple modules
19346         relate to each other.
19347
19348 2010-12-15  Pádraig Brady <P@draigBrady.com>
19349             Bruno Haible  <bruno@clisp.org>
19350
19351         Improve cross-compilation guesses for uClibc.
19352         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19353         that uClibc does not have the glibc bug.
19354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19355         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19356
19357 2010-12-14  Eric Blake  <eblake@redhat.com>
19358
19359         configmake: provide fallbacks for oldest supported autotools
19360         * m4/configmake.m4: New file.
19361         * modules/configmake (Files): Ship it.
19362         (configure.ac): Use it to guarantee fallbacks.
19363
19364 2010-12-13  Pádraig Brady <P@draigBrady.com>
19365
19366         read-file: Improve handling of large files
19367         * lib/read-file.c (fread_file): Minimize realloc()s
19368         for regular files, and better manage sizes around SIZE_MAX.
19369
19370 2010-12-13  Eric Blake  <eblake@redhat.com>
19371
19372         cloexec, fcntl: relax license
19373         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19374         consent from all contributors.
19375         * modules/fcntl (License): Likewise.
19376
19377 2010-12-10  Bruno Haible  <bruno@clisp.org>
19378
19379         Tests for module 'pipe-posix'.
19380         * modules/pipe-posix-tests: New file.
19381         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19382
19383 2010-12-10  Bruno Haible  <bruno@clisp.org>
19384
19385         pipe-posix: Make it work in C++ mode.
19386         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19387         (pipe): Use common idiom, not a macro definition.
19388         * lib/pipe.c: New file.
19389         * m4/pipe.m4: New file.
19390         * modules/pipe-posix (Description): Enhance.
19391         (Files): Add lib/pipe.c, m4/pipe.m4.
19392         (configure.ac): Invoke gl_FUNC_PIPE.
19393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19394         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19395         * tests/test-unistd-c++.cc: Check the signature of pipe.
19396
19397 2010-12-10  Bruno Haible  <bruno@clisp.org>
19398
19399         Rename module 'pipe' to 'spawn-pipe'.
19400         * modules/spawn-pipe: New file, renamed from modules/pipe.
19401         (Files, configure.ac, Makefile.am): Update.
19402         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19403         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19404         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19405         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19406         "spawn-pipe.h" instead of "pipe.h".
19407         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19408         to gl_SPAWN_PIPE.
19409         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19410         (Files, Makefile.am): Update.
19411         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19412         Update.
19413         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19414         Include "spawn-pipe.h" instead of "pipe.h".
19415         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19416         * lib/javacomp.c: Likewise.
19417         * lib/javaversion.c: Likewise.
19418         * lib/pipe-filter-gi.c: Likewise.
19419         * lib/pipe-filter-ii.c: Likewise.
19420         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19421         * modules/javacomp (Depends-on): Likewise.
19422         * modules/javaversion (Depends-on): Likewise.
19423         * modules/pipe-filter-gi (Depends-on): Likewise.
19424         * modules/pipe-filter-ii (Depends-on): Likewise.
19425         * MODULES.html.sh (Executing programs): Update.
19426         * NEWS: Mention the change.
19427
19428 2010-12-10  Eric Blake  <eblake@redhat.com>
19429
19430         pipe-posix: new module
19431         * modules/pipe-posix: New file.
19432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19433         (gl_UNISTD_H): Check for declaration.
19434         * modules/unistd (Makefile.am): Substitute it.
19435         * lib/unistd.in.h (pipe): Provide it for mingw.
19436         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19437         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19438
19439 2010-12-07  Bruno Haible  <bruno@clisp.org>
19440
19441         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19442         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19443         u8_strcmp_gnu.
19444         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19445
19446 2010-12-06  Bruno Haible  <bruno@clisp.org>
19447
19448         Update internal documentation.
19449         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19450
19451 2010-12-04  Bruno Haible  <bruno@clisp.org>
19452
19453         Put more information about failed tests into the test return codes.
19454         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19455         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19456         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19457         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19458         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19459         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19460         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19461         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19462         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19463         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19465         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19466         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19467         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19468         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19469         returns a bit mask.
19470         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19471         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19472         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19473         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19474         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19475         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19478         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19479         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19480         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19481         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19482         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19483         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19484         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19485         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19486         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19487         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19488         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19489         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19490         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19491         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19492         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19493         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19494         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19495         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19496         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19497         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19498         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19499         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19500         gl_PRINTF_PRECISION): Likewise.
19501         * m4/regex.m4 (gl_REGEX): Likewise.
19502         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19503         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19504         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19505         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19506         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19507         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19509         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19510         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19511         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19512         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19513         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19514         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19515         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19516         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19517         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19518         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19519         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19521         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19522         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19523         enumerated value.
19524         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19525
19526 2010-12-04  Bruno Haible  <bruno@clisp.org>
19527
19528         Update for Solaris 11 2010-11.
19529         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19530         Express, released in November 2010.
19531
19532 2010-12-04  Bruno Haible  <bruno@clisp.org>
19533
19534         nproc: Relax license.
19535         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19536         and Paul Eggert.
19537         Requested by Ludovic Courtès <ludo@gnu.org>.
19538
19539 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19540
19541         utimecmp: fine-grained src to nearby coarse-grained dest
19542
19543         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19544         and the source is on a file system with higher-resolution time
19545         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19546         not work, and the time stamps are close together, the algorithm to
19547         determine the exact resolution from the read-back mtime was buggy:
19548         it had a "!=" where it should have had an "==".  This bug has been
19549         in the code ever since it was introduced to gnulib.
19550         Problem reported by Dan Jacobson in
19551         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19552
19553 2010-11-30  Bruno Haible  <bruno@clisp.org>
19554
19555         strerror_r-posix: Fix autoconf test.
19556         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19557
19558 2010-11-28  Bruno Haible  <bruno@clisp.org>
19559             Paul Eggert  <eggert@cs.ucla.edu>
19560
19561         Tests for module 'getdomainname'.
19562         * modules/getdomainname-tests: New file.
19563         * tests/test-getdomainname.c: New file, based on
19564         tests/test-gethostname.c.
19565
19566 2010-11-28  Bruno Haible  <bruno@clisp.org>
19567             Paul Eggert  <eggert@cs.ucla.edu>
19568
19569         getdomainname: Use the system function when possible.
19570         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19571         (getdomainname): Replace if needed. Provide the declaration if it is
19572         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19573         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19574         (getdomainname): When the system has getdomainname, call the system
19575         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19576         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19577         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19578         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19579         the function if its second argument is of type 'int' or if it is found
19580         in libnsl.
19581         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19582         <sys/systeminfo.h> and sysinfo().
19583         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19585         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19586         HAVE_GETDOMAINNAME.
19587         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19588         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19589         * doc/glibc-functions/getdomainname.texi: Document the problems with
19590         the getdomainname declaration.
19591
19592 2010-11-28  Bruno Haible  <bruno@clisp.org>
19593
19594         sys_socket: Ensure ss_family field on AIX.
19595         * lib/sys_socket.in.h (ss_family): New macro definition.
19596         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19597         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19598         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19599         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19600         * modules/sys_socket (Makefile.am): Substitute
19601         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19602         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19603
19604 2010-11-27  Bruno Haible  <bruno@clisp.org>
19605
19606         readline: Improve configure output.
19607         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19608         "checking for readline..." result understandable.
19609
19610 2010-11-27  Bruno Haible  <bruno@clisp.org>
19611
19612         *printf-posix: Detect a bug on Solaris 10/x86.
19613         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19614         for floating-point output.
19615         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19616         directive.
19617         * tests/test-snprintf-posix.h (test_function): Likewise.
19618         * tests/test-sprintf-posix.h (test_function): Likewise.
19619         * tests/test-vasprintf-posix.c (test_function): Likewise.
19620         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19621         * doc/posix-functions/printf.texi: Likewise.
19622         * doc/posix-functions/snprintf.texi: Likewise.
19623         * doc/posix-functions/sprintf.texi: Likewise.
19624         * doc/posix-functions/vfprintf.texi: Likewise.
19625         * doc/posix-functions/vprintf.texi: Likewise.
19626         * doc/posix-functions/vsnprintf.texi: Likewise.
19627         * doc/posix-functions/vsprintf.texi: Likewise.
19628         * doc/glibc-functions/obstack_printf.texi: Likewise.
19629         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19630
19631 2010-11-27  Bruno Haible  <bruno@clisp.org>
19632
19633         Fix link error when module libunistring-optional is in use.
19634         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19635         * modules/striconveha-tests (Makefile.am): Likewise.
19636
19637 2010-11-27  Bruno Haible  <bruno@clisp.org>
19638
19639         regex: Mention link dependencies.
19640         * modules/regex (Link): New section.
19641         * modules/rpmatch (Link): Likewise.
19642         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19643
19644 2010-11-27  Bruno Haible  <bruno@clisp.org>
19645
19646         ftoastr: Fix compilation error on Solaris.
19647         * lib/ftoastr.c: Include <config.h>.
19648
19649 2010-11-27  Bruno Haible  <bruno@clisp.org>
19650
19651         getloadavg: Update documentation.
19652         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19653
19654 2010-11-27  Bruno Haible  <bruno@clisp.org>
19655
19656         sys_socket: Fix test whether the functions are declared.
19657         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19658         not <sys/select.h>.
19659
19660 2010-11-27  Bruno Haible  <bruno@clisp.org>
19661
19662         getpass: Make sure to get system declaration on some platforms.
19663         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19664         gl_USE_SYSTEM_EXTENSIONS.
19665         * modules/getpass (Depends-on): Add extensions.
19666
19667 2010-11-26  Bruno Haible  <bruno@clisp.org>
19668
19669         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19670         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19671         'iconv' module is present.
19672         (ICONV_CONST): New macro.
19673         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19674         ICONV_CONST.
19675         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19676         set ICONV_CONST.
19677         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19678         here.
19679         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19680         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19681         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19682         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19683         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19684         present.
19685
19686 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19687
19688         ftoastr: comment fix
19689         * lib/ftoastr.c: "little" -> "little or no" in comment
19690
19691 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19692
19693         stdint: port to GCC 4.3 + OSX + Octave
19694         On this platform, stdint.h is buggy and defines int64_t to long
19695         long int.  The replacement defined it to long int, causing
19696         problems with C++ style name mangling.  Instead, trust the system
19697         definition if INT64_MAX is defined, and likewise for the unsigned
19698         variant.   Problem reported by Jarno Rajahalme in
19699         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19700         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19701         and don't mess with int64_t and INT64_MAX in this case.
19702         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19703
19704 2010-11-24  Bruno Haible  <bruno@clisp.org>
19705
19706         doc: Corrections regarding MacOS X 10.4 and 10.5.
19707         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19708         MacOS X.
19709         Reported by Simon Josefsson.
19710
19711 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19712
19713         Uninstall ".bin" files installed by relocwrapper.
19714         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19715         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19716         unless it is already there.
19717
19718 2010-11-21  Bruno Haible  <bruno@clisp.org>
19719
19720         Update for NetBSD 5.0.
19721         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19722         NetBSD; the test fails on NetBSD 5.0.
19723         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19724         about NetBSD.
19725
19726 2010-11-21  Bruno Haible  <bruno@clisp.org>
19727
19728         Update for HP-UX 11.23 and HP-UX 11.31.
19729         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19730         HP-UX.
19731
19732 2010-11-21  Bruno Haible  <bruno@clisp.org>
19733
19734         Update for MacOS X 10.5.
19735         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19736         MacOS X; the test fails on MacOS X 10.5.8.
19737         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19738         about MacOS X.
19739
19740 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19741
19742         bootstrap: add bootstrap_sync option.
19743         See discussion at
19744         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19745         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19746         * build-aux/bootstrap: Accept --bootstrap-sync to update
19747         bootstrap if it is not identical to the local gnulib's
19748         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19749         enable this by default.  Accept --no-bootstrap-sync to disable
19750         it.
19751
19752 2010-11-20  Bruno Haible  <bruno@clisp.org>
19753
19754         Ensure that <features.h> is included before __GLIBC__ is tested.
19755         * lib/printf-parse.h: Include <features.h>.
19756         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19757         Reported by Mike Frysinger <vapier@gentoo.org>.
19758
19759         Ensure that <features.h> is included before __GLIBC__ is tested.
19760         * lib/wchar.in.h: Include <features.h>.
19761         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19762         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19763         Reported by Mike Frysinger <vapier@gentoo.org>.
19764
19765         Ensure that <features.h> is included before __GLIBC__ is tested.
19766         * lib/arpa_inet.in.h: Include <features.h>.
19767         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19768         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19769         Reported by Mike Frysinger <vapier@gentoo.org>.
19770
19771         Ensure that <features.h> is included before __GLIBC__ is tested.
19772         * build-aux/link-warning.h: Include <features.h>.
19773         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19774         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19775         Reported by Mike Frysinger <vapier@gentoo.org>.
19776
19777         Ensure that <features.h> is included before __GLIBC__ is tested.
19778         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19779         Reported by Mike Frysinger <vapier@gentoo.org>.
19780
19781 2010-11-20  Bruno Haible  <bruno@clisp.org>
19782
19783         memmem: Fix autoconf test.
19784         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19785
19786 2010-11-20  Bruno Haible  <bruno@clisp.org>
19787
19788         Port to uClibc.
19789         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19790         * lib/fcntl.in.h: Likewise.
19791         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19792         * lib/mbrtowc.c (mbrtowc): Likewise.
19793         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19794         * lib/strerror_r.c: Likewise.
19795         * lib/unistr/u8-strnlen.c: Likewise.
19796         * lib/vasnprintf.c (decimal_point_char): Likewise.
19797         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19798         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19799         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19800         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19801         * tests/test-sigaction.c (handler, main): Likewise.
19802         * lib/freading.h: Treat uClibc like a non-glibc platform.
19803         * lib/freading.c: Likewise.
19804         * lib/gettext.h: Likewise.
19805         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19806         Likewise.
19807         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19808         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19809         * lib/propername.c (proper_name_utf8): Likewise.
19810         * lib/spawn.in.h: Likewise.
19811         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19812         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19813         mem_cd_iconveh_internal): Likewise.
19814         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19815         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19816         strstr, strcasestr): Likewise.
19817         * lib/unicodeio.c (unicode_to_mb): Likewise.
19818         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19819         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19820         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19821         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19822         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19823         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19824         * lib/unistr/u8-stpncpy.c: Likewise.
19825         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19826         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19827         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19828         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19829         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19830         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19831         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19832         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19834         Likewise.
19835         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19836         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19837         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19838         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19839         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19840         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19841         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19842         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19843         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19844         * tests/test-striconveha.c (main): Likewise.
19845         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19846         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19847         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19848         * doc/posix-functions/getline.texi: Likewise.
19849         Reported by Mike Frysinger <vapier@gentoo.org>.
19850
19851 2010-11-20  Bruno Haible  <bruno@clisp.org>
19852
19853         nproc: Fix condition.
19854         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19855         HAVE_PTHREAD_AFFINITY_NP.
19856
19857 2010-11-20  Bruno Haible  <bruno@clisp.org>
19858
19859         Fix a comment.
19860         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19861
19862 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19863
19864         ftoastr: don't assume snprintf
19865         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19866         Implement a subset of snprintf here, by using sprintf safely.
19867         * modules/ftoastr (Depends-on): Remove snprintf.
19868
19869 2010-11-19  Jim Meyering  <meyering@redhat.com>
19870
19871         test-rename.h: fix compilation failure
19872         * tests/test-rename.h (test_rename): Add omitted "}".
19873
19874 2010-11-17  Jim Meyering  <meyering@redhat.com>
19875
19876         maint.mk: add a URL discussing the no-@acronym policy
19877         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19878
19879 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19880
19881         ftoastr: depend on snprintf, improve comments
19882         * lib/ftoastr.c: Also mention Loitsch's draft.
19883         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19884         needed in the current implementation, but it might simplify
19885         speeding up the code later.
19886         * modules/ftoastr: Depend on snprintf; this improves portability.
19887         Suggested by Bruno Haible in the same email.
19888
19889         ftoastr: port to hosts lacking strtof and strtold
19890         Problem reported by Bruno Haible in
19891         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19892         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19893         environment and strtold (and presumably strtof) are not available.
19894         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19895         (configure.ac): Require gl_C99_STRTOLD.
19896
19897 2010-11-18  Bruno Haible  <bruno@clisp.org>
19898
19899         c-strtold: Avoid link error on AIX 7.
19900         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19901         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19902         (gl_C_STRTOLD): Test whether strtold_l exists.
19903         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19904
19905 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19906
19907         intprops: new macro INT_BITS_STRLEN_BOUND
19908         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19909         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19910         not exposed.  Also, it uses a slightly tighter bound than before;
19911         though this makes no practical difference, we might as well be as
19912         tight as we easily can.
19913
19914         ftoastr: new module, for lossless conversion of floats to short strings
19915         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19916         * modules/ftoastr: New files.
19917
19918 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19919
19920         bootstrap: port to Solaris sed
19921         * build-aux/bootstrap (get_version): Port to Solaris sed.
19922         See Ralf Wildenhues's note in
19923         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19924
19925 2010-11-14  Jim Meyering  <meyering@redhat.com>
19926
19927         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19928         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19929         and move definition closer to sole use.
19930
19931 2010-11-13  Jim Meyering  <meyering@redhat.com>
19932
19933         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19934         Now we require at least autoconf-2.59, which means the work-around
19935         is no longer needed.
19936         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19937         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19938         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19939         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19940         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19941
19942 2010-11-13  Bruno Haible  <bruno@clisp.org>
19943
19944         rename, renameat: Avoid test failures at NFS mounted locations.
19945         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19946         functions.
19947         (test_rename): Use assert_nonexistent.
19948         * tests/test-rename.c: Include <dirent.h>.
19949         * tests/test-renameat.c: Likewise.
19950         Reported by Gary V. Vaughan <gary@gnu.org>.
19951
19952         rename, renameat: Document Linux bug with NFS
19953         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19954         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19955         * doc/posix-functions/renameat.texi: Likewise.
19956         Suggested by Eric Blake.
19957
19958 2010-11-13  Bruno Haible  <bruno@clisp.org>
19959
19960         rename test: Add comments.
19961         * tests/test-rename.h (test_rename): Add structure and comments.
19962
19963 2010-11-13  Eric Blake  <eblake@redhat.com>
19964
19965         maintainer-makefile: cover a few more files
19966         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19967         scripts generated within C files, for libvirt.
19968
19969 2010-11-13  Bruno Haible  <bruno@clisp.org>
19970
19971         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19972         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19973         character, return the number of bytes that belong together, not always
19974         1.
19975         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19976         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19977         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19978         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19979         number of bytes of an invalid character.
19980         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19981         (main): Invoke it.
19982         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19983         results.
19984         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19985         malformed byte sequences.
19986         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19987         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19988         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19989         Reported by Ben Pfaff and Paolo Bonzini.
19990
19991 2010-11-13  Bruno Haible  <bruno@clisp.org>
19992
19993         openat: Work around glibc bug with fchownat() and empty file names.
19994         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19995         (gl_FUNC_FCHOWNAT): Invoke it.
19996         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19997         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19998         Reported by Gary V. Vaughan <gary@gnu.org>.
19999
20000 2010-11-13  Bruno Haible  <bruno@clisp.org>
20001
20002         openat: Ensure autoconf macro ordering.
20003         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
20004         gl_USE_SYSTEM_EXTENSIONS.
20005         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
20006
20007 2010-11-13  Bruno Haible  <bruno@clisp.org>
20008
20009         Update comments.
20010         * lib/unistr/u8-check.c: Update file name in comments.
20011         * lib/unistr/u8-mblen.c: Likewise.
20012         * lib/unistr/u8-prev.c: Likewise.
20013         * lib/unistr/u8-strmblen.c: Likewise.
20014         * lib/unistr/u8-strmbtouc.c: Likewise.
20015
20016 2010-11-13  Jim Meyering  <meyering@redhat.com>
20017
20018         tests: avoid test failure on Solaris 10 due to lack of PATH export
20019         * tests/test-update-copyright.sh: Don't forget to export PATH.
20020
20021         init.sh: ensure that IFS is defined, just in case...
20022         * tests/init.sh (setup_): Ensure that IFS is defined,
20023         so that saving and restoring it works as expected.  This
20024         appears to be useful at least for an old version of dash
20025         from a long time ago (RH 6).  See here for details:
20026         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
20027
20028         maint.mk: tighten "test a == b" check
20029         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
20030         test to files that contain something like #!/bin/sh.
20031         Without this, coreutils would get two false positives in
20032         the comments of C source files.
20033
20034 2010-11-12  Eric Blake  <eblake@redhat.com>
20035
20036         bootstrap: fix typo in previous attempt
20037         * build-aux/bootstrap (buildreq): Correct the grouping.
20038         Reported by Paul Eggert.
20039
20040         maintainer-makefile: prohibit test x == x
20041         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20042         Based on a report by Matthias Bolte.
20043
20044         bootstrap: allow FreeBSD gzip
20045         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20046         which has no '.' and goes to stderr.
20047         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20048         Reported by Matthias Bolte.
20049
20050         maintainer-makefile: check for i18n setup
20051         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20052         will likely work.
20053
20054 2010-11-12  Bruno Haible  <bruno@clisp.org>
20055
20056         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20057         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
20058         * lib/nanosleep.c (nanosleep): Likewise.
20059
20060 2010-11-11  Bruno Haible  <bruno@clisp.org>
20061
20062         fcntl-h: Fix for use of C++ on glibc systems.
20063         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20064         also on glibc systems in C++ mode.
20065         Reported by Gary V. Vaughan <gary@gnu.org>.
20066
20067 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20068
20069         mknod: avoid false failure with dash
20070         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20071
20072 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20073
20074         unlink: Fix "is it should" typo in diagnostic.
20075         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20076         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20077
20078 2010-11-11  Bruno Haible  <bruno@clisp.org>
20079
20080         Tests for module 'strerror_r-posix'.
20081         * modules/strerror_r-posix-tests: New file.
20082         * tests/test-strerror_r.c: New file.
20083         * tests/test-string-c++.cc: Check the signature of strerror_r.
20084
20085         New module 'strerror_r-posix'.
20086         * lib/string.in.h (strerror_r): New declaration.
20087         * lib/strerror_r.c: New file.
20088         * m4/strerror_r.m4: New file.
20089         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20090         of strerror_r.
20091         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20092         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20093         * modules/strerror_r-posix: New file.
20094         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20095         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20096         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20097         portability problems.
20098
20099 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20100
20101         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20102         line is also considered for output. Quoted function name in shell
20103         command, so temporary files for functions like MyClass::operator()
20104         are removed correctly without errors.
20105
20106 2010-11-09  Bruno Haible  <bruno@clisp.org>
20107
20108         * doc/posix-functions/strerror.texi: List more failing platforms.
20109
20110         * doc/posix-functions/strerror.texi: Add a comment.
20111
20112 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20113
20114         fdopendir: fix bug on MacOS X when low on file descriptors
20115
20116         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20117         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20118         All callers changed.
20119         (fdopendir): Invoke save_cwd at the top level, not after using
20120         multiple dup() calls to use up file descriptors.  Then retry
20121         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20122         less than the maximum number of open file descriptors, because
20123         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20124         on Mac OS X 10.6.4 for tar 1.24
20125         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20126         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20127         and for tar 1.25
20128         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20129
20130 2010-11-07  Bruno Haible  <bruno@clisp.org>
20131
20132         vasnprintf: Support I flag on glibc systems.
20133         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20134         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20135         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20136         snprintf function.
20137         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20138         glibc systems.
20139         * tests/test-vasnprintf-posix3.c: New file.
20140         * modules/vasnprintf-posix-tests (Files): Add it.
20141         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20142
20143 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20144
20145         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20146         * MODULES.html.sh: For compiler warnings, use name
20147         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20148
20149 2010-11-05  Eric Blake  <eblake@redhat.com>
20150
20151         ceil, floor: avoid spurious failure with icc
20152         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20153         [denormals-as-zero] when optimizing without -mieee-fp option.
20154         * tests/test-floorf2.c (floorf_reference): Likewise.
20155         * tests/test-ceilf1.c (dummy): New function.
20156         (main): Use it to outsmart icc's optimization.
20157         * tests/test-floorf1.c (dummy, main): Likewise.
20158
20159         tests: require working signbit
20160         * modules/ceilf-tests (Depends-on): Add signbit.
20161         * modules/ceill-tests (Depends-on): Likewise.
20162         * modules/floorf-tests (Depends-on): Likewise.
20163         * modules/floorl-tests (Depends-on): Likewise.
20164         * modules/round-tests (Depends-on): Likewise.
20165         * modules/roundf-tests (Depends-on): Likewise.
20166         * modules/roundl-tests (Depends-on): Likewise.
20167         * modules/trunc-tests (Depends-on): Likewise.
20168         * modules/truncf-tests (Depends-on): Likewise.
20169         * modules/truncl-tests (Depends-on): Likewise.
20170
20171         strtod: work around icc bug
20172         * lib/strtod.c (minus_zero): Define to working value.
20173         (strtod): Use it to avoid icc bug.
20174
20175         copysign: enhance tests
20176         * modules/copysign-tests (Files): Add minus-zero.h.
20177         * tests/test-copysign.c (main): Also test zeros.
20178
20179 2010-11-04  Eric Blake  <eblake@redhat.com>
20180
20181         ceil, floor, round, trunc: enhance tests of -0
20182         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20183         * tests/test-ceill.c (main): Likewise.
20184         * tests/test-floorf1.c (main): Likewise.
20185         * tests/test-floorl.c (main): Likewise.
20186         * tests/test-round1.c (main): Likewise.
20187         * tests/test-roundf1.c (main): Likewise.
20188         * tests/test-roundl.c (main): Likewise.
20189         * tests/test-trunc1.c (main): Likewise.
20190         * tests/test-truncf1.c (main): Likewise.
20191         * tests/test-truncl.c (main): Likewise.
20192
20193 2010-11-04  Eric Blake  <eblake@redhat.com>
20194
20195         frexp, tests: work around ICC bug with -zero
20196         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20197         works with more compilers.
20198         * tests/minus-zero.h: New file.
20199         * modules/ceilf-tests (Files): Include it.
20200         * modules/ceill-tests (Files): Likewise.
20201         * modules/floorf-tests (Files): Likewise.
20202         * modules/floorl-tests (Files): Likewise.
20203         * modules/frexp-nolibm-tests (Files): Likewise.
20204         * modules/frexp-tests (Files): Likewise.
20205         * modules/frexpl-nolibm-tests (Files): Likewise.
20206         * modules/frexpl-tests (Files): Likewise.
20207         * modules/isnan-tests (Files): Likewise.
20208         * modules/isnand-nolibm-tests (Files): Likewise.
20209         * modules/isnand-tests (Files): Likewise.
20210         * modules/isnanf-nolibm-tests (Files): Likewise.
20211         * modules/isnanf-tests (Files): Likewise.
20212         * modules/isnanl-nolibm-tests (Files): Likewise.
20213         * modules/isnanl-tests (Files): Likewise.
20214         * modules/round-tests (Files): Likewise.
20215         * modules/roundf-tests (Files): Likewise.
20216         * modules/roundl-tests (Files): Likewise.
20217         * modules/ldexpl-tests (Files): Likewise.
20218         * modules/signbit-tests (Files): Likewise.
20219         * modules/snprintf-posix-tests (Files): Likewise.
20220         * modules/sprintf-posix-tests (Files): Likewise.
20221         * modules/strtod-tests (Files): Likewise.
20222         * modules/trunc-tests (Files): Likewise.
20223         * modules/truncf-tests (Files): Likewise.
20224         * modules/truncl-tests (Files): Likewise.
20225         * modules/vsnprintf-posix-tests (Files): Likewise.
20226         * modules/vsprintf-posix-tests (Files): Likewise.
20227         * modules/vasnprintf-posix-tests (Files): Likewise.
20228         * modules/vasprintf-posix-tests (Files): Likewise.
20229         * tests/test-ceilf1.c (main): Use it.
20230         * tests/test-ceill.c (main): Likewise.
20231         * tests/test-floorf1.c (main): Likewise.
20232         * tests/test-floorl.c (main): Likewise.
20233         * tests/test-frexp.c (main): Likewise.
20234         * tests/test-frexpl.c (main): Likewise.
20235         * tests/test-isnan.c (main): Likewise.
20236         * tests/test-isnand.h (main): Likewise.
20237         * tests/test-isnanf.h (main): Likewise.
20238         * tests/test-isnanl.h (main): Likewise.
20239         * tests/test-ldexpl.c (main): Likewise.
20240         * tests/test-round.c (main): Likewise.
20241         * tests/test-roundf.c (main): Likewise.
20242         * tests/test-roundl.c (main): Likewise.
20243         * tests/test-signbit.c (test_signbitf, test_signbitd)
20244         (test_signbitl): Likewise.
20245         * tests/test-snprintf-posix.h (test_function): Likewise.
20246         * tests/test-sprintf-posix.h (test_function): Likewise.
20247         * tests/test-strtod.c (main): Likewise.
20248         * tests/test-trunc1.c (main): Likewise.
20249         * tests/test-truncf1.c (main): Likewise.
20250         * tests/test-truncl.c (main): Likewise.
20251
20252         isnanl: work around icc bug
20253         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20254
20255 2010-11-03  Eric Blake  <eblake@redhat.com>
20256
20257         tests: fix compiler warnings
20258         * tests/test-getopt.h (test_getopt): Fix condition.
20259         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20260         * tests/test-pipe2.c (main): Likewise.
20261         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20262
20263         utimens: fix broken m4 test
20264         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20265
20266 2010-10-28  Bruno Haible  <bruno@clisp.org>
20267
20268         posix_spawn*, getdtablesize: Relax license.
20269         * modules/posix_spawn (License): Change to LGPLv2+.
20270         * modules/posix_spawnp (License): Likewise.
20271         * modules/posix_spawn-internal (License): Likewise.
20272         * modules/posix_spawnattr_init (License): Likewise.
20273         * modules/posix_spawnattr_getflags (License): Likewise.
20274         * modules/posix_spawnattr_setflags (License): Likewise.
20275         * modules/posix_spawnattr_getpgroup (License): Likewise.
20276         * modules/posix_spawnattr_setpgroup (License): Likewise.
20277         * modules/posix_spawnattr_getschedparam (License): Likewise.
20278         * modules/posix_spawnattr_setschedparam (License): Likewise.
20279         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20280         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20281         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20282         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20283         * modules/posix_spawnattr_getsigmask (License): Likewise.
20284         * modules/posix_spawnattr_setsigmask (License): Likewise.
20285         * modules/posix_spawnattr_destroy (License): Likewise.
20286         * modules/posix_spawn_file_actions_init (License): Likewise.
20287         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20288         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20289         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20290         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20291         * modules/getdtablesize (License): Likewise.
20292         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20293
20294 2010-10-26  Bruno Haible  <bruno@clisp.org>
20295
20296         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20297         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20298         Cygwin and mingw.
20299         Suggested by Eric Blake.
20300
20301 2010-10-26  Bruno Haible  <bruno@clisp.org>
20302
20303         stdio: Work around compilation error due to renameat() on Solaris 10.
20304         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20305         * lib/renameat.c: Don't include <unistd.h> here.
20306         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20307         Reported by Paul Eggert and Eric Blake.
20308
20309 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20310
20311         renameat: port to Solaris 10, which declares renameat in unistd.h
20312
20313         * lib/renameat.c: Include unistd.h before stdio.h, because
20314         Solaris 10 declares renameat in unistd.h.  Problem encountered
20315         when building GNU tar 1.24 on Solaris 10.
20316
20317 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20318
20319         fdopendir: fix C89 compilation
20320         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20321         compilers.
20322
20323 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20324
20325         inttostr: simplify by removing unnecessary redundancy
20326         * lib/anytostr.c: Don't include verify.h.
20327         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20328         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20329         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20330         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20331         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20332         Likewise.
20333         * modules/inttostr (Depends-on): Remove 'verify'.
20334
20335 2010-10-23  Bruno Haible  <bruno@clisp.org>
20336
20337         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20338         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20339         Reported by Eric Blake.
20340
20341 2010-10-23  Bruno Haible  <bruno@clisp.org>
20342
20343         Tests: Fix LOCALE_JA on MirBSD 10.
20344         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20345         to an UTF-8 locale.
20346         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20347         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20348         Reported by Eric Blake.
20349
20350 2010-10-21  Bruno Haible  <bruno@clisp.org>
20351
20352         nl_langinfo test: Avoid test failure on NetBSD 5.
20353         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20354         Reported by Eric Blake.
20355
20356 2010-10-21  Eric Blake  <eblake@redhat.com>
20357
20358         c-stack: work around libsigsegv 2.8 bug
20359         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20360         overflow on at least PowerPC64.
20361
20362 2010-10-17  Bruno Haible  <bruno@clisp.org>
20363
20364         userspec: Drop redundant file.
20365         * modules/userspec (Files): Remove lib/inttostr.h.
20366
20367 2010-10-17  Bruno Haible  <bruno@clisp.org>
20368
20369         nl_langinfo tests: Silence some warnings.
20370         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20371         Reported by Jim Meyering.
20372
20373 2010-10-17  Bruno Haible  <bruno@clisp.org>
20374
20375         Make use of GCC's attribute __alloc_size__.
20376         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20377         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20378         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20379         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20380         __alloc_size__.
20381         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20382         Suggested by Jim Meyering.
20383
20384 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20385
20386         bootstrap: anchor .gitignore entries.
20387         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20388         with...
20389         (insert_vc_ignore): ... this new function, which prepends `/' to
20390         all .gitignore entries before passing them to
20391         insert_sorted_if_absent.
20392
20393 2010-10-16  Bruno Haible  <bruno@clisp.org>
20394
20395         nextafter: Fix configure check.
20396         * modules/nextafter (configure.ac): Correct expected prototype.
20397
20398 2010-10-16  Bruno Haible  <bruno@clisp.org>
20399
20400         termios: Update documentation.
20401         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20402
20403 2010-10-16  Bruno Haible  <bruno@clisp.org>
20404
20405         tests: Make them compile with TinyCC.
20406         * tests/test-strstr.c (main): Remove parentheses around array
20407         initializer.
20408
20409 2010-10-15  Eric Blake  <eblake@redhat.com>
20410
20411         ignore-value: make header idempotent
20412         * lib/ignore-value.h: Add double-inclusion guards.
20413         Reported by Stefan Berger.
20414
20415 2010-10-15  Jim Meyering  <meyering@redhat.com>
20416
20417         GNUmakefile: handle "stable" target, not "major"
20418         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20419         lists in maint.mk and announce-gen.  Without this, "make stable"
20420         would fail to ensure that $(VERSION) is up to date.
20421
20422 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20423
20424         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20425         & co.
20426
20427 2010-10-14  Bruno Haible  <bruno@clisp.org>
20428
20429         vasnprintf: Don't set errno to 0.
20430         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20431         block that sets it to 0.
20432         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20433
20434 2010-10-14  Bruno Haible  <bruno@clisp.org>
20435
20436         socketlib: Fix.
20437         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20438         gl_PREREQ_SYS_H_WINSOCK2.
20439         Reported by Ian Beckwith <ianb@erislabs.net>.
20440
20441 2010-10-13  Jim Meyering  <meyering@redhat.com>
20442
20443         test-select-stdin.c: avoid warn_unused_result warnings
20444         * tests/test-select-stdin.c: Include "macros.h".
20445         ASSERT that read and fflush succeed.
20446
20447 2010-10-13  Jim Meyering  <meyering@redhat.com>
20448
20449         git-version-gen: do require git-VC'd files in cwd
20450         * build-aux/git-version-gen: Reject a git version string
20451         if there are no commits associated with the current directory.
20452         This avoids an unlikely false-positive (unrelated dir whose parent
20453         repository also contains a tag matching v*), as pointed out
20454         by Giuseppe Scrivano in
20455         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20456
20457 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20458
20459         argv-iter: omit nonconforming declaration
20460         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20461         enum arg_iter_err declaration, which doesn't conform to C99.
20462         Solaris 10 cc warns about this.
20463
20464 2010-10-13  Eric Blake  <eblake@redhat.com>
20465
20466         termios: fix compilation on mingw
20467         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20468         (gl_TERMIOS_H): Adjust it on mingw.
20469         * modules/termios (Makefile.am): Substitute new key.
20470         * lib/termios.in.h (includes): Make include_next conditional.
20471         * doc/posix-headers/termios.texi (termios.h): Update
20472         documentation.
20473         Reported by Daniel P. Berrange.
20474
20475 2010-10-13  Jim Meyering  <meyering@redhat.com>
20476
20477         git-version-gen: don't require that .git/ be in the current dir
20478         * build-aux/git-version-gen: Adjust this script so that it works
20479         when run from any working directory beneath the top-level .git/-
20480         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20481         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20482
20483         test-select: avoid warn_unused_result warnings
20484         * tests/test-select.c: Include "macros.h".
20485         ASSERT that each call to read, write, and pipe succeeds.
20486         While not technically required, also check each "close".
20487         * modules/select-tests (Files): Add tests/macros.h.
20488
20489         test-symlinkat: remove declaration of unused local
20490         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20491
20492         test-inttostr: avoid shadowing warnings
20493         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20494         and use malloc rather than the stack for the same reason as
20495         mentioned in the comment justifying the other allocation.
20496
20497 2010-10-11  Bruno Haible  <bruno@clisp.org>
20498
20499         stdlib: Allow multiple gnulib generated replacements to coexist.
20500         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20501         Reported by Sam Steingold <sds@gnu.org>.
20502
20503 2010-10-11  Jim Meyering  <meyering@redhat.com>
20504
20505         fix a documentation typo
20506         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20507
20508 2010-10-11  Eric Blake  <eblake@redhat.com>
20509
20510         futimens: work around Solaris 11 bug
20511         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20512         * tests/test-futimens.h (test_futimens): Enhance, rather than
20513         weaken test.
20514         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20515
20516 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20517
20518         Indentation.
20519         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20520         higher-level operators more to the left.
20521
20522 2010-10-11  Jim Meyering  <meyering@redhat.com>
20523
20524         test-futimens: avoid unwarranted test failure on Solaris 5.11
20525         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20526         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20527         because it tries to dereference the NULL name argument.
20528
20529 2010-10-11  Bruno Haible  <bruno@clisp.org>
20530
20531         Indentation.
20532         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20533         indentation.
20534
20535 2010-10-11  Jim Meyering  <meyering@redhat.com>
20536
20537         spawn.in.h: make indentation consistent with parentheses
20538         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20539         Make indentation consistent with parentheses.
20540
20541 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20542
20543         Fix mismatched parens in previous commit
20544         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20545         parens.
20546
20547 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20548
20549         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20550
20551         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20552         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20553         * lib/malloca.c: Include "verify.h".
20554         (verify1): Remove, replacing with a verify call.
20555         * lib/relocwrapper.c (verify1): Likewise.
20556         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20557         Likewise.
20558         * modules/malloca (Depends-on): Add 'verify'.
20559         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20560         * modules/vasnprintf (Depends-on): Add 'verify'.
20561         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20562         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20563         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20564         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20565         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20566         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20567         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20568
20569         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20570
20571         Formerly the style was sometimes 2*X - 1, because the C standard
20572         was wrongly thought to disallow ?: in integral constant expressions.
20573         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20574         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20575         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20576         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20577         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20578         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20579         verify that time_t cannot be floating.
20580
20581 2010-10-08  Eric Blake  <eblake@redhat.com>
20582
20583         time: enforce recent POSIX ruling that time_t is integral
20584         * lib/time.in.h (__time_t_must_be_integral): Detect any
20585         problematic systems, allowing the rest of gnulib to assume POSIX.
20586
20587 2010-10-08  Jim Meyering  <meyering@redhat.com>
20588
20589         fdopendir: fix a bug on systems lacking openat and /proc support
20590         OpenBSD 4.7 is one such system.  The most noticeable effect was
20591         failure of any application making nontrivial use of fts: rm, du,
20592         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20593           ./rm: traversal failed: `a': Bad file descriptor
20594         Debugging that, you see that even though FD 6 was closed just
20595         prior to the opendir call in fd_clone_opendir, its resulting
20596         dir->dd_fd was 8, rather than the expected value of 6:
20597
20598         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20599         93                close (fd);
20600         (gdb) n
20601         94                dir = fd_clone_opendir (dupfd);
20602         (gdb) n
20603         95                saved_errno = errno;
20604         (gdb) p dir->dd_fd
20605         $11 = 8
20606
20607         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20608         The problem is that on OpenBSD, fd_clone_opendir has to resort
20609         to using the old-style save/restore CWD mechanism, due to its
20610         lack of openat/proc support, and *that* would steal the FD (6)
20611         that opendir was supposed to use.
20612
20613         The fix is to squirrel away the desired FD so that save_cwd uses a
20614         different one, and then free the dest FD right before calling opendir.
20615         That guarantees opendir will use the required file descriptor.
20616
20617         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20618
20619 2010-10-08  Bruno Haible  <bruno@clisp.org>
20620
20621         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20622         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20623
20624 2010-10-08  Bruno Haible  <bruno@clisp.org>
20625
20626         nanosleep: Make replacement POSIX compliant.
20627         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20628         is out of range.
20629         Reported by Jim Meyering.
20630
20631 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20632
20633         bootstrap: add hook for altering gnulib.mk, for Bison
20634         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20635         the Bison bootstrapping process can rewrite file names and variables
20636         in this file before later parts of 'bootstrap' use the file.
20637         Bison wants to include lib/gnulib.mk from the top-level makefile,
20638         so it needs the file names in this file to be relative to the top
20639         level, not relative to lib; plus it needs variable names to be
20640         rewritten.
20641         (slurp): Use the new function.
20642
20643         bootstrap: reformat for readability
20644         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20645
20646 2010-10-08  Eric Blake  <eblake@redhat.com>
20647
20648         docs: update cygwin progress
20649         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20650         1.7.7.
20651         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20652         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20653         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20654         * doc/posix-functions/carg.texi (carg): Likewise.
20655         * doc/posix-functions/cargf.texi (cargf): Likewise.
20656         * doc/posix-functions/casin.texi (casin): Likewise.
20657         * doc/posix-functions/casinf.texi (casinf): Likewise.
20658         * doc/posix-functions/casinh.texi (casinh): Likewise.
20659         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20660         * doc/posix-functions/catan.texi (catan): Likewise.
20661         * doc/posix-functions/catanf.texi (catanf): Likewise.
20662         * doc/posix-functions/catanh.texi (catanh): Likewise.
20663         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20664         * doc/posix-functions/ccos.texi (ccos): Likewise.
20665         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20666         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20667         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20668         * doc/posix-functions/cexp.texi (cexp): Likewise.
20669         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20670         * doc/posix-functions/cimag.texi (cimag): Likewise.
20671         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20672         * doc/posix-functions/clog.texi (clog): Likewise.
20673         * doc/posix-functions/clogf.texi (clogf): Likewise.
20674         * doc/posix-functions/conj.texi (conj): Likewise.
20675         * doc/posix-functions/conjf.texi (conjf): Likewise.
20676         * doc/posix-functions/cpow.texi (cpow): Likewise.
20677         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20678         * doc/posix-functions/cproj.texi (cproj): Likewise.
20679         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20680         * doc/posix-functions/creal.texi (creal): Likewise.
20681         * doc/posix-functions/crealf.texi (crealf): Likewise.
20682         * doc/posix-functions/csin.texi (csin): Likewise.
20683         * doc/posix-functions/csinf.texi (csinf): Likewise.
20684         * doc/posix-functions/csinh.texi (csinh): Likewise.
20685         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20686         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20687         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20688         * doc/posix-functions/ctan.texi (ctan): Likewise.
20689         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20690         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20691         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20692         * doc/posix-headers/complex.texi (complex.h): Likewise.
20693
20694 2010-10-07  Jim Meyering  <meyering@redhat.com>
20695
20696         parse-datetime: avoid compilation failure on OpenBSD 4.7
20697         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20698         This works around a compilation failure on OpenBSD 4.7:
20699         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20700
20701 2010-10-07  Eric Blake  <eblake@redhat.com>
20702
20703         docs: update cygwin progress
20704         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20705         1.7.6.
20706         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20707         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20708         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20709         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20710         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20711         Likewise.
20712         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20713         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20714         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20715         Likewise.
20716         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20717         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20718         Likewise.
20719         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20720         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20721         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20722         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20723         Likewise.
20724         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20725         Likewise.
20726         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20727
20728         docs: update parse-datetime history
20729         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20730         documentation of this function's history and alternatives.
20731
20732         cygwin: use more robust version check
20733         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20734         exclude an eventual cygwin 1.9.1.
20735         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20737         (gl_FUNC_STRCASESTR): Likewise.
20738         Reported by Bruno Haible.
20739
20740 2010-10-06  Bruno Haible  <bruno@clisp.org>
20741
20742         string, sys_select: Avoid #including large headers unless necessary.
20743         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20744         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20745         OSF/1, BeOS, Haiku.
20746         Reported by Jim Meyering.
20747
20748 2010-10-05  Eric Blake  <eblake@redhat.com>
20749
20750         memmem, strstr, strcasestr: fix bug with long periodic needle
20751         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20752         periodic needle having false positive.
20753         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20754         and cygwin 1.7.7.
20755         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20756         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20757         (gl_FUNC_STRCASESTR): Likewise.
20758         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20759         * tests/test-memmem.c (main): Expose the bug.
20760         * tests/test-strcasestr.c (main): Likewise.
20761         * tests/test-strstr.c (main): Likewise.
20762         * tests/test-c-strcasestr.c (main): Likewise.
20763         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20764         * doc/posix-functions/strstr.texi (strstr): Likewise.
20765         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20766         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20767
20768 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20769
20770         parse-datetime: do some more renaming
20771         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20772         parse_datetime, not get_date.  Mention the renaming.
20773         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20774         in comments.
20775         * m4/bison.m4: Likewise.
20776
20777 2010-10-05  Eric Blake  <eblake@redhat.com>
20778
20779         parse-datetime: better name than get_date
20780         * NEWS: Reword the deprecation notice.
20781         * modules/get_date: Rename to modules/parse-datetime.
20782         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20783         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20784         * lib/get_date.y: Rename to lib/parse-datetime.y.
20785         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20786         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20787         * doc/getdate.texi: Provide fallback wrapper.
20788         * lib/getdate.h: Move guts, and wrap...
20789         * lib/parse-datetime.h: ...new file.
20790         * lib/parse-datetime.y (get_date): Rename...
20791         (parse_datetime): ...to this.
20792         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20793         (gl_PARSE_DATETIME): ...to this.
20794         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20795         documentation.
20796         * modules/getdate (Files): Provide fallback docs and header.
20797         (Notice, Depends-on): Update references.
20798         * tests/test-parse-datetime.c: Likewise.
20799         * DEPENDENCIES: Likewise.
20800         * MODULES.html.sh (Date and time <time.h>): Likewise.
20801         * doc/parse-datetime.texi (Date input formats)
20802         (Authors of parse_datetime): Likewise.
20803         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20804         (Include): Likewise.
20805         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20806         * gnulib-tool: Likewise.
20807         * m4/bison.m4 (gl_BISON): Likewise.
20808         Suggested by Bruno Haible.
20809
20810 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20811
20812         more ports to Solaris tr, which needs [] around ranges
20813         * gnulib-tool: Solaris tr needs [] around ranges.
20814         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20815         * tests/test-pipe-filter-gi1.c (main): Likewise.
20816         * tests/test-pipe-filter-ii1.c (main): Likewise.
20817
20818 2010-10-05  Eric Blake  <eblake@redhat.com>
20819
20820         bootstrap: fix Solaris regression
20821         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20822         around ranges.
20823         Reported by Pádraig Brady.
20824
20825         bootstrap: work with pkg-config
20826         * build-aux/bootstrap (check_versions): Also transliterate - in
20827         prerequisite name.
20828         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20829         prerequisites that were already found, to avoid confusion.
20830         Reported by Justin Clift.
20831
20832         faccessat: remove unused wrappers
20833         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20834         presence of these wrappers dragged in -lgen on Solaris.
20835         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20836
20837 2010-10-05  Jim Meyering  <meyering@redhat.com>
20838
20839         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20840         * Makefile (sc_pragma_columns): New syntax-check rule.
20841
20842 2010-10-04  Bruno Haible  <bruno@clisp.org>
20843
20844         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20845         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20846         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20847         Reported by Bruce Korb and Eric Blake.
20848
20849 2010-10-04  Bruno Haible  <bruno@clisp.org>
20850
20851         threadlib: Make option --with-libpth-prefix work.
20852         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20853         use $LIBPTH, not just -lpth.
20854
20855 2010-10-04  Bruno Haible  <bruno@clisp.org>
20856
20857         Avoid line length limitation from HP NonStop system header files.
20858         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20859         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20860         * lib/ctype.in.h: Likewise.
20861         * lib/dirent.in.h: Likewise.
20862         * lib/errno.in.h: Likewise.
20863         * lib/fcntl.in.h: Likewise.
20864         * lib/float.in.h: Likewise.
20865         * lib/getopt.in.h: Likewise.
20866         * lib/iconv.in.h: Likewise.
20867         * lib/inttypes.in.h: Likewise.
20868         * lib/langinfo.in.h: Likewise.
20869         * lib/locale.in.h: Likewise.
20870         * lib/math.in.h: Likewise.
20871         * lib/netdb.in.h: Likewise.
20872         * lib/netinet_in.in.h: Likewise.
20873         * lib/poll.in.h: Likewise.
20874         * lib/pthread.in.h: Likewise.
20875         * lib/pty.in.h: Likewise.
20876         * lib/sched.in.h: Likewise.
20877         * lib/se-selinux.in.h: Likewise.
20878         * lib/search.in.h: Likewise.
20879         * lib/signal.in.h: Likewise.
20880         * lib/spawn.in.h: Likewise.
20881         * lib/stdarg.in.h: Likewise.
20882         * lib/stddef.in.h: Likewise.
20883         * lib/stdint.in.h: Likewise.
20884         * lib/stdio.in.h: Likewise.
20885         * lib/stdlib.in.h: Likewise.
20886         * lib/string.in.h: Likewise.
20887         * lib/strings.in.h: Likewise.
20888         * lib/sys_file.in.h: Likewise.
20889         * lib/sys_ioctl.in.h: Likewise.
20890         * lib/sys_select.in.h: Likewise.
20891         * lib/sys_socket.in.h: Likewise.
20892         * lib/sys_stat.in.h: Likewise.
20893         * lib/sys_time.in.h: Likewise.
20894         * lib/sys_times.in.h: Likewise.
20895         * lib/sys_utsname.in.h: Likewise.
20896         * lib/sys_wait.in.h: Likewise.
20897         * lib/sysexits.in.h: Likewise.
20898         * lib/termios.in.h: Likewise.
20899         * lib/time.in.h: Likewise.
20900         * lib/unistd.in.h: Likewise.
20901         * lib/wchar.in.h: Likewise.
20902         * lib/wctype.in.h: Likewise.
20903         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20904         * modules/ctype (Makefile.am): Likewise.
20905         * modules/dirent (Makefile.am): Likewise.
20906         * modules/errno (Makefile.am): Likewise.
20907         * modules/fcntl-h (Makefile.am): Likewise.
20908         * modules/float (Makefile.am): Likewise.
20909         * modules/getopt-posix (Makefile.am): Likewise.
20910         * modules/iconv-h (Makefile.am): Likewise.
20911         * modules/inttypes (Makefile.am): Likewise.
20912         * modules/langinfo (Makefile.am): Likewise.
20913         * modules/locale (Makefile.am): Likewise.
20914         * modules/math (Makefile.am): Likewise.
20915         * modules/netdb (Makefile.am): Likewise.
20916         * modules/netinet_in (Makefile.am): Likewise.
20917         * modules/poll-h (Makefile.am): Likewise.
20918         * modules/pthread (Makefile.am): Likewise.
20919         * modules/pty (Makefile.am): Likewise.
20920         * modules/sched (Makefile.am): Likewise.
20921         * modules/search (Makefile.am): Likewise.
20922         * modules/selinux-h (Makefile.am): Likewise.
20923         * modules/signal (Makefile.am): Likewise.
20924         * modules/spawn (Makefile.am): Likewise.
20925         * modules/stdarg (Makefile.am): Likewise.
20926         * modules/stddef (Makefile.am): Likewise.
20927         * modules/stdint (Makefile.am): Likewise.
20928         * modules/stdio (Makefile.am): Likewise.
20929         * modules/stdlib (Makefile.am): Likewise.
20930         * modules/string (Makefile.am): Likewise.
20931         * modules/strings (Makefile.am): Likewise.
20932         * modules/sys_file (Makefile.am): Likewise.
20933         * modules/sys_ioctl (Makefile.am): Likewise.
20934         * modules/sys_select (Makefile.am): Likewise.
20935         * modules/sys_socket (Makefile.am): Likewise.
20936         * modules/sys_stat (Makefile.am): Likewise.
20937         * modules/sys_time (Makefile.am): Likewise.
20938         * modules/sys_times (Makefile.am): Likewise.
20939         * modules/sys_utsname (Makefile.am): Likewise.
20940         * modules/sys_wait (Makefile.am): Likewise.
20941         * modules/sysexits (Makefile.am): Likewise.
20942         * modules/termios (Makefile.am): Likewise.
20943         * modules/time (Makefile.am): Likewise.
20944         * modules/unistd (Makefile.am): Likewise.
20945         * modules/wchar (Makefile.am): Likewise.
20946         * modules/wctype (Makefile.am): Likewise.
20947
20948 2010-10-04  Bruno Haible  <bruno@clisp.org>
20949
20950         read-file tests: Avoid a test failure on NonStop Kernel.
20951         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20952         a regular file.
20953         Reported by Joachim Schmitz <schmitz@hp.com>.
20954
20955 2010-10-03  Bruno Haible  <bruno@clisp.org>
20956
20957         gnulib-tool: Fixes for --create-testdir with --libtool.
20958         * gnulib-tool (func_get_automake_snippet): Don't augment
20959         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20960         an executable.
20961         (func_create_testdir): Handle module 'alloca' like func_import.
20962         Reported by Bruce Korb <bruce.korb@gmail.com>.
20963
20964 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20965
20966         Avoid some lines longer than 80 characters.
20967         * lib/stdint.in.h: Break long comment lines.
20968         * lib/math.in.h: Likewise.
20969         (_GL_NUM_UINT_WORDS): New macro, for readability.
20970         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20971         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20972         * lib/stdlib.in.h: Likewise.
20973         * lib/spawn.in.h: Likewise.
20974         * lib/sys_socket.in.h: Update an URL.
20975         * lib/sys_stat.in.h: Break long line.
20976
20977 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20978
20979         Improve pmccabe2html.
20980         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20981         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20982         when the sources change. Remove the line in the HTML about "Used
20983         ranges" (which implied that there might be other unused ranges),
20984         rename "Resume" to "Summary" (easier to understand for more users).
20985         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20986         styles, and some unnecessary blank lines.
20987
20988 2010-10-03  Bruno Haible  <bruno@clisp.org>
20989             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20990
20991         acl: Add support for ACLs on NonStop Kernel.
20992         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20993         Check whether the function aclsort() exists.
20994         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20995         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20996         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20997         (acl_nontrivial [HAVE_ACLSORT]: New function.
20998         (file_has_acl): Implement for NonStop Kernel.
20999         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21000         (qset_acl): Implement for NonStop Kernel.
21001         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
21002         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21003         (main): Implement for NonStop Kernel.
21004         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
21005         Kernel. Handle this flavor.
21006         * tests/test-set-mode-acl.sh: Likewise.
21007         * tests/test-copy-acl.sh: Likewise.
21008         * tests/test-copy-file.sh: Likewise.
21009
21010 2010-10-03  Bruno Haible  <bruno@clisp.org>
21011
21012         Info about ACLs on NonStop Kernel.
21013         * doc/acl-resources.txt: Add info about NonStop Kernel.
21014         References by Joachim Schmitz <schmitz@hp.com>.
21015
21016 2010-10-02  Bruno Haible  <bruno@clisp.org>
21017
21018         Define missing EDQUOT on NonStop Kernel.
21019         * lib/errno.in.h (EDQUOT): Assign a value if missing.
21020         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
21021         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
21022         missing.
21023         * doc/posix-headers/errno.texi: Mention the NSK bug.
21024         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
21025         Reported by Joachim Schmitz <schmitz@hp.com>.
21026
21027 2010-10-02  Bruno Haible  <bruno@clisp.org>
21028
21029         Update doc for POSIX:2008.
21030         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
21031         Update URL of POSIX specification.
21032
21033 2010-10-02  Bruno Haible  <bruno@clisp.org>
21034
21035         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
21036         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
21037         from gnulib, not from Automake.
21038
21039 2010-10-02  Bruno Haible  <bruno@clisp.org>
21040
21041         New module 'system-posix'.
21042         * modules/system-posix: New file.
21043         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21044         module is present.
21045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21046         GNULIB_SYSTEM_POSIX.
21047         * modules/stdlib (Depends-on): Remove sys_wait.
21048         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21049         * doc/posix-functions/system.texi: Mention the new module.
21050         * doc/posix-headers/stdlib.texi: Likewise.
21051         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21052         define test_sys_wait_macros to a no-op.
21053         Reported by Sam Steingold <sds@gnu.org>.
21054
21055 2010-09-30  Bruno Haible  <bruno@clisp.org>
21056
21057         More renaming from 'getdate' to 'get_date'.
21058         * doc/get_date.texi: Renamed from doc/getdate.texi.
21059         * modules/get_date (Files): Update.
21060         * MODULES.html.sh (Date and time <time.h>): Update.
21061         * DEPENDENCIES: Update.
21062         * gnulib-tool: Update comment.
21063         * m4/bison.m4 (gl_BISON): Likewise.
21064         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21065
21066 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21067
21068         bootstrap: support ACLOCAL_FLAGS during aclocal
21069         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21070         can add additional -I dir for third-party .m4 files.
21071
21072 2010-09-30  Eric Blake  <eblake@redhat.com>
21073
21074         bootstrap: use glibtoolize on MacOS
21075         * build-aux/bootstrap (check_versions): Convert libtool into
21076         libtoolize.
21077         (tool search): Move libtool check earlier, and look for
21078         glibtoolize for MacOS.
21079         (gnulib_tool_options): Auto-add --libtool when appropriate.
21080         Reported by Justin Clift.
21081
21082         poll: fix typo that broke test on MacOS
21083         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21084         Reported by Justin Clift.
21085
21086         getdate: rename to get_date
21087         Note: getdate.h is not renamed, to minimize client impact.
21088         * modules/getdate: Mark obsolete.  Move old contents...
21089         * modules/get_date: ...to new module name.
21090         * modules/getdate-tests: Move...
21091         * modules/get_date-tests: ...here.
21092         * m4/getdate.m4: Move...
21093         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21094         * lib/getdate.y: Move...
21095         * lib/get_date.y: ...here.
21096         * tests/test-getdate.c: Move...
21097         * tests/test-get_date.c: ...here.
21098         * doc/posix-functions/getdate.texi (getdate): Update name.
21099         * NEWS: Mention the change.
21100
21101 2010-09-29  Bruno Haible  <bruno@clisp.org>
21102
21103         Separate the module 'waitpid' from the module 'sys_wait'.
21104         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21105         present.
21106         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21107         gl_MODULE_INDICATOR_FOR_TESTS.
21108         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21109         * modules/sys_wait (Depends-on): Remove waitpid.
21110         (Makefile.am): Substitute GNULIB_WAITPID.
21111         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21112         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21113         signature only if the 'waitpid' module is present.
21114         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21115         * NEWS: Mention the change.
21116         * modules/grantpt (Depends-on): Add waitpid.
21117         * modules/wait-process (Depends-on): Likewise.
21118
21119 2010-09-29  Bruno Haible  <bruno@clisp.org>
21120
21121         More tests for module 'sys_wait'.
21122         * modules/sys_wait-c++-tests: New file.
21123         * tests/test-sys_wait-c++.cc: New file.
21124         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21125         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21126
21127 2010-09-29  Bruno Haible  <bruno@clisp.org>
21128
21129         New module 'waitpid'.
21130         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21131         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21132         Don't include <process.h>.
21133         (waitpid): Declare only, using modern idiom.
21134         * m4/waitpid.m4: New file.
21135         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21136         * modules/waitpid: New file.
21137         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21138         (Makefile.am): Update.
21139         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21140
21141 2010-09-28  Bruno Haible  <bruno@clisp.org>
21142
21143         poll: Assume ANSI C.
21144         * lib/poll.c (poll): Use an ANSI C declaration.
21145
21146 2010-09-28  Bruno Haible  <bruno@clisp.org>
21147
21148         poll-h: Create poll.h on all platforms.
21149         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21150         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21151         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21152         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21153         (gl_REPLACE_POLL_H): Don't set POLL_H.
21154         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21155         * modules/poll-h (Depends-on): Add include_next.
21156         (Makefile.am): Create poll.h unconditionally. Substitute also
21157         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21158
21159 2010-09-28  Bruno Haible  <bruno@clisp.org>
21160
21161         Tests for module 'poll-h'.
21162         * modules/poll-h-c++-tests: New file.
21163         * tests/test-poll-h-c++.cc: New file.
21164
21165         Tests for module 'poll-h'.
21166         * modules/poll-h-tests: New file.
21167         * tests/test-poll-h.c: New file.
21168
21169 2010-09-28  Bruno Haible  <bruno@clisp.org>
21170
21171         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21172         * modules/poll-h (Depends-on): Add 'extensions'.
21173
21174 2010-09-28  Bruno Haible  <bruno@clisp.org>
21175
21176         New module 'poll-h'.
21177         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21178         (poll): Use modern idiom.
21179         * modules/poll-h: New file.
21180         * modules/poll (Files): Remove lib/poll.in.h.
21181         (Depends-on): Add poll-h.
21182         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21183         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21184         * m4/poll_h.m4: New file.
21185         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21186         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21187         and invoke gl_REPLACE_POLL_H.
21188         * lib/poll.c: Use common idiom.
21189         * tests/test-poll.c: Likewise.
21190         * doc/posix-headers/poll.texi: Mention the poll-h module.
21191         Suggested by Eric Blake.
21192
21193 2010-09-26  Bruno Haible  <bruno@clisp.org>
21194
21195         sys_wait: Implement WSTOPSIG.
21196         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21197         Reported by Simon Josefsson.
21198
21199 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21200
21201         stdlib, sys_wait: Avoid compilation error on mingw.
21202         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21203
21204 2010-09-26  Bruno Haible  <bruno@clisp.org>
21205
21206         stdlib tests: Avoid code duplication.
21207         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21208         * modules/sys_wait-tests (Files): Likewise.
21209         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21210         * tests/test-stdlib.c: Include test-sys_wait.h.
21211         (main): Invoke test_sys_wait_macros.
21212         * tests/test-sys_wait.c: Include test-sys_wait.h.
21213         (main): Invoke test_sys_wait_macros.
21214
21215 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21216
21217         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21218         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21219         sure Windows sockets are working before calling getaddrinfo.
21220         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21221         * doc/gnulib.texi (Windows sockets): Fix typo.
21222
21223 2010-09-25  Bruno Haible  <bruno@clisp.org>
21224
21225         Tests for module 'regex-quote'.
21226         * modules/regex-quote-tests: New file.
21227         * tests/test-regex-quote.c: New file.
21228
21229         New module 'regex-quote'.
21230         * lib/regex-quote.h: New file.
21231         * lib/regex-quote.c: New file.
21232         * modules/regex-quote: New file.
21233         Suggested by Reuben Thomas <rrt@sc3d.org>.
21234
21235 2010-09-24  Bruno Haible  <bruno@clisp.org>
21236
21237         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21238         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21239
21240 2010-09-23  Bruno Haible  <bruno@clisp.org>
21241
21242         setenv: Relax license.
21243         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21244         Blake.
21245         Requested by Eric Blake.
21246
21247 2010-09-22  Bruno Haible  <bruno@clisp.org>
21248
21249         termios: Relax license.
21250         * modules/termios (License): Change to LGPLv2+.
21251         Requested by Eric Blake.
21252
21253 2010-09-22  Bruno Haible  <bruno@clisp.org>
21254
21255         threadlib: Allow the package to change the default to 'no'.
21256         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21257         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21258         Reported by Paul Eggert.
21259
21260 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21261             Bruno Haible  <bruno@clisp.org>
21262
21263         Fix endless loop in mbmemcasecoll.
21264         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21265         byte.
21266         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21267
21268 2010-09-22  Bruno Haible  <bruno@clisp.org>
21269
21270         Tests for module 'memcoll'.
21271         * modules/memcoll-tests: New file.
21272         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21273
21274         memcoll, xmemcoll: Clarify size vs. length.
21275         * modules/memcoll.c (memcoll0): Clarify specification.
21276         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21277         passed to collate_error.
21278
21279 2010-09-22  Bruno Haible  <bruno@clisp.org>
21280
21281         Tests for module 'memcasecmp'.
21282         * modules/memcasecmp-tests: New file.
21283         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21284
21285 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21286
21287         * lib/pthread.in.h: Add split double-inclusion guard, and include
21288         system <pthread.h> if there is one.  Use @@-style as in other
21289         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21290         pthread.h doesn't.
21291         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21292         (pthread_mutexattr_settype, pthread_mutex_trylock):
21293         New static inline functions, if there's no system <pthread.h>.
21294         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21295         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21296         Approximate with mutexes if the system lacks spinlocks, as in
21297         MacOS.
21298         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21299         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21300         @@-style.  Check for spinlocks separately.
21301         (gl_PTHREAD_DEFAULTS): New macro.
21302         * modules/pthread: Redo to use a more typical style for in.h files.
21303
21304 2010-09-21  Eric Blake  <eblake@redhat.com>
21305
21306         net_if: enhance tests
21307         * tests/test-net_if.c (main): Move signature checks earlier.
21308         Print failures to stderr.
21309         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21310         Document the bug that we do not yet fix.
21311
21312 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21313
21314         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21315         about gnulib, not GSS.
21316
21317 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21318
21319         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21320         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21321         for Emacs.
21322         * build-aux/pmccabe2html: Make Makefile.am example code more
21323         cut-and-paste friendly.
21324
21325 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21326
21327         * tests/test-net_if.c: New file.
21328         * modules/net_if-tests: New file.
21329
21330 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21331
21332         pthread: add pthread_spin_destroy
21333         * lib/pthread.in.h (pthread_spin_destroy): New function.
21334
21335 2010-09-19  Bruno Haible  <bruno@clisp.org>
21336
21337         gnulib-tool: Fix --help output.
21338         * gnulib-tool (func_usage): Fix help message.
21339         Reported by Reuben Thomas <rrt@sc3d.org>.
21340
21341 2010-09-18  Jim Meyering  <meyering@redhat.com>
21342
21343         maint.mk: avoid unexpanded \n in two diagnostics
21344         * top/maint.mk (sc_prohibit_always_true_header_tests):
21345         Don't use a literal \n in a halt=... assignment.  It would not be
21346         expanded, and the two \n bytes would appear in the diagnostic output
21347         rather than the desired newline.  Use halt=$$(printf ... instead.
21348         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21349
21350 2010-09-18  Bruno Haible  <bruno@clisp.org>
21351
21352         netinet_in: Doc tweak.
21353         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21354         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21355
21356 2010-09-18  Jim Meyering  <meyering@redhat.com>
21357
21358         init.sh: correct an outdated comment
21359         * tests/init.sh (create_exe_shims_):  s/function/alias/
21360
21361         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21362         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21363         a file named "*.exe" is removed between the glob expansion and the
21364         processing of that oddly named file.
21365
21366 2010-09-17  Eric Blake  <eblake@redhat.com>
21367
21368         mirbsd: add some more support
21369         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21370         in BSD family.
21371         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21372         devices as OpenBSD.
21373         * m4/host-os.m4 (mirbsd): Add MirBSD.
21374
21375         tests: fix unportable assumption on sys/wait.h
21376         * tests/test-sys_wait.c (main): Relax test.
21377         * tests/test-stdlib.c (main): Likewise.
21378
21379         init.sh: accomodate directory with no .exes
21380         * tests/init.sh: Accomodate directory containing only scripts.
21381
21382         tests: avoid compiler warning
21383         * tests/test-stdlib.c (main): Use the variable.
21384
21385         fdutimens, fdutimensat: update signature, again
21386         * lib/utimens.h (gl_futimens): Delete, and move signature...
21387         (fdutimens): ...here.
21388         (fdutimensat): Rearrange signature.
21389         (lutimensat): Rename variable for clarity.
21390         * lib/fdutimensat.c (fdutimensat): Update signature.
21391         * lib/utimens.c (fdutimens): Likewise.
21392         (gl_futimens): Delete.
21393         (utimens, lutimens): Update callers.
21394         * lib/futimens.c (futimens): Likewise.
21395         * tests/test-fdutimensat.c: Likewise.
21396         * tests/test-utimens.c: Likewise.
21397         * tests/test-futimens.h: Update comment.
21398         * NEWS: Mention this.
21399         Suggested by Paul Eggert.
21400
21401 2010-09-17  Bruno Haible  <bruno@clisp.org>
21402
21403         Take over the maintenance of some older macros from Autoconf.
21404         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21405         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21406         GNU Autoconf.
21407         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21408         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21409
21410 2010-09-17  Eric Blake  <eblake@redhat.com>
21411
21412         fdutimensat: drop atflag validation
21413         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21414         with valid fd, to close a race scenario where futimens is
21415         unsupported and FILE was replaced by a symlink.
21416         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21417         accordingly.
21418         Suggested by Paul Eggert.
21419
21420 2010-09-16  Bruno Haible  <bruno@clisp.org>
21421
21422         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21423         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21424
21425 2010-09-16  Bruno Haible  <bruno@clisp.org>
21426
21427         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21428         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21429         login_tty exists.
21430         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21431
21432 2010-09-16  Bruno Haible  <bruno@clisp.org>
21433
21434         login_tty: Make the replacement code work on BSD systems.
21435         * lib/login_tty.c: Include <sys/ioctl.h>.
21436         (login_tty): Use ioctl TIOCSCTTY when available.
21437         * modules/login_tty (Depends-on): Add sys_ioctl.
21438         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21439
21440 2010-09-16  Bruno Haible  <bruno@clisp.org>
21441
21442         login_tty: Stricter unit test.
21443         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21444         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21445         and tcgetsid() after login_tty.
21446         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21447
21448 2010-09-16  Bruno Haible  <bruno@clisp.org>
21449
21450         New module 'tcgetsid'.
21451         * lib/tcgetsid.c: New file.
21452         * m4/tcgetsid.m4: New file.
21453         * modules/tcgetsid: New file.
21454         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21455         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21456         GNULIB_TCGETSID, HAVE_TCGETSID.
21457         * lib/termios.in.h: Include <sys/types.h>.
21458         (tcgetsid): New declaration.
21459         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21460         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21461         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21462         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21463
21464 2010-09-16  Bruno Haible  <bruno@clisp.org>
21465
21466         Tests for module 'termios'.
21467         * modules/termios-c++-tests: New file.
21468         * modules/termios-tests: New file.
21469         * tests/test-termios-c++.cc: New file.
21470         * tests/test-termios.c: New file.
21471
21472         New module 'termios'.
21473         * modules/termios: New file.
21474         * lib/termios.in.h: New file.
21475         * m4/termios_h.m4: New file.
21476         * doc/posix-headers/termios.texi: Mention the new module.
21477
21478 2010-09-16  Eric Blake  <eblake@redhat.com>
21479
21480         fdutimensat: add an atflag parameter
21481         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21482         * lib/utimens.h (fdutimensat): Update prototype.
21483         * tests/test-fdutimensat.c: Adjust test to match.
21484         * NEWS: Document the change.
21485         Suggested by Paul Eggert.
21486
21487 2010-09-16  Bruno Haible  <bruno@clisp.org>
21488
21489         Fix typos in comments.
21490         * lib/striconveh.h: Fix typo in comment.
21491         * lib/login_tty.c (login_tty): Likewise.
21492
21493 2010-09-15  Bruno Haible  <bruno@clisp.org>
21494
21495         stdlib: clarify MirBSD WEXITSTATUS bug
21496         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21497         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21498
21499 2010-09-15  Eric Blake  <eblake@redhat.com>
21500
21501         stdlib: work around MirBSD WEXITSTATUS bug
21502         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21503         * modules/stdlib (Depends-on): Add sys_wait.
21504         * tests/test-sys_wait.c (main): Enhance test.
21505         * tests/test-stdlib.c (main): Likewise.
21506         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21507
21508         docs: mention MacOS issue with WEXITSTATUS(constant)
21509         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21510         issue.
21511         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21512
21513         strnlen: add tests
21514         * modules/strnlen-tests: New file.
21515         * tests/test-strnlen.c: Likewise.
21516
21517 2010-09-14  Bruno Haible  <bruno@clisp.org>
21518
21519         unistr/base: Avoid link errors when module 'libunistring' is also used.
21520         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21521         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21522         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21523         Declare also when HAVE_LIBUNISTRING is set.
21524         Reported by Pádraig Brady <P@draigbrady.com>.
21525
21526 2010-09-14  Eric Blake  <eblake@redhat.com>
21527
21528         test-rawmemchr: make more robust
21529         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21530         (Depends-on, configure.ac): Add needed prerequisites to use it.
21531         * modules/memchr-tests (Files, Depends-on, configure.ac):
21532         Likewise, to avoid implicit reliance on memchr module prereqs.
21533         * tests/test-memchr.c (main): Ensure proper masking.
21534         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21535         reads.
21536
21537         memchr: detect glibc Alpha bug
21538         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21539         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21540         Alpha.
21541         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21542         * tests/test-memchr.c (main): Enhance test.
21543         Reported by Nelson H. F. Beebe.
21544
21545 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21546
21547         fts, getcwd, glob: audit for dirfd returning -1
21548         * lib/fts.c (opendir): Remove #define; no longer used.
21549         (opendirat): New arg PDIR_FD.  All callers changed.
21550         (fts_build, _opendir2): Use new opendirat to avoid the need for
21551         dirfd, or for checking whether dirfd returns a negative value.
21552         Don't use opendir; always use openat followed by fdopendir.
21553         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21554         it.
21555         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21556         returns -1 here.
21557         * modules/fts (Depends-on): Remove dirfd.
21558         * modules/getcwd (Depends-on): Likewise.
21559
21560 2010-09-13  Eric Blake  <eblake@redhat.com>
21561
21562         float: fix broken MirBSD header
21563         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21564         * doc/posix-headers/float.texi (float.h): Document it.
21565
21566 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21567
21568         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21569         * lib/fts.c (opendirat): New arg extra_flags.
21570         (__opendir2): Use it to avoid following symlinks when opening
21571         a directory, if symlinks are not supposed to be followed.  See
21572         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21573
21574         fdopendir: preserve argument fd before returning
21575         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21576         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21577         (fdopendir): Use them, arranging for FD to be open to the same
21578         directory that it was when it started.  (It might be temporarily
21579         closed while fdopendir is running, so this not thread- or
21580         signal-safe.)  Be careful to do the right thing even when file
21581         descriptors are scarce and dup fails with errno == EMFILE.  See
21582         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21583
21584 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21585
21586         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21587         * NEWS: Document change.
21588         * m4/regex.m4: Disable test for regoff_t size.
21589
21590 2010-09-13  Jim Meyering  <meyering@redhat.com>
21591
21592         fts: don't operate on an invalid file descriptor after failed dup
21593         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21594         negative file descriptor.
21595
21596 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21597
21598         savedir: add streamsavedir, deprecate fdsavedir
21599         * NEWS: Mention deprecation of fdsavedir.
21600         * lib/savedir.c (streamsavedir): New extern function, whose name
21601         ends in "savedir" to be consistent with the others.  This differs
21602         from savedirstream in that it doesn't close its argument.  The
21603         next version of GNU tar will use this instead of fdsavedir, to
21604         avoid some race conditions and conserve file descriptors.
21605         (savedirstream): Reimplement as a wrapper around streamsavedir.
21606         (fdsavedir): Add a comment deprecating this function.  As far as
21607         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21608         * lib/savedir.h (streamsavedir): New decl.
21609         (fdsavedir): Add a comment deprecating this.
21610
21611 2010-09-10  Bruno Haible  <bruno@clisp.org>
21612
21613         langinfo: Fix last commit.
21614         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21615         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21616         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21617
21618 2010-09-10  Bruno Haible  <bruno@clisp.org>
21619
21620         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21621         * lib/progreloc.c (O_EXEC): Define fallback.
21622
21623 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21624
21625         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21626         * NEWS: Document recent changes to fcntl-h.
21627         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21628         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21629         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21630         Similarly for O_SEARCH; this last was already true, but not documented.
21631         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21632         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21633         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21634         Likewise.
21635         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21636         is zero, not whether it is defined.
21637         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21638         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21639         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21640
21641 2010-09-10  Bruno Haible  <bruno@clisp.org>
21642
21643         langinfo, nl_langinfo: Fix for IRIX 5.3.
21644         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21645         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21646         HAVE_LANGINFO_YESEXPR.
21647         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21648         HAVE_LANGINFO_YESEXPR.
21649         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21650         HAVE_LANGINFO_T_FMT_AMPM is 0.
21651         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21652         HAVE_LANGINFO_YESEXPR is 0.
21653         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21654         NOEXPR.
21655         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21656         * doc/posix-functions/nl_langinfo.texi: Likewise.
21657         Reported by Eric Blake.
21658
21659 2010-09-10  Bruno Haible  <bruno@clisp.org>
21660
21661         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21662         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21663         on FreeBSD 8.0 and OpenBSD 4.6.
21664         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21665         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21666         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21667         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21668         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21669         ac_includes_default.
21670         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21671
21672 2010-09-09  Eric Blake  <eblake@redhat.com>
21673
21674         strsignal: work around NetBSD bug
21675         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21676         * lib/string.in.h (includes): Likewise.
21677         * doc/posix-functions/strsignal.texi (strsignal): Document the
21678         bug.
21679         Reported by Nelson H. F. Beebe.
21680
21681         gnulib-tool: work with NetBSD /bin/sh
21682         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21683         (func_get_description, func_get_comment, func_get_status)
21684         (func_get_notice, func_get_applicability, func_get_filelist)
21685         (func_get_dependencies, func_get_autoconf_early_snippet)
21686         (func_get_autoconf_snippet, func_get_automake_snippet)
21687         (func_get_include_directive, func_get_link_directive)
21688         (func_get_license, func_get_maintainer, func_import): Avoid
21689         shell syntax errors from parsing syntax extensions.
21690
21691 2010-09-09  Bruno Haible  <bruno@clisp.org>
21692
21693         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21694         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21695         a reliable way to determine whether the 'alias' command works.
21696
21697 2010-09-08  Jim Meyering  <meyering@redhat.com>
21698
21699         init.sh: penalize a set-x-impaired shell; don't disqualify it
21700         * tests/init.sh: Too many shells corrupt application stderr when
21701         you set -x, so we can't afford to disqualify them, since at least
21702         on Irix-6.5, that would disqualify all bourne shells.
21703         Instead, use a two-pass approach.
21704         On the first pass, try to find a shell that meets the stricter
21705         condition that set -x does not corrupt stderr.
21706         If no shell meets the stricter condition, retest each candidate
21707         shell, but without that extra condition.  Finally, when
21708         VERBOSE=yes is requested and set -x might cause trouble, simply
21709         issue a warning and refrain from enabling debug output.
21710
21711 2010-09-08  Eric Blake  <eblake@redhat.com>
21712
21713         unsetenv: fix OpenBSD bug
21714         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21715         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21716         documentation.
21717         Reported by Jim Meyering.
21718
21719         strtod: work around IRIX 6.5 bug
21720         * lib/strtod.c (strtod): Reparse number on shorter string if
21721         exponent parse was invalid.
21722         * tests/test-strtod.c (main): Add check for "0x1p 2".
21723         Reported by Tom G. Christensen.
21724
21725         getopt: optimize previous patch
21726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21727         empty variable.  Speed up awk script.
21728         Reported by Paolo Bonzini.
21729
21730 2010-09-08  Jim Meyering  <meyering@redhat.com>
21731
21732         test.sh: disqualify shells for which set -x corrupts stderr
21733         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21734         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21735         appear in stderr output.  For example, this command:
21736             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21737         prints "P=1" on those two systems:
21738
21739 2010-09-08  Bruno Haible  <bruno@clisp.org>
21740
21741         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21742         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21743         commands, because some shells ignore redirections when there is an
21744         error in the command lookup.
21745         Reported by Eric Blake.
21746
21747 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21748
21749         * lib/regex.h: Fix a mention of `regex_compile' (should be
21750         `re_compile_pattern').
21751         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21752         (re_set_registers): Correct name of parameter in comment.
21753
21754         * doc/regex.texi: Add documentation for missing syntax flags.
21755         Remove commented-out documentation of defunct syntax option
21756         RE_NO_EMPTY_ALTS.
21757         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21758         Add documentation of re_set_registers.
21759         Document trick to re-use a pattern buffer by setting fastmap manually.
21760         Update documentation of struct re_pattern_buffer per public members.
21761         Uncomment documentation of equivalence class operators and
21762         collating symbol operators, since they are now implemented,
21763         Explain leftmost-longest matching in relation to alternatives.
21764         Tidy documentation of substring matching.
21765         Remove POSIX documentation, which is done better in
21766         glibc, and refer the reader there. Keep BSD API documentation, as
21767         that is not readily available elsewhere.
21768
21769 2010-09-07  Eric Blake  <eblake@redhat.com>
21770
21771         getopt: handle POSIXLY_CORRECT set but not exported
21772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21773         export state of POSIXLY_CORRECT, due to bash set -o posix.
21774         Reported by Dustin J. Mitchell.
21775
21776 2010-09-05  Bruno Haible  <bruno@clisp.org>
21777
21778         gnulib-tool: Highlight the changed options.
21779         * gnulib-tool (func_usage): Display the --import, --add-import,
21780         --remove-import explanations in bold font.
21781
21782 2010-09-06  Karl Berry  <karl@gnu.org>
21783
21784         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21785
21786 2010-09-05  Bruno Haible  <bruno@clisp.org>
21787
21788         uniwidth/width: Update comment.
21789         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21790         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21791
21792 2010-09-05  Bruno Haible  <bruno@clisp.org>
21793
21794         isinf, isnan: Relax license.
21795         * modules/isinf (License): Change from GPL to LGPL, with consent from
21796         Ben Pfaff.
21797         * modules/isnan (License): Likewise.
21798         Requested by Ludovic Courtès.
21799
21800 2010-09-04  Bruno Haible  <bruno@clisp.org>
21801
21802         gnulib-tool: Help migration from --import to --add-import or --update.
21803         * gnulib-tool: Emit a verbose error message when --import is used
21804         without any module name.
21805
21806 2010-09-04  Bruno Haible  <bruno@clisp.org>
21807
21808         Update doc about gnulib-tool.
21809         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21810         'gnulib-tool --update' in more detail.
21811         Reported by Eric Blake.
21812
21813 2010-09-04  Bruno Haible  <bruno@clisp.org>
21814
21815         gnulib-tool: Change --import. New options --add/remove-import.
21816         * gnulib-tool: New options --add-import, --remove-import.
21817         (func_usage): Document them.
21818         (have_associative): Define always.
21819         (func_import): In import mode, don't merge the specified settings with
21820         the cached settings. Implement remove-import mode.
21821         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21822         Explain when to use them versus --import.
21823         (Simple update): Use --add-import instead of --import.
21824         * NEWS: Mention the change.
21825
21826 2010-09-04  Bruno Haible  <bruno@clisp.org>
21827
21828         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21829         separate gnulib.mk.
21830
21831 2010-09-04  Bruno Haible  <bruno@clisp.org>
21832
21833         gnulib-tool: Don't talk about CVS any more.
21834         * gnulib-tool (func_usage, func_import): Write "version control"
21835         instead of CVS.
21836
21837 2010-09-04  Jim Meyering  <meyering@redhat.com>
21838
21839         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21840         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21841         false positives (whose names may be ill-chosen) when searching
21842         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21843         would cause a false-positive.
21844
21845         avoid coreutils "make distcheck" failure
21846         Coreutils tests with an absolute build directory name that contains
21847         a space.  Not quoting this directory name caused a failure.
21848         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21849         * tests/test-vc-list-files-cvs.sh: Likewise.
21850
21851 2010-09-04  Bruno Haible  <bruno@clisp.org>
21852
21853         gnulib-tool: Avoid error when run in a package without Makefile.am.
21854         * gnulib-tool: When collecting the m4dirs in a package that does not
21855         have a Makefile.am, eliminate those directories that contain no
21856         gnulib-cache.m4. Fix expression that counts these directories.
21857
21858 2010-09-04  Bruno Haible  <bruno@clisp.org>
21859
21860         update-copyright test: Improve output when perl is missing or too old.
21861         * tests/test-update-copyright.sh: Move test of Perl version down after
21862         the test whether Perl exists. Provide an explanation relating Perl's
21863         error message to Automake's SKIP: message.
21864
21865 2010-09-04  Bruno Haible  <bruno@clisp.org>
21866
21867         Don't augment PATH in TESTS_ENVIRONMENT.
21868         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21869         set abs_aux_dir instead of augmenting PATH.
21870         * modules/vc-list-files-tests (Makefile.am): Likewise.
21871         * tests/test-update-copyright.sh: Augment PATH here.
21872         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21873         path_prepend_.
21874         * tests/test-vc-list-files-git.sh: Likewise.
21875
21876 2010-09-04  Jim Meyering  <meyering@redhat.com>
21877
21878         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21879         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21880
21881 2010-09-04  Bruno Haible  <bruno@clisp.org>
21882
21883         strdup: Fix compilation error in C++ mode.
21884         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21885         the macro.
21886
21887 2010-09-04  Bruno Haible  <bruno@clisp.org>
21888
21889         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21890         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21891         macro into a function.
21892         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21893
21894 2010-09-04  Bruno Haible  <bruno@clisp.org>
21895
21896         Set PATH_SEPARATOR the same way autoconf does.
21897         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21898         the value of PATH_SEPARATOR the same way autoconf-generated configure
21899         scripts do.
21900         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21901         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21902
21903 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21904
21905         Set PATH_SEPARATOR the same way autoconf does.
21906         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21907         the same way autoconf-generated configure scripts do.
21908         * posix-modules: Likewise.
21909
21910 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21911
21912         hash: fix safe_hasher const typo
21913         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21914         const; otherwise, there is a type error later.
21915
21916 2010-09-02  Jim Meyering  <meyering@redhat.com>
21917
21918         test-update-copyright.sh: require perl 5.8.0
21919         * tests/test-update-copyright.sh: Require 5.8.0,
21920         which Tom G. Christensen has confirmed is adequate,
21921         while 5.6.1 is not.
21922
21923 2010-09-02  Eric Blake  <eblake@redhat.com>
21924
21925         tests: init.sh improvements for re-exec'ing with zsh
21926         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21927         -vx through shell re-exec.
21928         Reported by Tom G. Christensen.
21929
21930         wctype: fix typo in previous commit
21931         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21932         Reported by Ludovic Courtès.
21933
21934 2010-09-02  Jim Meyering  <meyering@redhat.com>
21935
21936         test-update-copyright.sh: skip test if Perl is too old
21937         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21938         Reported by Tom G. Christensen.
21939
21940 2010-09-02  Bruno Haible  <bruno@clisp.org>
21941
21942         wctype: Avoid compilation error on IRIX 6.5.30.
21943         * lib/wctype.in.h (iswblank): Declare with a replacement if
21944         REPLACE_ISWBLANK is set.
21945         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21946         declared. Set REPLACE_ISWBLANK.
21947         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21948         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21949         * doc/posix-headers/wctype.texi: Likewise.
21950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21951
21952 2010-09-01  Bruno Haible  <bruno@clisp.org>
21953
21954         New module 'socketlib'.
21955         * modules/socketlib: New file.
21956         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21957         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21958         * modules/sockets (Depends-on): Add socketlib.
21959         Suggested by Sam Steingold <sds@gnu.org>.
21960
21961 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21962
21963         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21964
21965         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21966         when one needs search access to a directory but not read access.
21967         On systems where it is available, it works in some cases where
21968         O_RDONLY does not, namely on directories that are searchable but
21969         not readable, and which need only to be searchable.  If O_SEARCH
21970         is not available, fall back to the traditional method of using
21971         O_RDONLY.
21972
21973         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21974         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21975         when opening a directory that needs only to be searchable.
21976         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21977         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21978         * lib/openat-proc.c (openat_proc_name): Likewise.
21979         * lib/openat.c (openat_needs_fchdir): Likewise.
21980         * lib/save-cwd.c (save_cwd): Likewise.
21981         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21982
21983 2010-08-28  Bruno Haible  <bruno@clisp.org>
21984
21985         New module 'host-cpu-c-abi'.
21986         * modules/host-cpu-c-abi: New file.
21987         * m4/host-cpu-c-abi.m4: New file, based on part of
21988         clisp/src/m4/general.m4.
21989         Requested by Sam Steingold <sds@gnu.org>.
21990
21991 2010-08-31  Eric Blake  <eblake@redhat.com>
21992         and Jim Meyering  <meyering@redhat.com>
21993
21994         hash: factor, and guard against misbehaving hasher function
21995         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21996         of table->hasher's return value.  Also protect against a hash value
21997         so large that adding it to table->bucket results in a NULL pointer.
21998         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21999         Use it in place of open-coded check-and-abort.
22000
22001 2010-08-30  Bruno Haible  <bruno@clisp.org>
22002
22003         hash: silence spurious clang warning
22004         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
22005         Reported by Eric Blake.
22006
22007 2010-08-30  Eric Blake  <eblake@redhat.com>
22008
22009         strstr, memmem, strcasestr: avoid leaked shell message
22010         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
22011         FreeBSD.
22012         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22013         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22014
22015         tests: silence clang warning
22016         * tests/test-malloca.c (do_allocation): Avoid dead store.
22017
22018 2010-08-29  Bruno Haible  <bruno@clisp.org>
22019
22020         gettext: Fix recent mistake.
22021         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
22022
22023 2010-08-29  Bruno Haible  <bruno@clisp.org>
22024
22025         selinux-h: Offer a --without-selinux option.
22026         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
22027         --without-selinux was specified, skip all tests and define
22028         HAVE_SELINUX_SELINUX_H to 0.
22029         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
22030         set LIB_SELINUX to empty.
22031         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
22032         gl_LIBSELINUX. If --without-selinux was specified, replace
22033         selinux/context.h.
22034         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
22035
22036 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22037             Bruno Haible  <bruno@clisp.org>
22038
22039         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22040         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22041         of HAVE_REALLOC.
22042         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22043         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22044         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22045         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22046
22047 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22048             Bruno Haible  <bruno@clisp.org>
22049
22050         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22051         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22052         HAVE_CALLOC.
22053         * lib/xmalloc.c: Update accordingly.
22054         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22055         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22056         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22057
22058 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22059             Bruno Haible  <bruno@clisp.org>
22060
22061         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22062         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22063         HAVE_MALLOC.
22064         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22065         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22066         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22067
22068 2010-08-29  Bruno Haible  <bruno@clisp.org>
22069
22070         Update modules list.
22071         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22072         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22073         (String handling <string.h>): Add astrxfrm.
22074         (File system functions): Add readlinkat.
22075
22076 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22077
22078         Tests for module 'realloc-gnu'.
22079         * modules/realloc-gnu-tests: New file.
22080         * tests/test-realloc-gnu.c: New file.
22081
22082         Tests for module 'calloc-gnu'.
22083         * modules/calloc-gnu-tests: New file.
22084         * tests/test-calloc-gnu.c: New file.
22085
22086         Tests for module 'malloc-gnu'.
22087         * modules/malloc-gnu-tests: New file.
22088         * tests/test-malloc-gnu.c: New file.
22089
22090 2010-08-28  Bruno Haible  <bruno@clisp.org>
22091
22092         Rename module 'realloc' -> 'realloc-gnu'.
22093         * modules/realloc-gnu: New file, copied from modules/realloc.
22094         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22095         obsolete.
22096         * modules/mgetgroups (Depends-on): Update.
22097         * doc/posix-functions/realloc.texi: Update.
22098         * NEWS: Mention the change.
22099
22100         Rename module 'calloc' -> 'calloc-gnu'.
22101         * modules/calloc-gnu: New file, copied from modules/calloc.
22102         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22103         obsolete.
22104         * doc/posix-functions/calloc.texi: Update.
22105         * NEWS: Mention the change.
22106
22107         Rename module 'malloc' -> 'malloc-gnu'.
22108         * modules/malloc-gnu: New file, copied from modules/malloc.
22109         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22110         obsolete.
22111         * modules/argp (Depends-on): Update.
22112         * modules/regex (Depends-on): Update.
22113         * doc/posix-functions/malloc.texi: Update.
22114         * NEWS: Mention the change.
22115
22116 2010-08-28  Eric Blake  <eblake@redhat.com>
22117
22118         pread, pwrite: add missing dependency
22119         * modules/pread (Depends-on): Add extensions.
22120         * modules/pwrite (Depends-on): Likewise.
22121
22122 2010-08-28  Bruno Haible  <bruno@clisp.org>
22123
22124         unistr/u*-strchr: Fix tests dependencies.
22125         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22126         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22127         Reported by Ian Beckwith <ianb@erislabs.net>.
22128
22129 2010-08-28  Bruno Haible  <bruno@clisp.org>
22130
22131         read-file: Don't occupy too much unused memory.
22132         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22133
22134 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22135             Eric Blake  <eblake@redhat.com>
22136             Bruno Haible  <bruno@clisp.org>
22137
22138         read-file: Avoid memory reallocations with regular files.
22139         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22140         (fread_file): With regular files, use the remaining length as the
22141         initial buffer size.  Check against overflow.
22142         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22143         sys_stat.
22144
22145 2010-08-28  Bruno Haible  <bruno@clisp.org>
22146
22147         ftello: Relax license.
22148         * modules/ftello (License): Relax to LGPLv2+.
22149         Reported by Eric Blake.
22150
22151 2010-08-28  Bruno Haible  <bruno@clisp.org>
22152
22153         Avoid relocwrapper link errors due to gnulib replacement functions.
22154         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22155         function.
22156         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22157
22158 2010-08-28  Bruno Haible  <bruno@clisp.org>
22159
22160         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22161         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22162         defined.
22163         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22164         Suggested by Eric Blake.
22165
22166 2010-08-28  Bruno Haible  <bruno@clisp.org>
22167
22168         sys_socket, netdb: Ensure socklen_t gets defined.
22169         * modules/sys_socket (Depends-on): Add socklen.
22170         * modules/netdb (Depends-on): Likewise.
22171         * modules/getaddrinfo (Depends-on): Remove socklen.
22172         * modules/getsockopt (Depends-on): Likewise.
22173         * modules/setsockopt (Depends-on): Likewise.
22174         * tests/test-sys_socket.c: Check that socklen_t is defined.
22175         * tests/test-netdb.c: Likewise.
22176         * m4/socklen.m4: Update comments.
22177         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22178
22179 2010-08-27  Eric Blake  <eblake@redhat.com>
22180
22181         login_tty: add missing dependency
22182         * modules/login_tty (Depends-on): Add pty.
22183
22184 2010-08-26  Eric Blake  <eblake@redhat.com>
22185
22186         lib-symbol-versions: fix m4 quoting
22187         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22188         format for AC_LINK_IFELSE.
22189
22190         glob: fix compile test
22191         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22192
22193         btowc: fix missing file
22194         * modules/btowc (Files): Also ship locale-fr.m4.
22195
22196         lseek: fix link test
22197         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22198         AC_LINK_IFELSE.
22199
22200         include_next: silence autoconf 2.68 warning
22201         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22202         AC_COMPILE_IFELSE as special.
22203         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22204         autoconf < 2.68.
22205
22206         acl: fix compilation test
22207         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22208         AC_COMPILE_IFELSE.
22209
22210 2010-08-26  Bruno Haible  <bruno@clisp.org>
22211
22212         Modernize AC_TRY_RUN invocations.
22213         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22214         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22215         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22216         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22217         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22218         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22219         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22220         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22221         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22222         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22223         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22224         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22225         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22226         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22227         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22228         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22229         gl_MBRLEN_NUL_RETVAL): Likewise.
22230         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22231         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22232         Likewise.
22233         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22234         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22235         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22236         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22237         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22238         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22239         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22240         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22241         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22242         Likewise.
22243         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22244         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22245         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22246         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22247         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22248         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22249         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22250         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22251         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22253
22254 2010-08-26  Bruno Haible  <bruno@clisp.org>
22255
22256         Modernize AC_TRY_LINK invocations.
22257         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22258         AC_TRY_LINK.
22259         * m4/argp.m4 (gl_ARGP): Likewise.
22260         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22261         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22262         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22263         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22264         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22265         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22266         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22267         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22268         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22269         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22270         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22271         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22272         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22273         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22274         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22275         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22276         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22277         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22278         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22279         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22280         Likewise.
22281         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22282         Likewise.
22283         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22284         Likewise.
22285         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22286         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22287         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22288         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22289         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22290         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22291         * m4/servent.m4 (gl_SERVENT): Likewise.
22292         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22293         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22294         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22295         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22296         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22297         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22298         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22299         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22300         * modules/tsearch-tests (configure.ac): Likewise.
22301
22302 2010-08-26  Bruno Haible  <bruno@clisp.org>
22303
22304         Modernize AC_TRY_COMPILE invocations.
22305         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22306         AC_TRY_COMPILE.
22307         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22308         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22309         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22310         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22311         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22312         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22313         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22314         * m4/lock.m4 (gl_LOCK): Likewise.
22315         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22316         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22317         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22318         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22319         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22320         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22321         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22322         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22323         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22324         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22325         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22326         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22327         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22328         extraneous semicolon.
22329
22330 2010-08-26  Jim Meyering  <meyering@redhat.com>
22331
22332         stat-time: relax license LGPL
22333         * modules/stat-time (License): Change from GPL to LGPL,
22334         with consent from all contributors, for use in libguile.
22335         Requested by Ludovic Courtès.
22336
22337 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22338
22339         poll: return immediately on POLLHUP.
22340         * lib/poll.c (poll): Always set timeout before wait_timeout is
22341         computed.
22342
22343 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22344
22345         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22346         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22347         rmdir ("dir/.//"), unlinkat.
22348
22349 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22350
22351         stdbool: avoid spurious failure with modern xlc
22352         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22353
22354 2010-08-24  Bruno Haible  <bruno@clisp.org>
22355
22356         getloadavg: simplify code
22357         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22358         gl_have_func. Update comments.
22359
22360 2010-08-24  Eric Blake  <eblake@redhat.com>
22361
22362         getloadavg: don't define SVR4 on cygwin
22363         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22364         only define SVR4 when -lkvm is required.
22365         Reported by Yaakov Selkowitz.
22366
22367 2010-08-24  Bruno Haible  <bruno@clisp.org>
22368
22369         priv-set: fix comment
22370         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22371
22372 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22373
22374         priv-set: fix comments
22375         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22376         to match code, as suggested by David Bartley in:
22377         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22378
22379 2010-08-23  Eric Blake  <eblake@redhat.com>
22380
22381         stdbool: avoid rejecting clang
22382         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22383         * tests/test-stdbool.c: Enable more tests if using the system
22384         <stdbool.h> instead of the gnulib replacement.
22385         (main): Move xlc bug test to a runtime test for all compilers.
22386         Reported by Anders Kaseorg.
22387
22388         argz: fix shell quoting issue
22389         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22390         Reported by Charles Wilson.
22391
22392 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22393             Erik Faye-Lund <kusmabite@gmail.com>
22394
22395         poll, select: handle ERROR_BROKEN_PIPE.
22396         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22397         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22398         * lib/select.c (win32_compute_revents): Do not mark a pipe
22399         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22400
22401 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22402
22403         fts: allow compilation with C++
22404         * lib/fts_.h: Specify extern "C" linkage with C++.
22405
22406 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22407
22408         Fix gnulib-tool sed script de-commentation for AIX sed.
22409         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22410         sed.
22411
22412 2010-08-17  Eric Blake  <eblake@redhat.com>
22413
22414         test-stddef: test for (some) offsetof bugs
22415         * tests/test-stddef.c: Enhance test to ensure correct type of
22416         offsetof.
22417         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22418         that we are not fixing at this time.
22419
22420 2010-08-15  Bruno Haible  <bruno@clisp.org>
22421
22422         stpncpy: Allow stpncpy to be defined as a macro.
22423         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22424         if it's already correctly declared.
22425         * lib/string.in.h (stpncpy): Undefine before redefining.
22426         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22427
22428 2010-08-14  Bruno Haible  <bruno@clisp.org>
22429
22430         Rename module 'memxfrm' to 'amemxfrm'.
22431         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22432         (amemxfrm): Renamed from memxfrm.
22433         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22434         (amemxfrm): Renamed from memxfrm.
22435         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22436         * NEWS: Mention the change.
22437         * MODULES.html.sh (String handling <string.h>): Update.
22438         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22439         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22440         * lib/unicase/u16-casexfrm.c: Likewise.
22441         * lib/unicase/u32-casexfrm.c: Likewise.
22442         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22443         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22444         * lib/uninorm/u16-normxfrm.c: Likewise.
22445         * lib/uninorm/u32-normxfrm.c: Likewise.
22446         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22447         memxfrm.
22448         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22449         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22450         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22451         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22452         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22453         Suggested by Paul Eggert.
22454
22455 2010-08-14  Bruno Haible  <bruno@clisp.org>
22456
22457         Tests for module 'astrxfrm'.
22458         * modules/astrxfrm-tests: New file.
22459         * tests/test-astrxfrm.c: New file.
22460
22461         New module 'astrxfrm'.
22462         * lib/astrxfrm.h: New file.
22463         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22464         * modules/astrxfrm: New file.
22465
22466 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22467
22468         regex: Tweak doc.
22469         * doc/regex.texi (Overview): Don't mention regex.c.
22470         (GNU Regular Expression Compiling): Likewise.
22471         (Match-end-of-line Operator): Mention 'not_eol'.
22472
22473 2010-08-14  Brian Gough  <bjg@gnu.org>
22474             Bruno Haible  <bruno@clisp.org>
22475
22476         git-merge-changelog: add doc relating to use with bzr and hg.
22477         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22478
22479 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22480
22481         pthread: fix pthread.h creation for srcdir != builddir
22482         * modules/pthread (Makefile.am): Fix the rule to work also in a
22483         non-srcdir build.
22484
22485 2010-08-13  Karl Berry  <karl@gnu.org>
22486
22487         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22488         * doc/posix-*/*: force line break before @url of POSIX
22489         specifications.
22490         Suggested by Werner Lemberg.
22491
22492 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22493
22494         strtod: fix const diagnostic
22495         * lib/strtod.c (strtod): Don't assign const char * to char *,
22496         as this elicits a warning from GCC when warnings are enabled.
22497
22498 2010-08-10  Pádraig Brady <P@draigbrady.com>
22499         and Eric Blake  <eblake@redhat.com>
22500
22501         copy-acl: ignore ENOTSUP on HP-UX
22502         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22503         so that it is available for HP-UX.
22504         * lib/copy-acl.c (qcopy_acl): Use it.
22505         Reported by Patrick M. Callahan.
22506
22507 2010-08-10  Eric Blake  <eblake@redhat.com>
22508
22509         open, chown: relax license
22510         * modules/open (License): Change to LGPLv2+, with consent by all
22511         authors, for use in augeas.
22512         * modules/chown (License): Likewise.
22513         * modules/lchown (Likewise): Likewise.
22514         Requested by Adam Stokes.
22515
22516 2010-08-09  Karl Berry  <karl@gnu.org>
22517
22518         * build-aux/ar-lib: new file, import from Automake.
22519         * config/srclist.txt: autocheck for updates.
22520
22521 2010-08-09  Eric Blake  <eblake@redhat.com>
22522
22523         readlinkat: adjust client modules
22524         * modules/areadlinkat (Depends-on): Use readlinkat, not
22525         symlinkat.
22526         * modules/areadlinkat-with-size (Depends-on): Likewise.
22527
22528         mknod: be more vocal about danger of running tests as root
22529         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22530         root, since that is just asking for problems.
22531         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22532
22533         readlinkat: split into its own module
22534         * modules/symlinkat: Split readlinkat...
22535         * modules/readlinkat: ...into separate module.
22536         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22537         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22538         * lib/symlinkat.c (readlinkat): Move...
22539         * lib/readlinkat.c: ...into new file.
22540         * modules/symlinkat-tests: Split readlinkat test...
22541         * modules/readlinkat-tests: ...into separate module.
22542         * tests/test-symlinkat.c: Split...
22543         * tests/test-readlinkat.c: ...into new file.
22544         * NEWS: Document the split.
22545         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22546         * lib/unistd.in.h (readlinkat): Likewise.
22547         Suggested by Bruno Haible.
22548
22549 2010-08-08  Bruno Haible  <bruno@clisp.org>
22550
22551         memxfrm: Speed up.
22552         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22553         that usually only one call to strxfrm is necessary for each string
22554         part.
22555         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22556
22557 2010-08-07  Karl Berry  <karl@gnu.org>
22558
22559         * doc/posix-headers/limits.texi,
22560         * doc/posix-functions/malloc.texi,
22561         * doc/posix-functions/strsignal.texi: missing @item.
22562         * doc/ld-version-script.texi: spurious leading i.
22563         * doc/regex.texi (Interval Operators): no commas inside @var.
22564
22565 2010-08-01  Bruno Haible  <bruno@clisp.org>
22566
22567         Integrate the regex documentation.
22568         * doc/gnulib.texi: Define 'cn' index.
22569         (Regular expressions): New a chapter that includes regex.texi and
22570         regexprops-generic.texi.
22571         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22572         syntax.
22573
22574         Whitespace cleanup.
22575         * doc/regex.texi: Remove trailing spaces.
22576
22577         Add regex documentation.
22578         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22579         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22580         Written by Kathy A. Hargreaves and Karl Berry.
22581
22582 2010-08-01  Bruno Haible  <bruno@clisp.org>
22583
22584         link: Update documentation.
22585         * doc/posix-functions/link.texi: Update regarding Solaris.
22586
22587 2010-07-31  Bruno Haible  <bruno@clisp.org>
22588
22589         Update modules list.
22590         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22591         (String handling <string.h>): Add memcmp2, memxfrm.
22592         (Container data structures): Add xlist, xsublist, xoset.
22593         (Core language properties): Add alignof, unused-parameter.
22594         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22595         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22596         (Unibyte characters <ctype.h>): New section.
22597         (String handling <string.h>): New section.
22598         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22599         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22600         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22601         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22602         tan, tanh, tanl, y0, y1, yn.
22603         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22604         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22605         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22606         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22607         unlockpt, vdprintf, vdprintf-posix.
22608         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22609         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22610         xconcat-filename.
22611         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22612         getdtablesize, pipe2, pipe2-safer.
22613         (Security): New section.
22614         (Networking functions): Add accept4.
22615         (Signal handling): Add sigpipe.
22616         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22617         mbmemcasecoll.
22618         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22619         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22620         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22621         pipe-filter-ii.
22622         (Misc): Add argp-version-etc, login_tty, parse-duration.
22623
22624 2010-07-31  Bruno Haible  <bruno@clisp.org>
22625
22626         Improve doc in MODULES.html.
22627         * modules/linkat (Description): Add the word "function".
22628         * modules/mkfifo (Description): Likewise.
22629         * modules/mknod (Description): Likewise.
22630         * modules/remove (Description): Likewise.
22631         * modules/renameat (Description): Likewise.
22632         * modules/stat (Description): Likewise.
22633         * modules/symlink (Description): Likewise.
22634         * modules/unlink (Description): Likewise.
22635
22636 2010-07-31  Bruno Haible  <bruno@clisp.org>
22637
22638         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22639         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22640         option --enable/disable-c++ instead of --enable/disable-cxx.
22641         * NEWS: Mention the change.
22642
22643 2010-07-31  Bruno Haible  <bruno@clisp.org>
22644
22645         readlink, areadlink: Relax test a bit.
22646         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22647         alternative to ENOTDIR.
22648         * tests/test-areadlink.h (test_areadlink): Likewise.
22649         Reported by Rainer Tammer.
22650
22651 2010-07-31  Bruno Haible  <bruno@clisp.org>
22652
22653         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22654         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22655         character, perform the search using U_STRCHR.
22656         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22657         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22658         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22659         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22660         Suggested by Paolo Bonzini.
22661
22662 2010-07-31  Bruno Haible  <bruno@clisp.org>
22663
22664         unistr/u*-strstr: Fix dependencies.
22665         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22666         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22667         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22668
22669 2010-07-31  Bruno Haible  <bruno@clisp.org>
22670
22671         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22672         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22673         the beginning of the loop.
22674         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22675         cases in 'switch' statement.
22676
22677         unistr/u8-strchr: Fix several bugs.
22678         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22679         the string. When not found, return NULL, not a pointer near the end.
22680
22681         More tests for unistr/u8-strchr.
22682         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22683         that the function does not read past the first occurrence of the byte
22684         being searched.
22685         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22686         * tests/unistr/test-u16-strchr.c (main): New function.
22687         * tests/unistr/test-u32-strchr.c (main): New function.
22688
22689 2010-07-31  Bruno Haible  <bruno@clisp.org>
22690
22691         posix-modules: Ignore backup files of documentation files.
22692         * posix-modules: grep only through files named *.texi.
22693
22694 2010-07-31  Bruno Haible  <bruno@clisp.org>
22695
22696         symlinkat: Fix documentation.
22697         * doc/posix-functions/readlinkat.texi: Fix module name.
22698
22699 2010-07-31  Bruno Haible  <bruno@clisp.org>
22700
22701         fchownat: Replace also when chown has the trailing slash bug.
22702         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22703         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22704         introduced on 2010-04-10.
22705         Reported by Rainer Tammer.
22706
22707 2010-07-31  Bruno Haible  <bruno@clisp.org>
22708
22709         linkat: Work around AIX 7.1 bug.
22710         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22711         whether linkat handles trailing slash correctly. If not, replace linkat
22712         and define LINKAT_TRAILING_SLASH_BUG.
22713         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22714         check whether (fd1,file1) points to a directory if file1 or file2 ends
22715         in a slash. Code taken from lib/link.c.
22716         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22717         Reported by Rainer Tammer.
22718
22719 2010-07-31  Bruno Haible  <bruno@clisp.org>
22720
22721         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22722         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22723         This disables an xlc optimization that was causing wrong test results.
22724         Reported by Rainer Tammer.
22725
22726 2010-07-31  Bruno Haible  <bruno@clisp.org>
22727
22728         iconv: Work around AIX 6.1..7.1 bug.
22729         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22730         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22731         cross-compiling, guess no on all versions of AIX.
22732         Reported by Rainer Tammer.
22733
22734 2010-07-31  Bruno Haible  <bruno@clisp.org>
22735
22736         readlink: Relax test a bit.
22737         * tests/test-readlink.h (test_readlink): Allow different errno value
22738         when readlink is called with a file name that ends in / and refers to
22739         a file.
22740         Suggested by Eric Blake.
22741         Reported by Rainer Tammer.
22742
22743 2010-07-31  Bruno Haible  <bruno@clisp.org>
22744
22745         copysign: Does not require -lm on glibc systems.
22746         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22747         gl_COMMON_DOUBLE_MATHFUNC.
22748         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22749
22750 2010-07-31  Bruno Haible  <bruno@clisp.org>
22751
22752         duplocale: Work around AIX 7.1 bug.
22753         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22754         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22755         * lib/duplocale.c (rpl_duplocale): Update comment.
22756         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22757         Reported by Rainer Tammer.
22758
22759 2010-07-30  Bruno Haible  <bruno@clisp.org>
22760
22761         dirfd: Avoid link error on AIX 7.1.
22762         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22763         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22764         exist, set REPLACE_DIRFD.
22765         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22766         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22767         * doc/posix-functions/dirfd.texi: Update.
22768         Reported by Rainer Tammer.
22769
22770 2010-07-30  Eric Blake  <eblake@redhat.com>
22771
22772         strtod: next round of AIX fixes
22773         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22774         exponent.
22775         * tests/test-strtod.c (main): Enhance tests.
22776         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22777         Reported by Rainer Tammer.
22778
22779         futimens: fix configure check
22780         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22781         Reported by Bruno Haible.
22782
22783 2010-07-30  Bruno Haible  <bruno@clisp.org>
22784
22785         getline: Update regarding AIX.
22786         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22787         Reported by Rainer Tammer.
22788
22789 2010-07-30  Bruno Haible  <bruno@clisp.org>
22790
22791         wcwidth: Drop replacement on AIX 7.
22792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22793         AIX 7.
22794         Reported by Rainer Tammer.
22795
22796 2010-07-30  Bruno Haible  <bruno@clisp.org>
22797
22798         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22799         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22800         a 'char *'.
22801         Reported by Rainer Tammer.
22802
22803 2010-07-30  Bruno Haible  <bruno@clisp.org>
22804
22805         unlink: Update regarding AIX.
22806         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22807         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22808         Reported by Rainer Tammer.
22809
22810 2010-07-30  Bruno Haible  <bruno@clisp.org>
22811
22812         symlink: Update regarding AIX.
22813         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22814         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22815         Reported by Rainer Tammer.
22816
22817 2010-07-30  Bruno Haible  <bruno@clisp.org>
22818
22819         strndup: Update regarding AIX.
22820         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22821         AIX 7.
22822         Reported by Rainer Tammer.
22823
22824 2010-07-30  Bruno Haible  <bruno@clisp.org>
22825
22826         stat: Update regarding AIX.
22827         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22828         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22829         Reported by Rainer Tammer.
22830
22831 2010-07-30  Bruno Haible  <bruno@clisp.org>
22832
22833         truncl: Fix autoconf test.
22834         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22835         whether truncl works.
22836         Reported by Rainer Tammer.
22837
22838 2010-07-30  Bruno Haible  <bruno@clisp.org>
22839
22840         round: Update regarding AIX.
22841         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22842         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22843         Reported by Rainer Tammer.
22844
22845 2010-07-30  Bruno Haible  <bruno@clisp.org>
22846
22847         rename: Update regarding AIX.
22848         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22849         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22850         Reported by Rainer Tammer.
22851
22852 2010-07-30  Bruno Haible  <bruno@clisp.org>
22853
22854         printf.m4: Update regarding AIX.
22855         * m4/printf.m4: Update comments regarding AIX.
22856         Reported by Rainer Tammer.
22857
22858 2010-07-30  Bruno Haible  <bruno@clisp.org>
22859
22860         iconv: Update regarding AIX.
22861         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22862         AIX 7.
22863         Reported by Rainer Tammer.
22864
22865 2010-07-30  Bruno Haible  <bruno@clisp.org>
22866
22867         getopt: Update regarding AIX.
22868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22869         no on AIX.
22870         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22871         Reported by Rainer Tammer.
22872
22873 2010-07-30  Bruno Haible  <bruno@clisp.org>
22874
22875         ldexpl; Update regarding AIX.
22876         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22877         on AIX 7.
22878         Reported by Rainer Tammer.
22879
22880 2010-07-30  Bruno Haible  <bruno@clisp.org>
22881
22882         frexpl: Update regarding AIX.
22883         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22884         on AIX 7.
22885         Reported by Rainer Tammer.
22886
22887 2010-07-30  Bruno Haible  <bruno@clisp.org>
22888
22889         open, fopen: Update regarding AIX.
22890         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22891         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22892         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22893         * doc/posix-functions/fopen.texi: Likewise.
22894         Reported by Rainer Tammer.
22895
22896 2010-07-30  Bruno Haible  <bruno@clisp.org>
22897
22898         chown: Update doc regarding AIX.
22899         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22900         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22901         Reported by Rainer Tammer.
22902
22903 2010-07-30  Eric Blake  <eblake@redhat.com>
22904
22905         strtod: fix bug in replacement function on AIX
22906         * lib/strtod.c (strtod): Special case broken "0x" parse in
22907         underlying strtod.
22908         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22909         * doc/posix-functions/strtod.texi (strtod): Likewise.
22910         Reported by Rainer Tammer.
22911
22912 2010-07-30  Bruno Haible  <bruno@clisp.org>
22913
22914         mbrlen: Fix cross-compilation guess for AIX.
22915         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22916         guess. Leftover from 2008-12-22.
22917
22918 2010-07-30  Bruno Haible  <bruno@clisp.org>
22919
22920         mbrtowc: Fix cross-compilation guess for AIX.
22921         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22922         guess. Leftover from 2008-12-21.
22923
22924 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22925
22926         init.sh: work around trap limitation of some shells
22927         * tests/init.sh (setup_): Move exit trap outside of shell function.
22928
22929 2010-07-29  Eric Blake  <eblake@redhat.com>
22930
22931         strtod: aid debugging
22932         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22933         understanding why strtod is rejected.
22934
22935 2010-07-28  Bruno Haible  <bruno@clisp.org>
22936
22937         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22938         * lib/unistr/u8-chr.c: Include <string.h>.
22939         * tests/unistr/test-u8-chr.c: Likewise.
22940         * tests/unistr/test-u16-chr.c: Likewise.
22941         * tests/unistr/test-u32-chr.c: Likewise.
22942         * tests/unistr/test-u8-strchr.c: Likewise.
22943         * tests/unistr/test-u16-strchr.c: Likewise.
22944         * tests/unistr/test-u32-strchr.c: Likewise.
22945         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22946         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22947         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22948         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22949
22950 2010-07-28  Bruno Haible  <bruno@clisp.org>
22951
22952         Use spaces for indentation, not tabs.
22953         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22954
22955 2010-07-27  Bruno Haible  <bruno@clisp.org>
22956
22957         mbspcasecmp: Fix function specification.
22958         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22959         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22960         Reported by Eric Blake <eblake@redhat.com>.
22961
22962 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22963
22964         timespec: use cast and not conditional, as truncation isn't possible
22965         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22966         instead of a conditional.  Comment about the situation in more detail.
22967         This undoes most of the 2009-10-29 patch.
22968
22969 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22970
22971         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22972         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22973         * lib/unistr/u8-strchr.c: Likewise.
22974         * modules/unistr/u8-chr: Depend on memchr.
22975
22976         unistr/u*-strchr: add tests
22977         * modules/unistr/u8-strchr-tests: New file.
22978         * modules/unistr/u16-strchr-tests: New file.
22979         * modules/unistr/u32-strchr-tests: New file.
22980         * tests/unistr/test-strchr.h: New file.
22981         * tests/unistr/test-u8-strchr.c: New file.
22982         * tests/unistr/test-u16-strchr.c: New file.
22983         * tests/unistr/test-u32-strchr.c: New file.
22984
22985         unistr/u*-chr: test multibyte sequences more
22986         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22987         test vector.
22988         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22989         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22990         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22991
22992         unistr/u*-chr: test multibyte sequences
22993         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22994
22995         unistr/u*-chr: prepare for multibyte tests
22996         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22997         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22998         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22999         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
23000         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
23001         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
23002
23003 2010-07-18  Bruno Haible  <bruno@clisp.org>
23004
23005         unistr/u8-strchr: Optimize non-ASCII argument case.
23006         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
23007         because the first byte often matches anyway.
23008         Reported by Pádraig Brady <P@draigbrady.com>.
23009
23010 2010-07-15  Karl Berry  <karl@gnu.org>
23011
23012         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
23013
23014 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
23015
23016         getcwd: on Solaris, work better if ancestors are inaccessible
23017         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
23018         buffer and size, try again with a large buffer.  This works better
23019         on Solaris, since its getcwd succeeds even if the path to the root
23020         is inaccessible, and this is helpful in common cases such as .zfs
23021         hidden directories.  Problem reported by J Chapman Flack in
23022         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
23023         Use system getcwd if it's declared, not merely if it's partly
23024         working; use the partly-working test only to avoid needless effort
23025         if the system getcwd fails.
23026         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
23027         comment that was already obsolete and is now even more obsolete.
23028         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
23029         now might call strdup.
23030
23031 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
23032
23033         pthread: Add enough so that coreutils/src/sort.c compiles.
23034         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
23035         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
23036         gnulib. Include <sched.h> and <time.h>, as per POSIX.
23037         Include <sys/types.h>, in case it defines pthread_t.
23038         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
23039         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23040         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23041         (pthread_rwlockattr_t, pthread_spinlock_t):
23042         New typedefs, if HAVE_PTHREAD_T is not defined.
23043         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23044         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23045         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23046         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23047         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23048         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23049         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23050         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23051         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23052         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23053         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23054         New macros.
23055         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23056         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23057         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
23058         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
23059         (pthread_spin_unlock): New dummy functions.
23060         (pthread_create): Return EAGAIN; don't set errno.
23061         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23062         require AC_C_INLINE.
23063         * modules/pthread (Depends-on): Add sched, time.
23064         (pthread.h): Use AM_V_GEN.
23065
23066 2010-07-13  Bruno Haible  <bruno@clisp.org>
23067
23068         striconveh: Don't malloc memory if the result buffer is sufficient.
23069         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23070         buffer if its size is sufficient.
23071         Reported by Ludovic Courtès <ludo@gnu.org>.
23072
23073 2010-07-13  Bruno Haible  <bruno@clisp.org>
23074
23075         strtod: Add safety check.
23076         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23077
23078 2010-07-12  Bruno Haible  <bruno@clisp.org>
23079
23080         Unify tests that set gl_cv_func_ldexpl_no_libm.
23081         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23082         gl_FUNC_LDEXPL.
23083         (gl_FUNC_LDEXPL): Invoke it.
23084         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23085
23086 2010-07-12  Bruno Haible  <bruno@clisp.org>
23087
23088         Unify tests that set gl_cv_func_ldexp_no_libm.
23089         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23090         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23091         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23092         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23093         * modules/strtod (Files): Add m4/ldexp.m4.
23094
23095 2010-07-12  Bruno Haible  <bruno@clisp.org>
23096
23097         Unify tests that set gl_cv_func_frexpl_no_libm.
23098         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23099         gl_FUNC_FREXPL_NO_LIBM.
23100         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23101         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23102
23103 2010-07-12  Bruno Haible  <bruno@clisp.org>
23104
23105         Unify tests that set gl_cv_func_frexp_no_libm.
23106         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23107         gl_FUNC_FREXP_NO_LIBM.
23108         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23109         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23110
23111 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23112
23113         memcoll: clarify sizes versus lengths, document better, and tweak perf
23114         * lib/memcoll.c (strcoll_loop, memcoll0):
23115         Improve quality of descriptive comments.  Name variables
23116         consistently as to whether they are lengths (which do not include
23117         terminating null) versus sizes (which do).
23118         * lib/xmemcoll.c (xmemcoll0): Likewise.
23119         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23120         returned when s1size == 0; this is easier to compile and saves
23121         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23122
23123 2010-07-12  Bruno Haible  <bruno@clisp.org>
23124
23125         Tests for module '_Exit'.
23126         * modules/_Exit-tests: New file.
23127         * tests/test-_Exit.sh: New file.
23128         * tests/test-_Exit.c: New file.
23129
23130         New module '_Exit'.
23131         * lib/stdlib.in.h (__attribute__): New macro.
23132         (_Exit): New declaration.
23133         * lib/_Exit.c: New file.
23134         * m4/_Exit.m4: New file.
23135         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23136         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23137         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23138         * modules/_Exit: New file.
23139         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23140         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23141
23142 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23143
23144         strtod: make it more-accurate typically, and don't require libm
23145         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23146         Include limits.h.  Don't include string.h.
23147         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23148         (locale_isspace): New function, so that no casts are needed to
23149         check whether *s is a space.
23150         (ldexp): Provide an unused dummy if not available.
23151         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23152         (strtod): Use them.  This implementation prefers to use the
23153         underlying strtod if available, falling back on our own code
23154         only to fix known bugs.  This is more likely to produce an
23155         accurate result.  Also, it avoids the use of libm functions.
23156         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23157         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23158         was absent, but it caused a test failure with coreutils.
23159         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23160         with libm.
23161         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23162         * modules/strtod-tests (Makefile.am): Likewise.
23163
23164 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23165             Bruno Haible  <bruno@clisp.org>
23166
23167         unistr/u8-strchr: Optimize ASCII argument case.
23168         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23169
23170 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23171
23172         (x)memcoll: minor tweaks
23173         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23174         is after the type that it qualifies.
23175         (memcoll0): Likewise.
23176         * lib/memcoll.h (memcoll0): Likewise.
23177         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23178         * lib/xmemcoll.h (xmemcoll0): Likewise.
23179         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23180         differs from memcoll in that the NUL byte is part of the argument.
23181         Omit the abort-checks, as performance is a real issue here.  Plus,
23182         the checks were wrong anyway (an off-by-one error).  Omit local
23183         variable 'diff', as it's a bit clearer that way.
23184         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23185         no longer needed.
23186
23187 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23188
23189         (x)memcoll: speedup when input is known to be NUL delimited
23190         * lib/memcoll.c: Include stdlib.
23191         (memcoll0): New function.
23192         (strcoll_loop): New function, refactored for use in both memcoll
23193         and memcoll0.
23194         * lib/memcoll.h (memcoll0): Add prototype.
23195         * lib/xmemcoll.c (xmemcoll0): New function.
23196         (collate_error): New function, refactored for use in both xmemcoll
23197         and xmemcoll0.
23198         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23199         * m4/memcoll.m4: add inline invocation.
23200
23201 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23202
23203         * build-aux/bootstrap: Remove any local translations
23204         from the translation project synchronization directory,
23205         so that local only translations are not distributed.
23206
23207 2010-07-04  Bruno Haible  <bruno@clisp.org>
23208
23209         fsusage: Clarify which code applies to which platforms.
23210         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23211         platform.
23212         * lib/fsusage.c (get_fs_usage): Likewise.
23213
23214 2010-07-04  Bruno Haible  <bruno@clisp.org>
23215
23216         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23217         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23218         Reported by Martin Lambers <marlam@marlam.de>.
23219
23220 2010-07-04  Jim Meyering  <meyering@redhat.com>
23221
23222         hash: once again explicitly disallow insertion of NULL
23223         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23224         inserting a NULL pointer cannot work with these functions.
23225         Add a comment with details.
23226         This reverts part of the 2010-07-01 commit, 5bef1a35
23227         "hash: extend module to deal with non-pointer keys".
23228
23229 2010-07-01  Bruno Haible  <bruno@clisp.org>
23230
23231         stdbool: Update doc.
23232         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23233         Info from Christian Weisgerber <naddy@mips.inka.de>.
23234
23235 2010-07-01  Jim Meyering  <meyering@redhat.com>
23236
23237         hash: extend module to deal with non-pointer keys
23238         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23239         but that allows insertion of non-pointer entries.
23240         Do not disallow an ENTRY value of NULL.
23241         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23242         * lib/hash.h (hash_insert0): Declare.
23243
23244 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23245
23246         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23247         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23248         not present (i.e. with autoconf 2.59 and when using gettextize, not
23249         gnulib), require AC_GNU_SOURCE instead.
23250
23251 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23252
23253         idpriv-drop: Fix tests.
23254         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23255         not to the test-idpriv-droptemp program.
23256
23257 2010-06-29  Bruno Haible  <bruno@clisp.org>
23258
23259         string: Fix syntax error with g++ 2.96.
23260         * lib/string.in.h (__pure__): Remove definition.
23261         (_GL_ATTRIBUTE_PURE): New macro.
23262         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23263         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23264         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23265
23266 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23267
23268         unitypes: Fix bug introduced on 2010-05-18.
23269         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23270
23271 2010-06-22  Eric Blake  <eblake@redhat.com>
23272
23273         memmem: slight optimization
23274         * lib/str-two-way.h (critical_factorization): Update comments.
23275         Reduce work during factorization phase.
23276         Reported by Carlos Bueno <carlos@bueno.org>.
23277
23278 2010-06-21  Bruno Haible  <bruno@clisp.org>
23279
23280         Fix HAVE_CALLOC_POSIX misnomer.
23281         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23282         !HAVE_CALLOC_POSIX.
23283         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23284         HAVE_CALLOC_POSIX.
23285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23286         instead of HAVE_CALLOC_POSIX.
23287         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23288         HAVE_CALLOC_POSIX.
23289
23290         Use modern idiom for calloc() replacement.
23291         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23292         AC_FUNC_CALLOC.
23293         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23294         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23295         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23296         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23297         (gl_REPLACE_CALLOC): New macro.
23298
23299 2010-06-21  Bruno Haible  <bruno@clisp.org>
23300
23301         Fix HAVE_REALLOC_POSIX misnomer.
23302         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23303         !HAVE_REALLOC_POSIX.
23304         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23305         HAVE_REALLOC_POSIX.
23306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23307         instead of HAVE_REALLOC_POSIX.
23308         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23309         HAVE_REALLOC_POSIX.
23310
23311         Use modern idiom for realloc() replacement.
23312         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23313         AC_FUNC_REALLOC.
23314         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23315         Autoconf's AC_FUNC_REALLOC.
23316         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23317         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23318         (gl_REPLACE_REALLOC): New macro.
23319         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23320
23321 2010-06-21  Bruno Haible  <bruno@clisp.org>
23322
23323         Fix HAVE_MALLOC_POSIX misnomer.
23324         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23325         !HAVE_MALLOC_POSIX.
23326         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23327         HAVE_MALLOC_POSIX.
23328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23329         instead of HAVE_MALLOC_POSIX.
23330         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23331         HAVE_MALLOC_POSIX.
23332
23333         Use modern idiom for malloc() replacement.
23334         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23335         AC_FUNC_MALLOC.
23336         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23337         Autoconf's AC_FUNC_MALLOC.
23338         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23339         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23340         (gl_REPLACE_MALLOC): New macro.
23341         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23342
23343 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23344
23345         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23346         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23347         This macro takes 3 arguments, not 4.
23348
23349 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23350
23351         ipv6: fix detection under mingw
23352         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23353         in6_addr.
23354
23355 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23356
23357         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23358         that strtod() works when cross-compiling to a glibc version known
23359         to work.
23360
23361 2010-06-15  Bruno Haible  <bruno@clisp.org>
23362
23363         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23364
23365 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23366
23367         select: Correct timeout.
23368         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23369
23370 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23371
23372         git-version-gen: init shell var to avoid env var influence
23373         * build-aux/git-version-gen (v): Init shell var to empty.
23374
23375 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23376
23377         priv-set: Don't assume that priv.h exists merely because getppriv does.
23378         See Jan Andersen's bug report about AIX 5L in
23379         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23380         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23381         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23382         * lib/priv-set.h: Likewise.
23383         * tests/test-priv-set.c: Likewise.
23384
23385 2010-06-13  Bruno Haible  <bruno@clisp.org>
23386
23387         relocatable: Make it easier to test whether to install wrappers.
23388         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23389         RELOCATABLE_VIA_WRAPPER.
23390
23391 2010-06-13  Bruno Haible  <bruno@clisp.org>
23392
23393         gnulib-tool: Display specified modules and dependencies differently.
23394         * gnulib-tool (func_show_module_list): New function.
23395         (func_import, func_create_testdir): Invoke it.
23396         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23397
23398 2010-06-13  Bruno Haible  <bruno@clisp.org>
23399
23400         gnulib-tool: Align code of func_import and func_create_testdir.
23401         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23402         specified_modules.
23403
23404 2010-06-12  Jim Meyering  <meyering@redhat.com>
23405
23406         test-inttostr: avoid spurious failure on Solaris 9
23407         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23408         to accept "%ju".  Reported by Bruno Haible.
23409
23410 2010-06-11  Jim Meyering  <meyering@redhat.com>
23411
23412         test-sys_socket: mark variables as used more readably
23413         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23414         as "used" explicitly via (void) statement casts.  This is more
23415         readable than using them in an artificial return expression.
23416         Suggestion from Bruno Haible.
23417
23418 2010-06-11  Bruno Haible  <bruno@clisp.org>
23419
23420         Avoid some more warnings from "gcc -Wwrite-strings".
23421         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23422         to 'const char *'.
23423         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23424         * tests/test-c-strcasestr.c (main): Likewise.
23425         * tests/test-mbscasestr1.c (main): Likewise.
23426         * tests/test-mbscasestr2.c (main): Likewise.
23427         * tests/test-memmem.c (main): Likewise.
23428         * tests/test-strstr.c (main): Likewise.
23429         * tests/test-strcasestr.c (main): Likewise.
23430
23431 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23432
23433         init.sh: change framework_failure_ to fail with status 99, not 1
23434         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23435         automake's parallel-tests rule that this is an unexpected failure,
23436         even if the test is listed in XFAIL_TESTS.
23437
23438 2010-06-11  Jim Meyering  <meyering@redhat.com>
23439
23440         test-inttostr: avoid warnings about 4-6KB literal strings
23441         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23442         Include "macros.h", for its definition of ASSERT.
23443         (CK): s/assert/ASSERT/
23444         * modules/inttostr-tests (Files): Add macros.h.
23445
23446         init.sh: don't use $ME_ or skip_ before they are defined
23447         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23448         their first uses.  Also hoist their companions: warn_, fail_,
23449         framework_failure_, $stderr_fileno.  Prompted by a patch from
23450         Stefano Lattarini.
23451
23452         test-sys_socket: avoid set-but-not-used warnings from gcc
23453         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23454         avoid warning about set-but-not-used variables.
23455
23456         test-xvasprintf: avoid 'const' discard warnings
23457         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23458         "const" when assigning from literal strings.
23459         (test_xasprintf): Add "void" in function argument list to placate
23460         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23461
23462         tests: avoid compilation warnings in argmatch and exclude tests...
23463         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23464         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23465         Since it always exits, declare with the "noreturn" attribute.
23466         * tests/test-argmatch.c: Likewise.
23467
23468         tests: avoid 'const' discard warnings in mbsstr tests
23469         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23470         * tests/test-mbsstr2.c (main): Likewise.
23471
23472         test-verify: avoid warning from gcc's -Wmissing-declarations
23473         * tests/test-verify.c (function): Declare to be static.
23474
23475         test-inttostr.c: include <string.h> for use of strcmp
23476         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23477
23478         test-linkat: avoid failed assertion on "other" architectures
23479         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23480         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23481         sparc: https://bugs.launchpad.net/bugs/591968
23482
23483 2010-06-11  Jim Meyering  <meyering@redhat.com>
23484
23485         printf.m4: avoid autoconf's "Expanded Before Required" warning
23486         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23487         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23488         autoconf warning.
23489
23490 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23491
23492         Replacement header templates are now named with ".in", not "_".
23493         * doc/gnulib-intro.texi: Correct.
23494
23495 2010-06-10  Jim Meyering  <meyering@redhat.com>
23496
23497         inttostr-tests: depend on snprintf, not snprintf-posix
23498         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23499         snprintf-posix, to avoid this aclocal failure:
23500           missing file gnulib-tests/vasnprintf.c
23501           configure.ac:45: error: expected source file, required through \
23502           AC_LIBSOURCES, not found
23503
23504 2010-06-10  Jim Meyering  <meyering@redhat.com>
23505
23506         inttostr: add a new function, inttostr, and tests
23507         The namesake function was not available.  The existence of the
23508         template file, inttostr.c makes its addition nontrivial.
23509         * lib/anytostr.c: Rename from inttostr.c.
23510         (anytostr): Rename from inttostr.
23511         * lib/inttostr.c: New file.
23512         * modules/inttostr (Files): Add anytostr.c.
23513         (Makefile.am): Set lib_SOURCES instead of ...
23514         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23515         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23516         * lib/offtostr.c: Likewise.
23517         * lib/uinttostr.c: Likewise.
23518         * lib/umaxtostr.c: Likewise.
23519         * modules/inttostr-tests: New file.
23520         * tests/test-inttostr.c: New file.  Test these functions.
23521
23522 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23523             Bruno Haible  <bruno@clisp.org>
23524
23525         Add "Extending Gnulib" chapter to manual.
23526         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23527         chapter.
23528         (Extending Gnulib): New chapter.
23529         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23530         chapter.
23531
23532 2010-06-09  Bruno Haible  <bruno@clisp.org>
23533
23534         Avoid relocwrapper link errors due to gnulib replacement functions.
23535         * lib/areadlink.c: Use the system's malloc, realloc functions.
23536         (areadlink): Set errno to ENOMEM explicitly.
23537         * modules/areadlink (Depends-on): Remove malloc-posix.
23538         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23539
23540 2010-06-09  Bruno Haible  <bruno@clisp.org>
23541
23542         Avoid relocwrapper link errors due to gnulib replacement functions.
23543         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23544         * lib/malloca.c: Likewise.
23545         * lib/relocatable.c: Likewise.
23546         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23547         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23548         * lib/setenv.c: Use the system's malloc, realloc functions.
23549         * lib/strerror.c: Use the system's sprintf function.
23550         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23551
23552 2010-06-04  Bruno Haible  <bruno@clisp.org>
23553
23554         Prefer documented low-level autoconf macro names.
23555         * m4/lib-link.m4: Use m4_translit instead of translit.
23556         * m4/environ.m4: Likewise.
23557         * m4/mathfunc.m4: Likewise.
23558         * m4/onceonly.m4: Likewise.
23559         * m4/stdint.m4: Likewise.
23560         Suggested by Eric Blake.
23561
23562 2010-06-04  Martin Lambers  <marlam@marlam.de>
23563             Bruno Haible  <bruno@clisp.org>
23564
23565         havelib: Allow library names with '+' characters.
23566         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23567         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23568
23569 2010-06-09  Bruno Haible  <bruno@clisp.org>
23570
23571         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23572         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23573         realloc failed.
23574
23575 2010-06-08  Peter Simons  <simons@cryp.to>
23576
23577         maint.mk: make the news-check rule more configurable
23578         * top/maint.mk (news-check-lines-spec): New variable.
23579         (news-check): Use "sed -n 1,10p" in place of "head".
23580
23581 2010-06-07  Jim Meyering  <meyering@redhat.com>
23582
23583         do-release-commit-and-tag: fix typo in --help
23584         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23585
23586         regex: avoid new dead-code warning with gcc-4.6.0
23587         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23588         if-block containing a while-loop.  It's been unused for at least
23589         5 years.
23590
23591 2010-06-05  Bruno Haible  <bruno@clisp.org>
23592
23593         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23594         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23595
23596 2010-06-04  Bruno Haible  <bruno@clisp.org>
23597
23598         Update to GNU gettext 0.18.1.
23599         * modules/gettext (configure.ac): Require gettext infrastructure from
23600         version 0.18.1.
23601
23602 2010-06-03  Bruno Haible  <bruno@clisp.org>
23603
23604         Don't use AC_LIBOBJ with file names in subdirectories.
23605         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23606         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23607         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23608         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23609         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23610         gl_LIBUNISTRING_LIBSOURCE.
23611         (Makefile.am): Augment lib_SOURCES here, conditionally.
23612         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23613
23614 2010-06-03  Bruno Haible  <bruno@clisp.org>
23615
23616         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23617         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23618         expansion does not end with a newline.
23619         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23620         unnecessary newline.
23621
23622 2010-06-03  Bruno Haible  <bruno@clisp.org>
23623
23624         Reduce dependencies.
23625         * tests/test-quotearg.h: New file, extracted from
23626         tests/test-quotearg.c.
23627         * tests/test-quotearg-simple.c: New file, extracted from
23628         tests/test-quotearg.c.
23629         * tests/test-quotearg.c: Don't include <ctype.h>.
23630         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23631         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23632         use_quote_double_quotes, use_quotearg_colon): Moved to
23633         tests/test-quotearg.h.
23634         (results_g, flag_results, custom_quotes, custom_results): Moved
23635         to tests/test-quotearg-simple.c.
23636         (main): Moved the part that does not depend on gettext to
23637         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23638         performed.
23639         * modules/quotearg-simple: New file.
23640         * modules/quotearg-simple-tests: New file.
23641         * modules/quotearg (Depends-on): Add quotearg-simple.
23642         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23643         (Files): Add tests/test-quotearg.h.
23644         Reported by Paolo Bonzini.
23645
23646 2010-06-03  Bruno Haible  <bruno@clisp.org>
23647
23648         Reduce dependencies.
23649         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23650
23651 2010-06-03  Bruno Haible  <bruno@clisp.org>
23652
23653         time: Undefine more broken macros.
23654         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23655         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23656         Reported by Eric Blake.
23657
23658 2010-06-03  Bruno Haible  <bruno@clisp.org>
23659
23660         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23661         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23662         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23663         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23664         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23665         Reported by Ludovic Courtès <ludo@gnu.org>.
23666
23667 2010-06-02  Eric Blake  <eblake@redhat.com>
23668
23669         time: work with mingw + pthreads-win32 library
23670         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23671         if timespec is defined only in pthread.h.
23672         * modules/time (Makefile.am): Substitute it.
23673         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23674         <pthread.h>, when needed.
23675         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23676         from the library.
23677
23678 2010-05-31  Bruno Haible  <bruno@clisp.org>
23679
23680         Avoid expanding two macros in the wrong order.
23681         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23682         gl_LIBUNISTRING if it is defined.
23683         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23684         autoconf >= 2.64.
23685         Reported by Ludovic Courtès <ludo@gnu.org>.
23686
23687 2010-05-27  Jim Meyering  <meyering@redhat.com>
23688
23689         maint.mk: also prohibit "#undef" of always-defined symbols
23690         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23691         Allow more than one space before the symbol name.
23692         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23693         the regexp uses alternation.
23694
23695 2010-05-26  Eric Blake  <eblake@redhat.com>
23696
23697         maint.mk: avoid echo -e
23698         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23699         Convert all uses of echo -* to printf.
23700         Reported by Matthias Bolte.
23701
23702 2010-05-25  Bruno Haible  <bruno@clisp.org>
23703
23704         Update to GNU gettext 0.18, part 2.
23705         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23706         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23707
23708 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23709
23710         Add missing include in test-pwrite.c.
23711         * tests/test-pwrite.c: Include string.h, for strcmp.
23712
23713 2010-05-24  Bruno Haible  <bruno@clisp.org>
23714
23715         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23716
23717 2010-05-24  Bruno Haible  <bruno@clisp.org>
23718
23719         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23720         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23721         iconveh_error argument.
23722         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23723         U_STRCONV_TO_LOCALE.
23724         * lib/unistr/u16-strcoll.c: Likewise.
23725         * lib/unistr/u32-strcoll.c: Likewise.
23726         * modules/unistr/u8-strcoll (Depends-on): Add
23727         uniconv/u8-strconv-to-enc, localcharset. Remove
23728         uniconv/u8-strconv-to-locale.
23729         (configure.ac): Bump version number.
23730         * modules/unistr/u16-strcoll (Depends-on): Add
23731         uniconv/u16-strconv-to-enc, localcharset. Remove
23732         uniconv/u16-strconv-to-locale.
23733         (configure.ac): Bump version number.
23734         * modules/unistr/u32-strcoll (Depends-on): Add
23735         uniconv/u32-strconv-to-enc, localcharset. Remove
23736         uniconv/u32-strconv-to-locale.
23737         (configure.ac): Bump version number.
23738
23739 2010-05-24  Bruno Haible  <bruno@clisp.org>
23740
23741         Avoid a test failure on NetBSD 5.0.
23742         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23743         an iconv() bug.
23744
23745 2010-05-24  Bruno Haible  <bruno@clisp.org>
23746
23747         Adjust #include directive style.
23748         * modules/regex (Includes): Recommend to write <regex.h>.
23749
23750 2010-05-24  Bruno Haible  <bruno@clisp.org>
23751
23752         regex: Don't require alloca.
23753         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23754         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23755         only inside if (0).
23756
23757 2010-05-23  Jim Meyering  <meyering@redhat.com>
23758
23759         test-renameat.c: include <sys/stat.h>
23760         * tests/test-renameat.c: Include <sys/stat.h>; required for
23761         definition of S_IS* macros.
23762
23763 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23764
23765         Update maintainer documentation for 'relocatable-prog' module.
23766         * doc/relocatable-maint.texi: Update.
23767         Comments by Bruno Haible.
23768
23769 2010-05-23  Bruno Haible  <bruno@clisp.org>
23770
23771         git-merge-changelog: Enable --split-merged-entry by default.
23772         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23773         (usage): Don't mention this option any more.
23774         Reported by Ralf Wildenhues.
23775
23776 2010-05-23  Jim Meyering  <meyering@redhat.com>
23777
23778         test-pwrite: do not leave behind a test file named "out"
23779         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23780         The trivial-looking use of init.sh is really necessary.
23781         It ensures that the temporary file, "out", is created in
23782         a temporary directory, and removed upon termination.
23783         * tests/test-pwrite.sh: Re-add file.
23784         * modules/pwrite-tests: Reference it.
23785
23786 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23787
23788         Fix output redirection buglet in init.sh.
23789         * tests/init.sh: Fix redirection of stderr.
23790
23791 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23792
23793         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23794
23795 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23796
23797         * modules/valgrind-tests: New file.
23798         * m4/valgrind-tests.m4: New file.
23799         * doc/valgrind-tests.texi: New file.
23800         * doc/gnulib.texi (Running self-tests under valgrind): New
23801         section.
23802
23803 2010-05-19  Bruno Haible  <bruno@clisp.org>
23804
23805         Clean up dead code in recent commit.
23806         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23807         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23808         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23809         Suggested by Paolo Bonzini.
23810
23811 2010-05-19  Bruno Haible  <bruno@clisp.org>
23812
23813         Avoid valgrind error reports from libunistring.
23814         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23815         * modules/libunistring (Files): Add it.
23816         * modules/libunistring-optional (Files): Likewise.
23817
23818 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23819             Bruno Haible  <bruno@clisp.org>
23820
23821         New module 'libunistring-optional'.
23822         * modules/libunistring-optional: New file.
23823         * m4/libunistring-base.m4: New file.
23824         * m4/libunistring-optional.m4: New file.
23825         * lib/unicase.in.h: Renamed from lib/unicase.h.
23826         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23827         * lib/unictype.in.h: Renamed from lib/unictype.h.
23828         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23829         * lib/uniname.in.h: Renamed from lib/uniname.h.
23830         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23831         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23832         * lib/unistr.in.h: Renamed from lib/unistr.h.
23833         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23834         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23835         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23836         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23837         gl_LIBUNISTRING. If the library was found, determine the installed
23838         version and set LIBUNISTRING_VERSION.
23839         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23840         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23841         handle a configuration option --with-included-libunistring.
23842         * modules/libunistring (Files): Add m4/absolute-header.m4.
23843         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23844         Add m4/libunistring-base.m4.
23845         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23846         (Makefile.am): Build unicase.h from unicase.in.h.
23847         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23848         Add m4/libunistring-base.m4.
23849         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23850         (Makefile.am): Build uniconv.h from uniconv.in.h.
23851         * modules/unictype/base (Files): Use unictype.in.h instead of
23852         unictype.h. Add m4/libunistring-base.m4.
23853         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23854         (Makefile.am): Build unictype.h from unictype.in.h.
23855         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23856         Add m4/libunistring-base.m4.
23857         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23858         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23859         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23860         Add m4/libunistring-base.m4.
23861         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23862         (Makefile.am): Build uniname.h from uniname.in.h.
23863         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23864         Add m4/libunistring-base.m4.
23865         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23866         (Makefile.am): Build uninorm.h from uninorm.in.h.
23867         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23868         unistdio.h. Add m4/libunistring-base.m4.
23869         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23870         (Makefile.am): Build unistdio.h from unistdio.in.h.
23871         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23872         Add m4/libunistring-base.m4.
23873         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23874         (Makefile.am): Build unistr.h from unistr.in.h.
23875         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23876         Add m4/libunistring-base.m4.
23877         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23878         (Makefile.am): Build unitypes.h from unitypes.in.h.
23879         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23880         Add m4/libunistring-base.m4.
23881         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23882         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23883         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23884         uniwidth.h. Add m4/libunistring-base.m4.
23885         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23886         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23887         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23888         instead of augmenting lib_SOURCES.
23889         * modules/unicase/empty-suffix-context: Likewise.
23890         * modules/unicase/locale-language: Likewise.
23891         * modules/unicase/tolower: Likewise.
23892         * modules/unicase/totitle: Likewise.
23893         * modules/unicase/toupper: Likewise.
23894         * modules/unicase/u8-casecmp: Likewise.
23895         * modules/unicase/u8-casecoll: Likewise.
23896         * modules/unicase/u8-casefold: Likewise.
23897         * modules/unicase/u8-casexfrm: Likewise.
23898         * modules/unicase/u8-ct-casefold: Likewise.
23899         * modules/unicase/u8-ct-tolower: Likewise.
23900         * modules/unicase/u8-ct-totitle: Likewise.
23901         * modules/unicase/u8-ct-toupper: Likewise.
23902         * modules/unicase/u8-is-cased: Likewise.
23903         * modules/unicase/u8-is-casefolded: Likewise.
23904         * modules/unicase/u8-is-lowercase: Likewise.
23905         * modules/unicase/u8-is-titlecase: Likewise.
23906         * modules/unicase/u8-is-uppercase: Likewise.
23907         * modules/unicase/u8-prefix-context: Likewise.
23908         * modules/unicase/u8-suffix-context: Likewise.
23909         * modules/unicase/u8-tolower: Likewise.
23910         * modules/unicase/u8-totitle: Likewise.
23911         * modules/unicase/u8-toupper: Likewise.
23912         * modules/unicase/u16-casecmp: Likewise.
23913         * modules/unicase/u16-casecoll: Likewise.
23914         * modules/unicase/u16-casefold: Likewise.
23915         * modules/unicase/u16-casexfrm: Likewise.
23916         * modules/unicase/u16-ct-casefold: Likewise.
23917         * modules/unicase/u16-ct-tolower: Likewise.
23918         * modules/unicase/u16-ct-totitle: Likewise.
23919         * modules/unicase/u16-ct-toupper: Likewise.
23920         * modules/unicase/u16-is-cased: Likewise.
23921         * modules/unicase/u16-is-casefolded: Likewise.
23922         * modules/unicase/u16-is-lowercase: Likewise.
23923         * modules/unicase/u16-is-titlecase: Likewise.
23924         * modules/unicase/u16-is-uppercase: Likewise.
23925         * modules/unicase/u16-prefix-context: Likewise.
23926         * modules/unicase/u16-suffix-context: Likewise.
23927         * modules/unicase/u16-tolower: Likewise.
23928         * modules/unicase/u16-totitle: Likewise.
23929         * modules/unicase/u16-toupper: Likewise.
23930         * modules/unicase/u32-casecmp: Likewise.
23931         * modules/unicase/u32-casecoll: Likewise.
23932         * modules/unicase/u32-casefold: Likewise.
23933         * modules/unicase/u32-casexfrm: Likewise.
23934         * modules/unicase/u32-ct-casefold: Likewise.
23935         * modules/unicase/u32-ct-tolower: Likewise.
23936         * modules/unicase/u32-ct-totitle: Likewise.
23937         * modules/unicase/u32-ct-toupper: Likewise.
23938         * modules/unicase/u32-is-cased: Likewise.
23939         * modules/unicase/u32-is-casefolded: Likewise.
23940         * modules/unicase/u32-is-lowercase: Likewise.
23941         * modules/unicase/u32-is-titlecase: Likewise.
23942         * modules/unicase/u32-is-uppercase: Likewise.
23943         * modules/unicase/u32-prefix-context: Likewise.
23944         * modules/unicase/u32-suffix-context: Likewise.
23945         * modules/unicase/u32-tolower: Likewise.
23946         * modules/unicase/u32-totitle: Likewise.
23947         * modules/unicase/u32-toupper: Likewise.
23948         * modules/unicase/ulc-casecmp: Likewise.
23949         * modules/unicase/ulc-casecoll: Likewise.
23950         * modules/unicase/ulc-casexfrm: Likewise.
23951         * modules/uniconv/u8-conv-from-enc: Likewise.
23952         * modules/uniconv/u8-conv-to-enc: Likewise.
23953         * modules/uniconv/u8-strconv-from-enc: Likewise.
23954         * modules/uniconv/u8-strconv-from-locale: Likewise.
23955         * modules/uniconv/u8-strconv-to-enc: Likewise.
23956         * modules/uniconv/u8-strconv-to-locale: Likewise.
23957         * modules/uniconv/u16-conv-from-enc: Likewise.
23958         * modules/uniconv/u16-conv-to-enc: Likewise.
23959         * modules/uniconv/u16-strconv-from-enc: Likewise.
23960         * modules/uniconv/u16-strconv-from-locale: Likewise.
23961         * modules/uniconv/u16-strconv-to-enc: Likewise.
23962         * modules/uniconv/u16-strconv-to-locale: Likewise.
23963         * modules/uniconv/u32-conv-from-enc: Likewise.
23964         * modules/uniconv/u32-conv-to-enc: Likewise.
23965         * modules/uniconv/u32-strconv-from-enc: Likewise.
23966         * modules/uniconv/u32-strconv-from-locale: Likewise.
23967         * modules/uniconv/u32-strconv-to-enc: Likewise.
23968         * modules/uniconv/u32-strconv-to-locale: Likewise.
23969         * modules/unictype/bidicategory-byname: Likewise.
23970         * modules/unictype/bidicategory-name: Likewise.
23971         * modules/unictype/bidicategory-of: Likewise.
23972         * modules/unictype/bidicategory-test: Likewise.
23973         * modules/unictype/block-list: Likewise.
23974         * modules/unictype/block-test: Likewise.
23975         * modules/unictype/category-C: Likewise.
23976         * modules/unictype/category-Cc: Likewise.
23977         * modules/unictype/category-Cf: Likewise.
23978         * modules/unictype/category-Cn: Likewise.
23979         * modules/unictype/category-Co: Likewise.
23980         * modules/unictype/category-Cs: Likewise.
23981         * modules/unictype/category-L: Likewise.
23982         * modules/unictype/category-Ll: Likewise.
23983         * modules/unictype/category-Lm: Likewise.
23984         * modules/unictype/category-Lo: Likewise.
23985         * modules/unictype/category-Lt: Likewise.
23986         * modules/unictype/category-Lu: Likewise.
23987         * modules/unictype/category-M: Likewise.
23988         * modules/unictype/category-Mc: Likewise.
23989         * modules/unictype/category-Me: Likewise.
23990         * modules/unictype/category-Mn: Likewise.
23991         * modules/unictype/category-N: Likewise.
23992         * modules/unictype/category-Nd: Likewise.
23993         * modules/unictype/category-Nl: Likewise.
23994         * modules/unictype/category-No: Likewise.
23995         * modules/unictype/category-P: Likewise.
23996         * modules/unictype/category-Pc: Likewise.
23997         * modules/unictype/category-Pd: Likewise.
23998         * modules/unictype/category-Pe: Likewise.
23999         * modules/unictype/category-Pf: Likewise.
24000         * modules/unictype/category-Pi: Likewise.
24001         * modules/unictype/category-Po: Likewise.
24002         * modules/unictype/category-Ps: Likewise.
24003         * modules/unictype/category-S: Likewise.
24004         * modules/unictype/category-Sc: Likewise.
24005         * modules/unictype/category-Sk: Likewise.
24006         * modules/unictype/category-Sm: Likewise.
24007         * modules/unictype/category-So: Likewise.
24008         * modules/unictype/category-Z: Likewise.
24009         * modules/unictype/category-Zl: Likewise.
24010         * modules/unictype/category-Zp: Likewise.
24011         * modules/unictype/category-Zs: Likewise.
24012         * modules/unictype/category-and: Likewise.
24013         * modules/unictype/category-and-not: Likewise.
24014         * modules/unictype/category-byname: Likewise.
24015         * modules/unictype/category-name: Likewise.
24016         * modules/unictype/category-none: Likewise.
24017         * modules/unictype/category-of: Likewise.
24018         * modules/unictype/category-or: Likewise.
24019         * modules/unictype/category-test: Likewise.
24020         * modules/unictype/combining-class: Likewise.
24021         * modules/unictype/ctype-alnum: Likewise.
24022         * modules/unictype/ctype-alpha: Likewise.
24023         * modules/unictype/ctype-blank: Likewise.
24024         * modules/unictype/ctype-cntrl: Likewise.
24025         * modules/unictype/ctype-digit: Likewise.
24026         * modules/unictype/ctype-graph: Likewise.
24027         * modules/unictype/ctype-lower: Likewise.
24028         * modules/unictype/ctype-print: Likewise.
24029         * modules/unictype/ctype-punct: Likewise.
24030         * modules/unictype/ctype-space: Likewise.
24031         * modules/unictype/ctype-upper: Likewise.
24032         * modules/unictype/ctype-xdigit: Likewise.
24033         * modules/unictype/decimal-digit: Likewise.
24034         * modules/unictype/digit: Likewise.
24035         * modules/unictype/mirror: Likewise.
24036         * modules/unictype/numeric: Likewise.
24037         * modules/unictype/property-alphabetic: Likewise.
24038         * modules/unictype/property-ascii-hex-digit: Likewise.
24039         * modules/unictype/property-bidi-arabic-digit: Likewise.
24040         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24041         * modules/unictype/property-bidi-block-separator: Likewise.
24042         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24043         * modules/unictype/property-bidi-common-separator: Likewise.
24044         * modules/unictype/property-bidi-control: Likewise.
24045         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24046         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24047         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24048         * modules/unictype/property-bidi-european-digit: Likewise.
24049         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24050         * modules/unictype/property-bidi-left-to-right: Likewise.
24051         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24052         * modules/unictype/property-bidi-other-neutral: Likewise.
24053         * modules/unictype/property-bidi-pdf: Likewise.
24054         * modules/unictype/property-bidi-segment-separator: Likewise.
24055         * modules/unictype/property-bidi-whitespace: Likewise.
24056         * modules/unictype/property-byname: Likewise.
24057         * modules/unictype/property-combining: Likewise.
24058         * modules/unictype/property-composite: Likewise.
24059         * modules/unictype/property-currency-symbol: Likewise.
24060         * modules/unictype/property-dash: Likewise.
24061         * modules/unictype/property-decimal-digit: Likewise.
24062         * modules/unictype/property-default-ignorable-code-point: Likewise.
24063         * modules/unictype/property-deprecated: Likewise.
24064         * modules/unictype/property-diacritic: Likewise.
24065         * modules/unictype/property-extender: Likewise.
24066         * modules/unictype/property-format-control: Likewise.
24067         * modules/unictype/property-grapheme-base: Likewise.
24068         * modules/unictype/property-grapheme-extend: Likewise.
24069         * modules/unictype/property-grapheme-link: Likewise.
24070         * modules/unictype/property-hex-digit: Likewise.
24071         * modules/unictype/property-hyphen: Likewise.
24072         * modules/unictype/property-id-continue: Likewise.
24073         * modules/unictype/property-id-start: Likewise.
24074         * modules/unictype/property-ideographic: Likewise.
24075         * modules/unictype/property-ids-binary-operator: Likewise.
24076         * modules/unictype/property-ids-trinary-operator: Likewise.
24077         * modules/unictype/property-ignorable-control: Likewise.
24078         * modules/unictype/property-iso-control: Likewise.
24079         * modules/unictype/property-join-control: Likewise.
24080         * modules/unictype/property-left-of-pair: Likewise.
24081         * modules/unictype/property-line-separator: Likewise.
24082         * modules/unictype/property-logical-order-exception: Likewise.
24083         * modules/unictype/property-lowercase: Likewise.
24084         * modules/unictype/property-math: Likewise.
24085         * modules/unictype/property-non-break: Likewise.
24086         * modules/unictype/property-not-a-character: Likewise.
24087         * modules/unictype/property-numeric: Likewise.
24088         * modules/unictype/property-other-alphabetic: Likewise.
24089         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24090         * modules/unictype/property-other-grapheme-extend: Likewise.
24091         * modules/unictype/property-other-id-continue: Likewise.
24092         * modules/unictype/property-other-id-start: Likewise.
24093         * modules/unictype/property-other-lowercase: Likewise.
24094         * modules/unictype/property-other-math: Likewise.
24095         * modules/unictype/property-other-uppercase: Likewise.
24096         * modules/unictype/property-paired-punctuation: Likewise.
24097         * modules/unictype/property-paragraph-separator: Likewise.
24098         * modules/unictype/property-pattern-syntax: Likewise.
24099         * modules/unictype/property-pattern-white-space: Likewise.
24100         * modules/unictype/property-private-use: Likewise.
24101         * modules/unictype/property-punctuation: Likewise.
24102         * modules/unictype/property-quotation-mark: Likewise.
24103         * modules/unictype/property-radical: Likewise.
24104         * modules/unictype/property-sentence-terminal: Likewise.
24105         * modules/unictype/property-soft-dotted: Likewise.
24106         * modules/unictype/property-space: Likewise.
24107         * modules/unictype/property-terminal-punctuation: Likewise.
24108         * modules/unictype/property-test: Likewise.
24109         * modules/unictype/property-titlecase: Likewise.
24110         * modules/unictype/property-unassigned-code-value: Likewise.
24111         * modules/unictype/property-unified-ideograph: Likewise.
24112         * modules/unictype/property-uppercase: Likewise.
24113         * modules/unictype/property-variation-selector: Likewise.
24114         * modules/unictype/property-white-space: Likewise.
24115         * modules/unictype/property-xid-continue: Likewise.
24116         * modules/unictype/property-xid-start: Likewise.
24117         * modules/unictype/property-zero-width: Likewise.
24118         * modules/unictype/scripts: Likewise.
24119         * modules/unictype/syntax-c-ident: Likewise.
24120         * modules/unictype/syntax-c-whitespace: Likewise.
24121         * modules/unictype/syntax-java-ident: Likewise.
24122         * modules/unictype/syntax-java-whitespace: Likewise.
24123         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24124         * modules/unilbrk/u8-width-linebreaks: Likewise.
24125         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24126         * modules/unilbrk/u16-width-linebreaks: Likewise.
24127         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24128         * modules/unilbrk/u32-width-linebreaks: Likewise.
24129         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24130         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24131         * modules/uniname/uniname: Likewise.
24132         * modules/uninorm/canonical-decomposition: Likewise.
24133         * modules/uninorm/composition: Likewise.
24134         * modules/uninorm/decomposing-form: Likewise.
24135         * modules/uninorm/decomposition: Likewise.
24136         * modules/uninorm/filter: Likewise.
24137         * modules/uninorm/nfc: Likewise.
24138         * modules/uninorm/nfd: Likewise.
24139         * modules/uninorm/nfkc: Likewise.
24140         * modules/uninorm/nfkd: Likewise.
24141         * modules/uninorm/u8-normalize: Likewise.
24142         * modules/uninorm/u8-normcmp: Likewise.
24143         * modules/uninorm/u8-normcoll: Likewise.
24144         * modules/uninorm/u8-normxfrm: Likewise.
24145         * modules/uninorm/u16-normalize: Likewise.
24146         * modules/uninorm/u16-normcmp: Likewise.
24147         * modules/uninorm/u16-normcoll: Likewise.
24148         * modules/uninorm/u16-normxfrm: Likewise.
24149         * modules/uninorm/u32-normalize: Likewise.
24150         * modules/uninorm/u32-normcmp: Likewise.
24151         * modules/uninorm/u32-normcoll: Likewise.
24152         * modules/uninorm/u32-normxfrm: Likewise.
24153         * modules/unistdio/u8-asnprintf: Likewise.
24154         * modules/unistdio/u8-asprintf: Likewise.
24155         * modules/unistdio/u8-snprintf: Likewise.
24156         * modules/unistdio/u8-sprintf: Likewise.
24157         * modules/unistdio/u8-u8-asnprintf: Likewise.
24158         * modules/unistdio/u8-u8-asprintf: Likewise.
24159         * modules/unistdio/u8-u8-snprintf: Likewise.
24160         * modules/unistdio/u8-u8-sprintf: Likewise.
24161         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24162         * modules/unistdio/u8-u8-vasprintf: Likewise.
24163         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24164         * modules/unistdio/u8-u8-vsprintf: Likewise.
24165         * modules/unistdio/u8-vasnprintf: Likewise.
24166         * modules/unistdio/u8-vasprintf: Likewise.
24167         * modules/unistdio/u8-vsnprintf: Likewise.
24168         * modules/unistdio/u8-vsprintf: Likewise.
24169         * modules/unistdio/u16-asnprintf: Likewise.
24170         * modules/unistdio/u16-asprintf: Likewise.
24171         * modules/unistdio/u16-snprintf: Likewise.
24172         * modules/unistdio/u16-sprintf: Likewise.
24173         * modules/unistdio/u16-u16-asnprintf: Likewise.
24174         * modules/unistdio/u16-u16-asprintf: Likewise.
24175         * modules/unistdio/u16-u16-snprintf: Likewise.
24176         * modules/unistdio/u16-u16-sprintf: Likewise.
24177         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24178         * modules/unistdio/u16-u16-vasprintf: Likewise.
24179         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24180         * modules/unistdio/u16-u16-vsprintf: Likewise.
24181         * modules/unistdio/u16-vasnprintf: Likewise.
24182         * modules/unistdio/u16-vasprintf: Likewise.
24183         * modules/unistdio/u16-vsnprintf: Likewise.
24184         * modules/unistdio/u16-vsprintf: Likewise.
24185         * modules/unistdio/u32-asnprintf: Likewise.
24186         * modules/unistdio/u32-asprintf: Likewise.
24187         * modules/unistdio/u32-snprintf: Likewise.
24188         * modules/unistdio/u32-sprintf: Likewise.
24189         * modules/unistdio/u32-u32-asnprintf: Likewise.
24190         * modules/unistdio/u32-u32-asprintf: Likewise.
24191         * modules/unistdio/u32-u32-snprintf: Likewise.
24192         * modules/unistdio/u32-u32-sprintf: Likewise.
24193         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24194         * modules/unistdio/u32-u32-vasprintf: Likewise.
24195         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24196         * modules/unistdio/u32-u32-vsprintf: Likewise.
24197         * modules/unistdio/u32-vasnprintf: Likewise.
24198         * modules/unistdio/u32-vasprintf: Likewise.
24199         * modules/unistdio/u32-vsnprintf: Likewise.
24200         * modules/unistdio/u32-vsprintf: Likewise.
24201         * modules/unistdio/ulc-asnprintf: Likewise.
24202         * modules/unistdio/ulc-asprintf: Likewise.
24203         * modules/unistdio/ulc-fprintf: Likewise.
24204         * modules/unistdio/ulc-snprintf: Likewise.
24205         * modules/unistdio/ulc-sprintf: Likewise.
24206         * modules/unistdio/ulc-vasnprintf: Likewise.
24207         * modules/unistdio/ulc-vasprintf: Likewise.
24208         * modules/unistdio/ulc-vfprintf: Likewise.
24209         * modules/unistdio/ulc-vsnprintf: Likewise.
24210         * modules/unistdio/ulc-vsprintf: Likewise.
24211         * modules/unistr/u8-check: Likewise.
24212         * modules/unistr/u8-chr: Likewise.
24213         * modules/unistr/u8-cmp: Likewise.
24214         * modules/unistr/u8-cmp2: Likewise.
24215         * modules/unistr/u8-cpy: Likewise.
24216         * modules/unistr/u8-cpy-alloc: Likewise.
24217         * modules/unistr/u8-endswith: Likewise.
24218         * modules/unistr/u8-mblen: Likewise.
24219         * modules/unistr/u8-mbsnlen: Likewise.
24220         * modules/unistr/u8-mbtouc: Likewise.
24221         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24222         * modules/unistr/u8-mbtoucr: Likewise.
24223         * modules/unistr/u8-move: Likewise.
24224         * modules/unistr/u8-next: Likewise.
24225         * modules/unistr/u8-prev: Likewise.
24226         * modules/unistr/u8-set: Likewise.
24227         * modules/unistr/u8-startswith: Likewise.
24228         * modules/unistr/u8-stpcpy: Likewise.
24229         * modules/unistr/u8-stpncpy: Likewise.
24230         * modules/unistr/u8-strcat: Likewise.
24231         * modules/unistr/u8-strchr: Likewise.
24232         * modules/unistr/u8-strcmp: Likewise.
24233         * modules/unistr/u8-strcoll: Likewise.
24234         * modules/unistr/u8-strcpy: Likewise.
24235         * modules/unistr/u8-strcspn: Likewise.
24236         * modules/unistr/u8-strdup: Likewise.
24237         * modules/unistr/u8-strlen: Likewise.
24238         * modules/unistr/u8-strmblen: Likewise.
24239         * modules/unistr/u8-strmbtouc: Likewise.
24240         * modules/unistr/u8-strncat: Likewise.
24241         * modules/unistr/u8-strncmp: Likewise.
24242         * modules/unistr/u8-strncpy: Likewise.
24243         * modules/unistr/u8-strnlen: Likewise.
24244         * modules/unistr/u8-strpbrk: Likewise.
24245         * modules/unistr/u8-strrchr: Likewise.
24246         * modules/unistr/u8-strspn: Likewise.
24247         * modules/unistr/u8-strstr: Likewise.
24248         * modules/unistr/u8-strtok: Likewise.
24249         * modules/unistr/u8-to-u16: Likewise.
24250         * modules/unistr/u8-to-u32: Likewise.
24251         * modules/unistr/u8-uctomb: Likewise.
24252         * modules/unistr/u16-check: Likewise.
24253         * modules/unistr/u16-chr: Likewise.
24254         * modules/unistr/u16-cmp: Likewise.
24255         * modules/unistr/u16-cmp2: Likewise.
24256         * modules/unistr/u16-cpy: Likewise.
24257         * modules/unistr/u16-cpy-alloc: Likewise.
24258         * modules/unistr/u16-endswith: Likewise.
24259         * modules/unistr/u16-mblen: Likewise.
24260         * modules/unistr/u16-mbsnlen: Likewise.
24261         * modules/unistr/u16-mbtouc: Likewise.
24262         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24263         * modules/unistr/u16-mbtoucr: Likewise.
24264         * modules/unistr/u16-move: Likewise.
24265         * modules/unistr/u16-next: Likewise.
24266         * modules/unistr/u16-prev: Likewise.
24267         * modules/unistr/u16-set: Likewise.
24268         * modules/unistr/u16-startswith: Likewise.
24269         * modules/unistr/u16-stpcpy: Likewise.
24270         * modules/unistr/u16-stpncpy: Likewise.
24271         * modules/unistr/u16-strcat: Likewise.
24272         * modules/unistr/u16-strchr: Likewise.
24273         * modules/unistr/u16-strcmp: Likewise.
24274         * modules/unistr/u16-strcoll: Likewise.
24275         * modules/unistr/u16-strcpy: Likewise.
24276         * modules/unistr/u16-strcspn: Likewise.
24277         * modules/unistr/u16-strdup: Likewise.
24278         * modules/unistr/u16-strlen: Likewise.
24279         * modules/unistr/u16-strmblen: Likewise.
24280         * modules/unistr/u16-strmbtouc: Likewise.
24281         * modules/unistr/u16-strncat: Likewise.
24282         * modules/unistr/u16-strncmp: Likewise.
24283         * modules/unistr/u16-strncpy: Likewise.
24284         * modules/unistr/u16-strnlen: Likewise.
24285         * modules/unistr/u16-strpbrk: Likewise.
24286         * modules/unistr/u16-strrchr: Likewise.
24287         * modules/unistr/u16-strspn: Likewise.
24288         * modules/unistr/u16-strstr: Likewise.
24289         * modules/unistr/u16-strtok: Likewise.
24290         * modules/unistr/u16-to-u32: Likewise.
24291         * modules/unistr/u16-to-u8: Likewise.
24292         * modules/unistr/u16-uctomb: Likewise.
24293         * modules/unistr/u32-check: Likewise.
24294         * modules/unistr/u32-chr: Likewise.
24295         * modules/unistr/u32-cmp: Likewise.
24296         * modules/unistr/u32-cmp2: Likewise.
24297         * modules/unistr/u32-cpy: Likewise.
24298         * modules/unistr/u32-cpy-alloc: Likewise.
24299         * modules/unistr/u32-endswith: Likewise.
24300         * modules/unistr/u32-mblen: Likewise.
24301         * modules/unistr/u32-mbsnlen: Likewise.
24302         * modules/unistr/u32-mbtouc: Likewise.
24303         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24304         * modules/unistr/u32-mbtoucr: Likewise.
24305         * modules/unistr/u32-move: Likewise.
24306         * modules/unistr/u32-next: Likewise.
24307         * modules/unistr/u32-prev: Likewise.
24308         * modules/unistr/u32-set: Likewise.
24309         * modules/unistr/u32-startswith: Likewise.
24310         * modules/unistr/u32-stpcpy: Likewise.
24311         * modules/unistr/u32-stpncpy: Likewise.
24312         * modules/unistr/u32-strcat: Likewise.
24313         * modules/unistr/u32-strchr: Likewise.
24314         * modules/unistr/u32-strcmp: Likewise.
24315         * modules/unistr/u32-strcoll: Likewise.
24316         * modules/unistr/u32-strcpy: Likewise.
24317         * modules/unistr/u32-strcspn: Likewise.
24318         * modules/unistr/u32-strdup: Likewise.
24319         * modules/unistr/u32-strlen: Likewise.
24320         * modules/unistr/u32-strmblen: Likewise.
24321         * modules/unistr/u32-strmbtouc: Likewise.
24322         * modules/unistr/u32-strncat: Likewise.
24323         * modules/unistr/u32-strncmp: Likewise.
24324         * modules/unistr/u32-strncpy: Likewise.
24325         * modules/unistr/u32-strnlen: Likewise.
24326         * modules/unistr/u32-strpbrk: Likewise.
24327         * modules/unistr/u32-strrchr: Likewise.
24328         * modules/unistr/u32-strspn: Likewise.
24329         * modules/unistr/u32-strstr: Likewise.
24330         * modules/unistr/u32-strtok: Likewise.
24331         * modules/unistr/u32-to-u16: Likewise.
24332         * modules/unistr/u32-to-u8: Likewise.
24333         * modules/unistr/u32-uctomb: Likewise.
24334         * modules/uniwbrk/u8-wordbreaks: Likewise.
24335         * modules/uniwbrk/u16-wordbreaks: Likewise.
24336         * modules/uniwbrk/u32-wordbreaks: Likewise.
24337         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24338         * modules/uniwbrk/wordbreak-property: Likewise.
24339         * modules/uniwidth/u8-strwidth: Likewise.
24340         * modules/uniwidth/u8-width: Likewise.
24341         * modules/uniwidth/u16-strwidth: Likewise.
24342         * modules/uniwidth/u16-width: Likewise.
24343         * modules/uniwidth/u32-strwidth: Likewise.
24344         * modules/uniwidth/u32-width: Likewise.
24345         * modules/uniwidth/width: Likewise.
24346         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24347         with $(LIBUNISTRING).
24348         * modules/unicase/ignorable-tests: Likewise.
24349         * modules/unicase/locale-language-tests: Likewise.
24350         * modules/unicase/tolower-tests: Likewise.
24351         * modules/unicase/totitle-tests: Likewise.
24352         * modules/unicase/toupper-tests: Likewise.
24353         * modules/unicase/u8-casecmp-tests: Likewise.
24354         * modules/unicase/u8-casecoll-tests: Likewise.
24355         * modules/unicase/u8-casefold-tests: Likewise.
24356         * modules/unicase/u8-is-cased-tests: Likewise.
24357         * modules/unicase/u8-is-casefolded-tests: Likewise.
24358         * modules/unicase/u8-is-lowercase-tests: Likewise.
24359         * modules/unicase/u8-is-titlecase-tests: Likewise.
24360         * modules/unicase/u8-is-uppercase-tests: Likewise.
24361         * modules/unicase/u8-tolower-tests: Likewise.
24362         * modules/unicase/u8-totitle-tests: Likewise.
24363         * modules/unicase/u8-toupper-tests: Likewise.
24364         * modules/unicase/u16-casecmp-tests: Likewise.
24365         * modules/unicase/u16-casecoll-tests: Likewise.
24366         * modules/unicase/u16-casefold-tests: Likewise.
24367         * modules/unicase/u16-is-cased-tests: Likewise.
24368         * modules/unicase/u16-is-casefolded-tests: Likewise.
24369         * modules/unicase/u16-is-lowercase-tests: Likewise.
24370         * modules/unicase/u16-is-titlecase-tests: Likewise.
24371         * modules/unicase/u16-is-uppercase-tests: Likewise.
24372         * modules/unicase/u16-tolower-tests: Likewise.
24373         * modules/unicase/u16-totitle-tests: Likewise.
24374         * modules/unicase/u16-toupper-tests: Likewise.
24375         * modules/unicase/u32-casecmp-tests: Likewise.
24376         * modules/unicase/u32-casecoll-tests: Likewise.
24377         * modules/unicase/u32-casefold-tests: Likewise.
24378         * modules/unicase/u32-is-cased-tests: Likewise.
24379         * modules/unicase/u32-is-casefolded-tests: Likewise.
24380         * modules/unicase/u32-is-lowercase-tests: Likewise.
24381         * modules/unicase/u32-is-titlecase-tests: Likewise.
24382         * modules/unicase/u32-is-uppercase-tests: Likewise.
24383         * modules/unicase/u32-tolower-tests: Likewise.
24384         * modules/unicase/u32-totitle-tests: Likewise.
24385         * modules/unicase/u32-toupper-tests: Likewise.
24386         * modules/unicase/ulc-casecmp-tests: Likewise.
24387         * modules/unicase/ulc-casecoll-tests: Likewise.
24388         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24389         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24390         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24391         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24392         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24393         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24394         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24395         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24396         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24397         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24398         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24399         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24400         * modules/unictype/bidicategory-byname-tests: Likewise.
24401         * modules/unictype/bidicategory-name-tests: Likewise.
24402         * modules/unictype/bidicategory-of-tests: Likewise.
24403         * modules/unictype/bidicategory-test-tests: Likewise.
24404         * modules/unictype/block-list-tests: Likewise.
24405         * modules/unictype/block-of-tests: Likewise.
24406         * modules/unictype/block-test-tests: Likewise.
24407         * modules/unictype/category-C-tests: Likewise.
24408         * modules/unictype/category-Cc-tests: Likewise.
24409         * modules/unictype/category-Cf-tests: Likewise.
24410         * modules/unictype/category-Cn-tests: Likewise.
24411         * modules/unictype/category-Co-tests: Likewise.
24412         * modules/unictype/category-Cs-tests: Likewise.
24413         * modules/unictype/category-L-tests: Likewise.
24414         * modules/unictype/category-Ll-tests: Likewise.
24415         * modules/unictype/category-Lm-tests: Likewise.
24416         * modules/unictype/category-Lo-tests: Likewise.
24417         * modules/unictype/category-Lt-tests: Likewise.
24418         * modules/unictype/category-Lu-tests: Likewise.
24419         * modules/unictype/category-M-tests: Likewise.
24420         * modules/unictype/category-Mc-tests: Likewise.
24421         * modules/unictype/category-Me-tests: Likewise.
24422         * modules/unictype/category-Mn-tests: Likewise.
24423         * modules/unictype/category-N-tests: Likewise.
24424         * modules/unictype/category-Nd-tests: Likewise.
24425         * modules/unictype/category-Nl-tests: Likewise.
24426         * modules/unictype/category-No-tests: Likewise.
24427         * modules/unictype/category-P-tests: Likewise.
24428         * modules/unictype/category-Pc-tests: Likewise.
24429         * modules/unictype/category-Pd-tests: Likewise.
24430         * modules/unictype/category-Pe-tests: Likewise.
24431         * modules/unictype/category-Pf-tests: Likewise.
24432         * modules/unictype/category-Pi-tests: Likewise.
24433         * modules/unictype/category-Po-tests: Likewise.
24434         * modules/unictype/category-Ps-tests: Likewise.
24435         * modules/unictype/category-S-tests: Likewise.
24436         * modules/unictype/category-Sc-tests: Likewise.
24437         * modules/unictype/category-Sk-tests: Likewise.
24438         * modules/unictype/category-Sm-tests: Likewise.
24439         * modules/unictype/category-So-tests: Likewise.
24440         * modules/unictype/category-Z-tests: Likewise.
24441         * modules/unictype/category-Zl-tests: Likewise.
24442         * modules/unictype/category-Zp-tests: Likewise.
24443         * modules/unictype/category-Zs-tests: Likewise.
24444         * modules/unictype/category-and-not-tests: Likewise.
24445         * modules/unictype/category-and-tests: Likewise.
24446         * modules/unictype/category-byname-tests: Likewise.
24447         * modules/unictype/category-name-tests: Likewise.
24448         * modules/unictype/category-none-tests: Likewise.
24449         * modules/unictype/category-of-tests: Likewise.
24450         * modules/unictype/category-or-tests: Likewise.
24451         * modules/unictype/category-test-withtable-tests: Likewise.
24452         * modules/unictype/combining-class-tests: Likewise.
24453         * modules/unictype/ctype-alnum-tests: Likewise.
24454         * modules/unictype/ctype-alpha-tests: Likewise.
24455         * modules/unictype/ctype-blank-tests: Likewise.
24456         * modules/unictype/ctype-cntrl-tests: Likewise.
24457         * modules/unictype/ctype-digit-tests: Likewise.
24458         * modules/unictype/ctype-graph-tests: Likewise.
24459         * modules/unictype/ctype-lower-tests: Likewise.
24460         * modules/unictype/ctype-print-tests: Likewise.
24461         * modules/unictype/ctype-punct-tests: Likewise.
24462         * modules/unictype/ctype-space-tests: Likewise.
24463         * modules/unictype/ctype-upper-tests: Likewise.
24464         * modules/unictype/ctype-xdigit-tests: Likewise.
24465         * modules/unictype/decimal-digit-tests: Likewise.
24466         * modules/unictype/digit-tests: Likewise.
24467         * modules/unictype/mirror-tests: Likewise.
24468         * modules/unictype/numeric-tests: Likewise.
24469         * modules/unictype/property-alphabetic-tests: Likewise.
24470         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24471         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24472         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24473         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24474         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24475         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24476         * modules/unictype/property-bidi-control-tests: Likewise.
24477         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24478         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24479         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24480         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24481         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24482         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24483         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24484         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24485         * modules/unictype/property-bidi-pdf-tests: Likewise.
24486         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24487         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24488         * modules/unictype/property-byname-tests: Likewise.
24489         * modules/unictype/property-combining-tests: Likewise.
24490         * modules/unictype/property-composite-tests: Likewise.
24491         * modules/unictype/property-currency-symbol-tests: Likewise.
24492         * modules/unictype/property-dash-tests: Likewise.
24493         * modules/unictype/property-decimal-digit-tests: Likewise.
24494         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24495         * modules/unictype/property-deprecated-tests: Likewise.
24496         * modules/unictype/property-diacritic-tests: Likewise.
24497         * modules/unictype/property-extender-tests: Likewise.
24498         * modules/unictype/property-format-control-tests: Likewise.
24499         * modules/unictype/property-grapheme-base-tests: Likewise.
24500         * modules/unictype/property-grapheme-extend-tests: Likewise.
24501         * modules/unictype/property-grapheme-link-tests: Likewise.
24502         * modules/unictype/property-hex-digit-tests: Likewise.
24503         * modules/unictype/property-hyphen-tests: Likewise.
24504         * modules/unictype/property-id-continue-tests: Likewise.
24505         * modules/unictype/property-id-start-tests: Likewise.
24506         * modules/unictype/property-ideographic-tests: Likewise.
24507         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24508         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24509         * modules/unictype/property-ignorable-control-tests: Likewise.
24510         * modules/unictype/property-iso-control-tests: Likewise.
24511         * modules/unictype/property-join-control-tests: Likewise.
24512         * modules/unictype/property-left-of-pair-tests: Likewise.
24513         * modules/unictype/property-line-separator-tests: Likewise.
24514         * modules/unictype/property-logical-order-exception-tests: Likewise.
24515         * modules/unictype/property-lowercase-tests: Likewise.
24516         * modules/unictype/property-math-tests: Likewise.
24517         * modules/unictype/property-non-break-tests: Likewise.
24518         * modules/unictype/property-not-a-character-tests: Likewise.
24519         * modules/unictype/property-numeric-tests: Likewise.
24520         * modules/unictype/property-other-alphabetic-tests: Likewise.
24521         * modules/unictype/property-other-default-ignorable-code-point-tests:
24522         Likewise.
24523         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24524         * modules/unictype/property-other-id-continue-tests: Likewise.
24525         * modules/unictype/property-other-id-start-tests: Likewise.
24526         * modules/unictype/property-other-lowercase-tests: Likewise.
24527         * modules/unictype/property-other-math-tests: Likewise.
24528         * modules/unictype/property-other-uppercase-tests: Likewise.
24529         * modules/unictype/property-paired-punctuation-tests: Likewise.
24530         * modules/unictype/property-paragraph-separator-tests: Likewise.
24531         * modules/unictype/property-pattern-syntax-tests: Likewise.
24532         * modules/unictype/property-pattern-white-space-tests: Likewise.
24533         * modules/unictype/property-private-use-tests: Likewise.
24534         * modules/unictype/property-punctuation-tests: Likewise.
24535         * modules/unictype/property-quotation-mark-tests: Likewise.
24536         * modules/unictype/property-radical-tests: Likewise.
24537         * modules/unictype/property-sentence-terminal-tests: Likewise.
24538         * modules/unictype/property-soft-dotted-tests: Likewise.
24539         * modules/unictype/property-space-tests: Likewise.
24540         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24541         * modules/unictype/property-test-tests: Likewise.
24542         * modules/unictype/property-titlecase-tests: Likewise.
24543         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24544         * modules/unictype/property-unified-ideograph-tests: Likewise.
24545         * modules/unictype/property-uppercase-tests: Likewise.
24546         * modules/unictype/property-variation-selector-tests: Likewise.
24547         * modules/unictype/property-white-space-tests: Likewise.
24548         * modules/unictype/property-xid-continue-tests: Likewise.
24549         * modules/unictype/property-xid-start-tests: Likewise.
24550         * modules/unictype/property-zero-width-tests: Likewise.
24551         * modules/unictype/scripts-tests: Likewise.
24552         * modules/unictype/syntax-c-ident-tests: Likewise.
24553         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24554         * modules/unictype/syntax-java-ident-tests: Likewise.
24555         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24556         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24557         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24558         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24559         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24560         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24561         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24562         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24563         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24564         * modules/uniname/uniname-tests: Likewise.
24565         * modules/uninorm/canonical-decomposition-tests: Likewise.
24566         * modules/uninorm/compat-decomposition-tests: Likewise.
24567         * modules/uninorm/composition-tests: Likewise.
24568         * modules/uninorm/decomposing-form-tests: Likewise.
24569         * modules/uninorm/decomposition-tests: Likewise.
24570         * modules/uninorm/filter-tests: Likewise.
24571         * modules/uninorm/nfc-tests: Likewise.
24572         * modules/uninorm/nfd-tests: Likewise.
24573         * modules/uninorm/nfkc-tests: Likewise.
24574         * modules/uninorm/nfkd-tests: Likewise.
24575         * modules/uninorm/u8-normcmp-tests: Likewise.
24576         * modules/uninorm/u8-normcoll-tests: Likewise.
24577         * modules/uninorm/u16-normcmp-tests: Likewise.
24578         * modules/uninorm/u16-normcoll-tests: Likewise.
24579         * modules/uninorm/u32-normcmp-tests: Likewise.
24580         * modules/uninorm/u32-normcoll-tests: Likewise.
24581         * modules/unistdio/u8-asnprintf-tests: Likewise.
24582         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24583         * modules/unistdio/u8-vasprintf-tests: Likewise.
24584         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24585         * modules/unistdio/u8-vsprintf-tests: Likewise.
24586         * modules/unistdio/u16-asnprintf-tests: Likewise.
24587         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24588         * modules/unistdio/u16-vasprintf-tests: Likewise.
24589         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24590         * modules/unistdio/u16-vsprintf-tests: Likewise.
24591         * modules/unistdio/u32-asnprintf-tests: Likewise.
24592         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24593         * modules/unistdio/u32-vasprintf-tests: Likewise.
24594         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24595         * modules/unistdio/u32-vsprintf-tests: Likewise.
24596         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24597         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24598         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24599         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24600         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24601         * modules/unistr/u8-check-tests: Likewise.
24602         * modules/unistr/u8-chr-tests: Likewise.
24603         * modules/unistr/u8-cmp-tests: Likewise.
24604         * modules/unistr/u8-cmp2-tests: Likewise.
24605         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24606         * modules/unistr/u8-cpy-tests: Likewise.
24607         * modules/unistr/u8-mblen-tests: Likewise.
24608         * modules/unistr/u8-mbsnlen-tests: Likewise.
24609         * modules/unistr/u8-mbtouc-tests: Likewise.
24610         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24611         * modules/unistr/u8-mbtoucr-tests: Likewise.
24612         * modules/unistr/u8-move-tests: Likewise.
24613         * modules/unistr/u8-next-tests: Likewise.
24614         * modules/unistr/u8-prev-tests: Likewise.
24615         * modules/unistr/u8-set-tests: Likewise.
24616         * modules/unistr/u8-stpcpy-tests: Likewise.
24617         * modules/unistr/u8-stpncpy-tests: Likewise.
24618         * modules/unistr/u8-strcat-tests: Likewise.
24619         * modules/unistr/u8-strcmp-tests: Likewise.
24620         * modules/unistr/u8-strcoll-tests: Likewise.
24621         * modules/unistr/u8-strcpy-tests: Likewise.
24622         * modules/unistr/u8-strdup-tests: Likewise.
24623         * modules/unistr/u8-strlen-tests: Likewise.
24624         * modules/unistr/u8-strmblen-tests: Likewise.
24625         * modules/unistr/u8-strmbtouc-tests: Likewise.
24626         * modules/unistr/u8-strncat-tests: Likewise.
24627         * modules/unistr/u8-strncmp-tests: Likewise.
24628         * modules/unistr/u8-strncpy-tests: Likewise.
24629         * modules/unistr/u8-strnlen-tests: Likewise.
24630         * modules/unistr/u8-to-u16-tests: Likewise.
24631         * modules/unistr/u8-to-u32-tests: Likewise.
24632         * modules/unistr/u8-uctomb-tests: Likewise.
24633         * modules/unistr/u16-check-tests: Likewise.
24634         * modules/unistr/u16-chr-tests: Likewise.
24635         * modules/unistr/u16-cmp-tests: Likewise.
24636         * modules/unistr/u16-cmp2-tests: Likewise.
24637         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24638         * modules/unistr/u16-cpy-tests: Likewise.
24639         * modules/unistr/u16-mblen-tests: Likewise.
24640         * modules/unistr/u16-mbsnlen-tests: Likewise.
24641         * modules/unistr/u16-mbtouc-tests: Likewise.
24642         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24643         * modules/unistr/u16-mbtoucr-tests: Likewise.
24644         * modules/unistr/u16-move-tests: Likewise.
24645         * modules/unistr/u16-next-tests: Likewise.
24646         * modules/unistr/u16-prev-tests: Likewise.
24647         * modules/unistr/u16-set-tests: Likewise.
24648         * modules/unistr/u16-stpcpy-tests: Likewise.
24649         * modules/unistr/u16-stpncpy-tests: Likewise.
24650         * modules/unistr/u16-strcat-tests: Likewise.
24651         * modules/unistr/u16-strcmp-tests: Likewise.
24652         * modules/unistr/u16-strcoll-tests: Likewise.
24653         * modules/unistr/u16-strcpy-tests: Likewise.
24654         * modules/unistr/u16-strdup-tests: Likewise.
24655         * modules/unistr/u16-strlen-tests: Likewise.
24656         * modules/unistr/u16-strmblen-tests: Likewise.
24657         * modules/unistr/u16-strmbtouc-tests: Likewise.
24658         * modules/unistr/u16-strncat-tests: Likewise.
24659         * modules/unistr/u16-strncmp-tests: Likewise.
24660         * modules/unistr/u16-strncpy-tests: Likewise.
24661         * modules/unistr/u16-strnlen-tests: Likewise.
24662         * modules/unistr/u16-to-u32-tests: Likewise.
24663         * modules/unistr/u16-to-u8-tests: Likewise.
24664         * modules/unistr/u16-uctomb-tests: Likewise.
24665         * modules/unistr/u32-check-tests: Likewise.
24666         * modules/unistr/u32-chr-tests: Likewise.
24667         * modules/unistr/u32-cmp-tests: Likewise.
24668         * modules/unistr/u32-cmp2-tests: Likewise.
24669         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24670         * modules/unistr/u32-cpy-tests: Likewise.
24671         * modules/unistr/u32-mblen-tests: Likewise.
24672         * modules/unistr/u32-mbsnlen-tests: Likewise.
24673         * modules/unistr/u32-mbtouc-tests: Likewise.
24674         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24675         * modules/unistr/u32-mbtoucr-tests: Likewise.
24676         * modules/unistr/u32-move-tests: Likewise.
24677         * modules/unistr/u32-next-tests: Likewise.
24678         * modules/unistr/u32-prev-tests: Likewise.
24679         * modules/unistr/u32-set-tests: Likewise.
24680         * modules/unistr/u32-stpcpy-tests: Likewise.
24681         * modules/unistr/u32-stpncpy-tests: Likewise.
24682         * modules/unistr/u32-strcat-tests: Likewise.
24683         * modules/unistr/u32-strcmp-tests: Likewise.
24684         * modules/unistr/u32-strcoll-tests: Likewise.
24685         * modules/unistr/u32-strcpy-tests: Likewise.
24686         * modules/unistr/u32-strdup-tests: Likewise.
24687         * modules/unistr/u32-strlen-tests: Likewise.
24688         * modules/unistr/u32-strmblen-tests: Likewise.
24689         * modules/unistr/u32-strmbtouc-tests: Likewise.
24690         * modules/unistr/u32-strncat-tests: Likewise.
24691         * modules/unistr/u32-strncmp-tests: Likewise.
24692         * modules/unistr/u32-strncpy-tests: Likewise.
24693         * modules/unistr/u32-strnlen-tests: Likewise.
24694         * modules/unistr/u32-to-u16-tests: Likewise.
24695         * modules/unistr/u32-to-u8-tests: Likewise.
24696         * modules/unistr/u32-uctomb-tests: Likewise.
24697         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24698         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24699         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24700         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24701         * modules/uniwidth/u8-strwidth-tests: Likewise.
24702         * modules/uniwidth/u8-width-tests: Likewise.
24703         * modules/uniwidth/u16-strwidth-tests: Likewise.
24704         * modules/uniwidth/u16-width-tests: Likewise.
24705         * modules/uniwidth/u32-strwidth-tests: Likewise.
24706         * modules/uniwidth/u32-width-tests: Likewise.
24707         * modules/uniwidth/width-tests: Likewise.
24708
24709 2010-05-18  Richard Jones  <rjones@redhat.com>
24710
24711         doc: users.txt: list hivex
24712         * users.txt: Add hivex.
24713
24714 2010-05-18  Richard Jones  <rjones@redhat.com>
24715
24716         doc: users.txt: list febootstrap
24717         * users.txt: Add febootstrap.
24718
24719 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24720
24721         bootstrap: fix an error when gnulib is not used as a git submodule
24722         * build-aux/bootstrap (gnulib_path): If its length is zero then
24723         assign "gnulib" to it.
24724         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24725
24726 2010-05-16  Bruno Haible  <bruno@clisp.org>
24727
24728         Avoid autoconf warnings about AM_ICONV.
24729         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24730         2.64.
24731
24732 2010-05-16  Bruno Haible  <bruno@clisp.org>
24733
24734         absolute-header: Make the macro usable in more situations.
24735         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24736         from gl_ABSOLUTE_HEADER.
24737         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24738
24739 2010-05-16  James Youngman  <jay@gnu.org>
24740
24741         doc: update users.txt
24742         * users.txt: Add CSSC.
24743
24744 2010-05-16  Jim Meyering  <meyering@redhat.com>
24745
24746         init.sh: fix an error in the previous change; add more comments
24747         * tests/init.sh: Compare exit code in loop against 9, not 2.
24748         Patch by Bruno Haible.
24749         Make the two tests more similar by adding an empty "then" clause.
24750         Add comments.
24751
24752         init.sh: avoid unnecessary shell re-exec
24753         * tests/init.sh: Improve the re-exec-required check to first test the
24754         current shell.  If it passes the test, do not search for a shell that
24755         does pass, and do not re-exec.  This test is particularly contorted to
24756         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24757         of $(...) evokes a syntax error and causes immediate shell exit with
24758         status 2.  Bruno Haible reported that the re-exec made it impossible
24759         to single-step through any init.sh-using script.
24760
24761 2010-05-16  Bruno Haible  <bruno@clisp.org>
24762
24763         Fix collision between gnulib's and libintl's printf replacements.
24764         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24765         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24766         (printf): When using GNU C, map the __printf__ function to rpl_printf
24767         via __asm__. When not using GNU C, define rpl_printf instead of
24768         __printf__.
24769         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24770         commit.
24771         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24772         commit.
24773         * m4/asm-underscore.m4: New file.
24774         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24775         * modules/stdio (Files): Add m4/asm-underscore.m4.
24776         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24777         Reported by Ben Pfaff.
24778
24779 2010-05-16  Bruno Haible  <bruno@clisp.org>
24780
24781         verify: Avoid skipping the test on openSUSE 11.0.
24782         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24783
24784 2010-05-13  Bruno Haible  <bruno@clisp.org>
24785
24786         Avoid useless warnings from G++.
24787         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24788         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24789         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24790
24791 2010-05-11  Jim Meyering  <meyering@redhat.com>
24792
24793         maint.mk: tweak preceding change
24794         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24795         regexps tighter by anchoring at EOL, and make the new group "shy"
24796         for slightly decreased overhead.
24797
24798 2010-05-11  Eric Blake  <eblake@redhat.com>
24799
24800         maint.mk: gnulib doesn't guarantee NSIG
24801         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24802
24803 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24804
24805         test-pwrite.c: Remove unused variable declaration.
24806         * tests/test-pwrite.c (main): Remove read_buf declaration.
24807
24808         Remove useless test-pwrite.sh file.
24809         * tests/test-pwrite.sh: Delete file.
24810         * modules/pwrite-tests: Remove references.
24811         Reported by Bruno Haible.
24812
24813 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24814
24815         init.sh: fix a typo
24816         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24817
24818 2010-05-10  Jim Meyering  <meyering@redhat.com>
24819
24820         maint.mk: avoid using a temporary file in the always-defined-macros check
24821         * top/maint.mk (.re-defmac): Remove rule.
24822         (gl_trap_): Remove definition.
24823         (sc_prohibit_always-defined_macros): Rewrite not to create and
24824         depend on a temporary file.  Instead, depend on GNU grep's ability
24825         to read a list of regular expressions from stdin when given "-f -".
24826
24827 2010-05-09  Bruno Haible  <bruno@clisp.org>
24828
24829         Update to GNU gettext 0.18, part 1.
24830         * m4/gettext.m4: Update to GNU gettext 0.18.
24831         * m4/intl.m4: Likewise.
24832         * m4/po.m4: Likewise.
24833         * modules/gettext (Files): Add m4/fcntl-o.m4.
24834         (configure.ac): Require gettext infrastructure from version 0.18.
24835
24836 2010-05-09  Jim Meyering  <meyering@redhat.com>
24837
24838         init.sh: enable MALLOC_PERTURB_
24839         * tests/init.sh: Enable glibc's malloc-perturbing option.
24840
24841         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24842         With my recent change in init.sh from the two-line form:
24843             -#   : ${srcdir=.}
24844             -#   . "$srcdir/init.sh"; path_prepend_ .
24845             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24846         I noticed that using the one-line form would cause this test
24847         to fail with a false-positive, or to stop working altogether,
24848         depending on whether help-version changed or all the tests did.
24849         * top/maint.mk (_hv_regex): Remove this definition.
24850         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24851         (_hv_regex_strong): Use a stronger regex to check for conformance.
24852         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24853         Give a separate diagnostic for lack of conforming use.
24854
24855         maint.mk: prohibit definition of symbols defined by gnulib
24856         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24857         definition of symbols defined by gnulib.
24858
24859 2010-05-09  Bruno Haible  <bruno@clisp.org>
24860
24861         acl: Avoid test failure on Cygwin-hosted mingw.
24862         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24863
24864 2010-05-09  Bruno Haible  <bruno@clisp.org>
24865
24866         error: Use system's fcntl function.
24867         * lib/error.c (fcntl): Undefine.
24868
24869 2010-05-09  Jim Meyering  <meyering@redhat.com>
24870
24871         verify: adjust formatting to be more consistent
24872         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24873         argument-list '('s, and after one comma.
24874
24875 2010-05-09  Bruno Haible  <bruno@clisp.org>
24876
24877         error: More reliable output on mingw.
24878         * lib/error.c: Include <windows.h>.
24879         (is_open): New function.
24880         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24881         defined.
24882
24883 2010-05-09  Bruno Haible  <bruno@clisp.org>
24884
24885         vasnprintf: Fix syntax errors in libintl build on mingw.
24886         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24887         pad_ourselves and prec_ourselves after use.
24888
24889 2010-05-08  Bruno Haible  <bruno@clisp.org>
24890
24891         * lib/config.charset: Update comments for Cygwin 1.7.
24892         * lib/localcharset.c: Likewise.
24893
24894 2010-05-07  Jim Meyering  <meyering@redhat.com>
24895
24896         init.sh: improve comments
24897         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24898         . "${srcdir=.}/init.sh"; path_prepend_ .
24899         Add a note about path_prepend_ and the alternative of using
24900         TESTS_ENVIRONMENT.
24901
24902 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24903
24904         exclude: Unescape hashed patterns in wildcard mode.
24905         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24906         to the hash list.
24907         * tests/test-exclude8.sh: New test case.
24908         * modules/exclude-tests: Add new test.
24909
24910 2010-05-05  Eric Blake  <eblake@redhat.com>
24911
24912         verify: automate tests
24913         * modules/verify-tests: New module.
24914         * tests/test-verify.sh: New file.
24915         * tests/test-verify.c: Guard each negative test with a unique id.
24916         Also avoid warning about unused left hand of comma expressions.
24917
24918 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24919
24920         Further improvements to verify.h, suggested by Eric Blake.
24921         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24922         the GL_* versions, to avoid collision with OpenGL.
24923         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24924         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24925         than testing merely whether it's defined.
24926
24927         Modify verify.h to pacify gcc -Wredundant_decls.
24928         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24929         These use the prefix "GL_" since they're likely to be useful elsewhere.
24930         We may need to break them out into a different .h file.
24931         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24932         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24933         of verify_function__.
24934
24935 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24936
24937         Tests for module pwrite.
24938         * modules/pwrite-tests: New file.
24939         * tests/test-pwrite.sh: New file.
24940         * tests/test-pwrite.c: New file.
24941
24942         New module pwrite.
24943         * lib/unistd.in.h (pwrite): New declaration.
24944         * lib/pwrite.c: New file, from glibc with modifications.
24945         * m4/pwrite.m4: New file.
24946         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24947         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24948         REPLACE_PWRITE.
24949         * modules/pwrite: New file.
24950         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24951         REPLACE_PWRITE.
24952         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24953         * doc/posix-functions/pwrite.texi: Mention the new module.
24954
24955 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24956
24957         pread: Update documentation.
24958         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24959
24960 2010-05-04  Eric Blake  <eblake@redhat.com>
24961
24962         docs: update cygwin progress
24963         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24964         this bug.
24965         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24966         Added in cygwin 1.7.2.
24967         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24968         Likewise.
24969         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24970         Likewise.
24971         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24972         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24973         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24974         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24975         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24976         Mention nproc module.
24977         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24978         bug in cygwin 1.7.5 addition.
24979         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24980         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24981         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24982         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24983         1.7.5.
24984         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24985         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24986         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24987         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24988         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24989         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24990         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24991         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24992         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24993         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24994         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24995         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24996         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24997         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24998         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24999         Likewise.
25000         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
25001         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
25002         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
25003         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
25004         Likewise.
25005         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
25006         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
25007         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
25008         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
25009         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
25010         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
25011         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
25012         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
25013         Likewise.
25014         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
25015         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
25016         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
25017         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
25018         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
25019         Likewise.
25020         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
25021         Likewise.
25022         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
25023         Likewise.
25024         * doc/glibc-functions/xdrrec_endofrecord.texi
25025         (xdrrec_endofrecord): Likewise.
25026         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
25027         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
25028         Likewise.
25029         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
25030         Likewise.
25031
25032 2010-05-04  Jim Meyering  <meyering@redhat.com>
25033
25034         gendocs.sh: make its "-s FILE" option more useful
25035         * build-aux/gendocs.sh: When honoring the -s FILE option, update
25036         $PACKAGE to reflect the probably-different basename of "FILE".
25037
25038 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25039
25040         bootstrap: don't ignore download_po_files failure
25041         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25042         failure.
25043
25044 2010-05-03  Jim Meyering  <meyering@redhat.com>
25045
25046         maint.mk: allow to pass options to gendocs.sh
25047         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25048         (gendocs_options_): New overridable variable.
25049
25050         gnu-web-doc-update: don't ignore configure or build failure
25051         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25052
25053         announce-gen: backslash-escape '@'s in --help output
25054         * build-aux/announce-gen: Fix syntax errors.
25055
25056         maint.mk, announce-gen: allow project-specific announcement mail headers
25057         * top/maint.mk (translation_project_): Define default.
25058         (announcement_Cc_, announcement_mail_headers_): Likewise.
25059         (announcement): Invoke announce-gen with new --mail-headers option.
25060         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
25061
25062         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25063         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25064         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25065         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25066         line in the "err2" output file when running "make check" in verbose
25067         mode (i.e., with set -x enabled).
25068
25069 2010-05-03  Bruno Haible  <bruno@clisp.org>
25070
25071         wctob: Fix for weird platforms.
25072         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25073         argument value.
25074
25075 2010-05-03  Jim Meyering  <meyering@redhat.com>
25076
25077         maint.mk: prohibit unwarranted use of <strings.h>
25078         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25079         strings.h in a file that does not also use strcasecmp, strncasecmp,
25080         ffs or ffsll.
25081
25082         maint.mk: remove obsolete comments
25083         * top/maint.mk: Remove stale, commented-out rules.
25084
25085 2010-05-02  Bruno Haible  <bruno@clisp.org>
25086
25087         wcwidth: Declare also when it's aliased.
25088         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25089         macro.
25090
25091 2010-05-02  Bruno Haible  <bruno@clisp.org>
25092
25093         Fix regression from 2010-04-25.
25094         * gnulib-tool (func_modules_transitive_closure): Check the status of
25095         all modules, not only of the tests that are of the form foo-tests where
25096         foo is a module.
25097
25098 2010-05-02  Bruno Haible  <bruno@clisp.org>
25099
25100         wctob: Work around nasty Cygwin 1.7.2 bug.
25101         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25102         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25103
25104 2010-05-01  Bruno Haible  <bruno@clisp.org>
25105
25106         fpurge: Sharper test.
25107         * tests/test-fpurge.c (main): Add one more ftell check.
25108         * modules/fpurge-tests (Depends-on): Add ftell.
25109         Suggested by Eric Blake.
25110
25111 2010-05-01  Bruno Haible  <bruno@clisp.org>
25112
25113         ftello: Another test.
25114         * tests/test-ftello3.c: New file.
25115         * modules/ftello-tests (Files): Add it.
25116         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25117         MOSTLYCLEANFILES.
25118
25119         ftell: Another test.
25120         * tests/test-ftell3.c: New file.
25121         * modules/ftell-tests (Files): Add it.
25122         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25123         MOSTLYCLEANFILES.
25124
25125 2010-05-01  Bruno Haible  <bruno@clisp.org>
25126
25127         ftell, ftello: Work around Solaris bug.
25128         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25129         * lib/ftello.c: Include stdio-impl.h.
25130         (ftello): On Solaris, when _IOWRT is set, compute the result without
25131         looking at _IOREAD.
25132         * modules/ftello (Files): Add lib/stdio-impl.h.
25133         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25134         * doc/posix-functions/ftello.texi: Likewise.
25135         Reported by Eric Blake.
25136
25137 2010-05-01  Bruno Haible  <bruno@clisp.org>
25138
25139         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25140         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25141         the _IOWRT flag is also set.
25142
25143 2010-05-01  Bruno Haible  <bruno@clisp.org>
25144
25145         Fix doc about a HP-UX stdio bug.
25146         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25147         * doc/posix-functions/ftello.texi: Likewise.
25148
25149 2010-05-01  Bruno Haible  <bruno@clisp.org>
25150
25151         lseek test: Fix failure on Solaris.
25152         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25153         output.
25154
25155 2010-04-30  Jim Meyering  <meyering@redhat.com>
25156
25157         bootstrap: don't ignore failure to generate po*/Makevars
25158         * build-aux/bootstrap (with_gettext): Don't ignore failure
25159         to create po/Makevars or runtime-po/Makevars.
25160
25161 2010-04-29  Eric Blake  <eblake@redhat.com>
25162
25163         headers: relax license to LGPLv2+
25164         * modules/fcntl-h (License): Relax license.
25165         * modules/getopt-posix (License): Likewise.
25166         * modules/locale (License): Likewise.
25167         * modules/math (License): Likewise.
25168         * modules/pty (License): Likewise.
25169         * modules/sched (License): Likewise.
25170         * modules/search (License): Likewise.
25171         * modules/spawn (License): Likewise.
25172         * modules/stdarg (License): Likewise.
25173         * modules/sysexits (License): Likewise.
25174
25175 2010-04-29  Jim Meyering  <meyering@redhat.com>
25176
25177         inttypes: relax license to LGPLv2+
25178         * modules/inttypes (License): Relax license.
25179
25180 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25181
25182         * top/maint.mk (indent): Run twice to produce idempotent results.
25183
25184 2010-04-28  Bruno Haible  <bruno@clisp.org>
25185
25186         getdate: Generate getdate.c in the source directory.
25187         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25188         MOSTLYCLEANFILES.
25189         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25190
25191 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25192
25193         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25194         is not declared as a const *; avoid warnings in that case.
25195
25196 2010-04-28  Eric Blake  <eblake@redhat.com>
25197
25198         canonicalize-lgpl: avoid compiler warning
25199         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25200         declaration' / 'extraneous semicolon' warning with some compilers.
25201         Reported by Andreas Gruenbacher.
25202
25203 2010-04-28  Jim Meyering  <meyering@redhat.com>
25204
25205         init.sh: ensure a more reliable exit status when exiting via trap
25206         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25207         Inspired by patches from Dmitry V. Levin.
25208         Also trap on signal 3 (SIGQUIT).
25209
25210 2010-04-27  Bruno Haible  <bruno@clisp.org>
25211
25212         Update doc about utimes().
25213         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25214         'utimens' module.
25215         Reported by Andreas Gruenbacher <agruen@suse.de>.
25216
25217 2010-04-27  Eric Blake  <eblake@redhat.com>
25218
25219         full-read, full-write: relax license
25220         * modules/full-read (License): Drop to LGPLv2+.
25221         * modules/full-write (License): Likewise.
25222         * modules/safe-read (License): Likewise.
25223         * modules/safe-write (License): Likewise.
25224
25225         pthread: mention library for linking
25226         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25227
25228 2010-04-27  Jim Meyering  <meyering@redhat.com>
25229
25230         maint.mk: fix a bug introduced in last change
25231         * top/maint.mk (gl_assured_headers_): Now that all names are on
25232         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25233         is not anchored to end of word, it should be adequate.
25234
25235         maint.mk: avoid side-effect in latest syntax-check
25236         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25237         to run commands via $(shell...), and hence to incur cost only when
25238         the new rule is actually run.
25239
25240         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25241         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25242         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25243         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25244         (gl_assured_headers_, az_, AZ_): Define.
25245         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25246
25247 2010-04-26  Jim Meyering  <jim@meyering.net>
25248             Bruno Haible  <bruno@clisp.org>
25249
25250         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25251         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25252         Prompted by an exchange with Gilles Espinasse.
25253
25254 2010-04-26  Jim Meyering  <meyering@redhat.com>
25255
25256         git-version-gen: aesthetic tweak
25257         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25258         so that the command remains on a single line.
25259
25260 2010-04-26  Eric Blake  <eblake@redhat.com>
25261
25262         git-version-gen: allow use on EBCDIC hosts
25263         * build-aux/git-version-gen (dirty): Use literal rather than tying
25264         ourselves to ascii.
25265         Reported by Steve Goetze.
25266
25267 2010-04-25  Bruno Haible  <bruno@clisp.org>
25268
25269         netdb: Add support for GNULIB_POSIXCHECK.
25270         * lib/netdb.in.h: Include warn-on-use.h.
25271         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25272         functions are used when GNULIB_POSIXCHECK is defined and the
25273         getaddrinfo module is not in use.
25274         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25275         freeaddrinfo, gai_strerror, getnameinfo are declared.
25276         * modules/netdb (Depends-on): Add warn-on-use.
25277         (Makefile.am): Include warn-on-use.h in netdb.h.
25278
25279 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25280
25281         build: avoid "make check" failure without .git/ directory
25282         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25283         there is no .git/ directory.
25284
25285 2010-04-25  Bruno Haible  <bruno@clisp.org>
25286
25287         ptsname: Fix misuse of ttyname_r.
25288         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25289         of errno.
25290
25291 2010-04-25  Bruno Haible  <bruno@clisp.org>
25292
25293         ttyname_r: Make it work on Solaris 10.
25294         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25295         if the system function has the POSIX declaration. Test whether the
25296         function fails if the buffer is less than 128 bytes large.
25297         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25298         system's ttyname_r function. Provide a reasonably large buffer.
25299         * modules/ttyname_r (Depends-on): Add extensions.
25300         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25301
25302 2010-04-25  Bruno Haible  <bruno@clisp.org>
25303
25304         Use the 'extensions' module for some more functions on Solaris.
25305         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25306         module.
25307         * doc/posix-functions/ctime_r.texi: Likewise.
25308         * doc/posix-functions/getgrgid_r.texi: Likewise.
25309         * doc/posix-functions/getgrnam_r.texi: Likewise.
25310         * doc/posix-functions/getpwnam_r.texi: Likewise.
25311         * doc/posix-functions/getpwuid_r.texi: Likewise.
25312         * doc/posix-functions/readdir_r.texi: Likewise.
25313         * doc/posix-functions/sigwait.texi: Likewise.
25314         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25315         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25316
25317 2010-04-25  Bruno Haible  <bruno@clisp.org>
25318
25319         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25320         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25321         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25322         * lib/ttyname_r.c: Include <limits.h>.
25323         (ttyname_r): Define using the system's ttyname_r function, if it exists
25324         and not on Solaris.
25325         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25326         set.
25327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25328         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25329         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25330         Reported by Simon Josefsson.
25331
25332 2010-04-25  Bruno Haible  <bruno@clisp.org>
25333
25334         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25335         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25336         * doc/posix-functions/ctime_r.texi: Likewise.
25337         * doc/posix-functions/getgrgid_r.texi: Likewise.
25338         * doc/posix-functions/getgrnam_r.texi: Likewise.
25339         * doc/posix-functions/getlogin_r.texi: Likewise.
25340         * doc/posix-functions/getpwnam_r.texi: Likewise.
25341         * doc/posix-functions/getpwuid_r.texi: Likewise.
25342         * doc/posix-functions/readdir_r.texi: Likewise.
25343         * doc/posix-functions/sigwait.texi: Likewise.
25344         * doc/posix-functions/ttyname_r.texi: Likewise.
25345         Reported by Simon Josefsson.
25346
25347 2010-04-25  Bruno Haible  <bruno@clisp.org>
25348
25349         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25350         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25351         also to --create-testdir.
25352         (func_acceptable): Don't consider the status of *-tests modules here.
25353         (func_modules_transitive_closure): Consider it here, before including a
25354         test module.
25355         (func_import, func_create_testdir): Set inc_all_direct_tests,
25356         inc_all_indirect_tests.
25357         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25358         --create-testdir and --create-megatestdir.
25359
25360 2010-04-25  Bruno Haible  <bruno@clisp.org>
25361
25362         gnulib-tool: Add --without-*-tests options.
25363         * gnulib-tool (func_usage): Document the --without-*-tests options.
25364         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25365         excl_unportable_tests): New variables.
25366         Fail if they are specified with --import or --update.
25367         (func_acceptable): Respect the excl_*_tests variables.
25368         (func_import): Set the excl_*_tests variables to empty.
25369
25370 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25371             Bruno Haible  <bruno@clisp.org>
25372
25373         Work around a MacOS X 10.4 bug with openpty.
25374         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25375         * tests/test-openpty.c (main): Close the master side explicitly.
25376
25377 2010-04-25  Bruno Haible  <bruno@clisp.org>
25378
25379         strnlen: Fix a C++ test error on MacOS X and Solaris.
25380         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25381         the function is not declared.
25382         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25383         Simon Josefsson.
25384
25385 2010-04-24  Bruno Haible  <bruno@clisp.org>
25386
25387         Avoid a gcc warning.
25388         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25389         of correct type for %08lx directive.
25390         Reported by Eric Blake.
25391
25392 2010-04-24  Bruno Haible  <bruno@clisp.org>
25393
25394         vasnprintf: Correct errno value in case of out-of-memory.
25395         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25396         or sprintf. Use the errno value from SNPRINTF or sprintf.
25397         Reported by Ian Beckwith <ianb@erislabs.net>.
25398
25399 2010-04-24  Bruno Haible  <bruno@clisp.org>
25400
25401         ansi-c++-opt: Find correct compiler when cross-compiling.
25402         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25403         AC_CHECK_PROGS.
25404         Reported by Simon Josefsson.
25405
25406 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25407
25408         vc-list-files: Add support for subversion
25409         * build-aux/vc-list-files: Use "svn list" to generate the list of
25410         files controlled by subversion.
25411
25412 2010-04-23  Jim Meyering  <meyering@redhat.com>
25413
25414         vc-list-files tests: convert to use init.sh
25415         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25416         path_prepend_.
25417         Use Exit, not exit.
25418         Use skip_ rather than open coding it.
25419         Remove trap set-up and compare definitions.
25420         * tests/test-vc-list-files-git.sh: Likewise.
25421         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25422
25423 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25424
25425         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25426         backup files.
25427
25428 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25429
25430         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25431
25432 2010-04-20  Eric Blake  <eblake@redhat.com>
25433
25434         tests: be robust to ignored SIGPIPE
25435         * tests/test-select-in.sh: Consume all output.
25436         * tests/test-lseek.sh: Check correct exit status, while avoiding
25437         EPIPE.
25438
25439 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25440             Bruno Haible  <bruno@clisp.org>
25441
25442         visibility: Don't use -fvisibility if it leads to a warning.
25443         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25444         yes, don't pretend that visibility works if it leads to a warning.
25445         Reported by Mike Gran <spk121@yahoo.com>.
25446
25447 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25448
25449         * build-aux/bootstrap: Use "git -h" for testing for supported options
25450         instead of "git --help".  The short-form option only shows a summary,
25451         and doesn't layout the full man page.  Grep for the full option name
25452         in the summary, too.
25453
25454 2010-04-19  Bruno Haible  <bruno@clisp.org>
25455
25456         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25457         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25458         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25459         mention of RELOCATABLE_STRIP.
25460         Reported by Sylvain Beucler <beuc@beuc.net>.
25461
25462 2010-04-19  Bruno Haible  <bruno@clisp.org>
25463
25464         * lib/diffseq.h: Fix typo in comment.
25465         Reported by Eric Blake.
25466
25467 2010-04-19  Bruno Haible  <bruno@clisp.org>
25468
25469         ioctl: Move autoconf macro to a .m4 file.
25470         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25471         * modules/ioctl (Files): Add it.
25472         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25473         Reported by Ian Beckwith <ianb@erislabs.net>.
25474
25475 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25476             Bruno Haible  <bruno@clisp.org>
25477
25478         diffseq: Accommodate use-case with abstract arrays.
25479         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25480         is not defined.
25481         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25482         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25483
25484 2010-04-18  Bruno Haible  <bruno@clisp.org>
25485
25486         * doc/posix-headers/stdbool.texi: More precise wording.
25487
25488 2010-04-17  Jim Meyering  <meyering@redhat.com>
25489
25490         maint.mk: use gnu-style indentation in an embedded perl script
25491         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25492         Rename variable: s/two/last_two_bytes/
25493
25494 2010-04-16  Eric Blake  <eblake@redhat.com>
25495
25496         test-stdbool: skip test that fails with Solaris CC
25497         * tests/test-stdbool.c (f): Skip test that causes compilation
25498         error under buggy C++ compiler.
25499         * lib/stdbool.in.h: Document the limitation.
25500         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25501
25502         setenv: allow compilation with C++
25503         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25504         register keyword.
25505
25506         stdint: allow test to pass with C++
25507         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25508
25509         getopt: allow compilation with C++
25510         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25511         struct.
25512         * lib/getopt.c (_getopt_internal_r): Use correct type.
25513         Reported by Dagobert Michelson, via Joel E. Denny.
25514
25515 2010-04-16  Bruno Haible  <bruno@clisp.org>
25516
25517         Override netdb.h always.
25518         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25519         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25520         Reported by Ludovic Courtès <ludo@gnu.org>.
25521
25522 2010-04-15  Bruno Haible  <bruno@clisp.org>
25523
25524         openpty: Fix mistake from 2010-03-21.
25525         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25526         Reported by Simon Josefsson.
25527
25528 2010-04-15  Eric Blake  <eblake@redhat.com>
25529
25530         test-forkpty: fix expected signature
25531         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25532         Reported by Simon Josefsson.
25533
25534 2010-04-15  Jim Meyering  <meyering@redhat.com>
25535
25536         maint.mk: texinfo_suffix_re_: correct the default regexp
25537         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25538
25539         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25540         make it configurable via texinfo_suffix_re_.
25541
25542 2010-04-14  Eric Blake  <eblake@redhat.com>
25543
25544         strtok_r: relax license to LGPLv2+
25545         * modules/strtok_r (License): Relax license.
25546         Reported by Matthias Bolte.
25547
25548 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25549
25550         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25551         version 1.4.4 by default instead of requiring the libgcrypt
25552         version used during build.  This makes it possible to use the
25553         application with older but still binary compatible libgcrypt
25554         versions.
25555
25556 2010-04-13  Eric Blake  <eblake@redhat.com>
25557
25558         getopt-gnu: match recent glibc fixes and posix ruling
25559         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25560         '+' handling, when requesting extensions.
25561         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25562         'W;' handling.
25563         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25564         * doc/posix-functions/getopt.texi (getopt): Document this.
25565         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25566         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25567         Likewise.
25568
25569         getopt: merge bug fixes from glibc
25570         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25571         diagnostics.  Honor '+:' correctly.  Reject ';'.
25572
25573         getopt-posix: detect MacOS bug
25574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25575         optind when missing a required argument.
25576         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25577         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25578         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25579         Likewise.
25580
25581         getopt-posix: avoid spurious failure on Solaris
25582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25583         an indicator that setting optind=1 is sufficient for reset.
25584
25585         getopt-posix: avoid spurious failure on FreeBSD
25586         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25587         in POSIX mode, since the m4 test uses it.
25588
25589         gnulib-tool: silence warning on BSD sh
25590         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25591
25592 2010-04-13  Jim Meyering  <meyering@redhat.com>
25593
25594         doc: users.txt: GNU patch now uses gnulib
25595         * users.txt: Add patch.
25596
25597 2010-04-12  Jim Meyering  <meyering@redhat.com>
25598
25599         maint.mk: generate more concise timing data for syntax-check rules
25600         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25601         " done" from each line that reports a syntax-check test duration.
25602
25603 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25604
25605         git-version-gen: use "git update-index..." rather than "git status"
25606         * build-aux/git-version-gen: Use git update-index --refresh, not
25607         "git status".  With some versions of git, "git status" would fail
25608         to update the index and result in an unwarranted "-dirty" suffix.
25609
25610 2010-04-11  Jim Meyering  <meyering@redhat.com>
25611
25612         openat: correct formatting (no semantic change)
25613         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25614         Suggested by Bruno Haible.
25615
25616 2010-04-11  Bruno Haible  <bruno@clisp.org>
25617
25618         Stricter declaration checking in testdirs.
25619         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25620         If for_tests is true, augment AM_CPPFLAGS to define
25621         GNULIB_STRICT_CHECKING.
25622         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25623         GNULIB_STRICT_CHECKING is defined, verify that the function is
25624         declared.
25625
25626 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25627             Bruno Haible  <bruno@clisp.org>
25628
25629         libunistring: Improve configure output.
25630         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25631         Don't say "consider installing GNU libunistring" when checking again
25632         with libiconv.
25633
25634 2010-04-11  Bruno Haible  <bruno@clisp.org>
25635
25636         libunistring: Correct value of $LTLIBUNISTRING.
25637         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25638         correct the value of $LTLIBUNISTRING.
25639
25640 2010-04-11  Bruno Haible  <bruno@clisp.org>
25641
25642         havelib: Add static libraries to LIBS in the right order.
25643         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25644         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25645
25646 2010-04-11  Bruno Haible  <bruno@clisp.org>
25647
25648         libunistring: Detect libunistring also when it depends on libiconv.
25649         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25650         the second AC_LIB_HAVE_LINKFLAGS invocation.
25651
25652 2010-04-11  James Youngman  <jay@gnu.org>
25653
25654         close-stream: declare local scalars to be "const"
25655         * lib/close-stream.c (close_stream): Make boolean variables const
25656         to document the fact that we set but do not change them.
25657
25658 2010-04-11  Bruno Haible  <bruno@clisp.org>
25659
25660         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25661
25662 2010-04-11  Jim Meyering  <meyering@redhat.com>
25663
25664         maint.mk: don't include dist-check.mk
25665         * top/maint.mk: Remove bogus include directive.
25666
25667         maint.mk: improve empty-line-at-EOF check
25668         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25669         solution, rather than tail+Perl-based one.  The latter would read
25670         a few kilobytes from the end of each file, and did not handle empty
25671         files properly.
25672
25673         maint.mk: print the elapsed time for each syntax-check rule
25674         * top/maint.mk (sc_m_rules_): Save start time in a file.
25675         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25676         (local-check): Interpose the .z rules
25677
25678 2010-04-11  Jim Meyering  <meyering@redhat.com>
25679
25680         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25681         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25682         empty file with one that ends in an empty line.
25683
25684 2010-04-10  Bruno Haible  <bruno@clisp.org>
25685
25686         mkdir: Make it work on mingw64.
25687         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25688         * lib/mkdir.c: Update comment.
25689         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
25690
25691 2010-04-10  Bruno Haible  <bruno@clisp.org>
25692
25693         Don't override improved macro from newer autoconf.
25694         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25695         autoconf >= 2.62.
25696         Reported by Joel E. Denny <jdenny@clemson.edu>.
25697
25698 2010-04-10  Jim Meyering  <meyering@redhat.com>
25699
25700         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25701         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25702
25703         maint.mk: correct a diagnostic
25704         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25705         in diagnostic; now use $prohibit.
25706
25707 2010-04-10  Bruno Haible  <address@hidden>
25708
25709         fchownat: Fix a C++ test error on Solaris 8.
25710         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25711         the function does not exist.
25712
25713 2010-04-10  Bruno Haible  <bruno@clisp.org>
25714
25715         vasnprintf: Add more tests.
25716         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25717         (test_function): Test converting an invalid wide string.
25718
25719         vasnprintf: Correct handling of unconvertible wide string arguments.
25720         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25721         VASNPRINTF.
25722         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25723         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25724         smaller than the expected maximum need for the directive. Set errno to
25725         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25726         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25728         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25729         * modules/vasnprintf (Files): Add m4/printf.m4.
25730         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25731
25732 2010-04-10  Bruno Haible  <bruno@clisp.org>
25733
25734         vasnprintf: Fix crash in %ls directive.
25735         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25736         string is passed as argument to %ls, with no precision and no width.
25737         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25738
25739 2010-04-10  Bruno Haible  <bruno@clisp.org>
25740
25741         vasnprintf: Fix multiple test failures on mingw.
25742         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25743         _snprintf, or snwprintf, not _snwprintf.
25744
25745 2010-04-10  Bruno Haible  <bruno@clisp.org>
25746
25747         write: Fix a C++ test error on mingw.
25748         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25749
25750 2010-04-10  Bruno Haible  <bruno@clisp.org>
25751
25752         vasnprintf test: Reduce code duplication.
25753         * tests/test-vasnprintf.c (test_function): New function, extracted from
25754         test_vasnprintf.
25755         (test_vasnprintf, test_asnprintf): Invoke it.
25756
25757 2010-04-10  Bruno Haible  <bruno@clisp.org>
25758
25759         strnlen: Fix warning in C++ mode on MacOS X.
25760         * lib/string.in.h (strnlen): Use the modern idiom.
25761         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25762         defining strnlen as a macro already in <config.h>.
25763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25764         REPLACE_STRNLEN.
25765         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25766         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25767
25768 2010-04-08  James Youngman  <jay@gnu.org>
25769
25770         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25771         the example.
25772
25773 2010-04-09  Jim Meyering  <meyering@redhat.com>
25774
25775         maint.mk: print better diagnostic when there is no $(_hv_file)
25776         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25777         announce that when $(_hv_file) (aka help-version) does not exist.
25778
25779         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25780         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25781         not try to interpret its random input bytes.  Jarno Rajahalme reported
25782         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25783         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25784         (mktempd_): Likewise, just in case.
25785
25786         ftruncate: add two years to projected module removal date: 2012
25787         * m4/ftruncate.m4: Adjust comments.
25788
25789         ftruncate: mark module as obsolete; even MinGW provides it, now
25790         * modules/ftruncate (Status): Obsolete.
25791         (Notice): Say that.
25792         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25793         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25794
25795 2010-04-08  Bruno Haible  <bruno@clisp.org>
25796
25797         Fix side effects from tests-related modules.
25798         * modules/dprintf-posix (Comment): New section.
25799         * modules/fprintf-posix (Comment): Likewise.
25800         * modules/obstack-printf-posix (Comment): Likewise.
25801         * modules/printf-posix (Comment): Likewise.
25802         * modules/snprintf-posix (Comment): Likewise.
25803         * modules/sprintf-posix (Comment): Likewise.
25804         * modules/vasnprintf-posix (Comment): Likewise.
25805         * modules/vasprintf-posix (Comment): Likewise.
25806         * modules/vdprintf-posix (Comment): Likewise.
25807         * modules/vfprintf-posix (Comment): Likewise.
25808         * modules/vprintf-posix (Comment): Likewise.
25809         * modules/vsnprintf-posix (Comment): Likewise.
25810         * modules/vsprintf-posix (Comment): Likewise.
25811         * modules/xprintf-posix (Comment): Likewise.
25812         * modules/xvasprintf-posix (Comment): Likewise.
25813         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25814         * modules/floorf-tests (Depends-on): Likewise.
25815         * modules/round-tests (Depends-on): Likewise.
25816         * modules/roundf-tests (Depends-on): Likewise.
25817         * modules/trunc-tests (Depends-on): Likewise.
25818         * modules/truncf-tests (Depends-on): Likewise.
25819         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25820         'fprintf-posix' module is not present.
25821         * tests/test-floorf2.c (check): Likewise.
25822         * tests/test-trunc2.c (check): Likewise.
25823         * tests/test-truncf2.c (check): Likewise.
25824         * tests/test-round2.c (equal): Likewise.
25825         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25826
25827 2010-04-07  Karl Berry  <karl@gnu.org>
25828
25829         * config/srclist.txt,
25830         * config/srclistvars.sh,
25831         * config/srclist-update: doc fixes.
25832
25833 2010-04-07  Jim Meyering  <meyering@redhat.com>
25834
25835         maint.mk: add a PATH crosschecking syntax-check rule
25836         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25837         Useful if you use a test like the one in help-version (coreutils,
25838         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25839         printed by prog --version.
25840
25841 2010-04-06  Bruno Haible  <bruno@clisp.org>
25842
25843         Fix link error on mingw.
25844         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25845         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25846
25847 2010-04-06  Bruno Haible  <bruno@clisp.org>
25848
25849         Assume rmdir exists.
25850         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25851
25852 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25853
25854         doc: update users.txt
25855         * users.txt: Add gcal.
25856
25857 2010-04-06  Jim Meyering  <meyering@redhat.com>
25858
25859         init.sh: simply unset TMPDIR rather than risking env -i
25860         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25861         although it probably works fine on all Unix-based systems, some
25862         systems (Cygwin?) cannot tolerate a totally cleared environment.
25863         Suggestion from Eric Blake.
25864
25865 2010-04-06  Jim Meyering  <meyering@redhat.com>
25866
25867         init.sh: portability fix: use env's POSIX-specified -i option not -u
25868         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25869         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25870
25871 2010-04-05  Bruno Haible  <bruno@clisp.org>
25872
25873         btowc: Work around Cygwin 1.7.2 bug.
25874         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25875         does not map NUL to 0.
25876         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25877
25878 2010-04-05  Bruno Haible  <bruno@clisp.org>
25879
25880         Make the multithread modules work on Cygwin 1.7.2.
25881         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25882         imported symbols can be declared weak, so that it returns "no" on
25883         Cygwin 1.7.2.
25884
25885 2010-04-05  Bruno Haible  <bruno@clisp.org>
25886
25887         Use the module 'strncat'.
25888         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25889
25890         Tests for module 'strncat'.
25891         * modules/strncat-tests: New file.
25892         * tests/test-strncat.c: New file.
25893
25894         New module 'strncat'.
25895         * lib/string.in.h (strncat): New declaration.
25896         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25897         * m4/strncat.m4: New file, based on m4/memchr.m4.
25898         * modules/strncat: New file.
25899         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25900         is declared.
25901         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25902         REPLACE_STRNCAT.
25903         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25904         REPLACE_STRNCAT.
25905         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25906         module.
25907         * tests/test-string-c++.cc: Check signature of strncat.
25908
25909 2010-04-05  Jim Meyering  <meyering@redhat.com>
25910
25911         xstrtoumax-tests: convert to use init.sh
25912         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25913         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25914         Use Exit, not exit.
25915         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25916
25917         xstrtoimax-tests: convert to use init.sh
25918         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25919         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25920         Use Exit, not exit.
25921         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25922
25923 2010-04-05  Bruno Haible  <bruno@clisp.org>
25924
25925         sys_socket: Avoid #define replacements in C++ mode.
25926         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25927         warning to the function if possible, rather than #defining the symbol
25928         to a dysfunctional alias.
25929
25930 2010-04-05  Bruno Haible  <bruno@clisp.org>
25931
25932         fseeko: Fix C++ test error on mingw.
25933         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25934         gl_FUNC_FSEEKO.
25935         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25936         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25937         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25938         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25939
25940 2010-04-05  Bruno Haible  <bruno@clisp.org>
25941
25942         duplocale: Improve test output.
25943         * tests/test-duplocale.c (main): Print reason for skipped test.
25944
25945 2010-04-05  Bruno Haible  <bruno@clisp.org>
25946
25947         Assume rmdir exists.
25948         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25949         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25950
25951 2010-04-05  Bruno Haible  <bruno@clisp.org>
25952
25953         Fix link error on Solaris 8 with cc.
25954         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25955
25956 2010-04-05  Bruno Haible  <bruno@clisp.org>
25957
25958         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25959         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25960
25961 2010-04-05  Bruno Haible  <bruno@clisp.org>
25962
25963         vasprintf: Update documentation.
25964         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25965
25966 2010-04-05  Bruno Haible  <bruno@clisp.org>
25967
25968         ptsname: Improve test.
25969         * tests/test-ptsname.c (main): Also try the various master names of BSD
25970         systems.
25971
25972 2010-04-05  Bruno Haible  <bruno@clisp.org>
25973
25974         memchr: Avoid a possible C++ test error.
25975         * lib/string.in.h (memchr): Provide declaration if function is missing.
25976         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25977         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25979         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25980
25981 2010-04-05  Bruno Haible  <bruno@clisp.org>
25982
25983         strtok_r: Improve idiom.
25984         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25985         AC_LIBOBJ is used.
25986
25987 2010-04-05  Bruno Haible  <bruno@clisp.org>
25988
25989         strdup: Improve idiom.
25990         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25991         AC_LIBOBJ is used.
25992         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25993         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25994         when AC_LIBOBJ is used.
25995
25996 2010-04-05  Bruno Haible  <bruno@clisp.org>
25997
25998         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25999         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
26000         don't set REPLACE_MBSINIT to 1.
26001         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
26002         don't set REPLACE_MBRTOWC to 1.
26003         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
26004         exist, don't set REPLACE_MBSRTOWCS to 1.
26005         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
26006         exist, don't set REPLACE_MBSNRTOWCS to 1.
26007         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
26008         don't set REPLACE_WCRTOMB to 1.
26009         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
26010         exist, don't set REPLACE_WCSRTOMBS to 1.
26011         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26012         exist, don't set REPLACE_WCSNRTOMBS to 1.
26013
26014 2010-04-05  Bruno Haible  <bruno@clisp.org>
26015
26016         ldexpl: Improve idiom.
26017         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
26018         make sure to set HAVE_DECL_LDEXPL to 0.
26019
26020 2010-04-05  Jim Meyering  <meyering@redhat.com>
26021
26022         xstrtol-tests: convert to use init.sh
26023         * modules/xstrtol-tests (Files): Add tests/init.sh.
26024         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26025         Use Exit, not exit.
26026         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26027
26028         atexit-tests: convert to use init.sh
26029         * modules/atexit-tests (Files): Add tests/init.sh.
26030         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26031         Use Exit, not exit.
26032         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26033
26034         init.sh: fix typo
26035         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
26036
26037         init.sh: make it easier for a test script to write to the tty, ...
26038         when using automake's parallel-tests mode.
26039         * tests/init.sh (stderr_fileno_): Define overridable variable.
26040         (warn_): New function, to use it.
26041         (fail_, skip_, framework_failure_): Use warn_.
26042
26043 2010-04-04  Bruno Haible  <bruno@clisp.org>
26044
26045         btowc: Avoid warning.
26046         * lib/btowc.c: Include <stdlib.h>.
26047         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26048
26049 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26050             Bruno Haible  <bruno@clisp.org>
26051
26052         wchar: Port to NetBSD 1.5.
26053         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26054         * lib/wctype.in.h (WEOF): Likewise.
26055
26056 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26057             Bruno Haible  <bruno@clisp.org>
26058
26059         Port extended stdio to NetBSD 1.5.
26060         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
26061         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26062         older.
26063
26064 2010-04-04  Bruno Haible  <bruno@clisp.org>
26065
26066         string: Remove unused substitution.
26067         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26068         HAVE_DECL_STRERROR.
26069         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26070
26071 2010-04-04  Bruno Haible  <bruno@clisp.org>
26072
26073         strtod: Avoid a possible C++ test error.
26074         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26075         set REPLACE_STRTOD.
26076
26077 2010-04-04  Bruno Haible  <bruno@clisp.org>
26078
26079         strerror: Update documentation.
26080         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26081
26082 2010-04-04  Bruno Haible  <bruno@clisp.org>
26083
26084         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26085         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26086         _GL_CXXALIAS_SYS_CAST.
26087
26088 2010-04-04  Bruno Haible  <bruno@clisp.org>
26089
26090         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26091         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26092         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26093         REPLACE_FREXPL to 1.
26094         * doc/posix-functions/frexpl.texi: Update documentation.
26095
26096 2010-04-04  Bruno Haible  <bruno@clisp.org>
26097
26098         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26099         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26100
26101 2010-04-04  Bruno Haible  <bruno@clisp.org>
26102
26103         Implement nanosleep for native Windows.
26104         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26105
26106 2010-04-04  Bruno Haible  <bruno@clisp.org>
26107
26108         math: Fix some C++ test errors on Solaris 8.
26109         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26110
26111 2010-04-04  Bruno Haible  <bruno@clisp.org>
26112
26113         math: Fix some C++ test errors on Cygwin.
26114         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26115         truncl): Provide declaration if the system does not have it.
26116         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26117         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26118         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26119         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26120         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26121         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26122         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26123         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26124         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26125         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26126         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26127         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26128         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26129         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26130         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26131         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26133         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26134         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26135         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26136         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26137         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26138
26139 2010-04-04  Bruno Haible  <bruno@clisp.org>
26140
26141         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26142         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26143         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26144         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26145         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26146         * m4/isinf.m4 (gl_ISINF): Likewise.
26147         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26148
26149 2010-04-04  Bruno Haible  <bruno@clisp.org>
26150
26151         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26152         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26153
26154 2010-04-04  Bruno Haible  <bruno@clisp.org>
26155
26156         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26157         * modules/tmpfile (configure.ac): Update.
26158
26159         tmpfile: Fix C++ test error on mingw.
26160         * lib/stdio.in.h (tmpfile): New declaration.
26161         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26162         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26163         * modules/tmpfile (Depends-on): Add stdio.
26164         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26165         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26166         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26167         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26168         REPLACE_TMPFILE.
26169         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26170
26171 2010-04-04  Bruno Haible  <bruno@clisp.org>
26172
26173         ioctl: Fix C++ test error on mingw.
26174         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26175         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26176         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26177
26178 2010-04-03  Bruno Haible  <bruno@clisp.org>
26179
26180         wcwidth: Fix C++ test error on mingw.
26181         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26183         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26184
26185 2010-04-03  Bruno Haible  <bruno@clisp.org>
26186
26187         nanosleep: Fix C++ test error on mingw.
26188         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26189         * lib/time.in.h (nanosleep): Use modern idiom.
26190         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26191         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26192         REPLACE_NANOSLEEP to 1.
26193         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26194         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26195
26196 2010-04-03  Bruno Haible  <bruno@clisp.org>
26197
26198         strptime: Fix C++ test error on mingw.
26199         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26200         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26201         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26202         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26203         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26204         not REPLACE_STRPTIME.
26205         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26206         REPLACE_STRPTIME.
26207
26208 2010-04-03  Bruno Haible  <bruno@clisp.org>
26209
26210         timegm: Fix C++ test error on mingw.
26211         * lib/time.in.h (timegm): Use modern idiom.
26212         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26213         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26214         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26215         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26216
26217 2010-04-03  Bruno Haible  <bruno@clisp.org>
26218
26219         timegm: Assume declaration if function exists.
26220         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26221         if it exists. Don't clobber ac_cv_func_timegm.
26222
26223 2010-04-03  Bruno Haible  <bruno@clisp.org>
26224
26225         time_r: Fix C++ test error on mingw.
26226         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26227         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26228         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26229         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26230         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26231
26232 2010-04-03  Bruno Haible  <bruno@clisp.org>
26233
26234         time_r: Minor updates.
26235         * modules/time_r (Description): Mention the provided functions.
26236         * lib/time_r.c: Don't include <string.h>.
26237         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26238         * doc/posix-functions/localtime_r.texi: Likewise.
26239
26240 2010-04-03  Bruno Haible  <bruno@clisp.org>
26241
26242         time: Fix regression introduced on 2010-03-08.
26243         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26244         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26245
26246 2010-04-03  Jim Meyering  <meyering@redhat.com>
26247
26248         maint.mk: don't silently disable project-specific syntax-check rules
26249         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26250         that they need to convert their project-specific syntax-check rules
26251         to use the new _sc_search_regexp.
26252
26253 2010-04-03  Bruno Haible  <bruno@clisp.org>
26254
26255         fchdir: Fix regression introduced on 2010-03-08.
26256         * lib/unistd.in.h (fchdir): Fix declaration.
26257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26259         REPLACE_FCHDIR.
26260         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26261         REPLACE_FCHDIR.
26262
26263 2010-04-03  Bruno Haible  <bruno@clisp.org>
26264
26265         getpagesize: Fix C++ test error on mingw.
26266         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26267         system does not declare the function.
26268         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26269         declared.
26270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26271         HAVE_DECL_GETPAGESIZE.
26272         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26273
26274 2010-04-03  Bruno Haible  <bruno@clisp.org>
26275
26276         stdio: Make C++ tests work on mingw.
26277         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26278         does not declare the function.
26279
26280 2010-04-03  Bruno Haible  <bruno@clisp.org>
26281
26282         ftello: Fix C++ test error on mingw.
26283         * lib/stdio.in.h (ftello): Use modern idiom.
26284         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26285         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26286         is missing and that it needs to be replaced.
26287         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26289         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26290
26291 2010-04-03  Bruno Haible  <bruno@clisp.org>
26292
26293         fseeko: Fix C++ test error on mingw.
26294         * lib/stdio.in.h (fseeko): Use modern idiom.
26295         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26296         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26297         is missing and that it needs to be replaced.
26298         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26300         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26301
26302 2010-04-03  Bruno Haible  <bruno@clisp.org>
26303
26304         mkstemp: Fix C++ test error on mingw.
26305         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26306         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26307         function is missing and that it needs to be replaced.
26308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26309         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26310
26311 2010-04-03  Bruno Haible  <bruno@clisp.org>
26312
26313         stpncpy: Fix C++ test error on mingw.
26314         * lib/string.in.h (stpncpy): Use modern idiom.
26315         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26316         function is missing and that it needs to be replaced.
26317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26318         REPLACE_STPNCPY.
26319         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26320
26321 2010-04-03  Bruno Haible  <bruno@clisp.org>
26322
26323         sys_stat: Fix C++ test error on mingw.
26324         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26325         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26326
26327 2010-04-03  Bruno Haible  <bruno@clisp.org>
26328
26329         pty: Update doc.
26330         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26331
26332 2010-04-03  Bruno Haible  <bruno@clisp.org>
26333
26334         unistd: Fix C++ test error on mingw.
26335         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26336
26337 2010-04-03  Bruno Haible  <bruno@clisp.org>
26338
26339         Update doc regarding mingw.
26340         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26341         * doc/glibc-functions/login_tty.texi: Likewise.
26342         * doc/glibc-functions/forkpty.texi: Likewise.
26343
26344 2010-04-03  Bruno Haible  <bruno@clisp.org>
26345
26346         stdlib: Avoid compilation failure of c-strtold on mingw.
26347         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26348
26349 2010-04-03  Bruno Haible  <bruno@clisp.org>
26350
26351         locale: Make C++ tests work on Cygwin and mingw.
26352         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26353         cannot provide the function.
26354         Reported by Simon Josefsson.
26355
26356 2010-04-03  Bruno Haible  <bruno@clisp.org>
26357
26358         localename: Port to MacOS X 10.6.
26359         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26360         memory layout of the locales in MacOS X 10.6 as well.
26361         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26362
26363 2010-04-02  Bruno Haible  <bruno@clisp.org>
26364
26365         gnulib-tool: Ensure that long-running tests are executed last.
26366         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26367         running tests after the one for the other tests.
26368
26369 2010-04-02  Bruno Haible  <bruno@clisp.org>
26370
26371         gnulib-tool: Ensure the tests in the main directory are executed first.
26372         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26373         start with the current directory.
26374
26375 2010-04-02  Bruno Haible  <bruno@clisp.org>
26376
26377         Tests for module 'havelib', moved here from GNU gettext.
26378         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26379         modifications.
26380         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26381         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26382         with modifications.
26383         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26384         modifications.
26385         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26386         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26387         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26388         with modifications.
26389         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26390         with modifications.
26391         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26392         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26393         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26394         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26395         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26396         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26397         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26398         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26399         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26400         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26401         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26402         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26403         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26404         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26405         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26406         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26407         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26408         with modifications.
26409         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26410         with modifications.
26411         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26412         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26413         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26414         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26415         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26416         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26417         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26418         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26419         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26420         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26421         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26422         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26423         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26424         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26425         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26426         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26427         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26428         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26429         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26430         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26431         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26432         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26433         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26434         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26435         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26436         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26437         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26438         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26439         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26440         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26441         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26442         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26443         * tests/havelib/rpathx/rpathx.c: New file, from
26444         gettext/autoconf-lib-link.
26445         * tests/havelib/rpathx/Makefile.am: New file, from
26446         gettext/autoconf-lib-link.
26447         * tests/havelib/rpathx/configure.ac: New file, from
26448         gettext/autoconf-lib-link with modifications.
26449         * tests/havelib/rpathy/rpathy.c: New file, from
26450         gettext/autoconf-lib-link.
26451         * tests/havelib/rpathy/Makefile.am: New file, from
26452         gettext/autoconf-lib-link.
26453         * tests/havelib/rpathy/configure.ac: New file, from
26454         gettext/autoconf-lib-link with modifications.
26455         * tests/havelib/rpathz/rpathz.c: New file, from
26456         gettext/autoconf-lib-link.
26457         * tests/havelib/rpathz/Makefile.am: New file, from
26458         gettext/autoconf-lib-link.
26459         * tests/havelib/rpathz/configure.ac: New file, from
26460         gettext/autoconf-lib-link with modifications.
26461         * tests/havelib/rpathlx/usex.c: New file, from
26462         gettext/autoconf-lib-link.
26463         * tests/havelib/rpathlx/Makefile.am: New file, from
26464         gettext/autoconf-lib-link.
26465         * tests/havelib/rpathlx/configure.ac: New file, from
26466         gettext/autoconf-lib-link with modifications.
26467         * tests/havelib/rpathly/usey.c: New file, from
26468         gettext/autoconf-lib-link.
26469         * tests/havelib/rpathly/Makefile.am: New file, from
26470         gettext/autoconf-lib-link.
26471         * tests/havelib/rpathly/configure.ac: New file, from
26472         gettext/autoconf-lib-link with modifications.
26473         * tests/havelib/rpathlz/usez.c: New file, from
26474         gettext/autoconf-lib-link.
26475         * tests/havelib/rpathlz/Makefile.am: New file, from
26476         gettext/autoconf-lib-link.
26477         * tests/havelib/rpathlz/configure.ac: New file, from
26478         gettext/autoconf-lib-link with modifications.
26479         * tests/havelib/rpathlyx/usey.c: New file, from
26480         gettext/autoconf-lib-link.
26481         * tests/havelib/rpathlyx/Makefile.am: New file, from
26482         gettext/autoconf-lib-link.
26483         * tests/havelib/rpathlyx/configure.ac: New file, from
26484         gettext/autoconf-lib-link with modifications.
26485         * tests/havelib/rpathlzyx/usez.c: New file, from
26486         gettext/autoconf-lib-link.
26487         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26488         gettext/autoconf-lib-link.
26489         * tests/havelib/rpathlzyx/configure.ac: New file, from
26490         gettext/autoconf-lib-link with modifications.
26491         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26492         with modifications.
26493
26494 2010-04-02  Bruno Haible  <bruno@clisp.org>
26495
26496         gnulib-tool: Create distributed built sources also for the tests.
26497         * gnulib-tool (func_create_testdir): Also generate distributed built
26498         sources in the tests directory.
26499
26500 2010-04-02  Bruno Haible  <bruno@clisp.org>
26501
26502         gnulib-tool: Obey user's environment variables.
26503         * gnulib-tool (func_create_testdir): When creating built sources,
26504         respect the environment variables for autoconf, automake, etc. given by
26505         the user.
26506
26507 2010-04-02  Bruno Haible  <bruno@clisp.org>
26508
26509         gnulib-tool: Provide the value of --m4-base to modules.
26510         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26511         of gl_m4_base.
26512
26513 2010-04-02  Eric Blake  <eblake@redhat.com>
26514
26515         maint.mk: fix some fallout
26516         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26517         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26518
26519 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26520
26521         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26522         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26523         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26524         (sc_cast_of_x_alloc_return_value): Likewise.
26525         (sc_cast_of_alloca_return_value): Likewise.
26526         (sc_space_tab): Likewise.
26527         (sc_prohibit_atoi_atof): Likewise.
26528         (sc_prohibit_magic_number_exit): Likewise.
26529         (sc_error_exit_success): Likewise.
26530         (sc_file_system): Likewise.
26531         (sc_prohibit_have_config_h): Likewise.
26532         (sc_require_config_h): Likewise.
26533         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26534         (sc_obsolete_symbols): Likewise.
26535         (sc_changelog): Likewise.
26536         (sc_program_name): Likewise.
26537         (sc_the_the): Likewise.
26538         (sc_trailing_blank): Likewise.
26539         (sc_two_space_separator_in_usage): Likewise.
26540         (sc_useless_cpp_parens): Likewise.
26541         (sc_GPL_version): Likewise.
26542         (sc_GFDL_version): Likewise.
26543         (sc_texinfo_acronym): Likewise.
26544         (sc_prohibit_cvs_keyword): Likewise.
26545         (sc_prohibit_stat_st_blocks): Likewise.
26546         (sc_prohibit_S_IS_definition): Likewise.
26547         (sc_redundant_const): Likewise.
26548         (sc_makefile_TAB_only_indentation): Likewise.
26549         (sc_m4_quote_check): Likewise.
26550         (sc_makefile_path_separator_check): Likewise.
26551         (sc_copyright_check): Likewise.
26552         (sc_Wundef_boolean): Likewise.
26553         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26554
26555         maint.mk: match 0 or more whitespace-before-function-call '('
26556         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26557         that have zero or two-and-more spaces between the function name
26558         and the open parenthesis.
26559         (sc_error_message_warn_fatal): Likewise.
26560         (sc_error_message_uppercase): Likewise.
26561         (sc_error_message_period): Likewise.
26562
26563 2010-03-31  Eric Blake  <eblake@redhat.com>
26564
26565         maint.mk: check for [ as well as test
26566         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26567         Based on a libvirt report by Matthias Bolte.
26568
26569         gnumakefile: don't squelch _version output
26570         * top/GNUmakefile (_version): Create one-shot dependency rather
26571         than using $(shell) when version must be regenerated.
26572         (_autoreconf): Run verbosely, by default.
26573
26574         sys_time: avoid compiler warnings
26575         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26576         unconditional, fixing regression from 2010-03-29.
26577         Reported by Simon Josefsson.
26578
26579 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26580
26581         maint.mk: s/_header_without_use/_sc_header_without_use/
26582         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26583         (sc_prohibit_assert_without_use): Use the new name.
26584         (sc_prohibit_close_stream_without_use): Likewise.
26585         (sc_prohibit_getopt_without_use): Likewise.
26586         (sc_prohibit_quotearg_without_use): Likewise.
26587         (sc_prohibit_quote_without_use): Likewise.
26588         (sc_prohibit_long_options_without_use): Likewise.
26589         (sc_prohibit_inttostr_without_use): Likewise.
26590         (sc_prohibit_ignore_value_without_use): Likewise.
26591         (sc_prohibit_error_without_use): Likewise.
26592         (sc_prohibit_xalloc_without_use): Likewise.
26593         (sc_prohibit_hash_without_use): Likewise.
26594         (sc_prohibit_hash_pjw_without_use): Likewise.
26595         (sc_prohibit_safe_read_without_use): Likewise.
26596         (sc_prohibit_argmatch_without_use): Likewise.
26597         (sc_prohibit_canonicalize_without_use): Likewise.
26598         (sc_prohibit_root_dev_ino_without_use): Likewise.
26599         (sc_prohibit_openat_without_use): Likewise.
26600         (sc_prohibit_c_ctype_without_use): Likewise.
26601         (sc_prohibit_signal_without_use): Likewise.
26602         (sc_prohibit_intprops_without_use): Likewise.
26603
26604 2010-03-30  Eric Blake  <eblake@redhat.com>
26605
26606         maint: improve module indicators
26607         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26608         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26609         columns, and avoid extra macro expansion.
26610
26611         fdopendir: work around FreeBSD bug
26612         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26613         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26614         * modules/dirent (Makefile.am): Substitute it.
26615         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26616         declaration.
26617         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26618         fix.
26619         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26620
26621 2010-03-29  Bruno Haible  <bruno@clisp.org>
26622
26623         Emit #pragma system_header after the inclusion guard, not before.
26624         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26625         guard that spans the entire file, not before. This enables an
26626         optimization in GCC's preprocessor.
26627         * lib/ctype.in.h: Likewise.
26628         * lib/dirent.in.h: Likewise.
26629         * lib/errno.in.h: Likewise.
26630         * lib/float.in.h: Likewise.
26631         * lib/getopt.in.h: Likewise.
26632         * lib/iconv.in.h: Likewise.
26633         * lib/langinfo.in.h: Likewise.
26634         * lib/locale.in.h: Likewise.
26635         * lib/math.in.h: Likewise.
26636         * lib/netdb.in.h: Likewise.
26637         * lib/netinet_in.in.h: Likewise.
26638         * lib/pty.in.h: Likewise.
26639         * lib/sched.in.h: Likewise.
26640         * lib/se-selinux.in.h: Likewise.
26641         * lib/search.in.h: Likewise.
26642         * lib/spawn.in.h: Likewise.
26643         * lib/stdarg.in.h: Likewise.
26644         * lib/stdint.in.h: Likewise.
26645         * lib/string.in.h: Likewise.
26646         * lib/strings.in.h: Likewise.
26647         * lib/sys_file.in.h: Likewise.
26648         * lib/sys_ioctl.in.h: Likewise.
26649         * lib/sys_time.in.h: Likewise.
26650         * lib/sys_times.in.h: Likewise.
26651         * lib/sys_utsname.in.h: Likewise.
26652         * lib/sys_wait.in.h: Likewise.
26653         * lib/sysexits.in.h: Likewise.
26654         * lib/wctype.in.h: Likewise.
26655
26656 2010-03-28  James Youngman  <jay@gnu.org>
26657
26658         save-cwd: don't leak a file descriptor when the caller execs.
26659         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26660         saved file descriptor.
26661         * modules/save-cwd (Depends-on): Depend on cloexec.
26662
26663 2010-03-29  Bruno Haible  <bruno@clisp.org>
26664
26665         Remove vestiges of fts-lgpl module.
26666         * lib/fts_.h: Assume GNULIB_FTS is 1.
26667         * lib/fts.c: Likewise.
26668         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26669
26670 2010-03-28  Bruno Haible  <bruno@clisp.org>
26671
26672         Fix definition of tests witness macro.
26673         * gnulib-tool (func_import): Fix definition of witness macro.
26674
26675 2010-03-28  Bruno Haible  <bruno@clisp.org>
26676
26677         Fix ioctl's protoype on glibc systems.
26678         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26679         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26680         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26681         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26682         signature. If not, arrange to replace the ioctl function.
26683         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26684         REPLACE_IOCTL.
26685         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26686         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26687         Reported by Ludovic Courtès <ludo@gnu.org>.
26688
26689 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26690
26691         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26692         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26693         made it so grep -r --include=GLOB* ... did not work.
26694
26695 2010-03-26  Jim Meyering  <meyering@redhat.com>
26696             Eric Blake  <eblake@redhat.com>
26697
26698         maint.mk: prohibit use of test's -o and -a operators
26699         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26700
26701 2010-03-28  Bruno Haible  <bruno@clisp.org>
26702
26703         Remove unused GNULIB_XYZ macro definitions.
26704         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26705         invocation.
26706
26707 2010-03-28  Bruno Haible  <bruno@clisp.org>
26708
26709         Mark privileged tests modules.
26710         * modules/idpriv-drop-tests (Status): New section.
26711         * modules/idpriv-droptemp-tests (Status): New section.
26712
26713 2010-03-28  Bruno Haible  <bruno@clisp.org>
26714
26715         Split C++ tests into separate tests modules.
26716         * modules/dirent-c++-tests: New file, extracted from
26717         modules/dirent-tests.
26718         * modules/dirent-tests: Depend on it.
26719         * modules/fcntl-h-c++-tests: New file, extracted from
26720         modules/fcntl-h-tests.
26721         * modules/fcntl-h-tests: Depend on it.
26722         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26723         * modules/glob-tests: Depend on it.
26724         * modules/iconv-h-c++-tests: New file, extracted from
26725         modules/iconv-h-tests.
26726         * modules/iconv-h-tests: Depend on it.
26727         * modules/langinfo-c++-tests: New file, extracted from
26728         modules/langinfo-tests.
26729         * modules/langinfo-tests: Depend on it.
26730         * modules/locale-c++-tests: New file, extracted from
26731         modules/locale-tests.
26732         * modules/locale-tests: Depend on it.
26733         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26734         * modules/math-tests: Depend on it.
26735         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26736         * modules/pty-tests: Depend on it.
26737         * modules/search-c++-tests: New file, extracted from
26738         modules/search-tests.
26739         * modules/search-tests: Depend on it.
26740         * modules/signal-c++-tests: New file, extracted from
26741         modules/signal-tests.
26742         * modules/signal-tests: Depend on it.
26743         * modules/spawn-c++-tests: New file, extracted from
26744         modules/spawn-tests.
26745         * modules/spawn-tests: Depend on it.
26746         * modules/stdio-c++-tests: New file, extracted from
26747         modules/stdio-tests.
26748         * modules/stdio-tests: Depend on it.
26749         * modules/stdlib-c++-tests: New file, extracted from
26750         modules/stdlib-tests.
26751         * modules/stdlib-tests: Depend on it.
26752         * modules/string-c++-tests: New file, extracted from
26753         modules/string-tests.
26754         * modules/string-tests: Depend on it.
26755         * modules/sys_ioctl-c++-tests: New file, extracted from
26756         modules/sys_ioctl-tests.
26757         * modules/sys_ioctl-tests: Depend on it.
26758         * modules/sys_select-c++-tests: New file, extracted from
26759         modules/sys_select-tests.
26760         * modules/sys_select-tests: Depend on it.
26761         * modules/sys_socket-c++-tests: New file, extracted from
26762         modules/sys_socket-tests.
26763         * modules/sys_socket-tests: Depend on it.
26764         * modules/sys_stat-c++-tests: New file, extracted from
26765         modules/sys_stat-tests.
26766         * modules/sys_stat-tests: Depend on it.
26767         * modules/sys_time-c++-tests: New file, extracted from
26768         modules/sys_time-tests.
26769         * modules/sys_time-tests: Depend on it.
26770         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26771         * modules/time-tests: Depend on it.
26772         * modules/unistd-c++-tests: New file, extracted from
26773         modules/unistd-tests.
26774         * modules/unistd-tests: Depend on it.
26775         * modules/wchar-c++-tests: New file, extracted from
26776         modules/wchar-tests.
26777         * modules/wchar-tests: Depend on it.
26778         * modules/wctype-c++-tests: New file, extracted from
26779         modules/wctype-tests.
26780         * modules/wctype-tests: Depend on it.
26781         Reported by Simon Josefsson.
26782
26783 2010-03-28  Bruno Haible  <bruno@clisp.org>
26784
26785         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26786         * gnulib-tool (func_exists_module): New function, extracted from
26787         func_verify_module.
26788         (func_verify_module): Use it.
26789         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26790         'foo' only if 'foo' exists.
26791         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26792         module.
26793
26794 2010-03-28  Bruno Haible  <bruno@clisp.org>
26795
26796         gnulib-tool: Add support for special categories of tests.
26797         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26798         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26799         (func_usage): Document them.
26800         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26801         inc_unportable_tests, inc_all_tests): New variables.
26802         (func_acceptable): Consider these variables.
26803         (func_modules_transitive_closure): Make it work when the 'Status' field
26804         consists of multiple words.
26805         (func_import): Store and restore the values of inc_cxx_tests,
26806         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26807         inc_all_tests in gnulib-comp.m4.
26808         (func_create_testdir): Set inc_all_tests to true.
26809         * doc/gnulib.texi (Extra tests modules): New section.
26810         Suggested by Jim Meyering.
26811
26812 2010-03-28  Bruno Haible  <bruno@clisp.org>
26813
26814         ansi-c++-opt: Allow turning off the C++ build by default.
26815         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26816         gl_CXX_CHOICE_DEFAULT_NO is defined.
26817         Requested by Eric Blake.
26818
26819 2010-03-28  Bruno Haible  <bruno@clisp.org>
26820
26821         unistd: Avoid #define replacements in C++ mode.
26822         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26823         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26824         setsockopt, shutdown, select): In C++, attach a warning to the function
26825         if possible, rather than #defining the symbol to a dysfunctional alias.
26826         Reported by John W. Eaton <jwe@gnu.org>.
26827
26828 2010-03-28  Bruno Haible  <bruno@clisp.org>
26829
26830         Fix link errors on mingw.
26831         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26832         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26833         $(LIBSOCKET).
26834         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26835         $(LIBSOCKET).
26836
26837 2010-03-28  Bruno Haible  <bruno@clisp.org>
26838             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26839
26840         lib-ignore: Determine different options for different compilers.
26841         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26842         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26843         Add comments.
26844         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26845         * NEWS: Mention the change.
26846
26847 2010-03-27  Bruno Haible  <bruno@clisp.org>
26848
26849         Remove unused GNULIB_XYZ macro definitions.
26850         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26851         * modules/fseek (configure.ac): Likewise.
26852         * modules/ioctl (configure.ac): Likewise.
26853         * modules/open (configure.ac): Likewise.
26854         * modules/stdlib-safer (configure.ac): Likewise.
26855
26856 2010-03-27  Bruno Haible  <bruno@clisp.org>
26857
26858         Add a remark about certain modules.
26859         * modules/malloc (Comment): New section.
26860         * modules/realloc (Comment): Likewise.
26861         * modules/sigpipe (Comment): Likewise.
26862
26863 2010-03-27  Bruno Haible  <bruno@clisp.org>
26864
26865         Resolve conflict between the two kinds of module indicators.
26866         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26867         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26868         * modules/canonicalize (configure.ac): Invoke
26869         gl_MODULE_INDICATOR_FOR_TESTS.
26870         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26871         GNULIB_XYZ.
26872         * tests/test-dirent-c++.cc: Likewise.
26873         * tests/test-dirent-safer.c: Likewise.
26874         * tests/test-dup2.c: Likewise.
26875         * tests/test-fchdir.c: Likewise.
26876         * tests/test-fcntl-h-c++.cc: Likewise.
26877         * tests/test-getopt.c: Likewise.
26878         * tests/test-getopt.h: Likewise.
26879         * tests/test-langinfo-c++.cc: Likewise.
26880         * tests/test-locale-c++.cc: Likewise.
26881         * tests/test-math-c++.cc: Likewise.
26882         * tests/test-pty-c++.cc: Likewise.
26883         * tests/test-search-c++.cc: Likewise.
26884         * tests/test-signal-c++.cc: Likewise.
26885         * tests/test-spawn-c++.cc: Likewise.
26886         * tests/test-stdio-c++.cc: Likewise.
26887         * tests/test-stdlib-c++.cc: Likewise.
26888         * tests/test-string-c++.cc: Likewise.
26889         * tests/test-sys_ioctl-c++.cc: Likewise.
26890         * tests/test-sys_select-c++.cc: Likewise.
26891         * tests/test-sys_socket-c++.cc: Likewise.
26892         * tests/test-sys_stat-c++.cc: Likewise.
26893         * tests/test-sys_time-c++.cc: Likewise.
26894         * tests/test-time-c++.cc: Likewise.
26895         * tests/test-unistd-c++.cc: Likewise.
26896         * tests/test-wchar-c++.cc: Likewise.
26897         * tests/uninorm/test-u8-nfc.c: Likewise.
26898         * tests/uninorm/test-u8-nfd.c: Likewise.
26899         * tests/uninorm/test-u8-nfkc.c: Likewise.
26900         * tests/uninorm/test-u8-nfkd.c: Likewise.
26901         * tests/uninorm/test-u16-nfc.c: Likewise.
26902         * tests/uninorm/test-u16-nfd.c: Likewise.
26903         * tests/uninorm/test-u16-nfkc.c: Likewise.
26904         * tests/uninorm/test-u16-nfkd.c: Likewise.
26905         * tests/uninorm/test-u32-nfc.c: Likewise.
26906         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26907         * tests/uninorm/test-u32-nfd.c: Likewise.
26908         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26909         * tests/uninorm/test-u32-nfkc.c: Likewise.
26910         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26911         * tests/uninorm/test-u32-nfkd.c: Likewise.
26912         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26913         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26914
26915 2010-03-27  Bruno Haible  <bruno@clisp.org>
26916
26917         Distinguish two kinds of module indicators.
26918         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26919         gl_MODULE_INDICATOR.
26920         (gl_MODULE_INDICATOR): New macro.
26921         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26922         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26923         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26924         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26925         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26926         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26927         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26928         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26929         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26930         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26931         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26932         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26933         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26934         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26935         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26936         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26937         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26938         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26939         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26940         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26941         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26942         * modules/cloexec (configure.ac): Likewise.
26943         * modules/getopt-gnu (configure.ac): Likewise.
26944         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26945         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26946         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26947         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26948
26949 2010-03-27  Bruno Haible  <bruno@clisp.org>
26950
26951         New module description field 'Comment'.
26952         * gnulib-tool: New option --extract-comment.
26953         (func_usage): Document it.
26954         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26955         (func_get_comment): New function.
26956         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26957
26958 2010-03-27  Bruno Haible  <bruno@clisp.org>
26959
26960         Addendum to 2010-02-07 commit.
26961         * gnulib-tool (func_usage): Document --extract-applicability option.
26962
26963 2010-03-27  Bruno Haible  <bruno@clisp.org>
26964
26965         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26966         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26967         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26968         rather than link errors.
26969
26970 2010-03-27  Bruno Haible  <bruno@clisp.org>
26971
26972         Avoid side effects from tests-related modules on the compilation of lib.
26973         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26974         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26975         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26976         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26977         macro.
26978         (func_import): Define a witness macro. Assign it a value that depends
26979         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26980         tests-related modules.
26981         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26982         Reported by Jim Meyering.
26983
26984 2010-03-27  Bruno Haible  <bruno@clisp.org>
26985
26986         Factorize common .m4 code.
26987         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26988         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26989         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26990         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26991         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26992         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26993         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26994         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26995         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26996         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26997         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26998         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26999         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27000         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27001         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27002         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
27003         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27004         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27006         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
27007         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
27008         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27009         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27010         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27011         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27012         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27013         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
27014         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
27015         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
27016         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27017         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27018         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27019
27020 2010-03-27  Bruno Haible  <bruno@clisp.org>
27021
27022         Fix a compilation error on Cygwin with g++ >= 4.3.
27023         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
27024         if it is undefined or if we alias it to chmod.
27025         (lstat): Don't warn about the use of this function if it is undefined
27026         or if we alias it to stat.
27027         Reported by Simon Josefsson.
27028
27029 2010-03-27  Bruno Haible  <bruno@clisp.org>
27030
27031         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
27032         * modules/getlogin (configure.ac): Update.
27033
27034         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
27035         * modules/getlogin_r (configure.ac): Update.
27036
27037         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
27038         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
27039         * modules/inet_ntop (configure.ac): Update.
27040
27041         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27042         * modules/inet_pton (configure.ac): Update.
27043
27044         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27045         * modules/mbslen (configure.ac): Update.
27046
27047         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27048         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27049         * modules/forkpty (configure.ac): Update.
27050         * modules/openpty (configure.ac): Update.
27051
27052 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27053
27054         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27055         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27056
27057 2010-03-25  Eric Blake  <eblake@redhat.com>
27058
27059         maint: use pragma consistently across replacement headers
27060         * lib/ctype.in.h (system_header): Hoist for consistent placement.
27061         * lib/dirent.in.h (system_header): Likewise.
27062         * lib/errno.in.h (system_header): Likewise.
27063         * lib/float.in.h (system_header): Likewise.
27064         * lib/getopt.in.h (system_header): Likewise.
27065         * lib/iconv.in.h (system_header): Likewise.
27066         * lib/inttypes.in.h (system_header): Likewise.
27067         * lib/langinfo.in.h (system_header): Likewise.
27068         * lib/locale.in.h (system_header): Likewise.
27069         * lib/math.in.h (system_header): Likewise.
27070         * lib/netdb.in.h (system_header): Likewise.
27071         * lib/netinet_in.in.h (system_header): Likewise.
27072         * lib/pty.in.h (system_header): Likewise.
27073         * lib/sched.in.h (system_header): Likewise.
27074         * lib/se-selinux.in.h (system_header): Likewise.
27075         * lib/search.in.h (system_header): Likewise.
27076         * lib/spawn.in.h (system_header): Likewise.
27077         * lib/stdarg.in.h (system_header): Likewise.
27078         * lib/stdint.in.h (system_header): Likewise.
27079         * lib/string.in.h (system_header): Likewise.
27080         * lib/strings.in.h (system_header): Likewise.
27081         * lib/sys_file.in.h (system_header): Likewise.
27082         * lib/sys_ioctl.in.h (system_header): Likewise.
27083         * lib/sys_socket.in.h (system_header): Likewise.
27084         * lib/sys_times.in.h (system_header): Likewise.
27085         * lib/sys_utsname.in.h (system_header): Likewise.
27086         * lib/sys_wait.in.h (system_header): Likewise.
27087         * lib/sysexits.in.h (system_header): Likewise.
27088         * lib/unistd.in.h (system_header): Likewise.
27089         * lib/wctype.in.h (system_header): Likewise.
27090
27091         arpa/inet: fix mingw compilation warning
27092         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27093         Reported by Matthew Bolte.
27094
27095 2010-03-25  Bruno Haible  <bruno@clisp.org>
27096
27097         Avoid collision between gnulib wrapper and libintl wrapper.
27098         * lib/printf.c (printf): Don't define if a printf wrapper is already
27099         defined in intl/printf.c.
27100         Reported by Michel Boaventura <michel@michelboaventura.com>.
27101
27102 2010-03-25  Bruno Haible  <bruno@clisp.org>
27103
27104         Use ANSI C.
27105         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27106
27107 2010-03-25  Bruno Haible  <bruno@clisp.org>
27108
27109         Minor formatting changes.
27110         * lib/acosl.c: Insert space before function argument list.
27111         * lib/argz.c: Likewise.
27112         * lib/asinl.c: Likewise.
27113         * lib/expl.c: Likewise.
27114         * lib/gen-uni-tables.c: Likewise.
27115         * lib/gettext.h: Likewise.
27116         * lib/glthread/lock.h: Likewise.
27117         * lib/tanl.c: Likewise.
27118         * lib/uniname/uniname.c: Likewise.
27119         * tests/test-idpriv-drop.c: Likewise.
27120         * tests/test-idpriv-droptemp.c: Likewise.
27121         * tests/test-lock.c: Likewise.
27122         * tests/test-tls.c: Likewise.
27123         * lib/argp-help.c: Insert space before function-like macro argument
27124         list.
27125         * lib/memcmp.c: Likewise.
27126         * tests/test-base64.c: Likewise.
27127         * lib/localename.c: Insert space before sizeof's argument list.
27128         * lib/safe-alloc.h: Likewise.
27129         * lib/file-set.h: Insert space before macro argument list.
27130         * tests/test-argp.c: Likewise.
27131         * lib/argp-namefrob.h: Insert space before function parameter list.
27132         * lib/getaddrinfo.c: Likewise.
27133         * lib/netdb.in.h: Likewise.
27134         * lib/parse-duration.h: Likewise.
27135         * lib/parse-duration.c: Likewise.
27136         * lib/poll.c: Likewise.
27137         * lib/select.c: Likewise.
27138         * lib/trim.h: Likewise.
27139         * tests/test-usleep.c: Likewise.
27140         * lib/ldexpl.c: Insert space before function parameter list and before
27141         function argument list.
27142         * lib/logl.c: Likewise.
27143         * lib/sqrtl.c: Likewise.
27144         * lib/trim.c: Likewise.
27145         * lib/cosl.c: Use GNU style indentation. Insert space before function
27146         argument list.
27147         * lib/sinl.c: Likewise.
27148         * lib/tsearch.c: Insert space after 'for'.
27149         Reported by Jim Meyering.
27150
27151 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27152
27153         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27154         config header before grepping, as it's not present before
27155         autoreconf/configure are run.  Reported by Simon Josefsson.
27156
27157 2010-03-23  Bruno Haible  <bruno@clisp.org>
27158
27159         pt_chown: Make it work with automake < 1.11.
27160         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27161         Reported by Simon Josefsson.
27162
27163 2010-03-23  Bruno Haible  <bruno@clisp.org>
27164
27165         pt_chown: Don't depend on GPLed modules.
27166         * lib/pt_chown.c: Don't include idpriv.h.
27167         (main): Don't drop privileges.
27168         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27169         Reported by Simon Josefsson.
27170
27171 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27172
27173         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27174         suggestions from karl@freefriends.org (Karl Berry).
27175
27176 2010-03-22  Eric Blake  <eblake@redhat.com>
27177
27178         gethostname: further tweaks
27179         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27180         are overriding gethostname.
27181         Suggested by Bruno Haible.
27182
27183 2010-03-21  Bruno Haible  <bruno@clisp.org>
27184
27185         Fix comments.
27186         * lib/forkpty.c (rpl_forkpty): Fix comment.
27187         * lib/openpty.c (rpl_openpty): Likewise.
27188         Reported by Eric Blake.
27189
27190 2010-03-22  Eric Blake  <eblake@redhat.com>
27191
27192         gethostname: fix build on mingw
27193         * lib/unistd.in.h (includes): Work around fact that mingw
27194         <winsock2.h> re-includes <unistd.h>, by avoiding any
27195         redeclarations if we are being included by <winsock2.h>.
27196         Reported by Matthias Bolte.
27197
27198 2010-03-21  Bruno Haible  <bruno@clisp.org>
27199
27200         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27201         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27202         modifications.
27203         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27204         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27205         provide the replacement.
27206         * modules/forkpty (Depends-on): Add openpty, login_tty.
27207         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27208         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27209         * doc/glibc-functions/forkpty.texi: More supported platforms.
27210         * config/srclist.txt: Add forkpty.c (commented).
27211
27212 2010-03-21  Bruno Haible  <bruno@clisp.org>
27213
27214         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27215         (Makefile.am): Verify that PTY_LIB is defined.
27216
27217         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27218
27219 2010-03-21  Bruno Haible  <bruno@clisp.org>
27220
27221         Tests for module 'login_tty'.
27222         * modules/login_tty-tests: New file.
27223         * tests/test-login_tty.c: New file.
27224
27225         New module 'login_tty'.
27226         * lib/login_tty.c: New file.
27227         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27228         * modules/login_tty: New file.
27229         * doc/glibc-functions/login_tty.texi: Mention the new module.
27230
27231 2010-03-21  Bruno Haible  <bruno@clisp.org>
27232
27233         login_tty: Documentation.
27234         * doc/glibc-functions/login_tty.texi: New file.
27235         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27236
27237 2010-03-21  Bruno Haible  <bruno@clisp.org>
27238
27239         pty: Consistent macro naming.
27240         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27241         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27242         * modules/pty (configure.ac): Update.
27243
27244 2010-03-21  Bruno Haible  <bruno@clisp.org>
27245
27246         Tests for openpty: Make stricter.
27247         * tests/test-openpty.c (main): Add test of canonical processing and
27248         erase.
27249         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27250
27251         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27252         * lib/openpty.c (openpty): New replacement function.
27253         * lib/pty.in.h: Include <termios.h>.
27254         (openpty): Update declaration. Add comments.
27255         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27256         is not declared, arrange to provide the replacement. Check for _getpty
27257         and posix_openpt.
27258         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27259         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27260         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27261         * modules/pty-tests (test_pty_c___LDADD): New variable.
27262         * doc/glibc-functions/openpty.texi: More supported platforms.
27263
27264 2010-03-21  Bruno Haible  <bruno@clisp.org>
27265
27266         setenv: Tweaks.
27267         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27268         the test program.
27269         * doc/posix-functions/setenv.texi: Update platforms list.
27270
27271 2010-03-21  Bruno Haible  <bruno@clisp.org>
27272
27273         New module 'unlockpt'.
27274         * lib/unlockpt.c: New file, from glibc with modifications.
27275         * m4/unlockpt.m4: New file.
27276         * modules/unlockpt: New file.
27277         * lib/stdlib.in.h (unlockpt): New declaration.
27278         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27279         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27280         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27281         HAVE_UNLOCKPT.
27282         * doc/posix-functions/unlockpt.texi: Mention the new module.
27283         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27284         * config/srclist.txt: Add unlockpt.c (commented).
27285
27286 2010-03-21  Jim Meyering  <meyering@redhat.com>
27287
27288         maint.mk: prohibit inclusion of "intprops.h" without use
27289         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27290
27291 2010-03-21  Bruno Haible  <bruno@clisp.org>
27292
27293         New module 'grantpt'.
27294         * lib/grantpt.c: New file, from glibc with modifications.
27295         * m4/grantpt.m4: New file.
27296         * modules/grantpt: New file.
27297         * lib/stdlib.in.h (grantpt): New declaration.
27298         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27299         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27300         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27301         HAVE_GRANTPT.
27302         * doc/posix-functions/grantpt.texi: Mention the new module.
27303         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27304         * config/srclist.txt: Add grantpt.c (commented).
27305
27306 2010-03-21  Bruno Haible  <bruno@clisp.org>
27307
27308         New module 'pt_chown'.
27309         * lib/pt_chown.c: New file, from glibc with modifications.
27310         * lib/pty-private.h: New file, from glibc with modifications.
27311         * modules/pt_chown: New file.
27312         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27313
27314 2010-03-21  Bruno Haible  <bruno@clisp.org>
27315
27316         Tests for module 'ptsname'.
27317         * modules/ptsname-tests: New file.
27318         * tests/test-ptsname.c: New file.
27319
27320         New module 'ptsname'.
27321         * lib/ptsname.c: New file, from glibc with modifications.
27322         * m4/ptsname.m4: New file.
27323         * modules/ptsname: New file.
27324         * lib/stdlib.in.h (ptsname): New declaration.
27325         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27326         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27327         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27328         HAVE_PTSNAME.
27329         * doc/posix-functions/ptsname.texi: Mention the new module.
27330         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27331         * config/srclist.txt: Add ptsname.c (commented).
27332
27333 2010-03-21  Bruno Haible  <bruno@clisp.org>
27334
27335         Tests for module 'ttyname_r'.
27336         * modules/ttyname_r-tests: New file.
27337         * tests/test-ttyname_r.c: New file.
27338
27339         New module 'ttyname_r'.
27340         * lib/ttyname_r.c: New file.
27341         * m4/ttyname_r.m4: New file.
27342         * modules/ttyname_r: New file.
27343         * lib/unistd.in.h (ttyname_r): New declaration.
27344         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27345         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27346         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27347         HAVE_TTYNAME_R.
27348         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27349         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27350
27351 2010-03-20  Bruno Haible  <bruno@clisp.org>
27352
27353         signal: Undefine macro definitions in C++ mode.
27354         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27355         sigfillset): Undefine macro definitions from the system header in C++
27356         mode.
27357         Reported by John W. Eaton <jwe@gnu.org>.
27358
27359 2010-03-20  Bruno Haible  <bruno@clisp.org>
27360
27361         Ensure no #include statements inside extern "C" { ... }.
27362         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27363         contain #include statements.
27364         * lib/time.in.h: Likewise.
27365
27366 2010-03-20  Bruno Haible  <bruno@clisp.org>
27367
27368         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27369         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27370         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27371         Reported by John W. Eaton <jwe@gnu.org>.
27372
27373 2010-03-20  Bruno Haible  <bruno@clisp.org>
27374
27375         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27376         Reported by Jim Meyering.
27377
27378 2010-03-20  Bruno Haible  <bruno@clisp.org>
27379
27380         pipe: Set errno upon failure.
27381         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27382         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27383         errno value in error message.
27384
27385 2010-03-20  Bruno Haible  <bruno@clisp.org>
27386             Jim Meyering  <meyering@redhat.com>
27387
27388         lchown: Avoid "unused variable" warning.
27389         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27390
27391 2010-03-20  Bruno Haible  <bruno@clisp.org>
27392
27393         Work around unlink() bug on MacOS X 10.5.6.
27394         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27395         attempting to unlink a parent directory.
27396         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27397         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27398         activate for the replacement function.
27399         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27400
27401 2010-03-20  Bruno Haible  <bruno@clisp.org>
27402
27403         Fix link errors on Solaris 8.
27404         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27405         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27406
27407 2010-03-19  Jim Meyering  <meyering@redhat.com>
27408
27409         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27410         The _LIBC implementation of build_range_exp correctly honors the
27411         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27412         However, the non-_LIBC implementation would ignore that syntax-bit
27413         flag and return REG_ERANGE unconditionally.
27414         This change makes it honor that flag.
27415         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27416         Make two pointer parameters "const".
27417         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27418         (parse_bracket_exp): Update caller.
27419
27420         regex.m4: correct the reversed range endpoint ([b-a]) test
27421         * m4/regex.m4: When requiring that [b-a] evoke failure,
27422         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27423         test pass once again for x86-based systems.
27424
27425 2010-03-19  Bruno Haible  <bruno@clisp.org>
27426
27427         scandir: Fix link error on Solaris 8.
27428         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27429         macros.
27430
27431 2010-03-19  Bruno Haible  <bruno@clisp.org>
27432
27433         getusershell: Fix documentation.
27434         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27435         module.
27436         * doc/glibc-functions/setusershell.texi: Likewise.
27437
27438         getusershell: Provide declaration, missing on Solaris 9.
27439         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27440         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27441         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27442         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27444         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27445         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27446         HAVE_GETUSERSHELL.
27447         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27448
27449 2010-03-19  Bruno Haible  <bruno@clisp.org>
27450
27451         wctype: Provide iswblank function.
27452         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27453         exists and is fine.
27454         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27455         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27456         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27457         * doc/posix-functions/iswblank.texi: Update.
27458
27459 2010-03-19  Bruno Haible  <bruno@clisp.org>
27460
27461         Tests of module 'pty' in C++ mode.
27462         * modules/pty-tests: New file.
27463         * tests/test-pty-c++.cc: New file.
27464         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27465
27466 2010-03-19  Eric Blake  <eblake@redhat.com>
27467
27468         logb: fix documentation
27469         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27470         1.5 declaration bug.
27471
27472         forkpty, openpty: prefer glibc's const-safe prototype
27473         * lib/forkpty.c (rpl_forkpty): New file.
27474         * lib/openpty.c (rpl_openpty): Likewise.
27475         * modules/forkpty (Files): Distribute it.
27476         * modules/openpty (Files): Likewise.
27477         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27478         check...
27479         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27480         replacement for for non-const BSD signature.
27481         * modules/pty (Makefile.am): Substitute witnesses.
27482         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27483         * tests/test-forkpty.c: Update signature check.
27484         * tests/test-openpty.c: Likewise.
27485         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27486         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27487
27488         forkpty, openpty: split functions into new modules
27489         * modules/pty (Makefile.am): Substitute new witnesses.
27490         (Libraries): Move library detection...
27491         * modules/forkpty: ...into new module.
27492         * modules/openpty: Another new module.
27493         * modules/pty-tests: Rename and split...
27494         * modules/forkpty-tests: ...to this...
27495         * modules/openpty-tests: ...and this.
27496         * tests/test-pty.c: Rename and split...
27497         * tests/test-forkpty.c: ...to this...
27498         * tests/test-openpty.c: ...and this.
27499         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27500         (gl_PTY): Split library searching...
27501         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27502         (gl_FORKPTY, gl_OPENPTY): New macros.
27503         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27504         * NEWS: Mention the split.
27505         * MODULES.html.sh (Misc): Document the modules.
27506         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27507         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27508
27509         pty: improve replacement header
27510         * lib/pty.in.h: New file.
27511         * modules/pty (Files): Ship it.
27512         (Makefile.am): Always build replacement.
27513         * m4/pty.m4: Rename...
27514         * m4/pty_h.m4: ...to this.
27515         (gl_PTY): Modernize setting of witness macros; update check of
27516         forkpty to take proper advantage of cache.
27517         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27518
27519         getopt: avoid compiler warning
27520         * lib/getopt.c (attribute_hidden): Remove unused macro.
27521
27522 2010-03-18  Bruno Haible  <bruno@clisp.org>
27523
27524         Fix link errors on Solaris 8.
27525         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27526         * modules/search-tests (test_search_c___LDADD): Likewise.
27527         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27528         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27529         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27530         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27531         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27532         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27533         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27534
27535 2010-03-18  Bruno Haible  <bruno@clisp.org>
27536
27537         Fix bug introduced on 2010-03-14.
27538         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27539         (gl_SPAWN_H): Require it.
27540         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27541         Reported by Simon Josefsson.
27542
27543 2010-03-18  Bruno Haible  <bruno@clisp.org>
27544
27545         Fix typo introduced on 2009-12-31.
27546         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27547         posix_spawn_file_actions_adddup2.
27548
27549 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27550         and Eric Blake  <eblake@redhat.com>
27551
27552         test-vc-list-files-git: make more robust
27553         * tests/test-vc-list-files-git.sh: Unset problematic environment
27554         variables.  Chain commands together.
27555
27556 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27557
27558         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27559         `AC_CHECK_DECL' invocation.
27560
27561 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27562
27563         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27564         appears before executable statements. Suggested by Petr Sumbera
27565         <Petr.Sumbera@Sun.COM>.
27566
27567 2010-03-14  Bruno Haible  <bruno@clisp.org>
27568
27569         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27570         portability problems. Instead use a simpler test.
27571         (main): Check that invalid arguments are rejected only on Linux.
27572
27573 2010-03-14  Bruno Haible  <bruno@clisp.org>
27574
27575         Fix bug introduced on 2009-12-31.
27576         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27577         gl_PREREQ_SYS_H_WINSOCK2 always.
27578         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27579         SYS_SOCKET_H variable.
27580         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27581         Update comments.
27582         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27583         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27584         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27585         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27586         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27587
27588 2010-03-14  Bruno Haible  <bruno@clisp.org>
27589
27590         Fix values returned by sinl, cosl.
27591         * lib/trigl.h: Add specification comments.
27592         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27593         that combines the values from the precomputed table with the values of
27594         the Chebyshev polynomials.
27595
27596 2010-03-14  Bruno Haible  <bruno@clisp.org>
27597
27598         Fix compilation error when modules 'posix_spawn[p]' are not used.
27599         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27600         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27601
27602 2010-03-14  Bruno Haible  <bruno@clisp.org>
27603
27604         Fix compilation error on mingw when module 'time_r' is not used.
27605         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27606         is 1.
27607         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27608         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27609         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27610         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27611
27612 2010-03-14  Bruno Haible  <bruno@clisp.org>
27613
27614         Fix compilation error with Sun C.
27615         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27616         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27617         instead of GCC specific ULONG_LONG_MAX.
27618         * lib/xstrtoll.c: Likewise.
27619         * lib/xstrtoull.c: Likewise.
27620
27621 2010-03-13  Bruno Haible  <bruno@clisp.org>
27622
27623         Allow the user to disable C++ code and tests.
27624         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27625         (gl_PROG_ANSI_CXX): Require it.
27626
27627 2010-03-13  Bruno Haible  <bruno@clisp.org>
27628
27629         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27630         cases.
27631
27632 2010-03-13  Bruno Haible  <bruno@clisp.org>
27633
27634         Test that gnulib does not break the standard C++ headers.
27635         * tests/test-locale-c++2.cc: New file.
27636         * modules/locale-tests (Files): Add it.
27637         (Makefile.am): Compile it for test-locale-c++.
27638         * tests/test-math-c++2.cc: New file.
27639         * modules/math-tests (Files): Add it.
27640         (Makefile.am): Compile it for test-math-c++.
27641         * tests/test-signal-c++2.cc: New file.
27642         * modules/signal-tests (Files): Add it.
27643         (Makefile.am): Compile it for test-signal-c++.
27644         * tests/test-stdio-c++2.cc: New file.
27645         * modules/stdio-tests (Files): Add it.
27646         (Makefile.am): Compile it for test-stdio-c++.
27647         * tests/test-stdlib-c++2.cc: New file.
27648         * modules/stdlib-tests (Files): Add it.
27649         (Makefile.am): Compile it for test-stdlib-c++.
27650         * tests/test-string-c++2.cc: New file.
27651         * modules/string-tests (Files): Add it.
27652         (Makefile.am): Compile it for test-string-c++.
27653         * tests/test-time-c++2.cc: New file.
27654         * modules/time-tests (Files): Add it.
27655         (Makefile.am): Compile it for test-time-c++.
27656         Reported by John W. Eaton <jwe@gnu.org>.
27657
27658 2010-03-13  Bruno Haible  <bruno@clisp.org>
27659
27660         * gnulib-tool (func_usage): Clarify which options are available for
27661         --create-testdir and --create-megatestdir.
27662
27663 2010-03-13  Bruno Haible  <bruno@clisp.org>
27664
27665         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27666         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27667         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27668         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27669         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27670         when appropriate.
27671         Reported by Jim Meyering.
27672
27673 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27674
27675         * gnulib-tool (func_import): Explain origin of code.
27676
27677 2010-03-12  Bruno Haible  <bruno@clisp.org>
27678
27679         Fix problem with automake's definition of CXXLINK.
27680         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27681         Reported by Simon Josefsson and Ludovic Courtès.
27682
27683 2010-03-12  Bruno Haible  <bruno@clisp.org>
27684
27685         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27686         stable releases.
27687
27688 2010-03-11  Bruno Haible  <bruno@clisp.org>
27689
27690         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27691         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27692         whether the system provides one variant or multiple variants of the
27693         function.
27694         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27695         C++ compilers.
27696         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27697         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27698         Reported by Jim Meyering.
27699
27700 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27701
27702         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27703
27704 2010-03-08  Bruno Haible  <bruno@clisp.org>
27705
27706         gnulib-tool: Add support for --libtool in --create-testdir.
27707         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27708         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27709
27710 2010-03-08  Eric Blake  <eblake@redhat.com>
27711
27712         gnulib-tool.texi: mention possibility of git submodule
27713         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27714         submodules.
27715         * doc/.gitignore: Ignore another generated file.
27716
27717 2010-03-08  Karl Berry  <karl@gnu.org>
27718
27719         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27720         of committing gnulib files while skipping others.
27721
27722 2010-03-07  Bruno Haible  <bruno@clisp.org>
27723
27724         Tests of module 'wctype' in C++ mode.
27725         * tests/test-wctype-c++.cc: New file.
27726         * modules/wctype-tests (Files): Add it and tests/signature.h.
27727         (Depends-on): Add ansi-c++-opt.
27728         (Makefile.am): Arrange to compile and run test-wctype-c++.
27729
27730         Tests of module 'wchar' in C++ mode.
27731         * tests/test-wchar-c++.cc: New file.
27732         * modules/wchar-tests (Files): Add it and tests/signature.h.
27733         (Depends-on): Add ansi-c++-opt.
27734         (Makefile.am): Arrange to compile and run test-wchar-c++.
27735         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27736         gl_MODULE_INDICATOR.
27737
27738         Tests of module 'unistd' in C++ mode.
27739         * tests/test-unistd-c++.cc: New file.
27740         * modules/unistd-tests (Files): Add it and tests/signature.h.
27741         (Depends-on): Add ansi-c++-opt.
27742         (Makefile.am): Arrange to compile and run test-unistd-c++.
27743         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27744         gl_MODULE_INDICATOR.
27745
27746         Tests of module 'time' in C++ mode.
27747         * tests/test-time-c++.cc: New file.
27748         * modules/time-tests (Files): Add it and tests/signature.h.
27749         (Depends-on): Add ansi-c++-opt.
27750         (Makefile.am): Arrange to compile and run test-time-c++.
27751         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27752
27753         Tests of module 'sys_time' in C++ mode.
27754         * tests/test-sys_time-c++.cc: New file.
27755         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27756         (Depends-on): Add ansi-c++-opt.
27757         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27758         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27759         gl_MODULE_INDICATOR.
27760
27761         Tests of module 'sys_stat' in C++ mode.
27762         * tests/test-sys_stat-c++.cc: New file.
27763         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27764         (Depends-on): Add ansi-c++-opt.
27765         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27766         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27767         gl_MODULE_INDICATOR.
27768
27769         Tests of module 'sys_socket' in C++ mode.
27770         * tests/test-sys_socket-c++.cc: New file.
27771         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27772         (Depends-on): Add ansi-c++-opt.
27773         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27774         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27775         gl_MODULE_INDICATOR.
27776
27777         Tests of module 'sys_select' in C++ mode.
27778         * tests/test-sys_select-c++.cc: New file.
27779         * modules/sys_select-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_select-c++.
27782         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27783         gl_MODULE_INDICATOR.
27784
27785         Tests of module 'sys_ioctl' in C++ mode.
27786         * tests/test-sys_ioctl-c++.cc: New file.
27787         * modules/sys_ioctl-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_ioctl-c++.
27790         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27791         gl_MODULE_INDICATOR.
27792
27793         Tests of module 'string' in C++ mode.
27794         * tests/test-string-c++.cc: New file.
27795         * modules/string-tests (Files): Add it and tests/signature.h.
27796         (Depends-on): Add ansi-c++-opt.
27797         (Makefile.am): Arrange to compile and run test-string-c++.
27798         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27799         gl_MODULE_INDICATOR.
27800
27801         Tests of module 'stdlib' in C++ mode.
27802         * tests/test-stdlib-c++.cc: New file.
27803         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27804         (Depends-on): Add ansi-c++-opt.
27805         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27806         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27807         gl_MODULE_INDICATOR.
27808
27809         Tests of module 'stdio' in C++ mode.
27810         * tests/test-stdio-c++.cc: New file.
27811         * modules/stdio-tests (Files): Add it and tests/signature.h.
27812         (Depends-on): Add ansi-c++-opt.
27813         (Makefile.am): Arrange to compile and run test-stdio-c++.
27814         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27815         gl_MODULE_INDICATOR.
27816
27817         Tests of module 'spawn' in C++ mode.
27818         * tests/test-spawn-c++.cc: New file.
27819         * modules/spawn-tests (Files): Add it and tests/signature.h.
27820         (Depends-on): Add ansi-c++-opt.
27821         (Makefile.am): Arrange to compile and run test-spawn-c++.
27822         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27823         gl_MODULE_INDICATOR.
27824
27825         Tests of module 'signal' in C++ mode.
27826         * tests/test-signal-c++.cc: New file.
27827         * modules/signal-tests (Files): Add it and tests/signature.h.
27828         (Depends-on): Add ansi-c++-opt.
27829         (Makefile.am): Arrange to compile and run test-signal-c++.
27830         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27831         gl_MODULE_INDICATOR.
27832
27833         Tests of module 'search' in C++ mode.
27834         * tests/test-search-c++.cc: New file.
27835         * modules/search-tests (Files): Add it and tests/signature.h.
27836         (Depends-on): Add ansi-c++-opt.
27837         (Makefile.am): Arrange to compile and run test-search-c++.
27838         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27839         gl_MODULE_INDICATOR.
27840
27841         Tests of module 'math' in C++ mode.
27842         * tests/test-math-c++.cc: New file.
27843         * modules/math-tests (Files): Add it and tests/signature.h.
27844         (Depends-on): Add ansi-c++-opt.
27845         (Makefile.am): Arrange to compile and run test-math-c++.
27846         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27847
27848         Tests of module 'locale' in C++ mode.
27849         * tests/test-locale-c++.cc: New file.
27850         * modules/locale-tests (Files): Add it and tests/signature.h.
27851         (Depends-on): Add ansi-c++-opt.
27852         (Makefile.am): Arrange to compile and run test-locale-c++.
27853         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27854         gl_MODULE_INDICATOR.
27855
27856         Tests of module 'langinfo' in C++ mode.
27857         * tests/test-langinfo-c++.cc: New file.
27858         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27859         (Depends-on): Add ansi-c++-opt.
27860         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27861         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27862         gl_MODULE_INDICATOR.
27863
27864         Tests of module 'iconv-h' in C++ mode.
27865         * tests/test-iconv-h-c++.cc: New file.
27866         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27867         (Depends-on): Add ansi-c++-opt.
27868         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27869
27870         Tests of module 'glob' in C++ mode.
27871         * tests/test-glob-c++.cc: New file.
27872         * modules/glob-tests (Files): Add it.
27873         (Depends-on): Add ansi-c++-opt.
27874         (Makefile.am): Arrange to compile and run test-glob-c++.
27875
27876         Tests of module 'fcntl-h' in C++ mode.
27877         * tests/test-fcntl-h-c++.cc: New file.
27878         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27879         (Depends-on): Add ansi-c++-opt.
27880         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27881         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27882         gl_MODULE_INDICATOR.
27883
27884         Tests of module 'dirent' in C++ mode.
27885         * tests/test-dirent-c++.cc: New file.
27886         * modules/dirent-tests (Files): Add it and tests/signature.h.
27887         (Depends-on): Add ansi-c++-opt.
27888         (Makefile.am): Arrange to compile and run test-dirent-c++.
27889         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27890         gl_MODULE_INDICATOR.
27891
27892         New module 'ansi-c++-opt'.
27893         * modules/ansi-c++-opt: New file.
27894         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27895
27896         Document C++ namespace mode.
27897         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27898
27899         wctype: Avoid #define replacements in C++ mode.
27900         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27901         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27902         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27903         In C++, define a namespaced alias symbol.
27904         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27905         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27906         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27907         rule.
27908
27909         wchar: Avoid #define replacements in C++ mode.
27910         * lib/wchar.in.h: Include c++defs.h.
27911         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27912         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27913         symbol.
27914         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27915         * modules/wchar (Depends-on): Add c++defs.
27916         (Makefile.am): Update wchar.h rule.
27917
27918         unistd: Avoid #define replacements in C++ mode.
27919         * lib/unistd.in.h: Include c++defs.h.
27920         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27921         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27922         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27923         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27924         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27925         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27926         symbol.
27927         (environ): Update.
27928         * modules/unistd (Depends-on): Add c++defs.
27929         (Makefile.am): Update unistd.h rule.
27930
27931         time: Avoid #define replacements in C++ mode.
27932         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27933         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27934         define a namespaced alias symbol.
27935         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27936         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27937         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27938         * modules/time (Depends-on): Add c++defs, warn-on-use.
27939         (Makefile.am): Update time.h rule.
27940         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27941         * modules/nanosleep (configure.ac): Likewise.
27942         * modules/strptime (configure.ac): Likewise.
27943         * modules/timegm (configure.ac): Likewise.
27944
27945         sys_time: Avoid #define replacements in C++ mode.
27946         * lib/sys_time.in.h: Include c++defs.h.
27947         (gettimeofday): In C++, define a namespaced alias symbol.
27948         * modules/sys_time (Depends-on): Add c++defs.
27949         (Makefile.am): Update sys/time.h rule.
27950
27951         sys_stat: Avoid #define replacements in C++ mode.
27952         * lib/sys_stat.in.h: Include c++defs.h.
27953         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27954         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27955         namespaced alias symbol.
27956         In C++, define a namespaced alias symbol.
27957         * modules/sys_stat (Depends-on): Add c++defs.
27958         (Makefile.am): Update sys/stat.h rule.
27959
27960         sys_socket: Avoid #define replacements in C++ mode.
27961         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27962         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27963         definitions also when the system has a <sys/socket.h>.
27964         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27965         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27966         In C++, define a namespaced alias symbol.
27967         * modules/sys_socket (Depends-on): Add c++defs.
27968         (Makefile.am): Update sys/socket.h rule.
27969
27970         sys_select: Avoid #define replacements in C++ mode.
27971         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27972         definitions also when the system has a <sys/select.h>.
27973         (select): In C++, define a namespaced alias symbol.
27974         * modules/sys_select (Depends-on): Add c++defs.
27975         (Makefile.am): Update sys/select.h rule.
27976
27977         sys_ioctl: Avoid #define replacements in C++ mode.
27978         * lib/sys_ioctl.in.h: Include c++defs.h.
27979         (ioctl): In C++, define a namespaced alias symbol.
27980         * modules/sys_ioctl (Depends-on): Add c++defs.
27981         (Makefile.am): Update sys/ioctl.h rule.
27982
27983         string: Avoid #define replacements in C++ mode.
27984         * lib/string.in.h: Include c++defs.h.
27985         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27986         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27987         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27988         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27989         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27990         * modules/string (Depends-on): Add c++defs.
27991         (Makefile.am): Update string.h rule.
27992
27993         stdlib: Avoid #define replacements in C++ mode.
27994         * lib/stdlib.in.h: Include c++defs.h.
27995         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27996         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27997         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27998         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27999         symbol.
28000         * modules/stdlib (Depends-on): Add c++defs.
28001         (Makefile.am): Update stdlib.h rule.
28002
28003         stdio: Avoid #define replacements in C++ mode.
28004         * lib/stdio.in.h: Include c++defs.h.
28005         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
28006         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
28007         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
28008         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
28009         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
28010         namespaced alias symbol.
28011         * modules/stdio (Depends-on): Add c++defs.
28012         (Makefile.am): Update stdio.h rule.
28013
28014         spawn: Avoid #define replacements in C++ mode.
28015         * lib/spawn.in.h: Include c++defs.h.
28016         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28017         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28018         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28019         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28020         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28021         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28022         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28023         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28024         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28025         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28026         In C++, define a namespaced alias symbol.
28027         * modules/spawn (Depends-on): Add c++defs.
28028         (Makefile.am): Update spawn.h rule.
28029
28030         signal: Avoid #define replacements in C++ mode.
28031         * lib/signal.in.h: Include c++defs.h.
28032         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28033         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
28034         namespaced alias symbol.
28035         * modules/signal (Depends-on): Add c++defs.
28036         (Makefile.am): Update signal.h rule.
28037
28038         search: Avoid #define replacements in C++ mode.
28039         * lib/search.in.h: Include c++defs.h.
28040         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28041         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28042         symbol.
28043         * modules/search (Depends-on): Add c++defs.
28044         (Makefile.am): Update search.h rule.
28045
28046         math: Avoid #define replacements in C++ mode.
28047         * lib/math.in.h: Include c++defs.h.
28048         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28049         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28050         trunc, truncl): In C++, define a namespaced alias symbol.
28051         * modules/math (Depends-on): Add c++defs.
28052         (Makefile.am): Update math.h rule.
28053
28054         locale: Avoid #define replacements in C++ mode.
28055         * lib/locale.in.h: Include c++defs.h.
28056         (duplocale): In C++, define a namespaced alias symbol.
28057         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
28058         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
28059         * modules/locale (Depends-on): Add c++defs.
28060         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
28061
28062         langinfo: Avoid #define replacements in C++ mode.
28063         * lib/langinfo.in.h: Include c++defs.h.
28064         (nl_langinfo): In C++, define a namespaced alias symbol.
28065         * modules/langinfo (Depends-on): Add c++defs.
28066         (Makefile.am): Update langinfo.h rule.
28067
28068         iconv-h: Avoid #define replacements in C++ mode.
28069         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28070         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28071         symbol.
28072         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28073         whenever iconv is present.
28074         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28075         (Makefile.am): Update iconv.h rule.
28076
28077         glob: Avoid #define replacements in C++ mode.
28078         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28079         (_gl_glob_errfunc_fn): New type.
28080         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28081         symbol.
28082         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28083         (Makefile.am): Update glob.h rule.
28084
28085         fcntl-h: Avoid #define replacements in C++ mode.
28086         * lib/fcntl.in.h: Include c++defs.h.
28087         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28088         * modules/fcntl-h (Depends-on): Add c++defs.
28089         (Makefile.am): Update fcntl.h rule.
28090
28091         dirent: Avoid #define replacements in C++ mode.
28092         * lib/dirent.in.h: Include c++defs.h.
28093         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28094         namespaced alias symbol.
28095         (dirfd): Update declaration.
28096         * modules/dirent (Depends-on): Add c++defs.
28097         (Makefile.am): Update dirent.h rule.
28098
28099         ctype: Make it usable in C++ code.
28100         * lib/ctype.in.h: Include c++defs.h.
28101         (isblank): Declare as extern "C".
28102         * modules/ctype (Depends-on): Add c++defs.
28103         (Makefile.am): Update ctype.h rule.
28104
28105         New module 'c++defs'.
28106         * modules/c++defs: New file.
28107         * build-aux/c++defs.h: New file.
28108         Reported by John W. Eaton <jwe@gnu.org>.
28109
28110 2010-03-07  Bruno Haible  <bruno@clisp.org>
28111
28112         logb: Provide missing declaration for Cygwin.
28113         * lib/math.in.h (logb): New declaration.
28114         * m4/logb.m4: New file.
28115         * modules/logb (Files): Add m4/logb.m4.
28116         (Depends-on): Add math.
28117         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28118         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28120         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28121         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28122
28123 2010-03-07  Bruno Haible  <bruno@clisp.org>
28124
28125         Fix test-cond link error.
28126         * tests/test-cond.c: Include <stdio.h>.
28127
28128 2010-03-07  Bruno Haible  <bruno@clisp.org>
28129
28130         Fix test-dirent-safer link error.
28131         * modules/dirent-safer-tests (Makefile.am): Define
28132         test_dirent_safer_LDADD.
28133
28134 2010-03-07  Bruno Haible  <bruno@clisp.org>
28135
28136         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28137         among default module list.
28138
28139 2010-03-07  Bruno Haible  <bruno@clisp.org>
28140
28141         Fix link error on platforms with GNU libiconv.
28142         * modules/unistr/u8-strcoll-tests (Makefile): Define
28143         test_u8_strcoll_LDADD.
28144         * modules/unistr/u16-strcoll-tests (Makefile): Define
28145         test_u16_strcoll_LDADD.
28146         * modules/unistr/u32-strcoll-tests (Makefile): Define
28147         test_u32_strcoll_LDADD.
28148
28149 2010-03-07  Bruno Haible  <bruno@clisp.org>
28150
28151         Use POSIX declarations for socket functions.
28152         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28153         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28154         rpl_sendto): Change declaration to match POSIX.
28155         * lib/connect.c (rpl_connect): Likewise.
28156         * lib/accept.c (rpl_accept): Likewise.
28157         * lib/bind.c (rpl_bind): Likewise.
28158         * lib/getpeername.c (rpl_getpeername): Likewise.
28159         * lib/getsockname.c (rpl_getsockname): Likewise.
28160         * lib/recv.c (rpl_recv): Likewise.
28161         * lib/send.c (rpl_send): Likewise.
28162         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28163         * lib/sendto.c (rpl_sendto): Likewise.
28164
28165 2010-03-06  Bruno Haible  <bruno@clisp.org>
28166
28167         Clarify access, euidaccess, faccessat.
28168         * doc/posix-functions/faccessat.texi: Mention security problem under
28169         "Other problems", not "Portability problems".
28170         * doc/posix-functions/access.texi: Likewise. Mention a related security
28171         problem.
28172         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28173         * lib/euidaccess.c: Add comments about platforms.
28174         * lib/unistd.in.h (access, euidaccess): Add warnings.
28175
28176 2010-03-07  Bruno Haible  <bruno@clisp.org>
28177
28178         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28179         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28180         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28181         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28182         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28183         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28184         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28185         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28186         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28187         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28188         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28189         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28190         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28191         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28192         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28193         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28194         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28195         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28196         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28197         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28198         Likewise.
28199         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28200         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28201         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28202         Likewise.
28203         * tests/test-spawn.c (main): Make it work when
28204         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28205
28206 2010-03-07  Bruno Haible  <bruno@clisp.org>
28207
28208         Fix incorrect Makefile.am generation in German locale.
28209         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28210         Execute sed command with character range in C locale.
28211
28212 2010-03-06  Bruno Haible  <bruno@clisp.org>
28213
28214         Tests for module 'iconv-h'.
28215         * modules/iconv-h-tests: New file.
28216         * tests/test-iconv-h.c: New file.
28217
28218         New module 'iconv-h'.
28219         * modules/iconv-h: New file.
28220         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28221         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28222         (configure.ac): Remove gl_ICONV_H.
28223         (Makefile.am): Remove rule for iconv.h.
28224
28225 2010-03-06  Bruno Haible  <bruno@clisp.org>
28226
28227         More consistent naming of *.m4 files.
28228         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28229         * modules/wctype (Files): Update.
28230
28231         More consistent naming of *.m4 files.
28232         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28233         * modules/wchar (Files): Update.
28234
28235 2010-03-06  Jim Meyering  <meyering@redhat.com>
28236
28237         euidaccess: relax license to LGPLv2+
28238         * modules/euidaccess (License): Relax to LGPLv2+.
28239
28240 2010-03-06  Bruno Haible  <bruno@clisp.org>
28241
28242         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28243         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28244         (Makefile.am): Augment lib_SOURCES instead.
28245
28246 2010-03-04  Jim Meyering  <meyering@redhat.com>
28247
28248         utime: remove obsolete module
28249         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28250         unnecessary for years, and has been marked as obsolete for 10 months.
28251         * modules/utime: Remove file.
28252         * lib/utime.c: Remove file.
28253         * m4/utime.m4: Remove file.
28254         * m4/utimes-null.m4: Remove file.
28255         * doc/posix-functions/utime.texi (utime): Remove reference to
28256         the module.  Move the sole "fixed by gnulib" item into the
28257         "problems not fixed by Gnulib" list.
28258         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28259
28260 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28261
28262         * modules/exit (License): Relax license to LGPLv2+.
28263         (Status): Mark as obsolete.
28264         * NEWS: Mention deprecated 'exit' module.
28265         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28266         of now obsolete 'exit'.
28267
28268 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28269
28270         fts-lgpl: remove unused module
28271         * modules/fts-lgpl: Remove.
28272         * MODULES.html.sh (func_all_modules): Adjust.
28273         * check-module (find_included_lib_files): Adjust.
28274         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28275
28276 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28277
28278         copy-acl: enhance Solaris ACL error handling
28279         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28280         * lib/set-mode-acl.c (qset_acl): Likewise.
28281
28282 2010-03-02  Bruno Haible  <bruno@clisp.org>
28283
28284         spawn: Don't override the system defined values on FreeBSD 8.
28285         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28286         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28287         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28288         if HAVE_POSIX_SPAWN is 1.
28289         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28290
28291 2010-03-01  Bruno Haible  <bruno@clisp.org>
28292
28293         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28294         regarding Automake.
28295
28296 2010-02-25  Bruno Haible  <bruno@clisp.org>
28297
28298         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28299         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28300         setting, not afterwards.
28301         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28302
28303 2010-02-24  Eric Blake  <eblake@redhat.com>
28304
28305         bootstrap, git-version-gen: use timestamp
28306         * build-aux/git-version-gen (scriptversion): Force UTC.
28307         * build-aux/bootstrap (scriptversion): New variable.
28308
28309         bootstrap: allow older git
28310         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28311         older than 1.6.4.  Requested by the libvirt project.
28312
28313 2010-02-23  Eric Blake  <eblake@redhat.com>
28314
28315         warn-on-use: work with old autoconf
28316         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28317         AS_VAR semantics of autoconf 2.60.
28318         Reported by Bruno Haible.
28319
28320         bootstrap: improve some comments
28321         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28322         clarification comments.
28323
28324         gettimeofday: provide correct function
28325         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28326         when replacement is declared, otherwise provide gettimeofday.
28327         Reported by Michael Goffioul.
28328
28329 2010-02-23  Jim Meyering  <meyering@redhat.com>
28330
28331         lib-ignore: relax license to "unlimited", not LGPLv2+
28332         * modules/lib-ignore (License): Relax to "unlimited".
28333
28334 2010-02-23  Jim Meyering  <meyering@redhat.com>
28335
28336         lib-ignore: relax license to LGPLv2+
28337         * modules/lib-ignore (License): Relax to LGPLv2+.
28338
28339 2010-02-22  Eric Blake  <eblake@redhat.com>
28340
28341         lseek: avoid bash 3.2 broken pipe bug
28342         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28343         warning from bash 3.2.
28344         Reported by Ben Pfaff, with analysis from Bruno Haible.
28345
28346         bootstrap: support non-FSF copyright holder
28347         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28348         bootstrap.conf override of COPYRIGHT_HOLDER.
28349         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28350
28351         bootstrap: interoperate with gettext 0.14.1
28352         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28353
28354         bootstrap: allow for alternate submodule location
28355         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28356         hardcoding submodule location.
28357         (gnulib_mk): Allow direct use of Makefile.am.
28358
28359         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28360         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28361         rather than reconfiguring where the submodule points.
28362
28363         gettimeofday: restore support for platforms that lack function
28364         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28365         replacement if function is missing.
28366         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28367         * modules/sys_time (Makefile.am): Substitute it.
28368         * lib/sys_time.in.h (gettimeofday): Check it.
28369         Reported by Michael Goffioul.
28370
28371 2010-02-21  Bruno Haible  <bruno@clisp.org>
28372
28373         * lib/stdio.in.h (obstack_printf): Fix typo.
28374
28375 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28376
28377         vc-list-files: use bzr ls's -R option
28378         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28379         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28380
28381 2010-02-21  Jim Meyering  <meyering@redhat.com>
28382
28383         init.sh: fix EXEEXT shims to work also for names like test-prog
28384         * tests/init.sh: Re-exec a better shell, when needed.
28385         If the current shell lacks support for posix $(...), an init.sh-using
28386         test will now try to find a shell that supports that.  If EXEEXT is
28387         nonempty, we also require support for hyphen-in-alias-name and shell
28388         substitutions like ${var#glob}.  Failure to find such a shell results
28389         in a skipped test.
28390
28391 2010-02-21  Bruno Haible  <bruno@clisp.org>
28392
28393         Really work around around "broken pipe" error message from bash 3.2.
28394         * gnulib-tool (func_reset_sigpipe): Remove function.
28395         (echo): In bash 3.2, define to a function that uses printf.
28396         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28397
28398 2010-02-20  Bruno Haible  <bruno@clisp.org>
28399
28400         Restore support for automake 1.9.6 with autoconf 2.61.
28401         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28402         Reported by James Youngman <jay@gnu.org>.
28403
28404 2010-02-20  Bruno Haible  <bruno@clisp.org>
28405
28406         Improve *printf warning condition.
28407         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28408         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28409         and the function is overridden due to SIGPIPE emulation.
28410
28411 2010-02-20  Bruno Haible  <bruno@clisp.org>
28412
28413         * lib/stdio.in.h: Tweak comments.
28414
28415 2010-02-19  Bruno Haible  <bruno@clisp.org>
28416
28417         Make it easier to find modules. New gnulib-tool option '--find'.
28418         * gnulib-tool: New option --find.
28419         (func_usage): Document it.
28420         (func_sanitize_modulelist): New function, extracted from
28421         func_all_modules.
28422         (func_all_modules): Invoke it.
28423         * doc/gnulib-tool.texi (Which modules?): New node.
28424
28425 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28426
28427         * lib/sys_select.in.h: Provide select replacement even if
28428         sys/select.h exists on a system, for Interix.
28429
28430 2010-02-18  Jim Meyering  <meyering@redhat.com>
28431
28432         init.sh: don't use $(...) just yet
28433         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28434         to accommodate e.g., Solaris' /bin/sh.
28435
28436 2010-02-17  Bruno Haible  <bruno@clisp.org>
28437
28438         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28439         Reported by Ludovic Courtès <ludo@gnu.org>.
28440
28441 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28442
28443         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28444         linking with -lintl.
28445
28446 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28447
28448         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28449         if not provided by the system's netdb.h.  Reported by
28450         ludo@gnu.org (Ludovic Courtès).
28451
28452 2010-02-15  Jim Meyering  <meyering@redhat.com>
28453
28454         init.sh: improve portability and efficiency
28455         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28456         "dummy" in a for loop.
28457         Use '!', not '^' to select the complement of a character set used
28458         in a "case" statement.
28459         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28460         Suggestions from Eric Blake.
28461
28462         init.sh: automatically accommodate programs with the .exe suffix
28463         Automatically arrange for an invocation of "prog" to execute the
28464         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28465         may use the simpler "prog", yet still work when built on a system
28466         that requires specifying the added suffix.
28467         Do this by constructing a function named "prog" that invokes
28468         "prog.exe" for each .exe file in selected directories.
28469         * tests/init.sh (find_exe_basenames_): New function.
28470         (create_exe_shim_functions_): New function.
28471         (path_prepend_): Use it.
28472
28473         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28474         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28475         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28476
28477 2010-02-14  Jim Meyering  <meyering@redhat.com>
28478
28479         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28480         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28481         (sc_prohibit_hash_pjw_without_use): New rule.
28482
28483         maint.mk: allow the default upload destination dir to be overridden
28484         * top/maint.mk (upload_dest_dir_): Define with a default that
28485         preserves the status quo.
28486         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28487         Reported by Peter Simons.
28488
28489         maint.mk: prohibit inclusion of "hash.h" without_use
28490         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28491
28492 2010-02-10  Jim Meyering  <meyering@redhat.com>
28493
28494         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28495         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28496
28497 2010-02-09  Eric Blake  <ebb9@byu.net>
28498         and Bruno Haible  <bruno@clisp.org>
28499
28500         obstack-printf-posix: ensure declaration
28501         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28502         extracted from gl_FUNC_OBSTACK_PRINTF.
28503         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28504         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28505         Likewise.
28506         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28507         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28508         0.
28509
28510 2010-02-08  Bruno Haible  <bruno@clisp.org>
28511
28512         gnulib-tool: Fix typo in 2010-02-07 commit.
28513         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28514         Reported by Eric Blake.
28515
28516 2010-02-07  Bruno Haible  <bruno@clisp.org>
28517
28518         gnulib-tool: Fix up caching patches.
28519         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28520         option --no-cache. Use associative arrays when supported by the shell.
28521         (sed_comments): New variable.
28522         (modcache): Renamed from do_cache.
28523         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28524         abbreviate unnecessarily.
28525         (have_associative): New variable.
28526         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28527         way also for ksh and zsh.
28528         (func_init_sed_convert_to_cache_statements): New function, extracted
28529         from func_cache_lookup_module. Add support for associative arrays.
28530         Don't set the c_MODULE_cached variable here. Ignore all lines before
28531         the first field header. Remove only the final newline, not all trailing
28532         newlines. Support empty fields correctly. Limit the use of 'eval' to
28533         assignments.
28534         (func_get_description, func_get_status, func_get_notice,
28535         func_get_applicability, func_get_filelist, func_get_dependencies,
28536         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28537         func_get_automake_snippet, func_get_include_directive,
28538         func_get_link_directive, func_get_license, func_get_maintainer):
28539         Update documentation. List the unoptimized code first. Add support for
28540         associative arrays. Limit the use of 'eval' to assignments.
28541         (func_get_applicability): Undo stylistic pessimisations.
28542         (func_get_automake_snippet, func_get_include_directive): Reduce code
28543         duplication.
28544         (func_modules_transitive_closure, func_modules_add_dummy,
28545         func_modules_notice, func_modules_to_filelist, func_add_file,
28546         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28547         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28548         func_create_testdir, func_create_megatestdir): Update documentation.
28549
28550 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28551
28552         * gnulib-tool (func_cache_lookup_module): Store the module name
28553         belonging to the cache variable; error out if two different
28554         module names map to the same cache variable name.
28555
28556 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28557
28558         gnulib-tool: Make caching optional.
28559         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28560         Update matching short versions of --no-changelog.
28561         (func_usage): Update.
28562         (sed_extract_cache_prog): Renamed from ...
28563         (sed_extract_prog): ... this; revert to old extraction script.
28564         (func_get_description, func_get_status)
28565         (func_get_notice, func_get_applicability, func_get_filelist)
28566         (func_get_dependencies, func_get_autoconf_early_snippet)
28567         (func_get_autoconf_snippet, func_get_automake_snippet)
28568         (func_get_include_directive, func_get_link_directive)
28569         (func_get_license, func_get_maintainer): If $do_cache is false,
28570         use old, non-caching extraction scripts.
28571         Suggestion by Bruno Haible.
28572
28573 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28574
28575         gnulib-tool: cache module metainformation.
28576         * gnulib-tool (sed_extract_prog): Match newline before each
28577         header, and rewrite header to a shell variable suffix.
28578         (func_cache_var, func_cache_lookup_module): New functions,
28579         to turn a module name into a cache variable prefix, and to
28580         look up and cache module metainformation.
28581         (func_get_description, func_get_status)
28582         (func_get_notice, func_get_applicability, func_get_filelist)
28583         (func_get_dependencies, func_get_autoconf_early_snippet)
28584         (func_get_autoconf_snippet, func_get_automake_snippet)
28585         (func_get_include_directive, func_get_link_directive)
28586         (func_get_license, func_get_maintainer): Use
28587         func_cache_lookup_module.
28588
28589 2010-02-07  Bruno Haible  <bruno@clisp.org>
28590
28591         fnctl: Fix missing dependency.
28592         * modules/fcntl (Depends-on): Add getdtablesize.
28593         Reported by John W. Eaton <jwe@gnu.org>.
28594
28595 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28596
28597         Argp: fix recognition of short alias options.
28598
28599         * lib/argp-parse.c (convert_options): Fix improper use of
28600         `|' between character values.
28601         * tests/test-argp.c (group1_option): New alias option
28602         --read (-r).
28603         (group1_parser): Special handling for 'r'.
28604         (test15): New test case.
28605         (test_fun): Add test15.
28606         * tests/test-argp-2.sh: Update expected --help and --usage
28607         outputs.
28608
28609 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28610
28611         * tests/test-argp.c: Fix indentation.
28612
28613 2010-02-04  Eric Blake  <ebb9@byu.net>
28614
28615         gettimeofday: expose type of second argument
28616         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28617         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28618         * tests/test-gettimeofday.c: Use it to silence warning.
28619         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28620         the issue.
28621
28622 2010-02-03  Jim Meyering  <meyering@redhat.com>
28623
28624         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28625         * lib/regcomp.c (TYPE_SIGNED): Define.
28626         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28627
28628         regcomp.c: avoid a new -Wshadow warning
28629         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28630
28631 2010-02-01  Jim Meyering  <meyering@redhat.com>
28632
28633         removing useless parentheses in cpp #define directives
28634         For motivation, see commit c0221df4, "define STREQ(a,b)
28635         consistently, removing useless parentheses"
28636         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28637         * lib/mountlist.c (MNT_IGNORE): Likewise.
28638         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28639
28640 2010-02-01  Eric Blake  <ebb9@byu.net>
28641
28642         sys_time: use link-warning
28643         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28644         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28645         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28646         * modules/sys_time (Depends-on): Add warn-on-use.
28647         (Makefile.am): Always build replacement.
28648         (configure.ac): Update substitutions.
28649         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28650         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28651         bother with SYS_TIME_H.
28652         * modules/gettimeofday (configure.ac): Declare indicator.
28653         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28654         in use.
28655
28656         closein-tests: silence compiler warning
28657         * tests/test-closein.c (main): Ignore fread result.
28658         * modules/closein-tests (Depends-on): Add ignore-value.
28659
28660         tests: silence warning about system return
28661         * tests/test-areadlink-with-size.c (main): Ignore system result.
28662         * tests/test-areadlink.c (main): Likewise.
28663         * tests/test-areadlinkat-with-size.c (main): Likewise.
28664         * tests/test-areadlinkat.c (main): Likewise.
28665         * tests/test-canonicalize-lgpl.c (main): Likewise.
28666         * tests/test-canonicalize.c (main): Likewise.
28667         * tests/test-chown.c (main): Likewise.
28668         * tests/test-fchownat.c (main): Likewise.
28669         * tests/test-fdutimensat.c (main): Likewise.
28670         * tests/test-fstatat.c (main): Likewise.
28671         * tests/test-futimens.c (main): Likewise.
28672         * tests/test-lchown.c (main): Likewise.
28673         * tests/test-link.c (main): Likewise.
28674         * tests/test-linkat.c (main): Likewise.
28675         * tests/test-lstat.c (main): Likewise.
28676         * tests/test-mkdir.c (main): Likewise.
28677         * tests/test-mkdirat.c (main): Likewise.
28678         * tests/test-mkfifo.c (main): Likewise.
28679         * tests/test-mkfifoat.c (main): Likewise.
28680         * tests/test-mknod.c (main): Likewise.
28681         * tests/test-readlink.c (main): Likewise.
28682         * tests/test-remove.c (main): Likewise.
28683         * tests/test-rename.c (main): Likewise.
28684         * tests/test-renameat.c (main): Likewise.
28685         * tests/test-rmdir.c (main): Likewise.
28686         * tests/test-symlink.c (main): Likewise.
28687         * tests/test-symlinkat.c (main): Likewise.
28688         * tests/test-unlink.c (main): Likewise.
28689         * tests/test-unlinkat.c (main): Likewise.
28690         * tests/test-utimens.c (main): Likewise.
28691         * tests/test-utimensat.c (main): Likewise.
28692         * modules/areadlink-tests (Depends-on): Add ignore-value.
28693         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28694         * modules/areadlinkat-tests (Depends-on): Likewise.
28695         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28696         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28697         * modules/canonicalize-tests (Depends-on): Likewise.
28698         * modules/chown-tests (Depends-on): Likewise.
28699         * modules/fdutimensat-tests (Depends-on): Likewise.
28700         * modules/futimens-tests (Depends-on): Likewise.
28701         * modules/lchown-tests (Depends-on): Likewise.
28702         * modules/link-tests (Depends-on): Likewise.
28703         * modules/linkat-tests (Depends-on): Likewise.
28704         * modules/lstat-tests (Depends-on): Likewise.
28705         * modules/mkdir-tests (Depends-on): Likewise.
28706         * modules/mkfifo-tests (Depends-on): Likewise.
28707         * modules/mkfifoat-tests (Depends-on): Likewise.
28708         * modules/mknod-tests (Depends-on): Likewise.
28709         * modules/openat-tests (Depends-on): Likewise.
28710         * modules/readlink-tests (Depends-on): Likewise.
28711         * modules/remove-tests (Depends-on): Likewise.
28712         * modules/rename-tests (Depends-on): Likewise.
28713         * modules/renameat-tests (Depends-on): Likewise.
28714         * modules/rmdir-tests (Depends-on): Likewise.
28715         * modules/symlink-tests (Depends-on): Likewise.
28716         * modules/symlinkat-tests (Depends-on): Likewise.
28717         * modules/unlink-tests (Depends-on): Likewise.
28718         * modules/utimens-tests (Depends-on): Likewise.
28719         * modules/utimensat-tests (Depends-on): Likewise.
28720
28721 2010-01-31  Bruno Haible  <bruno@clisp.org>
28722
28723         Perform the same test for many <math.h> functions.
28724         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28725         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28726         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28727         of gl_MATHFUNC.
28728         * modules/acos (configure.ac): Likewise.
28729         * modules/asin (configure.ac): Likewise.
28730         * modules/atan (configure.ac): Likewise.
28731         * modules/atan2 (configure.ac): Likewise.
28732         * modules/cbrt (configure.ac): Likewise.
28733         * modules/copysign (configure.ac): Likewise.
28734         * modules/cos (configure.ac): Likewise.
28735         * modules/cosh (configure.ac): Likewise.
28736         * modules/erf (configure.ac): Likewise.
28737         * modules/erfc (configure.ac): Likewise.
28738         * modules/exp (configure.ac): Likewise.
28739         * modules/fmod (configure.ac): Likewise.
28740         * modules/hypot (configure.ac): Likewise.
28741         * modules/j0 (configure.ac): Likewise.
28742         * modules/j1 (configure.ac): Likewise.
28743         * modules/jn (configure.ac): Likewise.
28744         * modules/lgamma (configure.ac): Likewise.
28745         * modules/log (configure.ac): Likewise.
28746         * modules/log10 (configure.ac): Likewise.
28747         * modules/log1p (configure.ac): Likewise.
28748         * modules/pow (configure.ac): Likewise.
28749         * modules/remainder (configure.ac): Likewise.
28750         * modules/sin (configure.ac): Likewise.
28751         * modules/sinh (configure.ac): Likewise.
28752         * modules/tan (configure.ac): Likewise.
28753         * modules/tanh (configure.ac): Likewise.
28754         * modules/y0 (configure.ac): Likewise.
28755         * modules/y1 (configure.ac): Likewise.
28756         * modules/yn (configure.ac): Likewise.
28757         Suggested by Paolo Bonzini.
28758
28759 2010-01-31  Bruno Haible  <bruno@clisp.org>
28760
28761         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28762
28763 2010-01-31  Bruno Haible  <bruno@clisp.org>
28764
28765         Work around getdelim() bug on FreeBSD 8.0.
28766         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28767         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28768         not work.
28769         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28770         is 1.
28771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28772         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28773         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28774         a non-zero size.
28775         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28776
28777 2010-01-31  Bruno Haible  <bruno@clisp.org>
28778
28779         Work around getline() bug on FreeBSD 8.0.
28780         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28781         and a non-zero size.
28782         * tests/test-getline.c (main): Likewise.
28783         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28784         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28785
28786 2010-01-28  Eric Blake  <ebb9@byu.net>
28787
28788         regex: fix build failure
28789         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28790         platforms.
28791
28792 2010-01-28  Jim Meyering  <meyering@redhat.com>
28793
28794         regex: do not ignore memory allocation failure
28795         * lib/regex_internal.c (create_cd_newstate): Detect
28796         re_node_set_init_copy failure.   Extracted from glibc commit
28797         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28798
28799         regex: sync more white-space changes from libc
28800         * lib/regex_internal.c: White-space only changes.
28801         * lib/regexec.c: Likewise.
28802
28803         regex: add many uses of __attribute_warn_unused_result__
28804         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28805         * lib/regexec.c: Likewise.
28806         Extracted from a messy glibc commit.
28807
28808         regcomp.c: spelling and merge-artifact from glibc
28809         * lib/regcomp.c: Merge remainder of glibc's
28810         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28811
28812         regcomp.c: sync white-space changes from glibc
28813         * lib/regcomp.c: Merge to accommodate white space
28814         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28815
28816         regcomp.c: do not ignore internal return values
28817         * lib/regcomp.c: Do not ignore internal return values.
28818         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28819         but without its white-space changes and spelling fixes.
28820
28821         regex_internal.h: define __attribute_warn_unused_result__
28822         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28823
28824         maint: add a syntax-check rule to check for vulnerable Makefile.in
28825         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28826
28827 2010-01-27  Jim Meyering  <meyering@redhat.com>
28828
28829         ncftpput-ftp: clean up spaces
28830         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28831         Remove trailing blanks.
28832
28833 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28834
28835         * build-aux/git-version-gen: Fix copyright statement.
28836         * build-aux/gnupload: Likewise.
28837         * tests/test-arcfour.c: Likewise.
28838         * tests/test-arctwo.c: Likewise.
28839         * tests/test-count-one-bits.c: Likewise.
28840         * tests/test-crc.c: Likewise.
28841         * tests/test-des.c: Likewise.
28842         * tests/test-gc-arcfour.c: Likewise.
28843         * tests/test-gc-arctwo.c: Likewise.
28844         * tests/test-gc-des.c: Likewise.
28845         * tests/test-gc-hmac-md5.c: Likewise.
28846         * tests/test-gc-hmac-sha1.c: Likewise.
28847         * tests/test-gc-md2.c: Likewise.
28848         * tests/test-gc-md4.c: Likewise.
28849         * tests/test-gc-md5.c: Likewise.
28850         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28851         * tests/test-gc-rijndael.c: Likewise.
28852         * tests/test-gc-sha1.c: Likewise.
28853         * tests/test-gc.c: Likewise.
28854         * tests/test-gethostname.c: Likewise.
28855         * tests/test-gettimeofday.c: Likewise.
28856         * tests/test-hash.c: Likewise.
28857         * tests/test-hmac-md5.c: Likewise.
28858         * tests/test-hmac-sha1.c: Likewise.
28859         * tests/test-md2.c: Likewise.
28860         * tests/test-md4.c: Likewise.
28861         * tests/test-md5.c: Likewise.
28862         * tests/test-memchr.c: Likewise.
28863         * tests/test-memchr2.c: Likewise.
28864         * tests/test-memcmp.c: Likewise.
28865         * tests/test-memmem.c: Likewise.
28866         * tests/test-memrchr.c: Likewise.
28867         * tests/test-rawmemchr.c: Likewise.
28868         * tests/test-read-file.c: Likewise.
28869         * tests/test-rijndael.c: Likewise.
28870         * tests/test-sockets.c: Likewise.
28871         * tests/test-strchrnul.c: Likewise.
28872         * tests/test-strstr.c: Likewise.
28873         * tests/test-strtod.c: Likewise.
28874         * build-aux/ncftpput-ftp: Likewise.
28875
28876 2010-01-26  Eric Blake  <ebb9@byu.net>
28877
28878         ignore-value: update recommended header name
28879         * modules/ignore-value (Include): Only use <> for headers that
28880         exist in glibc.
28881
28882 2010-01-26  Jim Meyering  <meyering@redhat.com>
28883
28884         test-userspec.c: avoid compiler warnings
28885         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28886         and "initialization discards qualifiers..." warnings.
28887         Put the first "uid" in its own scope, and make char* members "const".
28888
28889 2010-01-25  Bruno Haible  <bruno@clisp.org>
28890
28891         gnulib-tool: Make warning diagnostics consistent.
28892         * gnulib-tool (func_warning): New function.
28893         Use it everywhere where gnulib-tool produces output to stderr and it is
28894         not a fatal error.
28895
28896 2010-01-25  Bruno Haible  <bruno@clisp.org>
28897
28898         Fix test dependencies.
28899         * modules/xstrtol-tests (Depends-on): Add inttypes.
28900         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28901
28902 2010-01-25 Pádraig Brady <P@draigBrady.com>
28903
28904         syntax-check: detect incorrect boolean macro values in config.h
28905         * modules/maintainer-makefile (configure.ac): Parameterize the location
28906         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28907         The logic is from Eric Blake and the location indicated by Jim Meyering.
28908         Note the more natural CONFIG_HEADER name is prohibited by automake
28909         for backwards compatibility reasons.
28910         * top/maint.mk (sc_Wundef_boolean): New rule.
28911
28912 2010-01-25  Jim Meyering  <meyering@redhat.com>
28913
28914         bootstrap: detect MacOS 10.6's shasum, too
28915         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28916         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28917
28918 2010-01-23  Jim Meyering  <meyering@redhat.com>
28919
28920         xstrtoll: new module
28921         * modules/xstrtoll: New file.
28922         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28923         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28924         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28925         ./configure fails if you use this module and lack "long long".
28926         * modules/xstrtoll-tests: New module.
28927         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28928         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28929         new init.sh-based test framework.
28930
28931 2010-01-24  Bruno Haible  <bruno@clisp.org>
28932
28933         Tests for module 'yn'.
28934         * modules/yn-tests: New file.
28935         * tests/test-yn.c: New file.
28936
28937         Tests for module 'y1'.
28938         * modules/y1-tests: New file.
28939         * tests/test-y1.c: New file.
28940
28941         Tests for module 'y0'.
28942         * modules/y0-tests: New file.
28943         * tests/test-y0.c: New file.
28944
28945         Tests for module 'tanh'.
28946         * modules/tanh-tests: New file.
28947         * tests/test-tanh.c: New file.
28948
28949         Tests for module 'tan'.
28950         * modules/tan-tests: New file.
28951         * tests/test-tan.c: New file.
28952
28953         Tests for module 'sqrt'.
28954         * modules/sqrt-tests: New file.
28955         * tests/test-sqrt.c: New file.
28956
28957         Tests for module 'sinh'.
28958         * modules/sinh-tests: New file.
28959         * tests/test-sinh.c: New file.
28960
28961         Tests for module 'sin'.
28962         * modules/sin-tests: New file.
28963         * tests/test-sin.c: New file.
28964
28965         Tests for module 'rint'.
28966         * modules/rint-tests: New file.
28967         * tests/test-rint.c: New file.
28968
28969         Tests for module 'remainder'.
28970         * modules/remainder-tests: New file.
28971         * tests/test-remainder.c: New file.
28972
28973         Tests for module 'pow'.
28974         * modules/pow-tests: New file.
28975         * tests/test-pow.c: New file.
28976
28977         Tests for module 'nextafter'.
28978         * modules/nextafter-tests: New file.
28979         * tests/test-nextafter.c: New file.
28980
28981         Tests for module 'modf'.
28982         * modules/modf-tests: New file.
28983         * tests/test-modf.c: New file.
28984
28985         Tests for module 'logb'.
28986         * modules/logb-tests: New file.
28987         * tests/test-logb.c: New file.
28988
28989         Tests for module 'log1p'.
28990         * modules/log1p-tests: New file.
28991         * tests/test-log1p.c: New file.
28992
28993         Tests for module 'log10'.
28994         * modules/log10-tests: New file.
28995         * tests/test-log10.c: New file.
28996
28997         Tests for module 'log'.
28998         * modules/log-tests: New file.
28999         * tests/test-log.c: New file.
29000
29001         Tests for module 'lgamma'.
29002         * modules/lgamma-tests: New file.
29003         * tests/test-lgamma.c: New file.
29004
29005         Tests for module 'ldexp'.
29006         * modules/ldexp-tests: New file.
29007         * tests/test-ldexp.c: New file.
29008
29009         Tests for module 'jn'.
29010         * modules/jn-tests: New file.
29011         * tests/test-jn.c: New file.
29012
29013         Tests for module 'j1'.
29014         * modules/j1-tests: New file.
29015         * tests/test-j1.c: New file.
29016
29017         Tests for module 'j0'.
29018         * modules/j0-tests: New file.
29019         * tests/test-j0.c: New file.
29020
29021         Tests for module 'hypot'.
29022         * modules/hypot-tests: New file.
29023         * tests/test-hypot.c: New file.
29024
29025         Tests for module 'fmod'.
29026         * modules/fmod-tests: New file.
29027         * tests/test-fmod.c: New file.
29028
29029         Tests for module 'fabs'.
29030         * modules/fabs-tests: New file.
29031         * tests/test-fabs.c: New file.
29032
29033         Tests for module 'exp'.
29034         * modules/exp-tests: New file.
29035         * tests/test-exp.c: New file.
29036
29037         Tests for module 'erfc'.
29038         * modules/erfc-tests: New file.
29039         * tests/test-erfc.c: New file.
29040
29041         Tests for module 'erf'.
29042         * modules/erf-tests: New file.
29043         * tests/test-erf.c: New file.
29044
29045         Tests for module 'cosh'.
29046         * modules/cosh-tests: New file.
29047         * tests/test-cosh.c: New file.
29048
29049         Tests for module 'cos'.
29050         * modules/cos-tests: New file.
29051         * tests/test-cos.c: New file.
29052
29053         Tests for module 'copysign'.
29054         * modules/copysign-tests: New file.
29055         * tests/test-copysign.c: New file.
29056
29057         Tests for module 'cbrt'.
29058         * modules/cbrt-tests: New file.
29059         * tests/test-cbrt.c: New file.
29060
29061         Tests for module 'atan2'.
29062         * modules/atan2-tests: New file.
29063         * tests/test-atan2.c: New file.
29064
29065         Tests for module 'atan'.
29066         * modules/atan-tests: New file.
29067         * tests/test-atan.c: New file.
29068
29069         Tests for module 'asin'.
29070         * modules/asin-tests: New file.
29071         * tests/test-asin.c: New file.
29072
29073         Tests for module 'acos'.
29074         * modules/acos-tests: New file.
29075         * tests/test-acos.c: New file.
29076
29077 2010-01-24  Bruno Haible  <bruno@clisp.org>
29078
29079         Fix tests for common <math.h> functions.
29080         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29081         code snippet that references the function pointer, rather than merely
29082         calling the function. Substitute the FUNC_LIBM variable.
29083         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29084         * modules/acos (configure.ac): Likewise.
29085         * modules/asin (configure.ac): Likewise.
29086         * modules/atan (configure.ac): Likewise.
29087         * modules/atan2 (configure.ac): Likewise.
29088         * modules/cbrt (configure.ac): Likewise.
29089         * modules/copysign (configure.ac): Likewise.
29090         * modules/cos (configure.ac): Likewise.
29091         * modules/cosh (configure.ac): Likewise.
29092         * modules/erf (configure.ac): Likewise.
29093         * modules/erfc (configure.ac): Likewise.
29094         * modules/exp (configure.ac): Likewise.
29095         * modules/fabs (configure.ac): Likewise.
29096         * modules/fmod (configure.ac): Likewise.
29097         * modules/hypot (configure.ac): Likewise.
29098         * modules/j0 (configure.ac): Likewise.
29099         * modules/j1 (configure.ac): Likewise.
29100         * modules/jn (configure.ac): Likewise.
29101         * modules/ldexp (configure.ac): Likewise.
29102         * modules/lgamma (configure.ac): Likewise.
29103         * modules/log (configure.ac): Likewise.
29104         * modules/log10 (configure.ac): Likewise.
29105         * modules/log1p (configure.ac): Likewise.
29106         * modules/logb (configure.ac): Likewise.
29107         * modules/modf (configure.ac): Likewise.
29108         * modules/nextafter (configure.ac): Likewise.
29109         * modules/pow (configure.ac): Likewise.
29110         * modules/remainder (configure.ac): Likewise.
29111         * modules/rint (configure.ac): Likewise.
29112         * modules/sin (configure.ac): Likewise.
29113         * modules/sinh (configure.ac): Likewise.
29114         * modules/tan (configure.ac): Likewise.
29115         * modules/tanh (configure.ac): Likewise.
29116         * modules/y0 (configure.ac): Likewise.
29117         * modules/y1 (configure.ac): Likewise.
29118         * modules/yn (configure.ac): Likewise.
29119
29120 2010-01-24  Bruno Haible  <bruno@clisp.org>
29121
29122         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29123         * tests/test-acosl.c (x): New variable.
29124         (main): Store argument in x and fetch it from x.
29125         * tests/test-asinl.c (x): New variable.
29126         (main): Store argument in x and fetch it from x.
29127         * tests/test-atanl.c (x): New variable.
29128         (main): Store argument in x and fetch it from x.
29129         * tests/test-cosl.c (x): New variable.
29130         (main): Store argument in x and fetch it from x.
29131         * tests/test-expl.c (x): New variable.
29132         (main): Store argument in x and fetch it from x.
29133         * tests/test-logl.c (x): New variable.
29134         (main): Store argument in x and fetch it from x.
29135         * tests/test-sinl.c (x): New variable.
29136         (main): Store argument in x and fetch it from x.
29137         * tests/test-sqrtl.c (x): New variable.
29138         (main): Store argument in x and fetch it from x.
29139         * tests/test-tanl.c (x): New variable.
29140         (main): Store argument in x and fetch it from x.
29141
29142 2010-01-24  Bruno Haible  <bruno@clisp.org>
29143
29144         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29145         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29146         assignments to the initial TESTS_ENVIRONMENT.
29147         * doc/gnulib.texi (Unit test modules): Document it.
29148         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29149         TESTS_ENVIRONMENT.
29150         * modules/btowc-tests (Makefile.am): Likewise.
29151         * modules/c-stack-tests (Makefile.am): Likewise.
29152         * modules/c-strcase-tests (Makefile.am): Likewise.
29153         * modules/copy-file-tests (Makefile.am): Likewise.
29154         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29155         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29156         * modules/mbrtowc-tests (Makefile.am): Likewise.
29157         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29158         * modules/mbscasestr-tests (Makefile.am): Likewise.
29159         * modules/mbschr-tests (Makefile.am): Likewise.
29160         * modules/mbscspn-tests (Makefile.am): Likewise.
29161         * modules/mbsinit-tests (Makefile.am): Likewise.
29162         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29163         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29164         * modules/mbspbrk-tests (Makefile.am): Likewise.
29165         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29166         * modules/mbsrchr-tests (Makefile.am): Likewise.
29167         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29168         * modules/mbsspn-tests (Makefile.am): Likewise.
29169         * modules/mbsstr-tests (Makefile.am): Likewise.
29170         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29171         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29172         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29173         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29174         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29175         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29176         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29177         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29178         * modules/wcrtomb-tests (Makefile.am): Likewise.
29179         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29180         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29181         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29182         assignments from TESTS_ENVIRONMENT.
29183         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29184         augmentation.
29185         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29186         * modules/atexit-tests (Makefile.am): Likewise.
29187         * modules/binary-io-tests (Makefile.am): Likewise.
29188         * modules/closein-tests (Makefile.am): Likewise.
29189         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29190         * modules/exclude-tests (Makefile.am): Likewise.
29191         * modules/fflush-tests (Makefile.am): Likewise.
29192         * modules/fpending-tests (Makefile.am): Likewise.
29193         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29194         * modules/freadahead-tests (Makefile.am): Likewise.
29195         * modules/freadptr-tests (Makefile.am): Likewise.
29196         * modules/freadseek-tests (Makefile.am): Likewise.
29197         * modules/fseek-tests (Makefile.am): Likewise.
29198         * modules/fseeko-tests (Makefile.am): Likewise.
29199         * modules/ftell-tests (Makefile.am): Likewise.
29200         * modules/ftello-tests (Makefile.am): Likewise.
29201         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29202         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29203         * modules/lseek-tests (Makefile.am): Likewise.
29204         * modules/parse-duration-tests (Makefile.am): Likewise.
29205         * modules/perror-tests (Makefile.am): Likewise.
29206         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29207         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29208         * modules/pipe-tests (Makefile.am): Likewise.
29209         * modules/pread-tests (Makefile.am): Likewise.
29210         * modules/printf-posix-tests (Makefile.am): Likewise.
29211         * modules/select-tests (Makefile.am): Likewise.
29212         * modules/sigpipe-tests (Makefile.am): Likewise.
29213         * modules/tsearch-tests (Makefile.am): Likewise.
29214         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29215         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29216         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29217         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29218         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29219         * modules/version-etc-tests (Makefile.am): Likewise.
29220         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29221         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29222         * modules/xalloc-die-tests (Makefile.am): Likewise.
29223         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29224         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29225         * modules/xstrtol-tests (Makefile.am): Likewise.
29226         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29227         * modules/yesno-tests (Makefile.am): Likewise.
29228         Suggested by Jim Meyering.
29229
29230 2010-01-24  Bruno Haible  <bruno@clisp.org>
29231
29232         More documentation.
29233         * doc/gnulib.texi (Writing modules): New chapter.
29234         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29235         the new chapter.
29236
29237 2010-01-24  Jim Meyering  <meyering@redhat.com>
29238
29239         maint.mk: do not prepend "./" after filtering
29240         * top/maint.mk (_prepend_srcdir_prefix): New variable
29241         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29242         "./" when $(srcdir) is ".".
29243
29244         define STREQ(a,b) consistently, removing useless parentheses
29245         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29246         since the only risk is that "a" or "b" contains an unparenthesized
29247         comma, but if either did that, STREQ would have 3 or more arguments.
29248         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29249         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29250         * lib/hash-triple.c (STREQ): Likewise.
29251         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29252         * lib/getugroups.c (STREQ): Likewise.
29253
29254 2010-01-23  Jim Meyering  <meyering@redhat.com>
29255
29256         maint.mk: fix syntax-check in a non-srcdir build directory
29257         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29258         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29259
29260 2010-01-22  Jim Meyering  <meyering@redhat.com>
29261
29262         userspec: add unit tests
29263         * tests/test-userspec.c: New file.
29264         * modules/userspec-tests: Likewise.
29265
29266 2010-01-21  Jim Meyering  <meyering@redhat.com>
29267
29268         maint.mk: handle source file names containing "." robustly
29269         * top/maint.mk (_dot_escaped_srcdir): Define.
29270         (VC_LIST): Use it in LHS of sed substitution.
29271
29272 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29273
29274         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29275         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29276         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29277         from a non-srcdir build.
29278
29279 2010-01-20  Eric Blake  <ebb9@byu.net>
29280
29281         warn-on-use: use instead of link-warning
29282         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29283         * modules/unistd (Depends-on, Makefile.am): Likewise.
29284         * modules/arpa_inet (Depends-on): Replace link-warning with
29285         warn-on-use.
29286         (Makefile.am): Update rules accordingly.
29287         * modules/ctype (Depends-on, Makefile.am): Likewise.
29288         * modules/dirent (Depends-on, Makefile.am): Likewise.
29289         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29290         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29291         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29292         * modules/locale (Depends-on, Makefile.am): Likewise.
29293         * modules/math (Depends-on, Makefile.am): Likewise.
29294         * modules/search (Depends-on, Makefile.am): Likewise.
29295         * modules/signal (Depends-on, Makefile.am): Likewise.
29296         * modules/spawn (Depends-on, Makefile.am): Likewise.
29297         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29298         * modules/string (Depends-on, Makefile.am): Likewise.
29299         * modules/strings (Depends-on, Makefile.am): Likewise.
29300         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29301         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29302         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29303         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29304         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29305         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29306         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29307         * modules/wchar (Depends-on, Makefile.am): Likewise.
29308         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29309         should be poisoned.
29310         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29311         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29312         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29313         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29314         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29315         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29316         * m4/math_h.m4 (gl_MATH_H): Likewise.
29317         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29318         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29319         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29320         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29321         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29322         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29323         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29324         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29325         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29326         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29327         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29328         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29329         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29330         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29331         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29332         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29333         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29334         GL_LINK_WARNING.
29335         * lib/ctype.in.h: Likewise.
29336         * lib/dirent.in.h: Likewise.
29337         * lib/fcntl.in.h: Likewise.
29338         * lib/inttypes.in.h: Likewise.
29339         * lib/langinfo.in.h: Likewise.
29340         * lib/locale.in.h: Likewise.
29341         * lib/math.in.h: Likewise.
29342         * lib/search.in.h: Likewise.
29343         * lib/signal.in.h: Likewise.
29344         * lib/spawn.in.h: Likewise.
29345         * lib/stdio.in.h: Likewise.
29346         * lib/stdlib.in.h: Likewise.
29347         * lib/string.in.h: Likewise.
29348         * lib/strings.in.h: Likewise.
29349         * lib/sys_file.in.h: Likewise.
29350         * lib/sys_ioctl.in.h: Likewise.
29351         * lib/sys_select.in.h: Likewise.
29352         * lib/sys_socket.in.h: Likewise.
29353         * lib/sys_stat.in.h: Likewise.
29354         * lib/sys_times.in.h: Likewise.
29355         * lib/sys_utsname.in.h: Likewise.
29356         * lib/unistd.in.h: Likewise.
29357         * lib/wchar.in.h: Likewise.
29358
29359 2010-01-20  Bruno Haible  <bruno@clisp.org>
29360
29361         Avoid duplicate -lm.
29362         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29363         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29364         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29365         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29366         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29367         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29368         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29369         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29370         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29371         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29372         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29373         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29374         Reported by Paolo Bonzini.
29375
29376 2010-01-19  Bruno Haible  <bruno@clisp.org>
29377
29378         langinfo, nl_langinfo: Relicense under LGPLv2+.
29379         * modules/langinfo (License): Change to LGPLv2+.
29380         * modules/nl_langinfo (License): Likewise.
29381         Patch by David Lutterkort <lutter@redhat.com>.
29382
29383 2010-01-19  Bruno Haible  <bruno@clisp.org>
29384
29385         Avoid compilation error with cc on OSF/1 5.1.
29386         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29387         statement, not before.
29388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29389
29390 2010-01-18  Bruno Haible  <bruno@clisp.org>
29391
29392         Avoid a link error due to the __printf__ symbol.
29393         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29394         and 2.6.x.
29395         (__format__, __printf__): Remove definitions.
29396         * lib/argp-fmtstream.h: Likewise.
29397         * lib/argp.h: Likewise.
29398         * lib/error.h: Likewise.
29399         * lib/vasnprintf.h: Likewise.
29400         * lib/xprintf.h: Likewise.
29401         * lib/xvasprintf.h: Likewise.
29402         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29403
29404 2010-01-18  Bruno Haible  <bruno@clisp.org>
29405
29406         Tests for module 'tanl'.
29407         * modules/tanl-tests: New file.
29408         * tests/test-tanl.c: New file.
29409
29410         Tests for module 'sqrtl'.
29411         * modules/sqrtl-tests: New file.
29412         * tests/test-sqrtl.c: New file.
29413
29414         Tests for module 'sinl'.
29415         * modules/sinl-tests: New file.
29416         * tests/test-sinl.c: New file.
29417
29418         Tests for module 'logl'.
29419         * modules/logl-tests: New file.
29420         * tests/test-logl.c: New file.
29421
29422         Tests for module 'expl'.
29423         * modules/expl-tests: New file.
29424         * tests/test-expl.c: New file.
29425
29426         Tests for module 'cosl'.
29427         * modules/cosl-tests: New file.
29428         * tests/test-cosl.c: New file.
29429
29430         Tests for module 'atanl'.
29431         * modules/atanl-tests: New file.
29432         * tests/test-atanl.c: New file.
29433
29434         Tests for module 'asinl'.
29435         * modules/asinl-tests: New file.
29436         * tests/test-asinl.c: New file.
29437
29438         Tests for module 'acosl'.
29439         * modules/acosl-tests: New file.
29440         * tests/test-acosl.c: New file.
29441
29442         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29443         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29444         tanl): Use the standard gnulib idiom.
29445         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29446         * lib/sinl.c: Likewise.
29447         * lib/tanl.c: Don't include trigl.c.
29448         (kernel_tanl): Make static.
29449         * lib/sincosl.c: Include trigl.h first.
29450         * lib/trigl.c: Likewise.
29451         * m4/acosl.m4: New file.
29452         * m4/asinl.m4: New file.
29453         * m4/atanl.m4: New file.
29454         * m4/cosl.m4: New file.
29455         * m4/expl.m4: New file.
29456         * m4/logl.m4: New file.
29457         * m4/sinl.m4: New file.
29458         * m4/sqrtl.m4: New file.
29459         * m4/tanl.m4: New file.
29460         * m4/mathl.m4: Remove file.
29461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29462         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29463         Don't initialize GNULIB_MATHL.
29464         * modules/acosl: New file.
29465         * modules/asinl: New file.
29466         * modules/atanl: New file.
29467         * modules/cosl: New file.
29468         * modules/expl: New file.
29469         * modules/logl: New file.
29470         * modules/sinl: New file.
29471         * modules/sqrtl: New file.
29472         * modules/tanl: New file.
29473         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29474         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29475         substitute GNULIB_MATHL.
29476         * modules/mathl: Rewritten.
29477         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29478         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29479         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29480         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29481         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29482         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29483         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29484         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29485         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29486
29487 2010-01-18  Bruno Haible  <bruno@clisp.org>
29488
29489         sqrt: Make gl_FUNC_SQRT requirable.
29490         * m4/sqrt.m4: New file.
29491         * modules/sqrt (Files): Add it.
29492         (configure.ac): Invoke gl_FUNC_SQRT.
29493
29494 2010-01-18  Bruno Haible  <bruno@clisp.org>
29495
29496         New modules for common <math.h> functions.
29497         * m4/mathfunc.m4: New file.
29498         * modules/acos: New file.
29499         * modules/asin: New file.
29500         * modules/atan: New file.
29501         * modules/atan2: New file.
29502         * modules/cbrt: New file.
29503         * modules/copysign: New file.
29504         * modules/cos: New file.
29505         * modules/cosh: New file.
29506         * modules/erf: New file.
29507         * modules/erfc: New file.
29508         * modules/exp: New file.
29509         * modules/fabs: New file.
29510         * modules/fmod: New file.
29511         * modules/hypot: New file.
29512         * modules/j0: New file.
29513         * modules/j1: New file.
29514         * modules/jn: New file.
29515         * modules/ldexp: New file.
29516         * modules/lgamma: New file.
29517         * modules/log: New file.
29518         * modules/log10: New file.
29519         * modules/log1p: New file.
29520         * modules/logb: New file.
29521         * modules/modf: New file.
29522         * modules/nextafter: New file.
29523         * modules/pow: New file.
29524         * modules/remainder: New file.
29525         * modules/rint: New file.
29526         * modules/sin: New file.
29527         * modules/sinh: New file.
29528         * modules/sqrt: New file.
29529         * modules/tan: New file.
29530         * modules/tanh: New file.
29531         * modules/y0: New file.
29532         * modules/y1: New file.
29533         * modules/yn: New file.
29534         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29535         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29536         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29537         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29538         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29539         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29540         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29541         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29542         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29543         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29544         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29545         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29546         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29547         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29548         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29549         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29550         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29551         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29552         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29553         * doc/posix-functions/log.texi: Mention the 'log' module.
29554         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29555         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29556         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29557         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29558         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29559         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29560         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29561         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29562         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29563         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29564         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29565         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29566         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29567         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29568         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29569         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29570
29571 2010-01-18  Jim Meyering  <meyering@redhat.com>
29572
29573         ignore-value: relax license to LGPLv2+
29574         * modules/ignore-value (License): Relax to LGPLv2+.
29575
29576         getdate: don't leak when TZ contains two or more '"'s
29577         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29578         double quote in TZ after the first one.
29579
29580         readtokens: do not leak internal token_lengths buffer
29581         * lib/readtokens.c (readtokens): Free the local, lengths,
29582         when the supplied "token_lengths" parameter is NULL.
29583
29584 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29585
29586         Fix a couple of missing LIBTHREAD link failures on AIX.
29587         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29588         $(LIBTHREAD).
29589         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29590
29591         Link test-poll against INET_PTON_LIB.
29592         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29593         for inet_pton on Solaris 10.
29594
29595 2010-01-17  Bruno Haible  <bruno@clisp.org>
29596
29597         unistdio/*-sprintf: Fix typo in module description.
29598         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29599         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29600         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29601         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29602         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29603         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29604         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29605         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29606
29607 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29608
29609         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29610         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29611         variables in shell case patterns, for AIX and HP-UX ksh.
29612
29613         Split large sed scripts, for HP-UX sed.
29614         * modules/stdio: Split sed scripts around 50 sed commands,
29615         to avoid HP-UX limit of 99 commands, in the near future.
29616         * modules/string: Likewise.
29617         * modules/unistd: Likewise.
29618
29619         gnulib-tool: avoid writing in the current directory.
29620         * gnulib-tool (func_emit_lib_Makefile_am)
29621         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29622         not in the current directory, so concurrent gnulib-tool
29623         instances do not interfere.
29624
29625 2010-01-16  Jim Meyering  <meyering@redhat.com>
29626
29627         doc: update users.txt
29628         * users.txt: Add grep.
29629         (diffutils, gzip): Update URLs.
29630
29631 2010-01-12  Bruno Haible  <bruno@clisp.org>
29632
29633         posix_spawn: Avoid test failure on Cygwin.
29634         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29635         characters.
29636         Reported by Simon Josefsson.
29637
29638 2010-01-12  Bruno Haible  <bruno@clisp.org>
29639
29640         * tests/test-cond.c (main): When skipping the test, show the reason.
29641
29642 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29643
29644         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29645
29646 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29647
29648         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29649         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29650
29651 2010-01-12  Eric Blake  <ebb9@byu.net>
29652
29653         build: guarantee AS_VAR_IF
29654         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29655         (gl_AS_VAR_IF): Move...
29656         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29657         Reported by Simon Josefsson.
29658
29659 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29660
29661         * lib/stdio.in.h: Fix typo.
29662
29663 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29664
29665         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29666         libgpg-error.
29667
29668 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29669
29670         * tests/test-xalloc-die.sh: Use $EXEEXT.
29671
29672 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29673             Bruno Haible  <bruno@clisp.org>
29674
29675         getlogin, getlogin_r: Avoid test failure.
29676         * tests/test-getlogin.c: Include <stdio.h>.
29677         (main): Skip the test when the function fails because stdin is not a
29678         tty.
29679         * tests/test-getlogin_r.c: Include <stdio.h>.
29680         (main): Skip the test when the function fails because stdin is not a
29681         tty.
29682
29683 2010-01-11  Eric Blake  <ebb9@byu.net>
29684
29685         tests: avoid more large file warnings
29686         * tests/test-fflush.c: Avoid warning about ftell use.
29687         * tests/test-fseek.c: Avoid warning about fseek use.
29688
29689 2010-01-10  Bruno Haible  <bruno@clisp.org>
29690
29691         nproc: Work better on Linux when /proc and /sys are not mounted.
29692         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29693         as lower bound when, on glibc/Linux systems,
29694         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29695         Suggested by Pádraig Brady <P@draigbrady.com>.
29696         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29697
29698         nproc: Refactor.
29699         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29700         extracted from num_processors.
29701         (num_processors): Call it.
29702
29703 2010-01-11  Jim Meyering  <meyering@redhat.com>
29704
29705         utimecmp: avoid new warning from upcoming gcc-4.5.0
29706         * lib/utimecmp.c (BILLION): Define using #define rather than an
29707         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29708
29709 2010-01-11  Eric Blake  <ebb9@byu.net>
29710
29711         math: add portability warnings for classification macros
29712         * modules/math (Depends-on): Add warn-on-use.
29713         (Makefile.am): Provide new substitutions.
29714         * m4/math_h.m4 (gl_MATH_H): Require inline.
29715         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29716         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29717         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29718         implement warnings.
29719
29720         unistd: warn on use of environ without module
29721         * modules/unistd (Depends-on): Add warn-on-use.
29722         (Makefile.am): Provide new substitutions.
29723         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29724         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29725
29726         stdio: warn on suspicious uses
29727         * modules/stdio (Depends-on): Add warn-on-use.
29728         (Makefile.am): Provide new substitutions.
29729         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29730         fseeko.
29731         * lib/stdio.in.h (gets): Always warn on use.
29732         (fseek, ftell): Adjust when warnings are issued, and honor
29733         _GL_NO_LARGE_FILES as a way to silence the warning.
29734         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29735         any warning about large file offsets.
29736         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29737         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29738         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29739         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29740         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29741         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29742         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29743         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29744
29745         warn-on-use: new module
29746         * modules/warn-on-use: New file.
29747         * build-aux/warn-on-use.h: Likewise.
29748         * m4/warn-on-use.m4: Likewise.
29749         * MODULES.html.sh (Support for building): Mention it.
29750
29751 2010-01-10  Bruno Haible  <bruno@clisp.org>
29752
29753         Tests for module 'unistr/u32-strdup'.
29754         * modules/unistr/u32-strdup-tests: New file.
29755         * tests/unistr/test-u32-strdup.c: New file.
29756
29757         Tests for module 'unistr/u16-strdup'.
29758         * modules/unistr/u16-strdup-tests: New file.
29759         * tests/unistr/test-u16-strdup.c: New file.
29760
29761         Tests for module 'unistr/u8-strdup'.
29762         * modules/unistr/u8-strdup-tests: New file.
29763         * tests/unistr/test-u8-strdup.c: New file.
29764         * tests/unistr/test-strdup.h: New file.
29765
29766         Tests for module 'unistr/u32-strncmp'.
29767         * modules/unistr/u32-strncmp-tests: New file.
29768         * tests/unistr/test-u32-strncmp.c: New file.
29769
29770         Tests for module 'unistr/u16-strncmp'.
29771         * modules/unistr/u16-strncmp-tests: New file.
29772         * tests/unistr/test-u16-strncmp.c: New file.
29773
29774         Tests for module 'unistr/u8-strncmp'.
29775         * modules/unistr/u8-strncmp-tests: New file.
29776         * tests/unistr/test-u8-strncmp.c: New file.
29777         * tests/unistr/test-strncmp.h: New file.
29778
29779         Tests for module 'unistr/u32-strcoll'.
29780         * modules/unistr/u32-strcoll-tests: New file.
29781         * tests/unistr/test-u32-strcoll.c: New file.
29782
29783         Tests for module 'unistr/u16-strcoll'.
29784         * modules/unistr/u16-strcoll-tests: New file.
29785         * tests/unistr/test-u16-strcoll.c: New file.
29786
29787         Tests for module 'unistr/u8-strcoll'.
29788         * modules/unistr/u8-strcoll-tests: New file.
29789         * tests/unistr/test-u8-strcoll.c: New file.
29790
29791         Tests for module 'unistr/u32-strcmp'.
29792         * modules/unistr/u32-strcmp-tests: New file.
29793         * tests/unistr/test-u32-strcmp.c: New file.
29794         * tests/unistr/test-u32-strcmp.h: New file.
29795
29796         Tests for module 'unistr/u16-strcmp'.
29797         * modules/unistr/u16-strcmp-tests: New file.
29798         * tests/unistr/test-u16-strcmp.c: New file.
29799         * tests/unistr/test-u16-strcmp.h: New file.
29800
29801         Tests for module 'unistr/u8-strcmp'.
29802         * modules/unistr/u8-strcmp-tests: New file.
29803         * tests/unistr/test-u8-strcmp.c: New file.
29804         * tests/unistr/test-u8-strcmp.h: New file.
29805         * tests/unistr/test-strcmp.h: New file.
29806
29807         Tests for module 'unistr/u32-strncat'.
29808         * modules/unistr/u32-strncat-tests: New file.
29809         * tests/unistr/test-u32-strncat.c: New file.
29810
29811         Tests for module 'unistr/u16-strncat'.
29812         * modules/unistr/u16-strncat-tests: New file.
29813         * tests/unistr/test-u16-strncat.c: New file.
29814
29815         Tests for module 'unistr/u8-strncat'.
29816         * modules/unistr/u8-strncat-tests: New file.
29817         * tests/unistr/test-u8-strncat.c: New file.
29818         * tests/unistr/test-strncat.h: New file.
29819
29820         Tests for module 'unistr/u32-strcat'.
29821         * modules/unistr/u32-strcat-tests: New file.
29822         * tests/unistr/test-u32-strcat.c: New file.
29823
29824         Tests for module 'unistr/u16-strcat'.
29825         * modules/unistr/u16-strcat-tests: New file.
29826         * tests/unistr/test-u16-strcat.c: New file.
29827
29828         Tests for module 'unistr/u8-strcat'.
29829         * modules/unistr/u8-strcat-tests: New file.
29830         * tests/unistr/test-u8-strcat.c: New file.
29831         * tests/unistr/test-strcat.h: New file.
29832
29833         Tests for module 'unistr/u32-stpncpy'.
29834         * modules/unistr/u32-stpncpy-tests: New file.
29835         * tests/unistr/test-u32-stpncpy.c: New file.
29836
29837         Tests for module 'unistr/u16-stpncpy'.
29838         * modules/unistr/u16-stpncpy-tests: New file.
29839         * tests/unistr/test-u16-stpncpy.c: New file.
29840
29841         Tests for module 'unistr/u8-stpncpy'.
29842         * modules/unistr/u8-stpncpy-tests: New file.
29843         * tests/unistr/test-u8-stpncpy.c: New file.
29844         * tests/unistr/test-stpncpy.h: New file.
29845
29846         Tests for module 'unistr/u32-strncpy'.
29847         * modules/unistr/u32-strncpy-tests: New file.
29848         * tests/unistr/test-u32-strncpy.c: New file.
29849
29850         Tests for module 'unistr/u16-strncpy'.
29851         * modules/unistr/u16-strncpy-tests: New file.
29852         * tests/unistr/test-u16-strncpy.c: New file.
29853
29854         Tests for module 'unistr/u8-strncpy'.
29855         * modules/unistr/u8-strncpy-tests: New file.
29856         * tests/unistr/test-u8-strncpy.c: New file.
29857         * tests/unistr/test-strncpy.h: New file.
29858
29859         Tests for module 'unistr/u32-stpcpy'.
29860         * modules/unistr/u32-stpcpy-tests: New file.
29861         * tests/unistr/test-u32-stpcpy.c: New file.
29862
29863         Tests for module 'unistr/u16-stpcpy'.
29864         * modules/unistr/u16-stpcpy-tests: New file.
29865         * tests/unistr/test-u16-stpcpy.c: New file.
29866
29867         Tests for module 'unistr/u8-stpcpy'.
29868         * modules/unistr/u8-stpcpy-tests: New file.
29869         * tests/unistr/test-u8-stpcpy.c: New file.
29870         * tests/unistr/test-stpcpy.h: New file.
29871
29872         Tests for module 'unistr/u32-strcpy'.
29873         * modules/unistr/u32-strcpy-tests: New file.
29874         * tests/unistr/test-u32-strcpy.c: New file.
29875
29876         Tests for module 'unistr/u16-strcpy'.
29877         * modules/unistr/u16-strcpy-tests: New file.
29878         * tests/unistr/test-u16-strcpy.c: New file.
29879
29880         Tests for module 'unistr/u8-strcpy'.
29881         * modules/unistr/u8-strcpy-tests: New file.
29882         * tests/unistr/test-u8-strcpy.c: New file.
29883         * tests/unistr/test-strcpy.h: New file.
29884
29885         Tests for module 'unistr/u32-strnlen'.
29886         * modules/unistr/u32-strnlen-tests: New file.
29887         * tests/unistr/test-u32-strnlen.c: New file.
29888
29889         Tests for module 'unistr/u16-strnlen'.
29890         * modules/unistr/u16-strnlen-tests: New file.
29891         * tests/unistr/test-u16-strnlen.c: New file.
29892
29893         Tests for module 'unistr/u8-strnlen'.
29894         * modules/unistr/u8-strnlen-tests: New file.
29895         * tests/unistr/test-u8-strnlen.c: New file.
29896         * tests/unistr/test-strnlen.h: New file.
29897
29898         Tests for module 'unistr/u32-strlen'.
29899         * modules/unistr/u32-strlen-tests: New file.
29900         * tests/unistr/test-u32-strlen.c: New file.
29901
29902         Tests for module 'unistr/u16-strlen'.
29903         * modules/unistr/u16-strlen-tests: New file.
29904         * tests/unistr/test-u16-strlen.c: New file.
29905
29906         Tests for module 'unistr/u8-strlen'.
29907         * modules/unistr/u8-strlen-tests: New file.
29908         * tests/unistr/test-u8-strlen.c: New file.
29909
29910         Tests for module 'unistr/u32-prev'.
29911         * modules/unistr/u32-prev-tests: New file.
29912         * tests/unistr/test-u32-prev.c: New file.
29913
29914         Tests for module 'unistr/u16-prev'.
29915         * modules/unistr/u16-prev-tests: New file.
29916         * tests/unistr/test-u16-prev.c: New file.
29917
29918         Tests for module 'unistr/u8-prev'.
29919         * modules/unistr/u8-prev-tests: New file.
29920         * tests/unistr/test-u8-prev.c: New file.
29921
29922         Tests for module 'unistr/u32-next'.
29923         * modules/unistr/u32-next-tests: New file.
29924         * tests/unistr/test-u32-next.c: New file.
29925
29926         Tests for module 'unistr/u16-next'.
29927         * modules/unistr/u16-next-tests: New file.
29928         * tests/unistr/test-u16-next.c: New file.
29929
29930         Tests for module 'unistr/u8-next'.
29931         * modules/unistr/u8-next-tests: New file.
29932         * tests/unistr/test-u8-next.c: New file.
29933
29934         Tests for module 'unistr/u32-strmbtouc'.
29935         * modules/unistr/u32-strmbtouc-tests: New file.
29936         * tests/unistr/test-u32-strmbtouc.c: New file.
29937
29938         Tests for module 'unistr/u16-strmbtouc'.
29939         * modules/unistr/u16-strmbtouc-tests: New file.
29940         * tests/unistr/test-u16-strmbtouc.c: New file.
29941
29942         Tests for module 'unistr/u8-strmbtouc'.
29943         * modules/unistr/u8-strmbtouc-tests: New file.
29944         * tests/unistr/test-u8-strmbtouc.c: New file.
29945
29946         Tests for module 'unistr/u32-strmblen'.
29947         * modules/unistr/u32-strmblen-tests: New file.
29948         * tests/unistr/test-u32-strmblen.c: New file.
29949
29950         Tests for module 'unistr/u16-strmblen'.
29951         * modules/unistr/u16-strmblen-tests: New file.
29952         * tests/unistr/test-u16-strmblen.c: New file.
29953
29954         Tests for module 'unistr/u8-strmblen'.
29955         * modules/unistr/u8-strmblen-tests: New file.
29956         * tests/unistr/test-u8-strmblen.c: New file.
29957
29958         Tests for module 'unistr/u32-cpy-alloc'.
29959         * modules/unistr/u32-cpy-alloc-tests: New file.
29960         * tests/unistr/test-u32-cpy-alloc.c: New file.
29961
29962         Tests for module 'unistr/u16-cpy-alloc'.
29963         * modules/unistr/u16-cpy-alloc-tests: New file.
29964         * tests/unistr/test-u16-cpy-alloc.c: New file.
29965
29966         Tests for module 'unistr/u8-cpy-alloc'.
29967         * modules/unistr/u8-cpy-alloc-tests: New file.
29968         * tests/unistr/test-u8-cpy-alloc.c: New file.
29969         * tests/unistr/test-cpy-alloc.h: New file.
29970
29971         Tests for module 'unistr/u32-mbsnlen'.
29972         * modules/unistr/u32-mbsnlen-tests: New file.
29973         * tests/unistr/test-u32-mbsnlen.c: New file.
29974
29975         Tests for module 'unistr/u16-mbsnlen'.
29976         * modules/unistr/u16-mbsnlen-tests: New file.
29977         * tests/unistr/test-u16-mbsnlen.c: New file.
29978
29979         Tests for module 'unistr/u8-mbsnlen'.
29980         * modules/unistr/u8-mbsnlen-tests: New file.
29981         * tests/unistr/test-u8-mbsnlen.c: New file.
29982
29983         Tests for module 'unistr/u32-chr'.
29984         * modules/unistr/u32-chr-tests: New file.
29985         * tests/unistr/test-u32-chr.c: New file.
29986
29987         Tests for module 'unistr/u16-chr'.
29988         * modules/unistr/u16-chr-tests: New file.
29989         * tests/unistr/test-u16-chr.c: New file.
29990
29991         Tests for module 'unistr/u8-chr'.
29992         * modules/unistr/u8-chr-tests: New file.
29993         * tests/unistr/test-u8-chr.c: New file.
29994         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29995
29996         Tests for module 'unistr/u32-cmp2'.
29997         * modules/unistr/u32-cmp2-tests: New file.
29998         * tests/unistr/test-u32-cmp2.c: New file.
29999
30000         Tests for module 'unistr/u16-cmp2'.
30001         * modules/unistr/u16-cmp2-tests: New file.
30002         * tests/unistr/test-u16-cmp2.c: New file.
30003
30004         Tests for module 'unistr/u8-cmp2'.
30005         * modules/unistr/u8-cmp2-tests: New file.
30006         * tests/unistr/test-u8-cmp2.c: New file.
30007         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
30008
30009         Tests for module 'unistr/u32-cmp'.
30010         * modules/unistr/u32-cmp-tests: New file.
30011         * tests/unistr/test-u32-cmp.c: New file.
30012
30013         Tests for module 'unistr/u16-cmp'.
30014         * modules/unistr/u16-cmp-tests: New file.
30015         * tests/unistr/test-u16-cmp.c: New file.
30016
30017         Tests for module 'unistr/u8-cmp'.
30018         * modules/unistr/u8-cmp-tests: New file.
30019         * tests/unistr/test-u8-cmp.c: New file.
30020         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
30021
30022         Tests for module 'unistr/u32-set'.
30023         * modules/unistr/u32-set-tests: New file.
30024         * tests/unistr/test-u32-set.c: New file.
30025
30026         Tests for module 'unistr/u16-set'.
30027         * modules/unistr/u16-set-tests: New file.
30028         * tests/unistr/test-u16-set.c: New file.
30029
30030         Tests for module 'unistr/u8-set'.
30031         * modules/unistr/u8-set-tests: New file.
30032         * tests/unistr/test-u8-set.c: New file.
30033         * tests/unistr/test-set.h: New file.
30034
30035         Tests for module 'unistr/u32-move'.
30036         * modules/unistr/u32-move-tests: New file.
30037         * tests/unistr/test-u32-move.c: New file.
30038
30039         Tests for module 'unistr/u16-move'.
30040         * modules/unistr/u16-move-tests: New file.
30041         * tests/unistr/test-u16-move.c: New file.
30042
30043         Tests for module 'unistr/u8-move'.
30044         * modules/unistr/u8-move-tests: New file.
30045         * tests/unistr/test-u8-move.c: New file.
30046         * tests/unistr/test-move.h: New file.
30047
30048         Tests for module 'unistr/u32-cpy'.
30049         * modules/unistr/u32-cpy-tests: New file.
30050         * tests/unistr/test-u32-cpy.c: New file.
30051
30052         Tests for module 'unistr/u16-cpy'.
30053         * modules/unistr/u16-cpy-tests: New file.
30054         * tests/unistr/test-u16-cpy.c: New file.
30055
30056         Tests for module 'unistr/u8-cpy'.
30057         * modules/unistr/u8-cpy-tests: New file.
30058         * tests/unistr/test-u8-cpy.c: New file.
30059         * tests/unistr/test-cpy.h: New file.
30060
30061 2010-01-09  Bruno Haible  <bruno@clisp.org>
30062
30063         Tests for module 'unistr/u32-uctomb'.
30064         * modules/unistr/u32-uctomb-tests: New file.
30065         * tests/unistr/test-u32-uctomb.c: New file.
30066
30067         Tests for module 'unistr/u16-uctomb'.
30068         * modules/unistr/u16-uctomb-tests: New file.
30069         * tests/unistr/test-u16-uctomb.c: New file.
30070
30071         Tests for module 'unistr/u8-uctomb'.
30072         * modules/unistr/u8-uctomb-tests: New file.
30073         * tests/unistr/test-u8-uctomb.c: New file.
30074
30075         Tests for module 'unistr/u32-mbtoucr'.
30076         * modules/unistr/u32-mbtoucr-tests: New file.
30077         * tests/unistr/test-u32-mbtoucr.c: New file.
30078
30079         Tests for module 'unistr/u16-mbtoucr'.
30080         * modules/unistr/u16-mbtoucr-tests: New file.
30081         * tests/unistr/test-u16-mbtoucr.c: New file.
30082
30083         Tests for module 'unistr/u8-mbtoucr'.
30084         * modules/unistr/u8-mbtoucr-tests: New file.
30085         * tests/unistr/test-u8-mbtoucr.c: New file.
30086
30087         Tests for module 'unistr/u32-mbtouc'.
30088         * modules/unistr/u32-mbtouc-tests: New file.
30089         * tests/unistr/test-u32-mbtouc.c: New file.
30090
30091         Tests for module 'unistr/u16-mbtouc'.
30092         * modules/unistr/u16-mbtouc-tests: New file.
30093         * tests/unistr/test-u16-mbtouc.c: New file.
30094
30095         Tests for module 'unistr/u8-mbtouc'.
30096         * modules/unistr/u8-mbtouc-tests: New file.
30097         * tests/unistr/test-u8-mbtouc.c: New file.
30098
30099         Tests for module 'unistr/u32-mbtouc-unsafe'.
30100         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30101         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30102         * tests/unistr/test-u32-mbtouc.h: New file.
30103
30104         Tests for module 'unistr/u16-mbtouc-unsafe'.
30105         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30106         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30107         * tests/unistr/test-u16-mbtouc.h: New file.
30108
30109         Tests for module 'unistr/u8-mbtouc-unsafe'.
30110         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30111         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30112         * tests/unistr/test-u8-mbtouc.h: New file.
30113
30114         Tests for module 'unistr/u32-mblen'.
30115         * modules/unistr/u32-mblen-tests: New file.
30116         * tests/unistr/test-u32-mblen.c: New file.
30117
30118         Tests for module 'unistr/u16-mblen'.
30119         * modules/unistr/u16-mblen-tests: New file.
30120         * tests/unistr/test-u16-mblen.c: New file.
30121
30122         Tests for module 'unistr/u8-mblen'.
30123         * modules/unistr/u8-mblen-tests: New file.
30124         * tests/unistr/test-u8-mblen.c: New file.
30125
30126         Tests for module 'unistr/u32-to-u16'.
30127         * modules/unistr/u32-to-u16-tests: New file.
30128         * tests/unistr/test-u32-to-u16.c: New file.
30129
30130         Tests for module 'unistr/u32-to-u8'.
30131         * modules/unistr/u32-to-u8-tests: New file.
30132         * tests/unistr/test-u32-to-u8.c: New file.
30133
30134         Tests for module 'unistr/u16-to-u32'.
30135         * modules/unistr/u16-to-u32-tests: New file.
30136         * tests/unistr/test-u16-to-u32.c: New file.
30137
30138         Tests for module 'unistr/u16-to-u8'.
30139         * modules/unistr/u16-to-u8-tests: New file.
30140         * tests/unistr/test-u16-to-u8.c: New file.
30141
30142         Tests for module 'unistr/u8-to-u32'.
30143         * modules/unistr/u8-to-u32-tests: New file.
30144         * tests/unistr/test-u8-to-u32.c: New file.
30145
30146         Tests for module 'unistr/u8-to-u16'.
30147         * modules/unistr/u8-to-u16-tests: New file.
30148         * tests/unistr/test-u8-to-u16.c: New file.
30149
30150         Tests for module 'unistr/u32-check'.
30151         * modules/unistr/u32-check-tests: New file.
30152         * tests/unistr/test-u32-check.c: New file.
30153
30154         Tests for module 'unistr/u16-check'.
30155         * modules/unistr/u16-check-tests: New file.
30156         * tests/unistr/test-u16-check.c: New file.
30157
30158         Tests for module 'unistr/u8-check'.
30159         * modules/unistr/u8-check-tests: New file.
30160         * tests/unistr/test-u8-check.c: New file.
30161
30162         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30163         (category_equals): New function.
30164         (main): Add more tests.
30165         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30166
30167         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30168
30169 2010-01-10  Bruno Haible  <bruno@clisp.org>
30170
30171         unistr/u*-strcoll: Try harder to distinguish different strings.
30172         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30173         compare s1 and s2 to see if they are different.
30174
30175 2010-01-10  Bruno Haible  <bruno@clisp.org>
30176
30177         unistr/u*-stpncpy: Fix the return value.
30178         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30179         description of the return value consistent with stpncpy in glibc.
30180         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30181         written non-NUL unit.
30182
30183 2010-01-10  Bruno Haible  <bruno@clisp.org>
30184
30185         unistr/u*-next: Add missing dependencies.
30186         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30187         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30188         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30189
30190 2010-01-10  Bruno Haible  <bruno@clisp.org>
30191
30192         unistr/u8-mbsnlen: Fix return value for incomplete character.
30193         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30194         u8_mblen.
30195         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30196         Remove unistr/u8-mblen.
30197         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30198         u16_mblen.
30199         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30200         Remove unistr/u16-mblen.
30201
30202 2010-01-10  Bruno Haible  <bruno@clisp.org>
30203
30204         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30205         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30206         Reported by Brian Gough <bjg@gnu.org> and
30207         Chris Clayton <chris2553@googlemail.com> via
30208         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30209
30210 2010-01-09  Bruno Haible  <bruno@clisp.org>
30211
30212         unistr/u16-to-u32: Reject invalid input.
30213         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30214         u16_mbtouc.
30215         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30216         Remove unistr/u16-mbtouc.
30217
30218         unistr/u16-to-u8: Reject invalid input.
30219         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30220         u16_mbtouc.
30221         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30222         Remove unistr/u16-mbtouc.
30223
30224         unistr/u8-to-u32: Reject invalid input.
30225         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30226         u8_mbtouc.
30227         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30228         Remove unistr/u8-mbtouc.
30229
30230         unistr/u8-to-u16: Reject invalid input.
30231         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30232         u8_mbtouc.
30233         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30234         Remove unistr/u8-mbtouc.
30235
30236 2010-01-09  Bruno Haible  <bruno@clisp.org>
30237
30238         Tests for module 'getlogin'.
30239         * modules/getlogin-tests: New file.
30240         * tests/test-getlogin.c: New file.
30241
30242         New module 'getlogin'.
30243         * lib/unistd.in.h (getlogin): New declaration.
30244         * lib/getlogin.c: New file.
30245         * m4/getlogin.m4: New file.
30246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30247         HAVE_GETLOGIN.
30248         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30249         HAVE_GETLOGIN.
30250         * modules/getlogin: New file.
30251         * doc/posix-functions/getlogin.texi: Mention the new module.
30252         Reported by John W. Eaton <jwe@gnu.org>.
30253
30254 2010-01-09  Bruno Haible  <bruno@clisp.org>
30255
30256         getlogin_r: Support for native Windows.
30257         * lib/getlogin_r.c: Include <windows.h>
30258         (getlogin_r): Implement for native Windows.
30259         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30260         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30261         via John W. Eaton <jwe@gnu.org>.
30262
30263 2010-01-09  Bruno Haible  <bruno@clisp.org>
30264
30265         getlogin_r: Small fixes.
30266         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30267         succeeds.
30268         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30269         before testing whether getlogin_r is declared. No need to set
30270         HAVE_DECL_GETLOGIN_R to 1.
30271         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30272
30273 2010-01-09  Bruno Haible  <bruno@clisp.org>
30274
30275         * lib/unistd.in.h (getlogin_r): Add comment.
30276
30277 2010-01-09  Bruno Haible  <bruno@clisp.org>
30278
30279         Tests for module 'getlogin_r'.
30280         * modules/getlogin_r-tests: New file.
30281         * tests/test-getlogin_r.c: New file.
30282
30283 2010-01-09  Jim Meyering  <meyering@redhat.com>
30284
30285         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30286         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30287         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30288
30289 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30290
30291         * lib/dup2.c (rpl_dup2): Improve comment.
30292
30293 2010-01-08  Eric Blake  <ebb9@byu.net>
30294
30295         maint.mk: allow packages to add makefile @@ exceptions
30296         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30297         (sc_makefile_check): Rename...
30298         (sc_makefile_at_at_check): ...to this, and use hook.
30299
30300         dup2: work around mingw bug
30301         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30302         Reported by Simon Josefsson.
30303
30304 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30305
30306         glob: Fix C++ compilation.
30307         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30308         C++.
30309
30310 2010-01-07  Bruno Haible  <bruno@clisp.org>
30311
30312         Fix indentation of wctype.in.h, broken since 2007-01-06.
30313         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30314
30315 2010-01-07  Bruno Haible  <bruno@clisp.org>
30316
30317         mbslen: Avoid collision with system function.
30318         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30319         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30320         * m4/mbslen.m4: New file.
30321         * modules/mbslen (Files): Add it.
30322         (configure.ac): Invoke gl_MBSLEN.
30323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30324         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30325         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30326         via Ian Beckwith <ianb@erislabs.net>.
30327
30328 2010-01-07  Bruno Haible  <bruno@clisp.org>
30329
30330         dirent: Document the last fix.
30331         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30332
30333 2010-01-07  Bruno Haible  <bruno@clisp.org>
30334
30335         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30336         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30337         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30338         va_list are defined.
30339         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30340         Reported by Eric Blake.
30341
30342 2010-01-07  Bruno Haible  <bruno@clisp.org>
30343
30344         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30345         * modules/xlist (Depends-on): Add 'list',
30346         * modules/xoset (Depends-on): Add 'oset'.
30347         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30348
30349 2010-01-07  Bruno Haible  <bruno@clisp.org>
30350
30351         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30352         * doc/posix-functions/strncasecmp.texi: Likewise.
30353
30354 2010-01-07  Bruno Haible  <bruno@clisp.org>
30355
30356         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30357
30358 2010-01-07  John W. Eaton  <jwe@octave.org>
30359
30360         wctype: allow C++ use
30361         * lib/wctype.in.h: Add extern "C" block for C++.
30362
30363 2010-01-06  Eric Blake  <ebb9@byu.net>
30364
30365         maint.mk: detect incorrect GFDL usage
30366         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30367
30368 2010-01-06  Jim Meyering  <meyering@redhat.com>
30369         and Eric Blake  <ebb9@byu.net>
30370
30371         maint.mk: ignore multi-line copyright in NEWS
30372         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30373
30374 2010-01-06  Eric Blake  <ebb9@byu.net>
30375
30376         select: add missing dependency
30377         * modules/select-tests (Depends-on): Move sockets dependency...
30378         * modules/select (Depends-on): ...here.
30379         Reported by Ian Beckwith.
30380
30381         doc: regenerate INSTALL
30382         * doc/INSTALL: Reflect recent autoconf update.
30383         * doc/INSTALL.ISO: Likewise.
30384         * doc/INSTALL.UTF-8: Likewise.
30385
30386         pread: fix compilation on glibc
30387         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30388         Reported by Ralf Wildenhues.
30389
30390         dirent: fix test failure
30391         * lib/dirent.in.h (includes): Guarantee ino_t.
30392         Reported by Ralf Wildenhues.
30393
30394 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30395
30396         linkat, renameat: avoid bad free
30397         * lib/at-func2.c (at_func2): Fix typo.
30398         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30399
30400 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30401
30402         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30403         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30404         to avoid failure of symlink test later.
30405
30406 2010-01-06  Eric Blake  <ebb9@byu.net>
30407
30408         stdio, unistd: guarantee ssize_t
30409         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30410         2008 are exposed when needed.
30411         * lib/stdio.in.h (includes): Likewise.
30412         Reported by Ralf Wildenhues.
30413
30414 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30415
30416         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30417         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30418         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30419
30420 2010-01-06  Jim Meyering  <meyering@redhat.com>
30421
30422         readtokens: this module *does* require xalloc.h
30423         It uses only functions that were omitted by the old syntax-check rule.
30424         * lib/readtokens.c: Include "xalloc.h" once again.
30425         * modules/readtokens (Depends-on): Add xalloc.
30426         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30427
30428 2010-01-05  Eric Blake  <ebb9@byu.net>
30429
30430         maint: support 'make announcement' from a VPATH build
30431         * top/maint.mk (announcement): Look for correct NEWS file.
30432
30433 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30434
30435         utimens (fdutimens): ignore a negative FD, per contract
30436         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30437         when we have a valid file descriptor.  Otherwise, using a brand
30438         new glibc (with just-patched futimens that now fails with EBADF)
30439         would cause this function to fail with ENOSYS.
30440         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30441         See also http://bugzilla.redhat.com/552320.
30442
30443 2010-01-05  Eric Blake  <ebb9@byu.net>
30444
30445         strcase: document what it provides
30446         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30447         gnulib module.
30448         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30449         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30450
30451 2010-01-05  Jim Meyering  <meyering@redhat.com>
30452
30453         maint: remove useless inclusions of "xalloc.h"
30454         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30455         * lib/readtokens.c: Likewise.
30456         * lib/same.c: Likewise.
30457         * modules/getloadavg (Depends-on): Remove xalloc.
30458         * modules/readtokens: Likewise.
30459         * modules/same: Likewise.
30460
30461         maint.mk: include 4 more function names in alloca.h-checking regexp
30462         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30463         regexp.  Before, we would give a false-positive (saying alloca.h
30464         is included unnecessarily) when the only uses involved omitted symbols.
30465
30466         xalloc.h: use consistent formatting
30467         * lib/xalloc.h: Move declarations to start in the first column.
30468
30469 2010-01-05  Eric Blake  <ebb9@byu.net>
30470
30471         mkdir: avoid xalloc
30472         * lib/mkdir.c (includes): Drop unused header.
30473         Reported by John W. Eaton.
30474
30475 2010-01-04  Jim Meyering  <meyering@redhat.com>
30476
30477         nl_langinfo: avoid configure-time syntax error
30478         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30479         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30480         the empty string.  Don't let that provoke a shell syntax error.
30481
30482         regcomp, regexec, fnmatch: avoid array bounds read error
30483         * lib/regcomp.c (build_equiv_class): From glibc:
30484         Use only the low 24 bits of a findidx return value as an index
30485         into the weights array.  Patch by Ulrich Drepper:
30486         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30487         * lib/regexec.c (check_node_accept_bytes): Likewise.
30488         * lib/fnmatch_loop.c (FCT): Likewise.
30489
30490         regcomp: skip collseq lookup when there are no rules
30491         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30492         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30493
30494         regcomp: recognize ill-formed { } expressions
30495         * lib/regcomp.c (parse_dup_op): From glibc:
30496         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30497
30498         regcomp: fix typo in comment
30499         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30500         s/satisfy/satisfies/.
30501
30502         regcomp: sync from glibc: remove dead store
30503         * lib/regcomp.c (duplicate_node_closure): Remove useless
30504         search_duplicated_node call and dead store.
30505
30506         regcomp: sync from glibc; always use nl_langinfo
30507         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30508         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30509         * modules/regex (Depends-on): Add nl_langinfo.
30510
30511 2010-01-04  Eric Blake  <ebb9@byu.net>
30512
30513         fdopendir: fix configure test
30514         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30515
30516 2010-01-01  Bruno Haible  <bruno@clisp.org>
30517
30518         wchar: Remove unused configure check.
30519         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30520
30521 2010-01-01  Eric Blake  <ebb9@byu.net>
30522
30523         headers: make check of system header explicit
30524         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30525         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30526         ourselves.
30527         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30528         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30529         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30530         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30531         internals.
30532         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30533         missing.
30534         Suggested by Bruno Haible.
30535
30536 2010-01-01  Jim Meyering  <meyering@redhat.com>
30537
30538         ChangeLog: tweak to eliminate unnecessary copyright line
30539         * ChangeLog: Remove a copyright line that was mistakenly updated
30540         by today's update-copyright run.  Reported by Eric Blake.
30541
30542         test-update-copyright: don't let envvar setting cause test failure
30543         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30544
30545 2010-01-01  Bruno Haible  <bruno@clisp.org>
30546
30547         localename: Avoid gcc warning.
30548         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30549         function if it is not used.
30550
30551 2010-01-01  Jim Meyering  <meyering@redhat.com>
30552
30553         update nearly all FSF copyright year lists to include 2010
30554         Use the same procedure as for 2009, outlined in
30555         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30556
30557         version-etc: set COPYRIGHT_YEAR to 2010
30558         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30559
30560 2009-12-31  Eric Blake  <ebb9@byu.net>
30561
30562         doc: correct availability of cygwin 1.5.x getopt
30563         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30564         variables.
30565         * doc/posix-functions/opterr.texi (opterr): Likewise.
30566         * doc/posix-functions/optind.texi (optind): Likewise.
30567         * doc/posix-functions/optopt.texi (optopt): Likewise.
30568         * doc/posix-functions/tzname.texi (tzname): Likewise.
30569
30570         openat: update maintainer
30571         * modules/openat (Maintainer): Add myself.
30572
30573         utimens: avoid shadowing warning
30574         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30575         buffers into one, to avoid shadowing, as well as avoiding a
30576         redundant stat.
30577         Reported by Jim Meyering.
30578
30579         test-dup2: avoid compiler warning
30580         * tests/test-dup2.c (is_inheritable): Only define if used.
30581
30582 2010-01-01  Bruno Haible  <bruno@clisp.org>
30583
30584         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30585         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30586         defined, use wctomb instead of wcrtomb.
30587
30588 2010-01-01  Bruno Haible  <bruno@clisp.org>
30589
30590         iconv: Reject native Solaris iconv.
30591         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30592         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30593
30594 2009-12-31  Bruno Haible  <bruno@clisp.org>
30595
30596         * tests/test-signal.c (main): Remove test of 'SIG'.
30597
30598 2009-12-31  Bruno Haible  <bruno@clisp.org>
30599
30600         spawn: Fix incomplete fix.
30601         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30602         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30603         warnings for GNULIB_POSIXCHECK again.
30604         Reported by Eric Blake.
30605
30606 2009-12-31  Bruno Haible  <bruno@clisp.org>
30607
30608         Avoid namespace pollution on glibc systems.
30609         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30610         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30611         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30612         glibc systems.
30613
30614 2009-12-31  Bruno Haible  <bruno@clisp.org>
30615
30616         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30617         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30618         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30619         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30620         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30621         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30622         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30623
30624 2009-12-31  Bruno Haible  <bruno@clisp.org>
30625
30626         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30627         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30628         afterwards.
30629
30630 2009-12-31  Bruno Haible  <bruno@clisp.org>
30631
30632         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30633         SYS_UTSNAME_H.
30634
30635 2009-12-31  Bruno Haible  <bruno@clisp.org>
30636
30637         spawn: Fix misapplied patch.
30638         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30639         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30640         warnings for GNULIB_POSIXCHECK.
30641
30642 2009-12-31  Bruno Haible  <bruno@clisp.org>
30643
30644         times: Update after sys_times changed.
30645         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30646         * modules/times (Files): Add it.
30647         (configure.ac): Invoke gl_FUNC_TIMES.
30648
30649 2009-12-31  Bruno Haible  <bruno@clisp.org>
30650
30651         Use AC_C_INLINE where necessary.
30652         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30653         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30654         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30655         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30656         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30657         * m4/mbiter.m4 (gl_MBITER): Likewise.
30658         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30659         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30660         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30661         * modules/u64 (configure.ac): Likewise.
30662
30663 2009-12-31  Bruno Haible  <bruno@clisp.org>
30664
30665         Use AC_C_INLINE instead of module 'inline' where possible.
30666         * modules/inline (Description): Clarify purpose.
30667         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30668         * modules/count-one-bits (Depends-on): Remove inline.
30669         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30670         * modules/openat (Depends-on): Remove inline.
30671         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30672         instead of depending on module 'inline'.
30673         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30674         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30675         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30676         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30677         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30678         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30679         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30680         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30681         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30682         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30683         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30684         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30685         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30686         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30687         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30688         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30689         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30690         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30691         Likewise.
30692         * modules/unictype/property-ascii-hex-digit (Depends-on,
30693         configure.ac): Likewise.
30694         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30695         configure.ac): Likewise.
30696         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30697         configure.ac): Likewise.
30698         * modules/unictype/property-bidi-block-separator (Depends-on,
30699         configure.ac): Likewise.
30700         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30701         configure.ac): Likewise.
30702         * modules/unictype/property-bidi-common-separator (Depends-on,
30703         configure.ac): Likewise.
30704         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30705         Likewise.
30706         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30707         configure.ac): Likewise.
30708         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30709         configure.ac): Likewise.
30710         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30711         configure.ac): Likewise.
30712         * modules/unictype/property-bidi-european-digit (Depends-on,
30713         configure.ac): Likewise.
30714         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30715         configure.ac): Likewise.
30716         * modules/unictype/property-bidi-left-to-right (Depends-on,
30717         configure.ac): Likewise.
30718         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30719         configure.ac): Likewise.
30720         * modules/unictype/property-bidi-other-neutral (Depends-on,
30721         configure.ac): Likewise.
30722         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30723         Likewise.
30724         * modules/unictype/property-bidi-segment-separator (Depends-on,
30725         configure.ac): Likewise.
30726         * modules/unictype/property-bidi-whitespace (Depends-on,
30727         configure.ac): Likewise.
30728         * modules/unictype/property-combining (Depends-on, configure.ac):
30729         Likewise.
30730         * modules/unictype/property-composite (Depends-on, configure.ac):
30731         Likewise.
30732         * modules/unictype/property-currency-symbol (Depends-on,
30733         configure.ac): Likewise.
30734         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30735         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30736         Likewise.
30737         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30738         configure.ac): Likewise.
30739         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30740         Likewise.
30741         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30742         Likewise.
30743         * modules/unictype/property-extender (Depends-on, configure.ac):
30744         Likewise.
30745         * modules/unictype/property-format-control (Depends-on, configure.ac):
30746         Likewise.
30747         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30748         Likewise.
30749         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30750         Likewise.
30751         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30752         Likewise.
30753         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30754         Likewise.
30755         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30756         Likewise.
30757         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30758         Likewise.
30759         * modules/unictype/property-id-start (Depends-on, configure.ac):
30760         Likewise.
30761         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30762         Likewise.
30763         * modules/unictype/property-ids-binary-operator (Depends-on,
30764         configure.ac): Likewise.
30765         * modules/unictype/property-ids-trinary-operator (Depends-on,
30766         configure.ac): Likewise.
30767         * modules/unictype/property-ignorable-control (Depends-on,
30768         configure.ac): Likewise.
30769         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30770         Likewise.
30771         * modules/unictype/property-join-control (Depends-on, configure.ac):
30772         Likewise.
30773         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30774         Likewise.
30775         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30776         Likewise.
30777         * modules/unictype/property-logical-order-exception (Depends-on,
30778         configure.ac): Likewise.
30779         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30780         Likewise.
30781         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30782         * modules/unictype/property-non-break (Depends-on, configure.ac):
30783         Likewise.
30784         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30785         Likewise.
30786         * modules/unictype/property-numeric (Depends-on, configure.ac):
30787         Likewise.
30788         * modules/unictype/property-other-alphabetic (Depends-on,
30789         configure.ac): Likewise.
30790         * modules/unictype/property-other-default-ignorable-code-point
30791         (Depends-on, configure.ac): Likewise.
30792         * modules/unictype/property-other-grapheme-extend (Depends-on,
30793         configure.ac): Likewise.
30794         * modules/unictype/property-other-id-continue (Depends-on,
30795         configure.ac): Likewise.
30796         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30797         Likewise.
30798         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30799         Likewise.
30800         * modules/unictype/property-other-math (Depends-on, configure.ac):
30801         Likewise.
30802         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30803         Likewise.
30804         * modules/unictype/property-paired-punctuation (Depends-on,
30805         configure.ac): Likewise.
30806         * modules/unictype/property-paragraph-separator (Depends-on,
30807         configure.ac): Likewise.
30808         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30809         Likewise.
30810         * modules/unictype/property-pattern-white-space (Depends-on,
30811         configure.ac): Likewise.
30812         * modules/unictype/property-private-use (Depends-on, configure.ac):
30813         Likewise.
30814         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30815         Likewise.
30816         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30817         Likewise.
30818         * modules/unictype/property-radical (Depends-on, configure.ac):
30819         Likewise.
30820         * modules/unictype/property-sentence-terminal (Depends-on,
30821         configure.ac): Likewise.
30822         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30823         Likewise.
30824         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30825         * modules/unictype/property-terminal-punctuation (Depends-on,
30826         configure.ac): Likewise.
30827         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30828         Likewise.
30829         * modules/unictype/property-unassigned-code-value (Depends-on,
30830         configure.ac): Likewise.
30831         * modules/unictype/property-unified-ideograph (Depends-on,
30832         configure.ac): Likewise.
30833         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30834         Likewise.
30835         * modules/unictype/property-variation-selector (Depends-on,
30836         configure.ac): Likewise.
30837         * modules/unictype/property-white-space (Depends-on, configure.ac):
30838         Likewise.
30839         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30840         Likewise.
30841         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30842         Likewise.
30843         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30844         Likewise.
30845         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30846         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30847         Likewise.
30848
30849 2009-12-31  Bruno Haible  <bruno@clisp.org>
30850
30851         Remove unnecessary AC_C_INLINE invocation.
30852         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30853         since 2009-08-21.
30854
30855 2009-12-31  Jim Meyering  <meyering@redhat.com>
30856
30857         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30858         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30859         With this change, we can all remove the gpg_key_ID = ... definition
30860         from our respective cfg.mk files.
30861
30862         maint.mk: create announcement template in ~/, not in /tmp
30863         * top/maint.mk (emit_upload_commands): Adjust.
30864         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30865         Remove temporary file, .ci-msg.
30866
30867 2009-12-31  Eric Blake  <ebb9@byu.net>
30868
30869         link-warning: always build headers with link warnings
30870         * modules/arpa_inet (Makefile.am): Always build replacement
30871         header.
30872         * modules/ctype (Makefile.am): Likewise.
30873         * modules/dirent (Makefile.am): Likewise.
30874         * modules/inttypes (Makefile.am): Likewise.
30875         * modules/langinfo (Makefile.am): Likewise.
30876         * modules/locale (Makefile.am): Likewise.
30877         * modules/spawn (Makefile.am): Likewise.
30878         * modules/sys_file (Makefile.am): Likewise.
30879         * modules/sys_ioctl (Makefile.am): Likewise.
30880         * modules/sys_select (Makefile.am): Likewise.
30881         * modules/sys_socket (Makefile.am): Likewise.
30882         * modules/sys_times (Makefile.am): Likewise.
30883         * modules/sys_utsname (Makefile.am): Likewise.
30884         * modules/sys_wait (Makefile.am): Likewise.
30885         * modules/wchar (Makefile.am): Likewise.
30886         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30887         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30888         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30889         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30890         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30891         Likewise.
30892         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30893         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30894         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30895         Likewise.
30896         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30897         Likewise.
30898         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30899         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30900         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30901         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30902         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30903         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30904         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30905         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30906         (gl_WCHAR_H_DEFAULTS): Likewise.
30907
30908 2009-12-31  Eric Blake  <ebb9@byu.net>
30909
30910         signal, spawn: use link warnings
30911         * lib/signal.in.h (sigset_t): Make unconditional.
30912         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30913         (sigpending, sigprocmask, sigaction): Add link warnings.
30914         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30915         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30916         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30917         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30918         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30919         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30920         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30921         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30922         (posix_spawn_file_actions_destroy)
30923         (posix_spawn_file_actions_addopen)
30924         (posix_spawn_file_actions_addclose)
30925         (posix_spawn_file_actions_adddup2): Likewise.
30926         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30927         * tests/test-signal.c (main): Enhance test.
30928
30929         spawn: improve wrapper support
30930         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30931         (gl_SPAWN_H_DEFAULTS): New defaults.
30932         * modules/spawn (Makefile.am): Substitute them.
30933         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30934         Only declare if missing or broken.
30935
30936         sys_times, sys_utsname: use include_next
30937         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30938         header.
30939         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30940         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30941         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30942         * modules/sys_times (Depends-on): Add include_next.
30943         (Makefile.am): Substitute additional values.
30944         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30945         * lib/sys_times.in.h (includes): Include native header, if
30946         available.
30947         * lib/sys_utsname.in.h (includes): Likewise.
30948         * tests/test-sys_times.c (main): Enhance test.
30949
30950         fdutimensat: revert prior patch
30951         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30952         utimens.h.
30953         Reported by Bruno Haible.
30954
30955 2009-12-30  Eric Blake  <ebb9@byu.net>
30956
30957         sys_wait: drop link-warning dependency
30958         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30959         link-warning efforts.
30960         * lib/sys_wait.in.h: Likewise.
30961
30962         fdutimensat: remove bogus dependency
30963         * modules/fdutimensat (Depends-on): Drop inline.
30964
30965         unistd: fix typo
30966         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30967
30968 2009-12-30  Bruno Haible  <bruno@clisp.org>
30969
30970         Fix compilation error with Solaris cc.
30971         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30972         * lib/unicase/u16-is-invariant.c: Likewise.
30973         * lib/unicase/u32-is-invariant.c: Likewise.
30974         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30975
30976 2009-12-30  Bruno Haible  <bruno@clisp.org>
30977
30978         Fix test crash.
30979         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30980         locales.
30981         Reported by Simon Josefsson <simon@josefsson.org>.
30982
30983 2009-12-30  Bruno Haible  <bruno@clisp.org>
30984
30985         Fix compilation error on most platforms.
30986         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30987         Reported by Simon Josefsson <simon@josefsson.org>
30988         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30989
30990 2009-12-30  Eric Blake  <ebb9@byu.net>
30991
30992         futimens, utimensat: work around ntfs-3g bug
30993         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30994         a ctime bug is present, and expand workaround to cover ntfs-3g.
30995         * lib/utimens.c (fdutimens, lutimens): Likewise.
30996         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30997         (validate_timespec): Adjust return value.
30998         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30999         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31000         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
31001
31002 2009-12-29  Eric Blake  <ebb9@byu.net>
31003
31004         link-warning: make usage consistent
31005         * modules/ctype (Depends-on): Add link-warning.
31006         (Makefile.am): Update rules accordingly.
31007         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31008         * modules/locale (Depends-on, Makefile.am): Likewise.
31009         * modules/sys_file (Makefile.am): Likewise.
31010         * modules/getopt-posix (Makefile.am): Delete unused link warning
31011         efforts.
31012         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
31013         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
31014         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
31015         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
31016
31017         stdio: remove unused variables
31018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
31019         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
31020         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31021
31022         tests: test more substitute headers
31023         * modules/ctype-tests: New file.
31024         * modules/dirent-tests: Likewise.
31025         * modules/spawn-tests: Likewise.
31026         * modules/sys_file-tests: Likewise.
31027         * modules/sys_ioctl-tests: Likewise.
31028         * modules/sys_wait-tests: Likewise.
31029         * tests/test-ctype.c: Likewise.
31030         * tests/test-dirent.c: Likewise.
31031         * tests/test-spawn.c: Likewise.
31032         * tests/test-sys_file.c: Likewise.
31033         * tests/test-sys_ioctl.c: Likewise.
31034         * tests/test-sys_wait.c: Likewise.
31035         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
31036         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
31037         whether or not flock is in use.
31038
31039         tests: remove License section from module
31040         * modules/arpa_inet-tests: Remove unneeded section.
31041         * modules/byteswap-tests: Likewise.
31042         * modules/ceilf-tests: Likewise.
31043         * modules/ceill-tests: Likewise.
31044         * modules/crypto/des-tests: Likewise.
31045         * modules/crypto/gc-arcfour-tests: Likewise.
31046         * modules/crypto/gc-arctwo-tests: Likewise.
31047         * modules/crypto/gc-des-tests: Likewise.
31048         * modules/crypto/gc-hmac-md5-tests: Likewise.
31049         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31050         * modules/crypto/gc-md2-tests: Likewise.
31051         * modules/crypto/gc-md4-tests: Likewise.
31052         * modules/crypto/gc-md5-tests: Likewise.
31053         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31054         * modules/crypto/gc-rijndael-tests: Likewise.
31055         * modules/crypto/gc-sha1-tests: Likewise.
31056         * modules/crypto/gc-tests: Likewise.
31057         * modules/crypto/md2-tests: Likewise.
31058         * modules/crypto/md4-tests: Likewise.
31059         * modules/fcntl-h-tests: Likewise.
31060         * modules/floorf-tests: Likewise.
31061         * modules/floorl-tests: Likewise.
31062         * modules/frexp-nolibm-tests: Likewise.
31063         * modules/frexp-tests: Likewise.
31064         * modules/frexpl-nolibm-tests: Likewise.
31065         * modules/frexpl-tests: Likewise.
31066         * modules/getaddrinfo-tests: Likewise.
31067         * modules/inttypes-tests: Likewise.
31068         * modules/isfinite-tests: Likewise.
31069         * modules/isinf-tests: Likewise.
31070         * modules/ldexpl-tests: Likewise.
31071         * modules/locale-tests: Likewise.
31072         * modules/math-tests: Likewise.
31073         * modules/netdb-tests: Likewise.
31074         * modules/netinet_in-tests: Likewise.
31075         * modules/printf-frexp-tests: Likewise.
31076         * modules/printf-frexpl-tests: Likewise.
31077         * modules/priv-set-tests: Likewise.
31078         * modules/random_r-tests: Likewise.
31079         * modules/round-tests: Likewise.
31080         * modules/roundf-tests: Likewise.
31081         * modules/roundl-tests: Likewise.
31082         * modules/search-tests: Likewise.
31083         * modules/select-tests: Likewise.
31084         * modules/signal-tests: Likewise.
31085         * modules/stdbool-tests: Likewise.
31086         * modules/stddef-tests: Likewise.
31087         * modules/stdint-tests: Likewise.
31088         * modules/stdio-tests: Likewise.
31089         * modules/stdlib-tests: Likewise.
31090         * modules/string-tests: Likewise.
31091         * modules/strings-tests: Likewise.
31092         * modules/sys_select-tests: Likewise.
31093         * modules/sys_socket-tests: Likewise.
31094         * modules/sys_stat-tests: Likewise.
31095         * modules/sys_time-tests: Likewise.
31096         * modules/sys_utsname-tests: Likewise.
31097         * modules/sysexits-tests: Likewise.
31098         * modules/time-tests: Likewise.
31099         * modules/trunc-tests: Likewise.
31100         * modules/truncf-tests: Likewise.
31101         * modules/truncl-tests: Likewise.
31102         * modules/tsearch-tests: Likewise.
31103         * modules/unistd-tests: Likewise.
31104         * modules/wchar-tests: Likewise.
31105         * modules/wctype-tests: Likewise.
31106
31107         tests: fix license on several tests
31108         * tests/test-des.c: Update to GPLv3+.
31109         * tests/test-flock.c: Likewise.
31110         * tests/test-fsync.c: Likewise.
31111         * tests/test-futimens.h: Likewise.
31112         * tests/test-gc-arcfour.c: Likewise.
31113         * tests/test-gc-arctwo.c: Likewise.
31114         * tests/test-gc-des.c: Likewise.
31115         * tests/test-gc-hmac-md5.c: Likewise.
31116         * tests/test-gc-hmac-sha1.c: Likewise.
31117         * tests/test-gc-md2.c: Likewise.
31118         * tests/test-gc-md4.c: Likewise.
31119         * tests/test-gc-md5.c: Likewise.
31120         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31121         * tests/test-gc-rijndael.c: Likewise.
31122         * tests/test-gc-sha1.c: Likewise.
31123         * tests/test-gc.c: Likewise.
31124         * tests/test-getcwd.c: Likewise.
31125         * tests/test-link.c: Likewise.
31126         * tests/test-link.h: Likewise.
31127         * tests/test-lutimens.h: Likewise.
31128         * tests/test-md2.c: Likewise.
31129         * tests/test-md4.c: Likewise.
31130         * tests/test-mkdir.h: Likewise.
31131         * tests/test-rename.c: Likewise.
31132         * tests/test-rename.h: Likewise.
31133         * tests/test-safe-alloc.c: Likewise.
31134         * tests/test-utimens-common.h: Likewise.
31135         * tests/test-utimens.h: Likewise.
31136
31137         maint: sync license texts
31138         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31139         * doc/gpl-3.0.texi: Revert copyright year update.
31140         * doc/lgpl-3.0.texi: Likewise.
31141
31142 2009-12-29  Jim Meyering  <meyering@redhat.com>
31143
31144         update nearly all FSF copyright year lists to include 2009
31145         The files named by the following are exempted:
31146             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31147               test -f "$dst" && { echo "$dst"; continue; }
31148               test -d "$dst" || continue
31149               echo "$dst"/$(basename "$src")
31150             done > exempt
31151             git ls-files tests/unictype >> exempt
31152         In the remaining files, convert to all-interval notation if
31153         - there is already at least one year interval like 2000-2003
31154         - the file is maintained by me
31155         - the file is in lib/uni*/, where that style already prevails
31156         Otherwise, use update-copyright's default.
31157
31158 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31159         and Eric Blake  <ebb9@byu.net>
31160
31161         tests: don't require debug system() to pass
31162         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31163         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31164         * tests/test-unlink.h (test_unlink_func): Likewise.
31165         * tests/test-fstatat.c (main): ...into callers.
31166         * tests/test-lstat.c (main): Likewise.
31167         * tests/test-rmdir.c (main): Likewise.
31168         * tests/test-unlink.c (main): Likewise.
31169         * tests/test-unlinkat.c (main): Likewise.
31170         * tests/test-areadlink-with-size.c (main): Don't require a
31171         debug-only system call to pass, aiding cross-testing to mingw.
31172         * tests/test-areadlink.c (main): Likewise.
31173         * tests/test-areadlinkat-with-size.c (main): Likewise.
31174         * tests/test-areadlinkat.c (main): Likewise.
31175         * tests/test-canonicalize-lgpl.c (main): Likewise.
31176         * tests/test-canonicalize.c (main): Likewise.
31177         * tests/test-chown.c (main): Likewise.
31178         * tests/test-fchownat.c (main): Likewise.
31179         * tests/test-lchown.c (main): Likewise.
31180         * tests/test-fdutimensat.c (main): Likewise.
31181         * tests/test-futimens.c (main): Likewise.
31182         * tests/test-link.c (main): Likewise.
31183         * tests/test-linkat.c (main): Likewise.
31184         * tests/test-mkdir.c (main): Likewise.
31185         * tests/test-mkdirat.c (main): Likewise.
31186         * tests/test-mkfifo.c (main): Likewise.
31187         * tests/test-mkfifoat.c (main): Likewise.
31188         * tests/test-mknod.c (main): Likewise.
31189         * tests/test-readlink.c (main): Likewise.
31190         * tests/test-remove.c (main): Likewise.
31191         * tests/test-rename.c (main): Likewise.
31192         * tests/test-renameat.c (main): Likewise.
31193         * tests/test-symlink.c (main): Likewise.
31194         * tests/test-symlinkat.c (main): Likewise.
31195         * tests/test-utimens.c (main): Likewise.
31196         * tests/test-utimensat.c (main): Likewise.
31197
31198 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31199
31200         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31201         on $(UNUSED_PARAMETER_H) to avoid build failure.
31202
31203 2009-12-28  Jim Meyering  <meyering@redhat.com>
31204
31205         update-copyright: you may specify a max. line length other than 72
31206         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31207
31208         maint: use consistent FSF copyright line syntax
31209         * lib/posixtm.c: Add missing comma in FSF copyright line.
31210         * lib/posixtm.h: Likewise.
31211         * lib/getugroups.c: Add missing ", Inc.".
31212
31213         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31214         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31215         FSF copyright line.  Remove trailing blanks.
31216
31217 2009-12-28  Eric Blake  <ebb9@byu.net>
31218
31219         test-dup2: reduce dependencies
31220         * modules/cloexec (Configure.ac): Set witness.
31221         * modules/dup2-tests (Depends-on): Drop cloexec.
31222         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31223         not present.
31224         Suggested by Bruno Haible.
31225
31226 2009-12-26  Bruno Haible  <bruno@clisp.org>
31227
31228         Remove an unneeded dependency.
31229         * modules/fseterr (Depends-on): Remove dup2.
31230
31231 2009-12-26  Eric Blake  <ebb9@byu.net>
31232
31233         tests: use macros.h in more places
31234         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31235         (ASSERT_STREAM): Provide default of stderr.
31236         * tests/test-dirent-safer.c: Include macros.h, using alternate
31237         stream for assertions.
31238         * tests/test-dup-safer.c: Likewise.
31239         * tests/test-freopen-safer.c: Likewise.
31240         * tests/test-getopt.c: Likewise.
31241         * tests/test-openat-safer.c: Likewise.
31242         * tests/test-pipe.c: Likewise.
31243         * tests/test-popen-safer.c: Likewise.
31244         * modules/dirent-safer-tests (Files): Include macros.h.
31245         * modules/unistd-safer-tests (Files): Likewise.
31246         * modules/freopen-safer-tests (Files): Likewise.
31247         * modules/getopt-posix-tests (Files): Likewise.
31248         * modules/openat-safer-tests (Files): Likewise.
31249         * modules/pipe-tests (Files): Likewise.
31250
31251 2009-12-26  Bruno Haible  <bruno@clisp.org>
31252
31253         javacomp: Portability fix.
31254         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31255         that it also works on Solaris.
31256
31257 2009-12-26  Bruno Haible  <bruno@clisp.org>
31258
31259         localename: Fix storage allocation of gl_locale_name_thread's result.
31260         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31261         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31262         all platforms that have 'uselocale'.
31263         (gl_locale_name_thread_unsafe): New function, extracted from
31264         gl_locale_name_thread.
31265         (gl_locale_name_thread): Call struniq on all platforms that have
31266         'uselocale'.
31267         * tests/test-localename.c (test_locale_name_thread): Check that the
31268         resulting strings are permanently allocated.
31269         * modules/localename-tests (Depends-on): Add strdup.
31270
31271 2009-12-26  Bruno Haible  <bruno@clisp.org>
31272
31273         * tests/test-localename.c (categories): Fill in the strings.
31274
31275 2009-12-26  Jim Meyering  <meyering@redhat.com>
31276
31277         isdir: complete the removal of m4/isdir.m4
31278         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31279
31280         isdir: clean up, since at least grep still uses it
31281         * lib/isdir.c: Include "isdir.h".
31282         (S_ISDIR): Remove now-unneeded definition.
31283         * modules/isdir (Files): Add lib/isdir.h.
31284         * lib/isdir.h: New file, with declaration.
31285         * m4/isdir.m4: Remove file -- unneeded.
31286
31287 2009-12-25  Bruno Haible  <bruno@clisp.org>
31288
31289         selinux-h: Make generated .h files standalone.
31290         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31291         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31292         * lib/se-selinux.in.h: Likewise.
31293         * modules/selinux-h (Depends-on): Add unused-parameter.
31294         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31295         selinux/selinux.h and selinux/context.h.
31296         Suggested by Eric Blake.
31297
31298 2009-12-25  Bruno Haible  <bruno@clisp.org>
31299
31300         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31301         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31302         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31303         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31304         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31305
31306 2009-12-24  Bruno Haible  <bruno@clisp.org>
31307
31308         openat: Fix warning.
31309         * lib/openat-proc.c: Include <unistd.h>.
31310
31311 2009-12-24  Bruno Haible  <bruno@clisp.org>
31312
31313         New module 'unused-parameter'.
31314         * build-aux/unused-parameter.h: New file, extracted from earlier
31315         gnulib-common.m4.
31316         * modules/unused-parameter: New file.
31317         * lib/unistr.h: Include unused-parameter.h.
31318         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31319         _GL_UNUSED.
31320         * modules/unistr/base (Depends-on): Add unused-parameter.
31321
31322 2009-12-24  Bruno Haible  <bruno@clisp.org>
31323
31324         Add missing dependencies to 'extensions' module.
31325         * m4/extensions.m4: Add comment.
31326         * modules/accept4 (Depends-on): Add extensions.
31327         * modules/dup3 (Depends-on): Likewise.
31328         * modules/fcntl (Depends-on): Likewise.
31329         * modules/futimens (Depends-on): Likewise.
31330         * modules/mknod (Depends-on): Likewise.
31331         * modules/pipe2 (Depends-on): Likewise.
31332         * modules/stat-time (Depends-on): Likewise.
31333         * modules/strcasestr-simple (Depends-on): Likewise.
31334         * modules/strsignal (Depends-on): Likewise.
31335         * modules/utimensat (Depends-on): Likewise.
31336         * modules/localcharset (Depends-on): Likewise. Needed because of
31337         gl_FCNTL_O_FLAGS.
31338         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31339         AC_TYPE_MBSTATE_T.
31340         * modules/wcsnrtombs (Depends-on): Likewise.
31341         * modules/wcsrtombs (Depends-on): Likewise.
31342
31343 2009-12-24  Bruno Haible  <bruno@clisp.org>
31344
31345         binary-io: Avoid gcc warning due to SET_BINARY.
31346         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31347         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31348
31349 2009-12-24  Bruno Haible  <bruno@clisp.org>
31350
31351         Avoid future namespace pollution on glibc systems.
31352         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31353         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31354         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31355         glibc systems.
31356
31357 2009-12-24  Bruno Haible  <bruno@clisp.org>
31358
31359         Refactor common macros used in tests.
31360         * tests/macros.h: New file.
31361         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31362         and/or <stdlib.h>, if appropriate.
31363         (ASSERT, SIZEOF): Remove macros.
31364         * tests/test-areadlink-with-size.c: Likewise.
31365         * tests/test-areadlinkat.c: Likewise.
31366         * tests/test-areadlinkat-with-size.c: Likewise.
31367         * tests/test-argmatch.c: Likewise.
31368         * tests/test-argv-iter.c: Likewise.
31369         * tests/test-array-mergesort.c: Likewise.
31370         * tests/test-array_list.c: Likewise.
31371         * tests/test-array_oset.c: Likewise.
31372         * tests/test-avltree_list.c: Likewise.
31373         * tests/test-avltree_oset.c: Likewise.
31374         * tests/test-avltreehash_list.c: Likewise.
31375         * tests/test-base64.c: Likewise.
31376         * tests/test-binary-io.c: Likewise.
31377         * tests/test-bitrotate.c: Likewise.
31378         * tests/test-btowc.c: Likewise.
31379         * tests/test-byteswap.c: Likewise.
31380         * tests/test-c-ctype.c: Likewise.
31381         * tests/test-c-stack.c: Likewise.
31382         * tests/test-c-strcasecmp.c: Likewise.
31383         * tests/test-c-strcasestr.c: Likewise.
31384         * tests/test-c-strncasecmp.c: Likewise.
31385         * tests/test-c-strstr.c: Likewise.
31386         * tests/test-canonicalize-lgpl.c: Likewise.
31387         * tests/test-canonicalize.c: Likewise.
31388         * tests/test-carray_list.c: Likewise.
31389         * tests/test-ceilf1.c: Likewise.
31390         * tests/test-ceilf2.c: Likewise.
31391         * tests/test-ceill.c: Likewise.
31392         * tests/test-chown.c: Likewise.
31393         * tests/test-cloexec.c: Likewise.
31394         * tests/test-copy-acl.c: Likewise.
31395         * tests/test-copy-file.c: Likewise.
31396         * tests/test-count-one-bits.c: Likewise.
31397         * tests/test-dprintf-posix.c: Likewise.
31398         * tests/test-dup2.c: Likewise.
31399         * tests/test-dup3.c: Likewise.
31400         * tests/test-duplocale.c: Likewise.
31401         * tests/test-fbufmode.c: Likewise.
31402         * tests/test-fchdir.c: Likewise.
31403         * tests/test-fchownat.c: Likewise.
31404         * tests/test-fcntl-safer.c: Likewise.
31405         * tests/test-fcntl.c: Likewise.
31406         * tests/test-fdopendir.c: Likewise.
31407         * tests/test-fdutimensat.c: Likewise.
31408         * tests/test-fflush2.c: Likewise.
31409         * tests/test-file-has-acl.c: Likewise.
31410         * tests/test-filevercmp.c: Likewise.
31411         * tests/test-flock.c: Likewise.
31412         * tests/test-floorf1.c: Likewise.
31413         * tests/test-floorf2.c: Likewise.
31414         * tests/test-floorl.c: Likewise.
31415         * tests/test-fnmatch.c: Likewise.
31416         * tests/test-fopen.h: Likewise.
31417         * tests/test-fpending.c: Likewise.
31418         * tests/test-fprintf-posix.c: Likewise.
31419         * tests/test-fpurge.c: Likewise.
31420         * tests/test-freadable.c: Likewise.
31421         * tests/test-freadahead.c: Likewise.
31422         * tests/test-freading.c: Likewise.
31423         * tests/test-freadptr.c: Likewise.
31424         * tests/test-freadptr2.c: Likewise.
31425         * tests/test-freadseek.c: Likewise.
31426         * tests/test-freopen.c: Likewise.
31427         * tests/test-frexp.c: Likewise.
31428         * tests/test-frexpl.c: Likewise.
31429         * tests/test-fseek.c: Likewise.
31430         * tests/test-fseeko.c: Likewise.
31431         * tests/test-fstatat.c: Likewise.
31432         * tests/test-fstrcmp.c: Likewise.
31433         * tests/test-fsync.c: Likewise.
31434         * tests/test-ftell.c: Likewise.
31435         * tests/test-ftello.c: Likewise.
31436         * tests/test-func.c: Likewise.
31437         * tests/test-futimens.c: Likewise.
31438         * tests/test-fwritable.c: Likewise.
31439         * tests/test-fwriting.c: Likewise.
31440         * tests/test-getcwd.c: Likewise.
31441         * tests/test-getdate.c: Likewise.
31442         * tests/test-getdelim.c: Likewise.
31443         * tests/test-getdtablesize.c: Likewise.
31444         * tests/test-getgroups.c: Likewise.
31445         * tests/test-getline.c: Likewise.
31446         * tests/test-getndelim2.c: Likewise.
31447         * tests/test-glob.c: Likewise.
31448         * tests/test-hash.c: Likewise.
31449         * tests/test-i-ring.c: Likewise.
31450         * tests/test-iconv-utf.c: Likewise.
31451         * tests/test-iconv.c: Likewise.
31452         * tests/test-idpriv-drop.c: Likewise.
31453         * tests/test-idpriv-droptemp.c: Likewise.
31454         * tests/test-inet_ntop.c: Likewise.
31455         * tests/test-inet_pton.c: Likewise.
31456         * tests/test-isblank.c: Likewise.
31457         * tests/test-isfinite.c: Likewise.
31458         * tests/test-isinf.c: Likewise.
31459         * tests/test-isnan.c: Likewise.
31460         * tests/test-isnand.h: Likewise.
31461         * tests/test-isnanf.h: Likewise.
31462         * tests/test-isnanl.h: Likewise.
31463         * tests/test-lchown.c: Likewise.
31464         * tests/test-ldexpl.c: Likewise.
31465         * tests/test-link.c: Likewise.
31466         * tests/test-linkat.c: Likewise.
31467         * tests/test-linked_list.c: Likewise.
31468         * tests/test-linkedhash_list.c: Likewise.
31469         * tests/test-localename.c: Likewise.
31470         * tests/test-lseek.c: Likewise.
31471         * tests/test-lstat.c: Likewise.
31472         * tests/test-mbmemcasecmp.c: Likewise.
31473         * tests/test-mbmemcasecoll.c: Likewise.
31474         * tests/test-mbrtowc.c: Likewise.
31475         * tests/test-mbscasecmp.c: Likewise.
31476         * tests/test-mbscasestr1.c: Likewise.
31477         * tests/test-mbscasestr2.c: Likewise.
31478         * tests/test-mbscasestr3.c: Likewise.
31479         * tests/test-mbscasestr4.c: Likewise.
31480         * tests/test-mbschr.c: Likewise.
31481         * tests/test-mbscspn.c: Likewise.
31482         * tests/test-mbsinit.c: Likewise.
31483         * tests/test-mbsncasecmp.c: Likewise.
31484         * tests/test-mbsnrtowcs.c: Likewise.
31485         * tests/test-mbspbrk.c: Likewise.
31486         * tests/test-mbspcasecmp.c: Likewise.
31487         * tests/test-mbsrchr.c: Likewise.
31488         * tests/test-mbsrtowcs.c: Likewise.
31489         * tests/test-mbsspn.c: Likewise.
31490         * tests/test-mbsstr1.c: Likewise.
31491         * tests/test-mbsstr2.c: Likewise.
31492         * tests/test-mbsstr3.c: Likewise.
31493         * tests/test-memchr.c: Likewise.
31494         * tests/test-memchr2.c: Likewise.
31495         * tests/test-memcmp.c: Likewise.
31496         * tests/test-memmem.c: Likewise.
31497         * tests/test-memrchr.c: Likewise.
31498         * tests/test-mkdir.c: Likewise.
31499         * tests/test-mkdirat.c: Likewise.
31500         * tests/test-mkfifo.c: Likewise.
31501         * tests/test-mkfifoat.c: Likewise.
31502         * tests/test-mknod.c: Likewise.
31503         * tests/test-nanosleep.c: Likewise.
31504         * tests/test-nl_langinfo.c: Likewise.
31505         * tests/test-obstack-printf.c: Likewise.
31506         * tests/test-open.c: Likewise.
31507         * tests/test-openat.c: Likewise.
31508         * tests/test-pipe-filter-gi1.c: Likewise.
31509         * tests/test-pipe-filter-gi2-main.c: Likewise.
31510         * tests/test-pipe-filter-ii1.c: Likewise.
31511         * tests/test-pipe-filter-ii2-main.c: Likewise.
31512         * tests/test-pipe2.c: Likewise.
31513         * tests/test-popen.h: Likewise.
31514         * tests/test-posixtm.c: Likewise.
31515         * tests/test-pread.c: Likewise.
31516         * tests/test-printf-frexp.c: Likewise.
31517         * tests/test-printf-frexpl.c: Likewise.
31518         * tests/test-printf-posix.c: Likewise.
31519         * tests/test-priv-set.c: Likewise.
31520         * tests/test-quotearg.c: Likewise.
31521         * tests/test-random_r.c: Likewise.
31522         * tests/test-rawmemchr.c: Likewise.
31523         * tests/test-rbtree_list.c: Likewise.
31524         * tests/test-rbtree_oset.c: Likewise.
31525         * tests/test-rbtreehash_list.c: Likewise.
31526         * tests/test-readlink.c: Likewise.
31527         * tests/test-remove.c: Likewise.
31528         * tests/test-rename.c: Likewise.
31529         * tests/test-renameat.c: Likewise.
31530         * tests/test-rmdir.c: Likewise.
31531         * tests/test-round1.c: Likewise.
31532         * tests/test-roundf1.c: Likewise.
31533         * tests/test-roundl.c: Likewise.
31534         * tests/test-safe-alloc.c: Likewise.
31535         * tests/test-sameacls.c: Likewise.
31536         * tests/test-set-mode-acl.c: Likewise.
31537         * tests/test-setenv.c: Likewise.
31538         * tests/test-sigaction.c: Likewise.
31539         * tests/test-signbit.c: Likewise.
31540         * tests/test-sleep.c: Likewise.
31541         * tests/test-snprintf-posix.c: Likewise.
31542         * tests/test-snprintf.c: Likewise.
31543         * tests/test-sprintf-posix.c: Likewise.
31544         * tests/test-stat-time.c: Likewise.
31545         * tests/test-stat.c: Likewise.
31546         * tests/test-strcasestr.c: Likewise.
31547         * tests/test-strchrnul.c: Likewise.
31548         * tests/test-strerror.c: Likewise.
31549         * tests/test-striconv.c: Likewise.
31550         * tests/test-striconveh.c: Likewise.
31551         * tests/test-striconveha.c: Likewise.
31552         * tests/test-strsignal.c: Likewise.
31553         * tests/test-strstr.c: Likewise.
31554         * tests/test-strtod.c: Likewise.
31555         * tests/test-strverscmp.c: Likewise.
31556         * tests/test-symlink.c: Likewise.
31557         * tests/test-symlinkat.c: Likewise.
31558         * tests/test-trunc1.c: Likewise.
31559         * tests/test-trunc2.c: Likewise.
31560         * tests/test-truncf1.c: Likewise.
31561         * tests/test-truncf2.c: Likewise.
31562         * tests/test-truncl.c: Likewise.
31563         * tests/test-uname.c: Likewise.
31564         * tests/test-unlink.c: Likewise.
31565         * tests/test-unlinkat.c: Likewise.
31566         * tests/test-unsetenv.c: Likewise.
31567         * tests/test-usleep.c: Likewise.
31568         * tests/test-utimens.c: Likewise.
31569         * tests/test-utimensat.c: Likewise.
31570         * tests/test-vasnprintf-posix.c: Likewise.
31571         * tests/test-vasnprintf-posix2.c: Likewise.
31572         * tests/test-vasnprintf.c: Likewise.
31573         * tests/test-vasprintf-posix.c: Likewise.
31574         * tests/test-vasprintf.c: Likewise.
31575         * tests/test-vdprintf-posix.c: Likewise.
31576         * tests/test-vfprintf-posix.c: Likewise.
31577         * tests/test-vprintf-posix.c: Likewise.
31578         * tests/test-vsnprintf-posix.c: Likewise.
31579         * tests/test-vsnprintf.c: Likewise.
31580         * tests/test-vsprintf-posix.c: Likewise.
31581         * tests/test-wcrtomb.c: Likewise.
31582         * tests/test-wcsnrtombs.c: Likewise.
31583         * tests/test-wcsrtombs.c: Likewise.
31584         * tests/test-wctype.c: Likewise.
31585         * tests/test-wcwidth.c: Likewise.
31586         * tests/test-xfprintf-posix.c: Likewise.
31587         * tests/test-xmemdup0.c: Likewise.
31588         * tests/test-xprintf-posix.c: Likewise.
31589         * tests/test-xvasprintf.c: Likewise.
31590         * tests/unicase/test-locale-language.c: Likewise.
31591         * tests/unicase/test-mapping-part1.h: Likewise.
31592         * tests/unicase/test-predicate-part1.h: Likewise.
31593         * tests/unicase/test-u8-casecmp.c: Likewise.
31594         * tests/unicase/test-u8-casecoll.c: Likewise.
31595         * tests/unicase/test-u8-casefold.c: Likewise.
31596         * tests/unicase/test-u8-is-cased.c: Likewise.
31597         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31598         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31599         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31600         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31601         * tests/unicase/test-u8-tolower.c: Likewise.
31602         * tests/unicase/test-u8-totitle.c: Likewise.
31603         * tests/unicase/test-u8-toupper.c: Likewise.
31604         * tests/unicase/test-u16-casecmp.c: Likewise.
31605         * tests/unicase/test-u16-casecoll.c: Likewise.
31606         * tests/unicase/test-u16-casefold.c: Likewise.
31607         * tests/unicase/test-u16-is-cased.c: Likewise.
31608         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31609         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31610         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31611         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31612         * tests/unicase/test-u16-tolower.c: Likewise.
31613         * tests/unicase/test-u16-totitle.c: Likewise.
31614         * tests/unicase/test-u16-toupper.c: Likewise.
31615         * tests/unicase/test-u32-casecmp.c: Likewise.
31616         * tests/unicase/test-u32-casecoll.c: Likewise.
31617         * tests/unicase/test-u32-casefold.c: Likewise.
31618         * tests/unicase/test-u32-is-cased.c: Likewise.
31619         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31620         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31621         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31622         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31623         * tests/unicase/test-u32-tolower.c: Likewise.
31624         * tests/unicase/test-u32-totitle.c: Likewise.
31625         * tests/unicase/test-u32-toupper.c: Likewise.
31626         * tests/unicase/test-ulc-casecmp.c: Likewise.
31627         * tests/unicase/test-ulc-casecoll.c: Likewise.
31628         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31629         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31630         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31631         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31632         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31633         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31634         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31635         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31636         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31637         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31638         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31639         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31640         * tests/unictype/test-bidi_byname.c: Likewise.
31641         * tests/unictype/test-bidi_name.c: Likewise.
31642         * tests/unictype/test-bidi_of.c: Likewise.
31643         * tests/unictype/test-bidi_test.c: Likewise.
31644         * tests/unictype/test-block_list.c: Likewise.
31645         * tests/unictype/test-block_of.c: Likewise.
31646         * tests/unictype/test-block_test.c: Likewise.
31647         * tests/unictype/test-categ_and.c: Likewise.
31648         * tests/unictype/test-categ_and_not.c: Likewise.
31649         * tests/unictype/test-categ_byname.c: Likewise.
31650         * tests/unictype/test-categ_name.c: Likewise.
31651         * tests/unictype/test-categ_none.c: Likewise.
31652         * tests/unictype/test-categ_of.c: Likewise.
31653         * tests/unictype/test-categ_or.c: Likewise.
31654         * tests/unictype/test-categ_test_withtable.c: Likewise.
31655         * tests/unictype/test-combining.c: Likewise.
31656         * tests/unictype/test-decdigit.c: Likewise.
31657         * tests/unictype/test-digit.c: Likewise.
31658         * tests/unictype/test-mirror.c: Likewise.
31659         * tests/unictype/test-numeric.c: Likewise.
31660         * tests/unictype/test-pr_byname.c: Likewise.
31661         * tests/unictype/test-pr_test.c: Likewise.
31662         * tests/unictype/test-predicate-part1.h: Likewise.
31663         * tests/unictype/test-scripts.c: Likewise.
31664         * tests/unictype/test-sy_c_ident.c: Likewise.
31665         * tests/unictype/test-sy_java_ident.c: Likewise.
31666         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31667         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31668         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31669         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31670         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31671         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31672         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31673         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31674         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31675         * tests/uninorm/test-compat-decomposition.c: Likewise.
31676         * tests/uninorm/test-composition.c: Likewise.
31677         * tests/uninorm/test-decomposing-form.c: Likewise.
31678         * tests/uninorm/test-decomposition.c: Likewise.
31679         * tests/uninorm/test-u8-nfc.c: Likewise.
31680         * tests/uninorm/test-u8-nfd.c: Likewise.
31681         * tests/uninorm/test-u8-nfkc.c: Likewise.
31682         * tests/uninorm/test-u8-nfkd.c: Likewise.
31683         * tests/uninorm/test-u8-normcmp.c: Likewise.
31684         * tests/uninorm/test-u8-normcoll.c: Likewise.
31685         * tests/uninorm/test-u16-nfc.c: Likewise.
31686         * tests/uninorm/test-u16-nfd.c: Likewise.
31687         * tests/uninorm/test-u16-nfkc.c: Likewise.
31688         * tests/uninorm/test-u16-nfkd.c: Likewise.
31689         * tests/uninorm/test-u16-normcmp.c: Likewise.
31690         * tests/uninorm/test-u16-normcoll.c: Likewise.
31691         * tests/uninorm/test-u32-nfc.c: Likewise.
31692         * tests/uninorm/test-u32-nfd.c: Likewise.
31693         * tests/uninorm/test-u32-nfkc.c: Likewise.
31694         * tests/uninorm/test-u32-nfkd.c: Likewise.
31695         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31696         * tests/uninorm/test-u32-normcmp.c: Likewise.
31697         * tests/uninorm/test-u32-normcoll.c: Likewise.
31698         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31699         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31700         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31701         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31702         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31703         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31704         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31705         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31706         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31707         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31708         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31709         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31710         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31711         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31712         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31713         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31714         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31715         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31716         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31717         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31718         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31719         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31720         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31721         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31722         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31723         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31724         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31725         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31726         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31727         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31728         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31729         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31730         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31731         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31732         * tests/uniwidth/test-u8-width.c: Likewise.
31733         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31734         * tests/uniwidth/test-u16-width.c: Likewise.
31735         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31736         * tests/uniwidth/test-u32-width.c: Likewise.
31737         * tests/uniwidth/test-uc_width.c: Likewise.
31738         * tests/uniwidth/test-uc_width2.c: Likewise.
31739         * modules/acl-tests (Files): Add tests/macros.h.
31740         * modules/areadlink-tests (Files): Likewise.
31741         * modules/areadlink-with-size-tests (Files): Likewise.
31742         * modules/areadlinkat-tests (Files): Likewise.
31743         * modules/areadlinkat-with-size-tests (Files): Likewise.
31744         * modules/argmatch-tests (Files): Likewise.
31745         * modules/argv-iter-tests (Files): Likewise.
31746         * modules/array-list-tests (Files): Likewise.
31747         * modules/array-mergesort-tests (Files): Likewise.
31748         * modules/array-oset-tests (Files): Likewise.
31749         * modules/avltree-list-tests (Files): Likewise.
31750         * modules/avltree-oset-tests (Files): Likewise.
31751         * modules/avltreehash-list-tests (Files): Likewise.
31752         * modules/base64-tests (Files): Likewise.
31753         * modules/binary-io-tests (Files): Likewise.
31754         * modules/bitrotate-tests (Files): Likewise.
31755         * modules/btowc-tests (Files): Likewise.
31756         * modules/byteswap-tests (Files): Likewise.
31757         * modules/c-ctype-tests (Files): Likewise.
31758         * modules/c-stack-tests (Files): Likewise.
31759         * modules/c-strcase-tests (Files): Likewise.
31760         * modules/c-strcasestr-tests (Files): Likewise.
31761         * modules/c-strstr-tests (Files): Likewise.
31762         * modules/canonicalize-lgpl-tests (Files): Likewise.
31763         * modules/canonicalize-tests (Files): Likewise.
31764         * modules/carray-list-tests (Files): Likewise.
31765         * modules/ceilf-tests (Files): Likewise.
31766         * modules/ceill-tests (Files): Likewise.
31767         * modules/chown-tests (Files): Likewise.
31768         * modules/cloexec-tests (Files): Likewise.
31769         * modules/copy-file-tests (Files): Likewise.
31770         * modules/count-one-bits-tests (Files): Likewise.
31771         * modules/dprintf-posix-tests (Files): Likewise.
31772         * modules/dup2-tests (Files): Likewise.
31773         * modules/dup3-tests (Files): Likewise.
31774         * modules/duplocale-tests (Files): Likewise.
31775         * modules/fbufmode-tests (Files): Likewise.
31776         * modules/fchdir-tests (Files): Likewise.
31777         * modules/fcntl-safer-tests (Files): Likewise.
31778         * modules/fcntl-tests (Files): Likewise.
31779         * modules/fdopendir-tests (Files): Likewise.
31780         * modules/fdutimensat-tests (Files): Likewise.
31781         * modules/fflush-tests (Files): Likewise.
31782         * modules/filevercmp-tests (Files): Likewise.
31783         * modules/flock-tests (Files): Likewise.
31784         * modules/floorf-tests (Files): Likewise.
31785         * modules/floorl-tests (Files): Likewise.
31786         * modules/fnmatch-tests (Files): Likewise.
31787         * modules/fopen-safer-tests (Files): Likewise.
31788         * modules/fopen-tests (Files): Likewise.
31789         * modules/fpending-tests (Files): Likewise.
31790         * modules/fprintf-posix-tests (Files): Likewise.
31791         * modules/fpurge-tests (Files): Likewise.
31792         * modules/freadable-tests (Files): Likewise.
31793         * modules/freadahead-tests (Files): Likewise.
31794         * modules/freading-tests (Files): Likewise.
31795         * modules/freadptr-tests (Files): Likewise.
31796         * modules/freadseek-tests (Files): Likewise.
31797         * modules/freopen-tests (Files): Likewise.
31798         * modules/frexp-nolibm-tests (Files): Likewise.
31799         * modules/frexp-tests (Files): Likewise.
31800         * modules/frexpl-nolibm-tests (Files): Likewise.
31801         * modules/frexpl-tests (Files): Likewise.
31802         * modules/fseek-tests (Files): Likewise.
31803         * modules/fseeko-tests (Files): Likewise.
31804         * modules/fstrcmp-tests (Files): Likewise.
31805         * modules/fsync-tests (Files): Likewise.
31806         * modules/ftell-tests (Files): Likewise.
31807         * modules/ftello-tests (Files): Likewise.
31808         * modules/func-tests (Files): Likewise.
31809         * modules/futimens-tests (Files): Likewise.
31810         * modules/fwritable-tests (Files): Likewise.
31811         * modules/fwriting-tests (Files): Likewise.
31812         * modules/getcwd-tests (Files): Likewise.
31813         * modules/getdate-tests (Files): Likewise.
31814         * modules/getdelim-tests (Files): Likewise.
31815         * modules/getdtablesize-tests (Files): Likewise.
31816         * modules/getgroups-tests (Files): Likewise.
31817         * modules/getline-tests (Files): Likewise.
31818         * modules/getndelim2-tests (Files): Likewise.
31819         * modules/glob-tests (Files): Likewise.
31820         * modules/hash-tests (Files): Likewise.
31821         * modules/i-ring-tests (Files): Likewise.
31822         * modules/iconv-tests (Files): Likewise.
31823         * modules/iconv_open-utf-tests (Files): Likewise.
31824         * modules/idpriv-drop-tests (Files): Likewise.
31825         * modules/idpriv-droptemp-tests (Files): Likewise.
31826         * modules/inet_ntop-tests (Files): Likewise.
31827         * modules/inet_pton-tests (Files): Likewise.
31828         * modules/isblank-tests (Files): Likewise.
31829         * modules/isfinite-tests (Files): Likewise.
31830         * modules/isinf-tests (Files): Likewise.
31831         * modules/isnan-tests (Files): Likewise.
31832         * modules/isnand-nolibm-tests (Files): Likewise.
31833         * modules/isnand-tests (Files): Likewise.
31834         * modules/isnanf-nolibm-tests (Files): Likewise.
31835         * modules/isnanf-tests (Files): Likewise.
31836         * modules/isnanl-nolibm-tests (Files): Likewise.
31837         * modules/isnanl-tests (Files): Likewise.
31838         * modules/lchown-tests (Files): Likewise.
31839         * modules/ldexpl-tests (Files): Likewise.
31840         * modules/link-tests (Files): Likewise.
31841         * modules/linkat-tests (Files): Likewise.
31842         * modules/linked-list-tests (Files): Likewise.
31843         * modules/linkedhash-list-tests (Files): Likewise.
31844         * modules/localename-tests (Files): Likewise.
31845         * modules/lseek-tests (Files): Likewise.
31846         * modules/lstat-tests (Files): Likewise.
31847         * modules/mbmemcasecmp-tests (Files): Likewise.
31848         * modules/mbmemcasecoll-tests (Files): Likewise.
31849         * modules/mbrtowc-tests (Files): Likewise.
31850         * modules/mbscasecmp-tests (Files): Likewise.
31851         * modules/mbscasestr-tests (Files): Likewise.
31852         * modules/mbschr-tests (Files): Likewise.
31853         * modules/mbscspn-tests (Files): Likewise.
31854         * modules/mbsinit-tests (Files): Likewise.
31855         * modules/mbsncasecmp-tests (Files): Likewise.
31856         * modules/mbsnrtowcs-tests (Files): Likewise.
31857         * modules/mbspbrk-tests (Files): Likewise.
31858         * modules/mbspcasecmp-tests (Files): Likewise.
31859         * modules/mbsrchr-tests (Files): Likewise.
31860         * modules/mbsrtowcs-tests (Files): Likewise.
31861         * modules/mbsspn-tests (Files): Likewise.
31862         * modules/mbsstr-tests (Files): Likewise.
31863         * modules/memchr-tests (Files): Likewise.
31864         * modules/memchr2-tests (Files): Likewise.
31865         * modules/memcmp-tests (Files): Likewise.
31866         * modules/memmem-tests (Files): Likewise.
31867         * modules/memrchr-tests (Files): Likewise.
31868         * modules/mkdir-tests (Files): Likewise.
31869         * modules/mkfifo-tests (Files): Likewise.
31870         * modules/mkfifoat-tests (Files): Likewise.
31871         * modules/mknod-tests (Files): Likewise.
31872         * modules/nanosleep-tests (Files): Likewise.
31873         * modules/nl_langinfo-tests (Files): Likewise.
31874         * modules/obstack-printf-tests (Files): Likewise.
31875         * modules/open-tests (Files): Likewise.
31876         * modules/openat-tests (Files): Likewise.
31877         * modules/pipe-filter-gi-tests (Files): Likewise.
31878         * modules/pipe-filter-ii-tests (Files): Likewise.
31879         * modules/pipe2-tests (Files): Likewise.
31880         * modules/popen-safer-tests (Files): Likewise.
31881         * modules/popen-tests (Files): Likewise.
31882         * modules/posixtm-tests (Files): Likewise.
31883         * modules/pread-tests (Files): Likewise.
31884         * modules/printf-frexp-tests (Files): Likewise.
31885         * modules/printf-frexpl-tests (Files): Likewise.
31886         * modules/printf-posix-tests (Files): Likewise.
31887         * modules/priv-set-tests (Files): Likewise.
31888         * modules/quotearg-tests (Files): Likewise.
31889         * modules/random_r-tests (Files): Likewise.
31890         * modules/rawmemchr-tests (Files): Likewise.
31891         * modules/rbtree-list-tests (Files): Likewise.
31892         * modules/rbtree-oset-tests (Files): Likewise.
31893         * modules/rbtreehash-list-tests (Files): Likewise.
31894         * modules/readlink-tests (Files): Likewise.
31895         * modules/remove-tests (Files): Likewise.
31896         * modules/rename-tests (Files): Likewise.
31897         * modules/renameat-tests (Files): Likewise.
31898         * modules/rmdir-tests (Files): Likewise.
31899         * modules/round-tests (Files): Likewise.
31900         * modules/roundf-tests (Files): Likewise.
31901         * modules/roundl-tests (Files): Likewise.
31902         * modules/safe-alloc-tests (Files): Likewise.
31903         * modules/setenv-tests (Files): Likewise.
31904         * modules/sigaction-tests (Files): Likewise.
31905         * modules/signbit-tests (Files): Likewise.
31906         * modules/sleep-tests (Files): Likewise.
31907         * modules/snprintf-posix-tests (Files): Likewise.
31908         * modules/snprintf-tests (Files): Likewise.
31909         * modules/sprintf-posix-tests (Files): Likewise.
31910         * modules/stat-tests (Files): Likewise.
31911         * modules/stat-time-tests (Files): Likewise.
31912         * modules/strcasestr-tests (Files): Likewise.
31913         * modules/strchrnul-tests (Files): Likewise.
31914         * modules/strerror-tests (Files): Likewise.
31915         * modules/striconv-tests (Files): Likewise.
31916         * modules/striconveh-tests (Files): Likewise.
31917         * modules/striconveha-tests (Files): Likewise.
31918         * modules/strsignal-tests (Files): Likewise.
31919         * modules/strstr-tests (Files): Likewise.
31920         * modules/strtod-tests (Files): Likewise.
31921         * modules/strverscmp-tests (Files): Likewise.
31922         * modules/symlink-tests (Files): Likewise.
31923         * modules/symlinkat-tests (Files): Likewise.
31924         * modules/trunc-tests (Files): Likewise.
31925         * modules/truncf-tests (Files): Likewise.
31926         * modules/truncl-tests (Files): Likewise.
31927         * modules/uname-tests (Files): Likewise.
31928         * modules/unicase/cased-tests (Files): Likewise.
31929         * modules/unicase/ignorable-tests (Files): Likewise.
31930         * modules/unicase/locale-language-tests (Files): Likewise.
31931         * modules/unicase/tolower-tests (Files): Likewise.
31932         * modules/unicase/totitle-tests (Files): Likewise.
31933         * modules/unicase/toupper-tests (Files): Likewise.
31934         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31935         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31936         * modules/unicase/u8-casefold-tests (Files): Likewise.
31937         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31938         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31939         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31940         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31941         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31942         * modules/unicase/u8-tolower-tests (Files): Likewise.
31943         * modules/unicase/u8-totitle-tests (Files): Likewise.
31944         * modules/unicase/u8-toupper-tests (Files): Likewise.
31945         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31946         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31947         * modules/unicase/u16-casefold-tests (Files): Likewise.
31948         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31949         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31950         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31951         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31952         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31953         * modules/unicase/u16-tolower-tests (Files): Likewise.
31954         * modules/unicase/u16-totitle-tests (Files): Likewise.
31955         * modules/unicase/u16-toupper-tests (Files): Likewise.
31956         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31957         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31958         * modules/unicase/u32-casefold-tests (Files): Likewise.
31959         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31960         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31961         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31962         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31963         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31964         * modules/unicase/u32-tolower-tests (Files): Likewise.
31965         * modules/unicase/u32-totitle-tests (Files): Likewise.
31966         * modules/unicase/u32-toupper-tests (Files): Likewise.
31967         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31968         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31969         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31970         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31971         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31972         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31973         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31974         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31975         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31976         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31977         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31978         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31979         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31980         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31981         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31982         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31983         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31984         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31985         * modules/unictype/block-list-tests (Files): Likewise.
31986         * modules/unictype/block-of-tests (Files): Likewise.
31987         * modules/unictype/block-test-tests (Files): Likewise.
31988         * modules/unictype/category-C-tests (Files): Likewise.
31989         * modules/unictype/category-Cc-tests (Files): Likewise.
31990         * modules/unictype/category-Cf-tests (Files): Likewise.
31991         * modules/unictype/category-Cn-tests (Files): Likewise.
31992         * modules/unictype/category-Co-tests (Files): Likewise.
31993         * modules/unictype/category-Cs-tests (Files): Likewise.
31994         * modules/unictype/category-L-tests (Files): Likewise.
31995         * modules/unictype/category-Ll-tests (Files): Likewise.
31996         * modules/unictype/category-Lm-tests (Files): Likewise.
31997         * modules/unictype/category-Lo-tests (Files): Likewise.
31998         * modules/unictype/category-Lt-tests (Files): Likewise.
31999         * modules/unictype/category-Lu-tests (Files): Likewise.
32000         * modules/unictype/category-M-tests (Files): Likewise.
32001         * modules/unictype/category-Mc-tests (Files): Likewise.
32002         * modules/unictype/category-Me-tests (Files): Likewise.
32003         * modules/unictype/category-Mn-tests (Files): Likewise.
32004         * modules/unictype/category-N-tests (Files): Likewise.
32005         * modules/unictype/category-Nd-tests (Files): Likewise.
32006         * modules/unictype/category-Nl-tests (Files): Likewise.
32007         * modules/unictype/category-No-tests (Files): Likewise.
32008         * modules/unictype/category-P-tests (Files): Likewise.
32009         * modules/unictype/category-Pc-tests (Files): Likewise.
32010         * modules/unictype/category-Pd-tests (Files): Likewise.
32011         * modules/unictype/category-Pe-tests (Files): Likewise.
32012         * modules/unictype/category-Pf-tests (Files): Likewise.
32013         * modules/unictype/category-Pi-tests (Files): Likewise.
32014         * modules/unictype/category-Po-tests (Files): Likewise.
32015         * modules/unictype/category-Ps-tests (Files): Likewise.
32016         * modules/unictype/category-S-tests (Files): Likewise.
32017         * modules/unictype/category-Sc-tests (Files): Likewise.
32018         * modules/unictype/category-Sk-tests (Files): Likewise.
32019         * modules/unictype/category-Sm-tests (Files): Likewise.
32020         * modules/unictype/category-So-tests (Files): Likewise.
32021         * modules/unictype/category-Z-tests (Files): Likewise.
32022         * modules/unictype/category-Zl-tests (Files): Likewise.
32023         * modules/unictype/category-Zp-tests (Files): Likewise.
32024         * modules/unictype/category-Zs-tests (Files): Likewise.
32025         * modules/unictype/category-and-not-tests (Files): Likewise.
32026         * modules/unictype/category-and-tests (Files): Likewise.
32027         * modules/unictype/category-byname-tests (Files): Likewise.
32028         * modules/unictype/category-name-tests (Files): Likewise.
32029         * modules/unictype/category-none-tests (Files): Likewise.
32030         * modules/unictype/category-of-tests (Files): Likewise.
32031         * modules/unictype/category-or-tests (Files): Likewise.
32032         * modules/unictype/category-test-withtable-tests (Files): Likewise.
32033         * modules/unictype/combining-class-tests (Files): Likewise.
32034         * modules/unictype/ctype-alnum-tests (Files): Likewise.
32035         * modules/unictype/ctype-alpha-tests (Files): Likewise.
32036         * modules/unictype/ctype-blank-tests (Files): Likewise.
32037         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
32038         * modules/unictype/ctype-digit-tests (Files): Likewise.
32039         * modules/unictype/ctype-graph-tests (Files): Likewise.
32040         * modules/unictype/ctype-lower-tests (Files): Likewise.
32041         * modules/unictype/ctype-print-tests (Files): Likewise.
32042         * modules/unictype/ctype-punct-tests (Files): Likewise.
32043         * modules/unictype/ctype-space-tests (Files): Likewise.
32044         * modules/unictype/ctype-upper-tests (Files): Likewise.
32045         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32046         * modules/unictype/decimal-digit-tests (Files): Likewise.
32047         * modules/unictype/digit-tests (Files): Likewise.
32048         * modules/unictype/mirror-tests (Files): Likewise.
32049         * modules/unictype/numeric-tests (Files): Likewise.
32050         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32051         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32052         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32053         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32054         Likewise.
32055         * modules/unictype/property-bidi-block-separator-tests (Files):
32056         Likewise.
32057         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
32058         Likewise.
32059         * modules/unictype/property-bidi-common-separator-tests (Files):
32060         Likewise.
32061         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32062         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32063         Likewise.
32064         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32065         Likewise.
32066         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32067         Likewise.
32068         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32069         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32070         Likewise.
32071         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32072         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32073         Likewise.
32074         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32075         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32076         * modules/unictype/property-bidi-segment-separator-tests (Files):
32077         Likewise.
32078         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32079         * modules/unictype/property-byname-tests (Files): Likewise.
32080         * modules/unictype/property-combining-tests (Files): Likewise.
32081         * modules/unictype/property-composite-tests (Files): Likewise.
32082         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32083         * modules/unictype/property-dash-tests (Files): Likewise.
32084         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32085         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32086         Likewise.
32087         * modules/unictype/property-deprecated-tests (Files): Likewise.
32088         * modules/unictype/property-diacritic-tests (Files): Likewise.
32089         * modules/unictype/property-extender-tests (Files): Likewise.
32090         * modules/unictype/property-format-control-tests (Files): Likewise.
32091         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32092         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32093         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32094         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32095         * modules/unictype/property-hyphen-tests (Files): Likewise.
32096         * modules/unictype/property-id-continue-tests (Files): Likewise.
32097         * modules/unictype/property-id-start-tests (Files): Likewise.
32098         * modules/unictype/property-ideographic-tests (Files): Likewise.
32099         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32100         * modules/unictype/property-ids-trinary-operator-tests (Files):
32101         Likewise.
32102         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32103         * modules/unictype/property-iso-control-tests (Files): Likewise.
32104         * modules/unictype/property-join-control-tests (Files): Likewise.
32105         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32106         * modules/unictype/property-line-separator-tests (Files): Likewise.
32107         * modules/unictype/property-logical-order-exception-tests (Files):
32108         Likewise.
32109         * modules/unictype/property-lowercase-tests (Files): Likewise.
32110         * modules/unictype/property-math-tests (Files): Likewise.
32111         * modules/unictype/property-non-break-tests (Files): Likewise.
32112         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32113         * modules/unictype/property-numeric-tests (Files): Likewise.
32114         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32115         * modules/unictype/property-other-default-ignorable-code-point-tests
32116         (Files): Likewise.
32117         * modules/unictype/property-other-grapheme-extend-tests (Files):
32118         Likewise.
32119         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32120         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32121         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32122         * modules/unictype/property-other-math-tests (Files): Likewise.
32123         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32124         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32125         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32126         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32127         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32128         * modules/unictype/property-private-use-tests (Files): Likewise.
32129         * modules/unictype/property-punctuation-tests (Files): Likewise.
32130         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32131         * modules/unictype/property-radical-tests (Files): Likewise.
32132         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32133         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32134         * modules/unictype/property-space-tests (Files): Likewise.
32135         * modules/unictype/property-terminal-punctuation-tests (Files):
32136         Likewise.
32137         * modules/unictype/property-test-tests (Files): Likewise.
32138         * modules/unictype/property-titlecase-tests (Files): Likewise.
32139         * modules/unictype/property-unassigned-code-value-tests (Files):
32140         Likewise.
32141         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32142         * modules/unictype/property-uppercase-tests (Files): Likewise.
32143         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32144         * modules/unictype/property-white-space-tests (Files): Likewise.
32145         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32146         * modules/unictype/property-xid-start-tests (Files): Likewise.
32147         * modules/unictype/property-zero-width-tests (Files): Likewise.
32148         * modules/unictype/scripts-tests (Files): Likewise.
32149         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32150         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32151         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32152         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32153         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32154         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32155         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32156         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32157         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32158         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32159         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32160         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32161         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32162         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32163         * modules/uninorm/composition-tests (Files): Likewise.
32164         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32165         * modules/uninorm/decomposition-tests (Files): Likewise.
32166         * modules/uninorm/filter-tests (Files): Likewise.
32167         * modules/uninorm/nfc-tests (Files): Likewise.
32168         * modules/uninorm/nfd-tests (Files): Likewise.
32169         * modules/uninorm/nfkc-tests (Files): Likewise.
32170         * modules/uninorm/nfkd-tests (Files): Likewise.
32171         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32172         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32173         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32174         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32175         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32176         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32177         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32178         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32179         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32180         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32181         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32182         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32183         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32184         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32185         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32186         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32187         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32188         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32189         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32190         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32191         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32192         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32193         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32194         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32195         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32196         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32197         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32198         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32199         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32200         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32201         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32202         * modules/uniwidth/u8-width-tests (Files): Likewise.
32203         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32204         * modules/uniwidth/u16-width-tests (Files): Likewise.
32205         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32206         * modules/uniwidth/u32-width-tests (Files): Likewise.
32207         * modules/uniwidth/width-tests (Files): Likewise.
32208         * modules/unlink-tests (Files): Likewise.
32209         * modules/unsetenv-tests (Files): Likewise.
32210         * modules/usleep-tests (Files): Likewise.
32211         * modules/utimens-tests (Files): Likewise.
32212         * modules/utimensat-tests (Files): Likewise.
32213         * modules/vasnprintf-posix-tests (Files): Likewise.
32214         * modules/vasnprintf-tests (Files): Likewise.
32215         * modules/vasprintf-posix-tests (Files): Likewise.
32216         * modules/vasprintf-tests (Files): Likewise.
32217         * modules/vdprintf-posix-tests (Files): Likewise.
32218         * modules/vfprintf-posix-tests (Files): Likewise.
32219         * modules/vprintf-posix-tests (Files): Likewise.
32220         * modules/vsnprintf-posix-tests (Files): Likewise.
32221         * modules/vsnprintf-tests (Files): Likewise.
32222         * modules/vsprintf-posix-tests (Files): Likewise.
32223         * modules/wcrtomb-tests (Files): Likewise.
32224         * modules/wcsnrtombs-tests (Files): Likewise.
32225         * modules/wcsrtombs-tests (Files): Likewise.
32226         * modules/wctype-tests (Files): Likewise.
32227         * modules/wcwidth-tests (Files): Likewise.
32228         * modules/xmemdup0-tests (Files): Likewise.
32229         * modules/xprintf-posix-tests (Files): Likewise.
32230         * modules/xvasprintf-tests (Files): Likewise.
32231
32232 2009-12-24  Eric Blake  <ebb9@byu.net>
32233
32234         test-nanosleep: fix typo
32235         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32236         patch.
32237         Reported by Bruno Haible.
32238
32239 2009-12-24  Bruno Haible  <bruno@clisp.org>
32240
32241         Reduce namespace pollution on glibc systems.
32242         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32243         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32244         systems.
32245         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32246         <getopt.h> on glibc systems.
32247         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32248         systems.
32249         * lib/fcntl.c: Include <unistd.h> here instead.
32250
32251 2009-12-24  Bruno Haible  <bruno@clisp.org>
32252
32253         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32254
32255 2009-12-24  Eric Blake  <ebb9@byu.net>
32256
32257         tests: add signature checks
32258         * tests/signature.h (SIGNATURE_CHECK): New file.
32259         * modules/atexit-tests (Files): Use it.
32260         * modules/btowc-tests (Files): Likewise.
32261         * modules/canonicalize-lgpl-tests (Files): Likewise.
32262         * modules/ceilf-tests (Files): Likewise.
32263         * modules/ceill-tests (Files): Likewise.
32264         * modules/chown-tests (Files): Likewise.
32265         * modules/dprintf-posix-tests (Files): Likewise.
32266         * modules/dup2-tests (Files): Likewise.
32267         * modules/dup3-tests (Files): Likewise.
32268         * modules/duplocale-tests (Files): Likewise.
32269         * modules/fchdir-tests (Files): Likewise.
32270         * modules/fcntl-tests (Files): Likewise.
32271         * modules/fdopendir-tests (Files): Likewise.
32272         * modules/fflush-tests (Files): Likewise.
32273         * modules/flock-tests (Files): Likewise.
32274         * modules/floorf-tests (Files): Likewise.
32275         * modules/floorl-tests (Files): Likewise.
32276         * modules/fnmatch-tests (Files): Likewise.
32277         * modules/fopen-tests (Files): Likewise.
32278         * modules/fprintf-posix-tests (Files): Likewise.
32279         * modules/freopen-tests (Files): Likewise.
32280         * modules/frexp-nolibm-tests (Files): Likewise.
32281         * modules/frexp-tests (Files): Likewise.
32282         * modules/frexpl-nolibm-tests (Files): Likewise.
32283         * modules/frexpl-tests (Files): Likewise.
32284         * modules/fseek-tests (Files): Likewise.
32285         * modules/fseeko-tests (Files): Likewise.
32286         * modules/fsync-tests (Files): Likewise.
32287         * modules/ftell-tests (Files): Likewise.
32288         * modules/ftello-tests (Files): Likewise.
32289         * modules/futimens-tests (Files): Likewise.
32290         * modules/getaddrinfo-tests (Files): Likewise.
32291         * modules/getcwd-tests (Files): Likewise.
32292         * modules/getdelim-tests (Files): Likewise.
32293         * modules/getdtablesize-tests (Files): Likewise.
32294         * modules/getgroups-tests (Files): Likewise.
32295         * modules/gethostname-tests (Files): Likewise.
32296         * modules/getline-tests (Files): Likewise.
32297         * modules/getopt-posix-tests (Files): Likewise.
32298         * modules/gettimeofday-tests (Files): Likewise.
32299         * modules/glob-tests (Files): Likewise.
32300         * modules/iconv-tests (Files): Likewise.
32301         * modules/inet_ntop-tests (Files): Likewise.
32302         * modules/inet_pton-tests (Files): Likewise.
32303         * modules/isblank-tests (Files): Likewise.
32304         * modules/lchown-tests (Files): Likewise.
32305         * modules/ldexpl-tests (Files): Likewise.
32306         * modules/link-tests (Files): Likewise.
32307         * modules/linkat-tests (Files): Likewise.
32308         * modules/lseek-tests (Files): Likewise.
32309         * modules/lstat-tests (Files): Likewise.
32310         * modules/mbrtowc-tests (Files): Likewise.
32311         * modules/mbsinit-tests (Files): Likewise.
32312         * modules/mbsnrtowcs-tests (Files): Likewise.
32313         * modules/mbsrtowcs-tests (Files): Likewise.
32314         * modules/memchr-tests (Files): Likewise.
32315         * modules/memcmp-tests (Files): Likewise.
32316         * modules/memmem-tests (Files): Likewise.
32317         * modules/memrchr-tests (Files): Likewise.
32318         * modules/mkdir-tests (Files): Likewise.
32319         * modules/mkfifo-tests (Files): Likewise.
32320         * modules/mkfifoat-tests (Files): Likewise.
32321         * modules/mknod-tests (Files): Likewise.
32322         * modules/nanosleep-tests (Files): Likewise.
32323         * modules/nl_langinfo-tests (Files): Likewise.
32324         * modules/obstack-printf-tests (Files): Likewise.
32325         * modules/open-tests (Files): Likewise.
32326         * modules/openat-tests (Files): Likewise.
32327         * modules/perror-tests (Files): Likewise.
32328         * modules/pipe2-tests (Files): Likewise.
32329         * modules/poll-tests (Files): Likewise.
32330         * modules/popen-tests (Files): Likewise.
32331         * modules/posix_spawn-tests (Files): Likewise.
32332         * modules/posix_spawnp-tests (Files): Likewise.
32333         * modules/pread-tests (Files): Likewise.
32334         * modules/printf-posix-tests (Files): Likewise.
32335         * modules/pty-tests (Files): Likewise.
32336         * modules/random_r-tests (Files): Likewise.
32337         * modules/rawmemchr-tests (Files): Likewise.
32338         * modules/readlink-tests (Files): Likewise.
32339         * modules/remove-tests (Files): Likewise.
32340         * modules/rename-tests (Files): Likewise.
32341         * modules/renameat-tests (Files): Likewise.
32342         * modules/rmdir-tests (Files): Likewise.
32343         * modules/round-tests (Files): Likewise.
32344         * modules/roundf-tests (Files): Likewise.
32345         * modules/roundl-tests (Files): Likewise.
32346         * modules/select-tests (Files): Likewise.
32347         * modules/setenv-tests (Files): Likewise.
32348         * modules/sigaction-tests (Files): Likewise.
32349         * modules/sleep-tests (Files): Likewise.
32350         * modules/snprintf-posix-tests (Files): Likewise.
32351         * modules/snprintf-tests (Files): Likewise.
32352         * modules/sprintf-posix-tests (Files): Likewise.
32353         * modules/stat-tests (Files): Likewise.
32354         * modules/strcasestr-tests (Files): Likewise.
32355         * modules/strchrnul-tests (Files): Likewise.
32356         * modules/strerror-tests (Files): Likewise.
32357         * modules/strsignal-tests (Files): Likewise.
32358         * modules/strstr-tests (Files): Likewise.
32359         * modules/strtod-tests (Files): Likewise.
32360         * modules/strverscmp-tests (Files): Likewise.
32361         * modules/symlink-tests (Files): Likewise.
32362         * modules/symlinkat-tests (Files): Likewise.
32363         * modules/times-tests (Files): Likewise.
32364         * modules/trunc-tests (Files): Likewise.
32365         * modules/truncf-tests (Files): Likewise.
32366         * modules/truncl-tests (Files): Likewise.
32367         * modules/tsearch-tests (Files): Likewise.
32368         * modules/uname-tests (Files): Likewise.
32369         * modules/unlink-tests (Files): Likewise.
32370         * modules/unsetenv-tests (Files): Likewise.
32371         * modules/usleep-tests (Files): Likewise.
32372         * modules/utimensat-tests (Files): Likewise.
32373         * modules/vasprintf-tests (Files): Likewise.
32374         * modules/vdprintf-posix-tests (Files): Likewise.
32375         * modules/vfprintf-posix-tests (Files): Likewise.
32376         * modules/vprintf-posix-tests (Files): Likewise.
32377         * modules/vsnprintf-posix-tests (Files): Likewise.
32378         * modules/vsnprintf-tests (Files): Likewise.
32379         * modules/vsprintf-posix-tests (Files): Likewise.
32380         * modules/wcrtomb-tests (Files): Likewise.
32381         * modules/wcsnrtombs-tests (Files): Likewise.
32382         * modules/wcsrtombs-tests (Files): Likewise.
32383         * modules/wcwidth-tests (Files): Likewise.
32384         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32385         * tests/test-isinf.c (isinf): Likewise.
32386         * tests/test-isnan.c (isnan): Likewise.
32387         * tests/test-signbit.c (signbit): Likewise.
32388         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32389         declaration, either as macro or with correct signature.
32390         (select): Ensure function under test is declared with correct
32391         signature in correct header.
32392         * tests/test-atexit.c (atexit): Likewise.
32393         * tests/test-btowc.c (btowc): Likewise.
32394         * tests/test-canonicalize-lgpl.c (realpath)
32395         (canonicalize_file_name): Likewise.
32396         * tests/test-ceilf1.c (ceilf): Likewise.
32397         * tests/test-ceill.c (ceill): Likewise.
32398         * tests/test-chown.c (chown): Likewise.
32399         * tests/test-dprintf-posix.c (dprintf): Likewise.
32400         * tests/test-dup2.c (dup2): Likewise.
32401         * tests/test-dup3.c (dup3): Likewise.
32402         * tests/test-duplocale.c (duplocale): Likewise.
32403         * tests/test-fchdir.c (fchdir): Likewise.
32404         * tests/test-fchownat.c (fchownat): Likewise.
32405         * tests/test-fcntl.c (fcntl): Likewise.
32406         * tests/test-fdopendir.c (fdopendir): Likewise.
32407         * tests/test-fflush.c (fflush): Likewise.
32408         * tests/test-flock.c (flock): Likewise.
32409         * tests/test-floorf1.c (floorf): Likewise.
32410         * tests/test-floorl.c (floorl): Likewise.
32411         * tests/test-fnmatch.c (fnmatch): Likewise.
32412         * tests/test-fopen.c (fopen): Likewise.
32413         * tests/test-fprintf-posix.c (fprintf): Likewise.
32414         * tests/test-freopen.c (freopen): Likewise.
32415         * tests/test-frexp.c (frexp): Likewise.
32416         * tests/test-frexpl.c (frexpl): Likewise.
32417         * tests/test-fseek.c (fseek): Likewise.
32418         * tests/test-fseeko.c (fseeko): Likewise.
32419         * tests/test-fstatat.c (fstatat): Likewise.
32420         * tests/test-fsync.c (fsync): Likewise.
32421         * tests/test-ftell.c (ftell): Likewise.
32422         * tests/test-ftello.c (ftello): Likewise.
32423         * tests/test-futimens.c (futimens): Likewise.
32424         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32425         (gai_strerror): Likewise.
32426         * tests/test-getcwd.c (getcwd): Likewise.
32427         * tests/test-getdelim.c (getdelim): Likewise.
32428         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32429         * tests/test-getgroups.c (getgroups): Likewise.
32430         * tests/test-gethostname.c (gethostname): Likewise.
32431         * tests/test-getline.c (getline): Likewise.
32432         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32433         Likewise.
32434         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32435         * tests/test-glob.c (glob, globfree): Likewise.
32436         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32437         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32438         * tests/test-inet_pton.c (inet_pton): Likewise.
32439         * tests/test-isblank.c (isblank): Likewise.
32440         * tests/test-lchown.c (lchown): Likewise.
32441         * tests/test-ldexpl.c (ldexpl): Likewise.
32442         * tests/test-link.c (link): Likewise.
32443         * tests/test-linkat.c (linkat): Likewise.
32444         * tests/test-lseek.c (lseek): Likewise.
32445         * tests/test-lstat.c (lstat): Likewise.
32446         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32447         * tests/test-mbsinit.c (mbsinit): Likewise.
32448         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32449         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32450         * tests/test-memchr.c (memchr): Likewise.
32451         * tests/test-memcmp.c (memcmp): Likewise.
32452         * tests/test-memmem.c (memmem): Likewise.
32453         * tests/test-memrchr.c (memrchr): Likewise.
32454         * tests/test-mkdir.c (mkdir): Likewise.
32455         * tests/test-mkdirat.c (mkdirat): Likewise.
32456         * tests/test-mkfifo.c (mkfifo): Likewise.
32457         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32458         * tests/test-mknod.c (mknod): Likewise.
32459         * tests/test-nanosleep.c (nanosleep): Likewise.
32460         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32461         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32462         Likewise.
32463         * tests/test-open.c (open): Likewise.
32464         * tests/test-openat.c (openat): Likewise.
32465         * tests/test-perror.c (perror): Likewise.
32466         * tests/test-pipe2.c (pipe2): Likewise.
32467         * tests/test-poll.c (poll): Likewise.
32468         * tests/test-popen.c (popen, pclose): Likewise.
32469         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32470         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32471         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32472         (posix_spawn_file_actions_destroy)
32473         (posix_spawn_file_actions_addclose)
32474         (posix_spawn_file_actions_addopen)
32475         (posix_spawn_file_actions_adddup2): Likewise.
32476         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32477         * tests/test-pread.c (pread): Likewise.
32478         * tests/test-printf-posix.c (printf): Likewise.
32479         * tests/test-pty.c (openpty, forkpty): Likewise.
32480         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32481         (random_r): Likewise.
32482         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32483         * tests/test-readlink.c (readlink): Likewise.
32484         * tests/test-remove.c (remove): Likewise.
32485         * tests/test-rename.c (rename): Likewise.
32486         * tests/test-renameat.c (renameat): Likewise.
32487         * tests/test-rmdir.c (rmdir): Likewise.
32488         * tests/test-round1.c (round): Likewise.
32489         * tests/test-roundf1.c (roundf): Likewise.
32490         * tests/test-roundl.c (roundl): Likewise.
32491         * tests/test-setenv.c (setenv): Likewise.
32492         * tests/test-sigaction.c (sigaction): Likewise.
32493         * tests/test-sleep.c (sleep): Likewise.
32494         * tests/test-snprintf.c (snprintf): Likewise.
32495         * tests/test-sprintf-posix.c (sprintf): Likewise.
32496         * tests/test-stat.c (stat): Likewise.
32497         * tests/test-stpncpy.c (stpncpy): Likewise.
32498         * tests/test-strcasestr.c (strcasestr): Likewise.
32499         * tests/test-strchrnul.c (strchrnul): Likewise.
32500         * tests/test-strerror.c (strerror): Likewise.
32501         * tests/test-strsignal.c (strsignal): Likewise.
32502         * tests/test-strstr.c (strstr): Likewise.
32503         * tests/test-strtod.c (strtod): Likewise.
32504         * tests/test-strverscmp.c (strverscmp): Likewise.
32505         * tests/test-symlink.c (symlink): Likewise.
32506         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32507         * tests/test-times.c (times): Likewise.
32508         * tests/test-trunc1.c (trunc): Likewise.
32509         * tests/test-truncf1.c (truncf): Likewise.
32510         * tests/test-truncl.c (truncl): Likewise.
32511         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32512         Likewise.
32513         * tests/test-uname.c (uname): Likewise.
32514         * tests/test-unlink.c (unlink): Likewise.
32515         * tests/test-unlinkat.c (unlinkat): Likewise.
32516         * tests/test-unsetenv.c (unsetenv): Likewise.
32517         * tests/test-usleep.c (usleep): Likewise.
32518         * tests/test-utimensat.c (utimensat): Likewise.
32519         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32520         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32521         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32522         * tests/test-vprintf-posix.c (vprintf): Likewise.
32523         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32524         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32525         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32526         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32527         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32528         * tests/test-wcwidth.c (wcwidth): Likewise.
32529
32530         build: pull in conditional headers during GNULIB_POSIXCHECK
32531         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32532         definitions from any conditionally-included headers.
32533         * lib/stdlib.in.h (includes): Likewise.
32534         * lib/unistd.in.h (includes): Likewise.
32535
32536 2009-12-24  Bruno Haible  <bruno@clisp.org>
32537
32538         * tests/test-argv-iter.c: Include header file being tested immediately
32539         after config.h.
32540         * tests/test-base64.c: Likewise.
32541         * tests/test-flock.c: Likewise.
32542         * tests/test-fsync.c: Likewise.
32543         * tests/test-getdate.c: Likewise.
32544         * tests/test-getndelim2.c: Likewise.
32545         * tests/test-isfinite.c: Likewise.
32546         * tests/test-isinf.c: Likewise.
32547         * tests/test-strerror.c: Likewise.
32548         * tests/test-strsignal.c: Likewise.
32549
32550 2009-12-23  Eric Blake  <ebb9@byu.net>
32551
32552         unistd: work around cygwin bug
32553         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32554         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32555         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32556
32557 2009-12-23  Bruno Haible  <bruno@clisp.org>
32558
32559         localename: More tests.
32560         * tests/test-localename.c (SIZEOF): New macro.
32561         (categories): New variable.
32562         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32563         test_locale_name_default): Add test w.r.t. thread locale.
32564         (test_locale_name_thread): New function.
32565         (main): Invoke it.
32566
32567         localename: Make aware of thread locale.
32568         * lib/localename.h (gl_locale_name_thread): New declaration.
32569         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32570         behaviour with respect to thread locale.
32571         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32572         <langinfo.h>, glthread/lock.h.
32573         (SIZE_BITS): New macro.
32574         (string_hash): New function.
32575         (struct hash_node): New type.
32576         (HASH_TABLE_SIZE): New macro.
32577         (struniq_hash_table, struniq_lock): New variables.
32578         (struniq): New function.
32579         (gl_locale_name_thread): New function.
32580         (gl_locale_name): Invoke it.
32581         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32582         * modules/localename (Depends-on): Add lock.
32583         Reported by Mike Gran <spk121@yahoo.com>.
32584
32585 2009-12-23  Eric Blake  <ebb9@byu.net>
32586
32587         va-args: new module
32588         * modules/va-args: New file.
32589         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32590         * MODULES.html.sh (Core language properties): Mention it.
32591
32592         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32593         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32594         named alias for __attribute__((__unused__)).
32595         * lib/chown.c: Update client.
32596         * lib/fchmodat.c: Likewise.
32597         * lib/fts.c: Likewise.
32598         * lib/getdate.y: Likewise.
32599         * lib/getgroups.c: Likewise.
32600         * lib/getopt.c: Likewise.
32601         * lib/getugroups.c: Likewise.
32602         * lib/mkdir.c: Likewise.
32603         * lib/mkfifo.c: Likewise.
32604         * lib/mkfifoat.c: Likewise.
32605         * lib/mknod.c: Likewise.
32606         * lib/mknodat.c: Likewise.
32607         * lib/readlink.c: Likewise.
32608         * lib/se-context.in.h: Likewise.
32609         * lib/se-selinux.in.h: Likewise.
32610         * lib/sockets.c: Likewise.
32611         * lib/symlink.c: Likewise.
32612         * lib/symlinkat.c: Likewise.
32613         * lib/unicodeio.c: Likewise.
32614         * lib/unistr.h: Likewise.
32615         * tests/test-areadlink.c: Likewise.
32616         * tests/test-areadlinkat.c: Likewise.
32617         * tests/test-filenamecat.c: Likewise.
32618         * tests/test-fseeko.c: Likewise.
32619         * tests/test-ftello.c: Likewise.
32620         * tests/test-getdate.c: Likewise.
32621         * tests/test-getgroups.c: Likewise.
32622         * tests/test-gethostname.c: Likewise.
32623         * tests/test-quotearg.c: Likewise.
32624         * tests/test-version-etc.c: Likewise.
32625         * tests/test-xalloc-die.c: Likewise.
32626         * tests/test-xfprintf-posix.c: Likewise.
32627         * tests/test-xprintf-posix.c: Likewise.
32628         * tests/test-xvasprintf.c: Likewise.
32629
32630         tests: avoid compiler warnings
32631         * tests/test-fcntl.c (main): Delete unused parameters.
32632         * tests/test-freopen-safer.c (main): Likewise.
32633         * tests/test-xalloc-die.c (main): Mark unused parameters.
32634         * tests/test-fseeko.c (main): Likewise.
32635         * tests/test-ftello.c (main): Likewise.
32636         * tests/test-nanosleep.c (main): Avoid declaration warning.
32637         * tests/test-sleep.c (main): Likewise.
32638         * tests/test-unsetenv.c (main): Silence warning about string
32639         literal.
32640         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32641
32642 2009-12-23  Bruno Haible  <bruno@clisp.org>
32643
32644         * tests/test-localename.c (test_locale_name): New function, extracted
32645         from main. Also test mixed situations.
32646         (test_locale_name_posix, test_locale_name_environ,
32647         test_locale_name_default): New functions.
32648         (main): Invoke them all.
32649         * modules/localename-tests (configure.ac): Test for newlocale.
32650
32651 2009-12-23  Bruno Haible  <bruno@clisp.org>
32652
32653         unistd: Ensure getcwd gets declared before being overridden.
32654         * lib/unistd.in.h: Conditionally include <io.h>.
32655
32656 2009-12-22  Bruno Haible  <bruno@clisp.org>
32657
32658         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32659         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32660         (gl_WCHAR_H): Invoke it.
32661         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32662         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32663         Reported by Karl Berry <karl@freefriends.org>.
32664
32665 2009-12-22  Eric Blake  <ebb9@byu.net>
32666
32667         math, unistd: avoid redundant includes
32668         * lib/math.in.h (isnan): No need to re-include <math.h>.
32669         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32670
32671         getsubopt: work around cygwin bug
32672         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32673         avoid conflicting with system getsubopt.
32674         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32675         bug.
32676
32677         getopt: synchronize from glibc
32678         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32679         parameter order.  Adjust all callers.
32680         (_getopt_internal_r, main): Adjust quoting in error messages.
32681         Drop considerations for outdated POSIX 1003.2 error message.
32682         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32683         callers.
32684         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32685
32686         test-getopt: test stderr behavior
32687         * modules/getopt-posix-tests (Depends-on): Add dup2.
32688         * tests/test-getopt.c (ASSERT): Avoid stderr.
32689         (main): Move stderr to a temporary file.
32690         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32691         Instead, add parameter to inform caller if output occurred.
32692         (test_getopt): Adjust all existing tests to expect silence, and
32693         add new tests of leading ":".
32694         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32695         glibc shortcomings with leading "-:" or "+:" in optstring.
32696         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32697         Likewise.
32698         * doc/posix-functions/getopt.texi (getopt): Likewise.
32699
32700         test-getopt: enhance test
32701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32702         supports optind=0.
32703         * tests/test-getopt.c (OPTIND_MIN): Move...
32704         * tests/test-getopt.h (OPTIND_MIN): ...here.
32705         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32706         Require that optind=0 works, since modern BSD supports it in
32707         addition to optreset, and since coreutils expects it.
32708         (test_getopt_long_only): New test.
32709         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32710         glibc shortcomings with 'W;', and enforcement of optind=0.
32711         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32712         Likewise.
32713
32714 2009-12-21  Bruno Haible  <bruno@clisp.org>
32715
32716         localename: Improvements for MacOS X and Cygwin.
32717         * lib/localename.h (gl_locale_name_environ): New declaration.
32718         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32719         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32720         (gl_locale_name_posix): Invoke it.
32721         (gl_locale_name_default): Add comments. Use Windows native API also on
32722         Cygwin.
32723
32724 2009-12-21  Bruno Haible  <bruno@clisp.org>
32725
32726         Update list of Win32 locale ids.
32727         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32728         (LANG_SAMI): Renamed from LANG_SAAMI.
32729         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32730         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32731         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32732         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32733         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32734         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32735         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32736         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32737         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32738         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32739         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32740         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32741         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32742         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32743         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32744         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32745         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32746         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32747         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32748         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32749         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32750         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32751         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32752         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32753         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32754         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32755         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32756         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32757         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32758         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32759         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32760         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32761         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32762         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32763         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32764         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32765         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32766         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32767         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32768         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32769         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32770         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32771         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32772         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32773         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32774         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32775         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32776         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32777         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32778         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32779         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32780         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32781         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32782         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32783         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32784         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32785         Add more languages and countries for Sami, Sorbian. Add more countries
32786         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32787         for Pashto. Change country for Syriac, Tswana.
32788
32789 2009-12-21  Eric Blake  <ebb9@byu.net>
32790
32791         test-utimens: avoid spurious failure
32792         * tests/test-chown.h (nap): Factor...
32793         * tests/nap.h: ...into new file.
32794         * tests/test-lchown.h (nap): Avoid duplication.
32795         * tests/test-utimens-common.h (nap): Use shared implementation,
32796         necessary on file systems with 1-second resolution.
32797         * modules/chown-tests (Files): Include new file.
32798         * modules/fdutimensat-tests (Files): Likewise.
32799         * modules/futimens-tests (Files): Likewise.
32800         * modules/lchown-tests (Files): Likewise.
32801         * modules/openat-tests (Files): Likewise.
32802         * modules/utimens-tests (Files): Likewise.
32803         * modules/utimensat-tests (Files): Likewise.
32804
32805 2009-12-19  Eric Blake  <ebb9@byu.net>
32806
32807         futimens, utimensat: work around Linux bug
32808         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32809         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32810         * lib/utimensat.c (rpl_utimensat): Work around it.
32811         * lib/futimens.c (rpl_futimens): Adjust comment.
32812
32813         utimens: work around Linux ctime bug
32814         * lib/utimens.c (detect_ctime_bug): New helper function.
32815         (update_timespec): Differentiate between workaround needed for
32816         this bug vs. what is needed for systems that lack utimensat.
32817         (fdutimens, lutimens): Work around bug.
32818
32819         utimens: check for ctime update
32820         * tests/test-utimens-common.h (check_ctime): Define.
32821         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32822         * tests/test-futimens.h (test_futimens): Likewise.
32823         * tests/test-lutimens.h (test_lutimens): Likewise.
32824         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32825         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32826
32827 2009-12-19  Bruno Haible  <bruno@clisp.org>
32828
32829         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32830         * tests/test-dprintf-posix2.sh: New file.
32831         * tests/test-dprintf-posix2.c: New file.
32832         * modules/dprintf-posix-tests (Files): Add them.
32833         (configure.ac): Check for getrlimit and setrlimit.
32834         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32835
32836 2009-12-19  Bruno Haible  <bruno@clisp.org>
32837
32838         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32839         * tests/test-fprintf-posix3.sh: New file.
32840         * tests/test-fprintf-posix3.c: New file.
32841         * modules/fprintf-posix-tests (Files): Add them.
32842         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32843
32844 2009-12-19  Eric Blake  <ebb9@byu.net>
32845
32846         dirfd: fix prototype
32847         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32848         * lib/dirfd.c (dirfd): Likewise.
32849
32850         canonicalize: reduce memory usage
32851         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32852         allocation to size.
32853         Reported by Solar Designer <solar@openwall.com>.
32854
32855 2009-12-19  Bruno Haible  <bruno@clisp.org>
32856
32857         New module attribute 'Applicability'.
32858         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32859         * gnulib-tool: New option --extract-applicability.
32860         (func_usage): Document it.
32861         (sed_extract_prog): Recognize it.
32862         (func_get_applicability): New function.
32863         (func_import): Generalize handling of 'link-warning' module.
32864         * modules/link-warning (Applicability): New section.
32865         * modules/arg-nonnull (Applicability): New section.
32866         Repoted by Simon Josefsson <simon@josefsson.org>.
32867
32868 2009-12-19  Bruno Haible  <bruno@clisp.org>
32869
32870         fflush: tweak
32871         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32872         * lib/fseeko.c (rpl_fseeko): Likewise.
32873
32874 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32875
32876         * lib/gl_list.h: Fix typo in comment.
32877
32878 2009-12-16  Eric Blake  <ebb9@byu.net>
32879
32880         fcntl: use to simplify other modules
32881         * modules/cloexec (Depends-on): Add fcntl.
32882         * modules/fchdir (Depends-on): Likewise.
32883         * modules/fd-safer-flag (Depends-on): Likewise.
32884         * modules/unistd-safer (Depends-on): Likewise.
32885         * modules/dup3 (configure.ac): Set module indicator.
32886         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32887         missing.
32888         * lib/fchdir.c (_gl_register_dup): Fix comment.
32889         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32890         * lib/dup-safer.c (dup_safer): Likewise.
32891         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32892         * lib/dup3.c (dup3): Likewise.
32893         * tests/test-fchdir.c (main): Enhance test.
32894         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
32895
32896         fcntl: port portions of fcntl to mingw
32897         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32898         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32899         replacement for mingw.
32900         * modules/fcntl (Description): Update.
32901         (Depends-on): Add dup2.
32902         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32903         * modules/fcntl-h (Makefile.am): Substitute it.
32904         * lib/fcntl.in.h (fcntl): Update declaration.
32905         (F_DUPFD, F_GETFD): New macros, when needed.
32906         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32907         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32908         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32909         we now guarantee.
32910
32911         fcntl: work around cygwin bug in F_DUPFD
32912         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32913         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32914         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32915         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32916         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32917
32918         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32919         * modules/fcntl (Files): List new files.
32920         (configure.ac): Run a test.
32921         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32922         * lib/fcntl.c (rpl_fcntl): Likewise.
32923         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32924         (gl_FCNTL_H): Always replace fcntl.h.
32925         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32926         * lib/fcntl.in.h (fcntl): Declare replacement.
32927         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32928         needed, plus a witness.
32929         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32930         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32931         * tests/test-fcntl.c: New file.
32932         * modules/fcntl-tests: Likewise.
32933
32934         binary-io: avoid potential compilation warning
32935         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32936         directives.
32937
32938         fflush: avoid compilation error on NetBSD
32939         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32940         between off_t and fpos_t, since the latter is sometimes a struct.
32941         * lib/fseeko.c (rpl_fseeko): Likewise.
32942         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32943
32944 2009-12-15  Eric Blake  <ebb9@byu.net>
32945
32946         fcntl-h, stdio, sys_ioctl: fix declarations
32947         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32948         function must not take arguments.
32949         * lib/sys_ioctl.in.h (ioctl): Likewise.
32950         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32951         (open): Add a link warning.
32952
32953 2009-12-15  Jim Meyering  <meyering@redhat.com>
32954
32955         areadlink, areadlink-with-size: relax license to LGPLv2+
32956         * modules/areadlink (License): Relax to LGPLv2+.
32957         * modules/areadlink-with-size (License): Likewise.
32958
32959 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32960             Bruno Haible  <bruno@clisp.org>
32961
32962         *printf: Fix memory leak.
32963         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32964         * lib/vfprintf.c (vfprintf): Likewise.
32965         * lib/dprintf.c (dprintf): Likewise.
32966         * lib/vdprintf.c (vdprintf): Likewise.
32967
32968 2009-12-14  Eric Blake  <ebb9@byu.net>
32969
32970         accept4: adjust module dependencies
32971         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32972
32973         utimens: one more try at avoiding compiler warning
32974         * lib/utimens.c (lutimens): Lower scope of result.
32975
32976 2009-12-13  Bruno Haible  <bruno@clisp.org>
32977
32978         Move the malloc checking from module 'list' to new module 'xlist'.
32979         * modules/xlist: New file.
32980         * lib/gl_xlist.h: New file.
32981         * lib/gl_xlist.c: New file.
32982         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32983         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32984         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32985         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32986         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32987         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32988         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32989         gl_sortedlist_nx_add): New declarations.
32990         (struct gl_list_implementation): Rename and change methods accordingly.
32991         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32992         (gl_list_nx_create): Renamed from gl_list_create.
32993         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32994         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32995         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32996         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32997         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32998         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32999         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33000         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33001         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
33002         gl_list_create_empty.
33003         (gl_list_nx_create): Renamed from gl_list_create.
33004         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33005         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33006         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33007         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33008         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33009         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33010         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33011         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33012         * lib/gl_array_list.c: Don't include xalloc.h.
33013         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
33014         NULL upon out-of-memory.
33015         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
33016         out-of-memory.
33017         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
33018         Change return type to 'int'.
33019         (gl_array_nx_set_at): Renamed from gl_array_set_at.
33020         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33021         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
33022         upon out-of-memory.
33023         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
33024         upon out-of-memory.
33025         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
33026         upon out-of-memory.
33027         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
33028         upon out-of-memory.
33029         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
33030         out-of-memory.
33031         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
33032         Update.
33033         (gl_array_list_implementation): Update.
33034         * lib/gl_carray_list.c: Don't include xalloc.h.
33035         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
33036         Return NULL upon out-of-memory.
33037         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
33038         out-of-memory.
33039         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33040         Change return type to 'int'.
33041         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33042         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33043         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33044         upon out-of-memory.
33045         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33046         upon out-of-memory.
33047         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33048         out-of-memory.
33049         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33050         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33051         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33052         Update.
33053         (gl_carray_list_implementation): Update.
33054         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33055         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33056         gl_linked_create_empty. Return NULL upon out-of-memory.
33057         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
33058         out-of-memory.
33059         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
33060         Change return type to 'int'. Return -1 upon out-of-memory.
33061         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33062         out-of-memory.
33063         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33064         upon out-of-memory.
33065         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33066         upon out-of-memory.
33067         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33068         NULL upon out-of-memory.
33069         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33070         upon out-of-memory.
33071         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33072         out-of-memory.
33073         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33074         Update.
33075         * lib/gl_linked_list.c: Don't include xalloc.h.
33076         (gl_linked_list_implementation): Update.
33077         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33078         (add_to_bucket): Change return type to 'int'.
33079         (gl_linkedhash_list_implementation): Update.
33080         * lib/gl_anytree_list1.h (free_subtree): New function.
33081         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33082         gl_tree_create_empty. Return NULL upon out-of-memory.
33083         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33084         Change return type to 'int'. Return -1 upon out-of-memory.
33085         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33086         out-of-memory.
33087         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33088         (gl_tree_remove_node): New function, moved here from
33089         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33090         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33091         Update.
33092         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33093         malloc, not xmalloc. Return NULL upon out-of-memory.
33094         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33095         out-of-memory.
33096         (gl_tree_remove_node_from_tree): New function, extracted from
33097         gl_tree_remove_node.
33098         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33099         upon out-of-memory.
33100         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33101         out-of-memory.
33102         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33103         upon out-of-memory.
33104         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33105         upon out-of-memory.
33106         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33107         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33108         not xmalloc. Return NULL upon out-of-memory.
33109         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33110         out-of-memory.
33111         (gl_tree_remove_node_from_tree): New function, extracted from
33112         gl_tree_remove_node.
33113         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33114         upon out-of-memory.
33115         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33116         out-of-memory.
33117         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33118         upon out-of-memory.
33119         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33120         upon out-of-memory.
33121         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33122         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33123         gl_anytree_list1.h before gl_anyavltree_list2.h.
33124         (gl_avltree_list_implementation): Update.
33125         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33126         gl_anytree_list1.h before gl_anyavltree_list2.h.
33127         (gl_rbtree_list_implementation): Update.
33128         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33129         Change return type to 'int'. Return -1 upon out-of-memory. Use
33130         __builtin_expect.
33131         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33132         (gl_avltreehash_list_implementation): Update.
33133         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33134         (gl_rbtreehash_list_implementation): Update.
33135         * modules/array-list (Depends-on): Remove xalloc.
33136         * modules/carray-list (Depends-on): Likewise.
33137         * modules/linked-list (Depends-on): Likewise.
33138         * modules/linkedhash-list (Depends-on): Likewise.
33139         * modules/avltree-list (Depends-on): Likewise.
33140         * modules/rbtree-list (Depends-on): Likewise.
33141         * modules/avltreehash-list (Depends-on): Likewise.
33142         * modules/rbtreehash-list (Depends-on): Likewise.
33143
33144         * modules/xsublist: New file.
33145         * lib/gl_xsublist.h: New file.
33146         * lib/gl_xsublist.c: New file.
33147         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33148         (gl_sublist_nx_create): New declaration.
33149         * lib/gl_sublist.c: Don't include xalloc.h.
33150         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33151         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33152         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33153         Change return type to 'int'. Return -1 upon out-of-memory.
33154         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33155         upon out-of-memory.
33156         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33157         NULL upon out-of-memory.
33158         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33159         upon out-of-memory.
33160         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33161         NULL upon out-of-memory.
33162         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33163         NULL upon out-of-memory.
33164         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33165         upon out-of-memory.
33166         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33167         (gl_sublist_list_implementation): Update.
33168         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33169         upon out-of-memory.
33170         * modules/sublist (Depends-on): Remove xalloc.
33171
33172         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33173         * tests/test-carray_list.c: Likewise.
33174         * tests/test-linked_list.c: Likewise.
33175         * tests/test-linkedhash_list.c: Likewise.
33176         * tests/test-avltree_list.c: Likewise.
33177         * tests/test-rbtree_list.c: Likewise.
33178         * tests/test-avltreehash_list.c: Likewise.
33179         * tests/test-rbtreehash_list.c: Likewise.
33180         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33181         * modules/carray-list-tests (Makefile.am): Likewise.
33182         * modules/linked-list-tests (Makefile.am): Likewise.
33183         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33184         * modules/avltree-list-tests (Makefile.am): Likewise.
33185         * modules/rbtree-list-tests (Makefile.am): Likewise.
33186         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33187         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33188
33189         * NEWS: Mention the changes.
33190
33191         * lib/clean-temp.c: Include gl_xlist.h.
33192         * modules/clean-temp (Depends-on): Add xlist.
33193
33194         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33195         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33196
33197         * tests/test-array_oset.c: Include gl_xlist.h.
33198         * modules/array-oset-tests (Depends-on): Add xlist.
33199
33200         Reported by José E. Marchesi <jemarch@gnu.org>.
33201
33202 2009-12-13  Bruno Haible  <bruno@clisp.org>
33203
33204         Move the malloc checking from module 'oset' to new module 'xoset'.
33205         * modules/xoset: New file.
33206         * lib/gl_xoset.h: New file.
33207         * lib/gl_xoset.c: New file.
33208         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33209         declarations.
33210         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33211         (struct gl_oset_implementation): Rename and change methods accordingly.
33212         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33213         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33214         'int'. Mark as __warn_unused_result__.
33215         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33216         gl_oset_create_empty.
33217         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33218         'int'.
33219         * lib/gl_array_oset.c: Don't include xalloc.h.
33220         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33221         malloc, not xmalloc.
33222         (grow): Change return type to 'int'. Don't call xalloc_die.
33223         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33224         to 'int'.
33225         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33226         'int'.
33227         (gl_array_oset_implementation): Update.
33228         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33229         gl_tree_create_empty.
33230         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33231         'int'.
33232         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33233         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33234         xmalloc.
33235         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33236         not xmalloc.
33237         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33238         xmalloc.
33239         (gl_avltree_oset_implementation): Update.
33240         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33241         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33242         xmalloc.
33243         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33244         not xmalloc.
33245         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33246         xmalloc.
33247         (gl_rbtree_oset_implementation): Update.
33248         * modules/array-oset (Depends-on): Remove xalloc.
33249         * modules/avltree-oset (Depends-on): Likewise.
33250         * modules/rbtree-oset (Depends-on): Likewise.
33251         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33252         * tests/test-avltree_oset.c: Likewise.
33253         * tests/test-rbtree_oset.c: Likewise.
33254         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33255         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33256         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33257         * NEWS: Mention the change.
33258
33259 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33260
33261         maint.mk: allow a project to override release-prep commands
33262         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33263         commands into a new rule.
33264         (release-prep): New rule.
33265         (release-prep-hook): New overridable variable.
33266
33267 2009-12-13  Bruno Haible  <bruno@clisp.org>
33268
33269         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33270
33271 2009-12-13  Jim Meyering  <meyering@redhat.com>
33272
33273         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33274         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33275
33276 2009-12-12  Bruno Haible  <bruno@clisp.org>
33277
33278         duplocale: Tweak.
33279         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33280
33281 2009-12-12  Karl Berry  <karl@gnu.org>
33282
33283         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33284
33285 2009-12-12  Bruno Haible  <bruno@clisp.org>
33286
33287         * m4/po.m4: Undo incorrect untabification.
33288
33289 2009-12-12  Bruno Haible  <bruno@clisp.org>
33290
33291         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33292         * modules/c-strtod (Depends-on): Add locale.
33293         * modules/c-strtold (Depends-on): Likewise.
33294
33295 2009-12-12  Bruno Haible  <bruno@clisp.org>
33296
33297         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33298
33299 2009-12-11  Eric Blake  <ebb9@byu.net>
33300
33301         setenv: relax requirement in light of POSIX ruling
33302         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33303         not NULL.
33304         * tests/test-setenv.c (main): Relax test.
33305         * tests/test-unsetenv.c (main): Likewise.
33306         * doc/posix-functions/setenv.texi (setenv): Document this.
33307         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33308
33309 2009-12-11  Bruno Haible  <bruno@clisp.org>
33310
33311         New module 'fd-safer-flag'.
33312         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33313         * lib/dup-safer.c (dup_safer_flag): Remove function.
33314         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33315         * lib/fd-safer.c (fd_safer_flag): Remove function.
33316         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33317         * modules/cloexec (configure.ac): Drop indicator macro.
33318         * modules/fd-safer-flag: New file.
33319         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33320         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33321         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33322
33323 2009-12-11  Bruno Haible  <bruno@clisp.org>
33324
33325         Tests for module 'nl_langinfo'.
33326         * modules/nl_langinfo-tests: New file.
33327         * tests/test-nl_langinfo.sh: New file.
33328         * tests/test-nl_langinfo.c: New file.
33329
33330         New module 'nl_langinfo'.
33331         * lib/nl_langinfo.c: New file.
33332         * m4/nl_langinfo.m4: New file.
33333         * modules/nl_langinfo: New file.
33334         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33335
33336 2009-12-11  Bruno Haible  <bruno@clisp.org>
33337
33338         Tests for module 'langinfo'.
33339         * modules/langinfo-tests: New file.
33340         * tests/test-langinfo.c: New file.
33341
33342         New module 'langinfo'.
33343         * lib/langinfo.in.h: New file.
33344         * m4/langinfo_h.m4: New file.
33345         * modules/langinfo: New file.
33346         * doc/posix-headers/langinfo.texi: Mention the new module.
33347
33348 2009-12-11  Bruno Haible  <bruno@clisp.org>
33349
33350         * lib/config.charset: Untabify.
33351
33352 2009-12-11  Bruno Haible  <bruno@clisp.org>
33353
33354         * modules/unistd-safer (configure.ac): Drop indicator macro.
33355
33356 2009-12-11  Bruno Haible  <bruno@clisp.org>
33357
33358         Move pipe2-safer code to its own file.
33359         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33360         * lib/pipe-safer.c (pipe2_safer): Remove function.
33361         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33362         (Makefile.am): Add it to lib_SOURCES.
33363
33364 2009-12-10  Bruno Haible  <bruno@clisp.org>
33365
33366         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33367
33368 2009-12-10  Bruno Haible  <bruno@clisp.org>
33369
33370         Declare which arguments expect non-NULL values, for GCC and clang.
33371         * build-aux/arg-nonnull.h: New file.
33372         * modules/arg-nonnull: New file.
33373         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33374         (inet_ntop, inet_pton): Use it.
33375         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33376         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33377         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33378         (open, openat): Use it.
33379         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33380         (fnmatch): Use it.
33381         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33382         (getopt, getopt_long, getopt_long_only): Use it.
33383         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33384         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33385         Use it.
33386         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33387         (iconv_open): Use it.
33388         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33389         (strtoimax, strtoumax): Use it.
33390         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33391         (duplocale): Use it.
33392         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33393         (frexp, frexpl): Use it.
33394         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33395         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33396         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33397         (tsearch, tfind, tdelete, twalk): Use it.
33398         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33399         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33400         sigpending): Use it.
33401         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33402         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33403         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33404         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33405         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33406         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33407         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33408         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33409         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33410         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33411         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33412         Use it.
33413         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33414         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33415         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33416         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33417         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33418         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33419         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33420         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33421         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33422         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33423         strtoull, unsetenv): Use it.
33424         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33425         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33426         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33427         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33428         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33429         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33430         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33431         (strcasecmp, strncasecmp): Use it.
33432         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33433         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33434         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33435         rpl_setsockopt): Use it.
33436         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33437         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33438         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33439         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33440         (gettimeofday): Use it.
33441         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33442         (times): Use it.
33443         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33444         (uname): Use it.
33445         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33446         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33447         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33448         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33449         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33450         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33451         unlinkat, write): Use it.
33452         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33453         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33454         * lib/argv-iter.h: Include arg-nonnull.h.
33455         (_ATTRIBUTE_NONNULL_): Remove macro.
33456         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33457         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33458         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33459         optimization.
33460         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33461         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33462         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33463         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33464         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33465         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33466         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33467         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33468         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33469         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33470         * modules/dirent (Depends-on): Add arg-nonnull.
33471         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33472         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33473         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33474         * modules/fnmatch (Depends-on): Add arg-nonnull.
33475         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33476         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33477         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33478         * modules/glob (Depends-on): Add arg-nonnull.
33479         (Makefile.am): Insert arg-nonnull.h into glob.h.
33480         * modules/iconv_open (Depends-on): Add arg-nonnull.
33481         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33482         * modules/inttypes (Depends-on): Add arg-nonnull.
33483         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33484         * modules/locale (Depends-on): Add arg-nonnull.
33485         (Makefile.am): Insert arg-nonnull.h into locale.h.
33486         * modules/math (Depends-on): Add arg-nonnull.
33487         (Makefile.am): Insert arg-nonnull.h into math.h.
33488         * modules/netdb (Depends-on): Add arg-nonnull.
33489         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33490         * modules/search (Depends-on): Add arg-nonnull.
33491         (Makefile.am): Insert arg-nonnull.h into search.h.
33492         * modules/signal (Depends-on): Add arg-nonnull.
33493         (Makefile.am): Insert arg-nonnull.h into signal.h.
33494         * modules/spawn (Depends-on): Add arg-nonnull.
33495         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33496         * modules/stdio (Depends-on): Add arg-nonnull.
33497         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33498         * modules/stdlib (Depends-on): Add arg-nonnull.
33499         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33500         * modules/string (Depends-on): Add arg-nonnull.
33501         (Makefile.am): Insert arg-nonnull.h into string.h.
33502         * modules/strings (Depends-on): Add arg-nonnull.
33503         (Makefile.am): Insert arg-nonnull.h into strings.h.
33504         * modules/sys_socket (Depends-on): Add arg-nonnull.
33505         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33506         * modules/sys_stat (Depends-on): Add arg-nonnull.
33507         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33508         * modules/sys_time (Depends-on): Add arg-nonnull.
33509         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33510         * modules/sys_times (Depends-on): Add arg-nonnull.
33511         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33512         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33513         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33514         * modules/time (Depends-on): Add arg-nonnull.
33515         (Makefile.am): Insert arg-nonnull.h into time.h.
33516         * modules/unistd (Depends-on): Add arg-nonnull.
33517         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33518         * modules/wchar (Depends-on): Add arg-nonnull.
33519         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33520         * modules/argv-iter (Depends-on): Add arg-nonnull.
33521         * tests/test-canonicalize.c (null_ptr): New function.
33522         (main): Use it.
33523         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33524         (main): Use it.
33525         * tests/test-memmem.c (null_ptr): New function.
33526         (main): Use it.
33527         Reported by Jim Meyering.
33528
33529 2009-12-10  Bruno Haible  <bruno@clisp.org>
33530
33531         Use spaces for indentation, not tabs.
33532         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33533         * m4/*.m4: Untabify.
33534         * build-aux/*.h: Untabify.
33535         * tests/**/*.[hc]: Untabify.
33536         * README: New section "Indent with spaces, not TABs", based on
33537         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33538         * NEWS: Mention the change.
33539
33540 2009-12-10  Bruno Haible  <bruno@clisp.org>
33541
33542         pty test: Fix link error.
33543         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33544         test_pty_LDADD.
33545
33546 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33547
33548         * modules/pty: New file.
33549         * modules/pty-tests: New file.
33550         * m4/pty.m4: New file.
33551         * tests/test-pty.c: New file.
33552         * doc/glibc-headers/pty.texi: Modified.
33553         * doc/glibc-functions/forkpty.texi: Modified.
33554         * doc/glibc-functions/openpty.texi: Modified.
33555
33556 2009-12-10  Bruno Haible  <bruno@clisp.org>
33557
33558         Avoid syntax error in C++ mode.
33559         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33560
33561 2009-12-10  Bruno Haible  <bruno@clisp.org>
33562
33563         Use sed with option -e.
33564         * gnulib-tool (func_version, func_emit_copyright_notice,
33565         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33566         option -e to sed.
33567         * modules/link-warning (Makefile.am): Likewise.
33568
33569 2009-12-10  Jim Meyering  <meyering@redhat.com>
33570
33571         mgetgroups: do not write bytes beyond end of malloc'd buffer
33572         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33573         username, we call getgroups with a one-element-shorter buffer,
33574         but still told it the length was original, max_n_groups.
33575
33576 2009-12-09  Eric Blake  <ebb9@byu.net>
33577
33578         cloexec: relax license
33579         * modules/cloexec (Maintainer): Add myself.
33580         (License): Use LGPL, not GPL.
33581
33582         link-warning: optimize generation
33583         * modules/link-warning (Makefile.am): Reduce process usage.
33584
33585 2009-12-09  Bruno Haible  <bruno@clisp.org>
33586
33587         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33588         workaround was added on 2009-11-17.
33589
33590 2009-12-09  Jim Meyering  <meyering@redhat.com>
33591             Bruno Haible  <bruno@clisp.org>
33592
33593         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33594         * modules/link-warning (Makefile.am): Make the comment-removing sed
33595         command more robust in the face of bootstrap-prepended comment lines.
33596
33597 2009-12-09  Bruno Haible  <bruno@clisp.org>
33598
33599         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33600         most one group.
33601
33602 2009-12-09  Simon Josefsson <simon@josefsson.org>
33603             Bruno Haible  <bruno@clisp.org>
33604
33605         * build-aux/link-warning.h: Add copyright notice.
33606         * modules/link-warning (Makefile.am): Generate link-warning.h from
33607         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33608         * NEWS: Mention change in link-warning module.
33609         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33610         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33611         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33612         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33613         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33614         * modules/math (Makefile.am): Add dependency to math.h.
33615         * modules/search (Makefile.am): Add dependency to search.h.
33616         * modules/signal (Makefile.am): Add dependency to signal.h.
33617         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33618         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33619         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33620         * modules/string (Makefile.am): Add dependency to string.h.
33621         * modules/strings (Makefile.am): Add dependency to strings.h.
33622         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33623         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33624         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33625         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33626         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33627         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33628         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33629         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33630         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33631
33632 2009-12-09  Bruno Haible  <bruno@clisp.org>
33633
33634         fchdir: Optimize away rpl_fstat when possible.
33635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33636         REPLACE_OPEN_DIRECTORY.
33637         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33638
33639 2009-12-09  Bruno Haible  <bruno@clisp.org>
33640
33641         * lib/fchdir.c: Update comment.
33642
33643 2009-12-09  Bruno Haible  <bruno@clisp.org>
33644
33645         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33646
33647 2009-12-08  Eric Blake  <ebb9@byu.net>
33648
33649         fchdir: avoid memory leak on re-registration.
33650         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33651
33652 2009-12-08  Jim Meyering  <meyering@redhat.com>
33653
33654         init.sh: avoid Solaris 10 /bin/sh portability problem
33655         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33656         sourced script:
33657           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33658           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33659           bar
33660         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33661         and two tests used that idiom.
33662         * tests/init.sh: Update suggested usage comments.
33663         (path_prepend_): New function, to be used in place
33664         of the --src-path=DIR option.
33665         (setup_): Move PATH-prepending code into path_prepend_.
33666         * tests/test-pread.sh: Adapt to new usage.
33667         * tests/test-xalloc-die.sh: Likewise.
33668
33669 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33670
33671         * doc/gnulib.texi (Glibc pty.h): Add.
33672         * doc/glibc-functions/forkpty.texi: Add.
33673         * doc/glibc-functions/openpty.texi: Add.
33674         Suggested by Bruno Haible.
33675
33676 2009-12-08  Eric Blake  <ebb9@byu.net>
33677
33678         fchdir: fix logic bugs
33679         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33680         * tests/test-fchdir.c (main): Enhance test.
33681         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33682         is in use.
33683
33684         dup2: fix logic bugs
33685         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33686         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33687         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33688         exists.
33689         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33690
33691 2009-12-07  Eric Blake  <ebb9@byu.net>
33692
33693         unlink: fix m4 detection
33694         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33695
33696         unistd-safer: add unit test
33697         * modules/unistd-safer-tests: New file.
33698         * tests/test-dup-safer.c: Likewise.
33699         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33700         * tests/test-dup2.c (setmode): Likewise.
33701         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33702
33703         cloexec: preserve text vs. binary across dup_cloexec
33704         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33705         mode.
33706         * modules/dup2-tests (Depends-on): Add binary-io.
33707         * modules/cloexec-tests (Depends-on): Likewise.
33708         * tests/test-dup2.c (setmode, is_mode): New helpers.
33709         (main): Add tests that translation mode is preserved.
33710         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33711         Reported by Bruno Haible.
33712
33713         mgetgroups: reduce duplicate listings
33714         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33715         resulting array.
33716         * tests/test-chown.h (test_chown): Simplify client.
33717         * tests/test-lchown.h (test_lchown): Likewise.
33718
33719 2009-12-06  Bruno Haible  <bruno@clisp.org>
33720
33721         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33722         value.
33723
33724 2009-12-06  Bruno Haible  <bruno@clisp.org>
33725
33726         * lib/progname.c: Include stdio.h, stdlib.h.
33727         (set_program_name): Reject a NULL argument.
33728
33729 2009-12-05  Eric Blake  <ebb9@byu.net>
33730
33731         pipe2-safer: new module
33732         * modules/pipe2-safer: New file.
33733         * lib/unistd-safer.h (pipe2_safer): New prototype.
33734         * lib/unistd--.h (pipe2): New wrapper.
33735         * lib/pipe-safer.c (pipe2_safer): New function.
33736         * modules/pipe (Depends-on): Add pipe2-safer.
33737         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33738
33739         stdlib-safer: preserve cloexec flag for mkostemp[s]
33740         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33741         fd_safer_flag.
33742
33743         unistd-safer: allow preservation of cloexec status via flag
33744         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33745         prototypes.
33746         * lib/dup-safer.c (dup_safer_flag): New function.
33747         * lib/fd-safer.c (fd_safer_flag): Likewise.
33748         * modules/cloexec (configure.ac): Set witness.
33749
33750         test-dup2: enhance test
33751         * modules/dup2-tests (Depends-on): Add cloexec.
33752         * tests/test-dup2.c (main): Enhance test.
33753
33754         cloexec: add dup_cloexec
33755         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33756         header and comments.
33757         * lib/cloexec.c (set_cloexec_flag): Add comments.
33758         (dup_cloexec): New function, with mingw implementation borrowed
33759         from...
33760         * lib/w32spawn.h (dup_noinherit): ...here.
33761         * modules/execute (Depends-on): Add cloexec.
33762         * modules/pipe (Depends-on): Likewise.
33763         * modules/cloexec (Depends-on): Add dup2.
33764         * modules/cloexec-tests (Files): New file.
33765         * tests/test-cloexec.c: Likewise.
33766
33767         test-xalloc-die: fix test for mingw
33768         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33769         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33770         directory and .exe suffix off argv[0] output.
33771
33772         test-fseeko: fix test for mingw
33773         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33774         than undefining fseek, so test will pass on mingw.
33775
33776 2009-12-05  Bruno Haible  <bruno@clisp.org>
33777
33778         * lib/progname.h (set_program_name): Clarify specification.
33779         * lib/progname.c (set_program_name): Likewise.
33780         Reported by Jim Meyering.
33781
33782 2009-12-05  Jim Meyering  <meyering@redhat.com>
33783
33784         maint.mk: backslash-escape parens in default regexp
33785         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33786         backslash-escape the literal parentheses.
33787
33788         maint.mk: news-date-check: use grep -E
33789         * top/maint.mk (today): Define a Make variable, not a...
33790         (news-date-check): ...shell variable.
33791         (news-date-regexp): Use the Make variable.
33792         Use grep's -E option.  Change the failing diagnostic to mention
33793         the variable, $(news-date-regexp).
33794
33795 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33796
33797         maintainer-makefile: allow customization of NEWS entry format
33798         * top/maint.mk (news-date-regexp): New overridable variable.
33799         (news-date-check): Use it.
33800
33801 2009-12-04  Eric Blake  <ebb9@byu.net>
33802
33803         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33804         * lib/mgetgroups.h (xgetgroups): New prototype.
33805         * lib/mgetgroups.c (xgetgroups): New wrapper.
33806         (mgetgroups): Handle ENOSYS.
33807         * modules/mgetgroups (Depends-on): Add realloc.
33808         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33809
33810         mgetgroups: avoid argument promotion issues with -1
33811         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33812         for invalid gid_t.
33813         * tests/test-chown.h (getegid, test_chown): Likewise.
33814         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33815
33816 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33817
33818         exclude: Fix header file problems.
33819         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33820
33821 2009-12-01  Jim Meyering  <meyering@redhat.com>
33822
33823         fts: fts_open: do not let an empty string cause immediate failure
33824         This is required in support of GNU rm, for which the command
33825         "rm A '' B" must process and remove both A and B, in spite of
33826         the empty string argument.
33827         * lib/fts.c (fts_open): Do not let the presence of an empty string
33828         cause fts_open to fail immediately.  Most fts-using tools must be
33829         able to process all arguments, in order, and can be expected to
33830         diagnose such arguments themselves.
33831
33832 2009-11-30  Eric Blake  <ebb9@byu.net>
33833
33834         utimens: fix compilation error
33835         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33836         Declare variable at right scope.
33837
33838 2009-11-29  Jim Meyering  <meyering@redhat.com>
33839
33840         bootstrap: handle perl-5.11's changed --version output
33841         * build-aux/bootstrap (get_version): Handle perl separately,
33842         since perl-5.11's --version output is different.
33843
33844 2009-11-28  Jim Meyering  <meyering@redhat.com>
33845
33846         userspec: depend on the inttostr module, too
33847         * modules/userspec (Depends-on): Add inttostr.
33848
33849         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33850         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33851         number of MAXUID when it evaluates to (uid_t) -1.
33852         Likewise for group ID.  Reported by Matt McCutchen in
33853         <http://savannah.gnu.org/bugs/?28113>
33854
33855         userspec: reformat to use spaces, not TABs
33856         * lib/userspec.c: Expand TABs to spaces.
33857         Add Emacs' "indent-tabs-mode: nil" hint.
33858
33859 2009-11-27  Eric Blake  <ebb9@byu.net>
33860
33861         getopt-gnu: flush out another BSD bug
33862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33863         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33864         flush out BSD bug.
33865         * tests/test-getopt.h (test_getopt): End lists with NULL.
33866         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33867         (test_getopt_long_posix): Enhance test.
33868         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33869         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33870         getopt-gnu.
33871         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33872         Likewise.
33873
33874 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33875
33876         * modules/idpriv-droptemp-tests (Notice): Fix text.
33877
33878 2009-11-27  Jim Meyering  <meyering@redhat.com>
33879
33880         test-xalloc-die: avoid spurious failure due to libtool argv difference
33881         In a libtool-enabled project, this test would fail due to a difference
33882         in the emitted program name, e.g.,
33883         -test-xalloc-die: memory exhausted
33884         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33885         Use program to avoid that.
33886         * modules/xalloc-die-tests (Depends-on): Add progname.
33887         * tests/test-xalloc-die.c: Include progname.h".
33888         (program_name): Remove decl.
33889         (main): Call set_program_name.
33890         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33891
33892 2009-11-26  Richard Jones  <rjones@redhat.com>
33893
33894         w32sock: leave win32 error in place.
33895         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33896
33897 2009-11-26  Eric Blake  <ebb9@byu.net>
33898
33899         init.sh: suggest to use skip_ and fail_ functions in comments
33900         * tests/init.sh: Add a sentence.
33901
33902 2009-11-25  Bruno Haible  <bruno@clisp.org>
33903
33904         init.sh: add documentation in comments
33905         * tests/init.sh: Add some developer and user documentation.
33906
33907 2009-11-26  Jim Meyering  <meyering@redhat.com>
33908
33909         init.sh: accommodate even those who specify bogus srcdir manually
33910         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33911         configure-time tests to be sanitized, so that there is no need to
33912         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33913         (with no double quotes) suffices.  However, since tests may be
33914         invoked manually, and since you may explicitly set srcdir to the
33915         name of a directory containing spaces, do quote its uses here.
33916         * tests/test-pread.sh: Likewise.
33917         Suggested by Bruno Haible.
33918
33919         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33920         * tests/test-pread.sh: Write no data into the pipe, because
33921         test-pread actually reads none.  This avoids a diagnostic,
33922         "bash: echo: write error: Broken pipe", that arises in the unusual
33923         event something is ignoring SIGPIPE, and might be interpreted
33924         as some sort of failure.  Reported by Bruno Haible.
33925
33926 2009-11-25  Jim Meyering  <meyering@redhat.com>
33927
33928         test-pread: cover failure with ESPIPE and EINVAL
33929         * tests/test-pread.c (main): Test for failure, too.
33930         * tests/test-pread.sh: Invoke with stdin on a pipe.
33931         Suggested by Eric Blake.
33932
33933         pread: improvement and fix
33934         * modules/pread (Depends-on): Depend on lseek, for portability to
33935         e.g., mingw.  Suggested by Eric Blake.
33936         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33937
33938         unistd.in.h: correct declaration of pread
33939         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33940         Reported by Richard W.M. Jones.
33941
33942         test-pread.sh: distribute the test script
33943         * modules/pread-tests (Files): Include test-pread.sh.
33944
33945         test-pread.sh: clean up
33946         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33947         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33948         That is unnecessary, since it's always ".".
33949         Suggestion from Eric Blake.
33950
33951         test-pread.sh: make executable
33952         * tests/test-pread.sh: Set executable bit.
33953         Reported by Eric Blake.
33954
33955         correct typo in test-pread.sh
33956         * tests/test-pread.sh: Add #! line.
33957
33958         test pread
33959         * tests/test-pread.c: New file.
33960         * tests/test-pread.sh: Likewise.
33961         * modules/pread-tests: Likewise.
33962
33963         pread: new module
33964         * modules/pread: New file.
33965         * lib/unistd.in.h (pread): Define/declare.
33966         * lib/pread.c (pread): New file.
33967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33968         * modules/unistd (Makefile.am): Substitute witnesses.
33969         * doc/posix-functions/pread.texi (pread): Update.
33970         * MODULES.html.sh: Add pread.
33971
33972 2009-11-25  Jim Meyering  <meyering@redhat.com>
33973
33974         tests/init.sh: new file to be used via most *.sh tests
33975         * tests/init.sh: New file.
33976
33977 2009-11-25  Eric Blake  <ebb9@byu.net>
33978
33979         utimens: work around older Linux failure with symlinks
33980         * lib/utimens.c (lutimensat_works_really): New variable.
33981         (fdutimens, lutimens): Use it to manage kernels that support
33982         nanosecond times on files, but not on symlinks.
33983         Reported by OndÅ™ej Vašík.
33984
33985         utimes: fix configure grammar
33986         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33987
33988 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33989
33990         regex: Fix fastmap for multibyte character ranges.
33991         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33992         characters when a multibyte character range is included.
33993
33994 2009-11-22  Andy Wingo  <wingo@pobox.com>
33995
33996         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33997         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33998
33999 2009-11-24  Bruno Haible  <bruno@clisp.org>
34000
34001         doc: Most *_l functions exist in MacOS X 10.5.
34002         * doc/posix-functions/duplocale.texi: Update platforms list.
34003         * doc/posix-functions/freelocale.texi: Likewise.
34004         * doc/posix-functions/newlocale.texi: Likewise.
34005         * doc/posix-functions/uselocale.texi: Likewise.
34006         * doc/posix-functions/isalnum_l.texi: Likewise.
34007         * doc/posix-functions/isalpha_l.texi: Likewise.
34008         * doc/posix-functions/isblank_l.texi: Likewise.
34009         * doc/posix-functions/iscntrl_l.texi: Likewise.
34010         * doc/posix-functions/isdigit_l.texi: Likewise.
34011         * doc/posix-functions/isgraph_l.texi: Likewise.
34012         * doc/posix-functions/islower_l.texi: Likewise.
34013         * doc/posix-functions/isprint_l.texi: Likewise.
34014         * doc/posix-functions/ispunct_l.texi: Likewise.
34015         * doc/posix-functions/isspace_l.texi: Likewise.
34016         * doc/posix-functions/isupper_l.texi: Likewise.
34017         * doc/posix-functions/iswalnum_l.texi: Likewise.
34018         * doc/posix-functions/iswalpha_l.texi: Likewise.
34019         * doc/posix-functions/iswblank_l.texi: Likewise.
34020         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34021         * doc/posix-functions/iswctype_l.texi: Likewise.
34022         * doc/posix-functions/iswdigit_l.texi: Likewise.
34023         * doc/posix-functions/iswgraph_l.texi: Likewise.
34024         * doc/posix-functions/iswlower_l.texi: Likewise.
34025         * doc/posix-functions/iswprint_l.texi: Likewise.
34026         * doc/posix-functions/iswpunct_l.texi: Likewise.
34027         * doc/posix-functions/iswspace_l.texi: Likewise.
34028         * doc/posix-functions/iswupper_l.texi: Likewise.
34029         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34030         * doc/posix-functions/isxdigit_l.texi: Likewise.
34031         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
34032         * doc/posix-functions/strcasecmp_l.texi: Likewise.
34033         * doc/posix-functions/strcoll_l.texi: Likewise.
34034         * doc/posix-functions/strfmon_l.texi: Likewise.
34035         * doc/posix-functions/strftime_l.texi: Likewise.
34036         * doc/posix-functions/strncasecmp_l.texi: Likewise.
34037         * doc/posix-functions/strxfrm_l.texi: Likewise.
34038         * doc/posix-functions/tolower_l.texi: Likewise.
34039         * doc/posix-functions/toupper_l.texi: Likewise.
34040         * doc/posix-functions/towctrans_l.texi: Likewise.
34041         * doc/posix-functions/towlower_l.texi: Likewise.
34042         * doc/posix-functions/towupper_l.texi: Likewise.
34043         * doc/posix-functions/wcscoll_l.texi: Likewise.
34044         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34045         * doc/posix-functions/wctrans_l.texi: Likewise.
34046         * doc/posix-functions/wctype_l.texi: Likewise.
34047         * doc/glibc-functions/strptime_l.texi: Likewise.
34048         * doc/glibc-functions/strtod_l.texi: Likewise.
34049         * doc/glibc-functions/strtof_l.texi: Likewise.
34050         * doc/glibc-functions/strtol_l.texi: Likewise.
34051         * doc/glibc-functions/strtold_l.texi: Likewise.
34052         * doc/glibc-functions/strtoll_l.texi: Likewise.
34053         * doc/glibc-functions/strtoul_l.texi: Likewise.
34054         * doc/glibc-functions/strtoull_l.texi: Likewise.
34055         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34056         * doc/glibc-functions/wcstod_l.texi: Likewise.
34057         * doc/glibc-functions/wcstof_l.texi: Likewise.
34058         * doc/glibc-functions/wcstol_l.texi: Likewise.
34059         * doc/glibc-functions/wcstold_l.texi: Likewise.
34060         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34061         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34062         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34063
34064 2009-11-24  Bruno Haible  <bruno@clisp.org>
34065
34066         duplocale: Fix logic bug.
34067         * lib/duplocale.c: Don't include <langinfo.h>.
34068         (_NL_LOCALE_NAME): Remove macro.
34069         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34070         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34071
34072 2009-11-23  Jim Meyering  <meyering@redhat.com>
34073
34074         test-update-copyright: don't hard-code /usr/bin/perl
34075         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34076         perl to print the current year.  Gilles Espinasse reported that
34077         the replaced use of perl was hard-coded as /usr/bin/perl.
34078
34079 2009-11-23  Bruno Haible  <bruno@clisp.org>
34080
34081         duplocale: Add support for glibc 2.3.x.
34082         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34083
34084 2009-11-22  Bruno Haible  <bruno@clisp.org>
34085
34086         vasnprintf: Tiny optimization.
34087         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34088         MacOS X.
34089
34090 2009-11-22  Bruno Haible  <bruno@clisp.org>
34091
34092         Tests for module 'duplocale'.
34093         * modules/duplocale-tests: New file.
34094         * tests/test-duplocale.c: New file.
34095
34096         New module 'duplocale'.
34097         * m4/duplocale.m4: New file.
34098         * lib/locale.in.h (duplocale): New declaration.
34099         * lib/duplocale.c: New file.
34100         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34101         gl_LOCALE_H_DEFAULTS): New macros.
34102         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34103         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34104         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34105         REPLACE_DUPLOCALE.
34106         * modules/duplocale: New file.
34107         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34108
34109 2009-11-22  Bruno Haible  <bruno@clisp.org>
34110
34111         * modules/locale-tests (configure.ac): Test for newlocale function.
34112         * tests/test-locale.c: When the system has extended locale functions,
34113         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34114
34115         locale: Make locale_t available when possible.
34116         * lib/locale.in.h: Include <xlocale.h> when it exists.
34117         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34118         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34119         * modules/locale (Depends-on): Add extensions.
34120         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34121         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34122
34123 2009-11-22  Bruno Haible  <bruno@clisp.org>
34124
34125         Add comments.
34126         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34127         invocation.
34128         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34129         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34130         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34131
34132 2009-11-22  Bruno Haible  <bruno@clisp.org>
34133
34134         error: account for the possibility of freopen (stdout).
34135         * lib/error.c: Include <unistd.h>.
34136         (flush_stdout): New function, extracted from error and error_at_line.
34137         Determine stdout's fd dynamically.
34138         (error, error_at_line): Invoke flush_stdout.
34139         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34140         * modules/error (Depends-on): Add unistd.
34141
34142 2009-11-22  Bruno Haible  <bruno@clisp.org>
34143
34144         diffseq: Add comment.
34145         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34146
34147 2009-11-22  Jim Meyering  <meyering@redhat.com>
34148
34149         c-stack: avoid defining an unused static function
34150         * lib/c-stack.c (find_stack_direction): Do not define this function
34151         when it will not be used.
34152
34153         diffseq: avoid spurious gcc warnings
34154         * lib/diffseq.h (IF_LINT2): Define.
34155         (compareseq): Use it to initialize two members of "part".
34156         This avoids two used-uninitialized warnings.
34157
34158 2009-11-21  Jim Meyering  <meyering@redhat.com>
34159
34160         c-stack: avoid "ignoring return value of `write'" warning
34161         * lib/c-stack.c: Include "ignore-value.h".
34162         (die): Explicitly ignore each write return value.
34163         * modules/c-stack (Depends-on): Add ignore-value.
34164
34165 2009-11-21  Bruno Haible  <bruno@clisp.org>
34166
34167         diffseq: reduce scope of variable 'best'.
34168         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34169         variable, earlier used for two different purposes.
34170
34171 2009-11-21  Jim Meyering  <meyering@redhat.com>
34172
34173         diffseq: remove useless assignment to "best"
34174         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34175         assignment.  At that point "best" is already guaranteed to be zero.
34176
34177 2009-11-20  Eric Blake  <ebb9@byu.net>
34178
34179         build: mention ftp redirector in release announcements
34180         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34181         values that used to come from cfg.mk; mention FTP redirect URL.
34182         * build-aux/announce-gen: Mention the mirror list.
34183         Suggested by Karl Berry.
34184
34185         nanosleep: improve port to mingw
34186         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34188         LIB_NANOSLEEP, but only when needed.
34189         * modules/select (Link): Document LIBSOCKET.
34190         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34191         enough.
34192
34193         nanosleep: work around cygwin bug
34194         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34195         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34196         bug.
34197         (getnow): Delete, not needed.
34198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34199         LIB_CLOCK_GETTIME.
34200         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34201         clock-time, gettime.
34202         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34203         bug.
34204         * modules/nanosleep-tests: New test.
34205         * tests/test-nanosleep.c: New file.
34206
34207         sleep: work around cygwin bug
34208         * lib/sleep.c (rpl_sleep): Work around the bug.
34209         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34210         (gl_PREREQ_SLEEP): Delete unused macro.
34211         * modules/sleep (Depends-on): Add verify.
34212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34213         * modules/unistd (Makefile.am): Substitute witness.
34214         * lib/unistd.in.h (sleep): Update prototype.
34215         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34216         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34217         * modules/sleep-tests (Depends-on): Check for alarm.
34218
34219 2009-11-20  Jim Meyering  <meyering@redhat.com>
34220
34221         maint.mk: improve sc_prohibit_magic_number_exit
34222         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34223         so it does not match uses like System.exit(1).
34224         Add comments showing how to correct all offenders.
34225
34226 2009-11-19  Eric Blake  <ebb9@byu.net>
34227
34228         xalloc-die-tests: add missing library
34229         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34230
34231         test-xvasprintf: silence compiler warnings
34232         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34233         empty string from gcc.
34234
34235 2009-11-19  Jim Meyering  <meyering@redhat.com>
34236
34237         xfreopen: new module, from coreutils
34238         * modules/xfreopen: New module.
34239         * lib/xfreopen.c: New file.
34240         * lib/xfreopen.h: New file.
34241         * MODULES.html.sh (File stream based Input/Output"): Add it.
34242
34243 2009-11-19  Eric Blake  <ebb9@byu.net>
34244
34245         manywarnings: depend on warnings
34246         * modules/manywarnings (Depends-on): Add warnings.
34247
34248         build: avoid compiler warnings
34249         * lib/select.c (rpl_select): Delete unused variable.
34250         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34251
34252 2009-11-18  Eric Blake  <ebb9@byu.net>
34253
34254         tests: avoid false negative with --with-packager
34255         * tests/test-version-etc.sh: Discard packager information.
34256         * tests/test-argp-version-etc-1.sh: Likewise.
34257         Reported by Mike Frysinger.
34258
34259         utimens: fix regression on Solaris
34260         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34261         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34262         can only change fd timestamps via futimesat.  Instead, use an
34263         additional witness macro to avoid BSD bug.
34264         Reported by Jim Meyering.
34265
34266 2009-11-17  Eric Blake  <ebb9@byu.net>
34267
34268         usleep: use it to simplify tests
34269         * modules/stat-time-tests (Depends-on): Add usleep.
34270         (configure.ac): Drop usleep check.
34271         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34272         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34273         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34274         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34275         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34276         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34277         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34278         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34279         Likewise.
34280         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34281         * tests/test-lchown.h (nap): Likewise.
34282         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34283         * tests/test-stat-time.c (nap): Likewise.
34284         * tests/test-utimens-common.h (nap): Update comments.
34285
34286         usleep: new module
34287         * modules/usleep: New file.
34288         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34289         * lib/usleep.c (usleep): Likewise.
34290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34291         * modules/unistd (Makefile.am): Substitute witnesses.
34292         * lib/unistd.in.h (usleep): Add declaration.
34293         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34294         * MODULES.html.sh (Date and time): Likewise.
34295         * modules/usleep-tests (Depends-on): New test.
34296         * tests/test-usleep.c: New file.
34297
34298         chown: work around OpenBSD bug
34299         * lib/chown.c (rpl_chown): Work around the bug.
34300         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34301         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34302         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34303         * modules/chown (Depends-on): Add stdbool.
34304         * modules/lchown (Depends-on): Likewise.
34305         * doc/posix-functions/chown.texi (chown): Document the bug.
34306         * doc/posix-functions/lchown.texi (lchown): Likewise.
34307         * tests/test-lchown.h (test_chown): Relax test.
34308
34309         mkstemp: avoid conflict with C++ keyword template
34310         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34311         * lib/mkostemp.c (mkostemp): Likewise.
34312         * lib/mkostemps.c (mkostemps): Likewise.
34313         * lib/mkstemp.c (mkstemp): Likewise.
34314         * lib/mkstemps.c (mkstemps): Likewise.
34315
34316         xalloc-die-tests: optimize
34317         * tests/test-xalloc-die.sh: Reduce number of processes.
34318
34319 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34320
34321         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34322         patch from ludo@gnu.org (Ludovic Courtès).
34323
34324 2009-11-17  Jim Meyering  <meyering@redhat.com>
34325
34326         version-etc: use proper license string
34327         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34328         * modules/version-etc-fsf: Likewise.
34329
34330 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34331
34332         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34333         printed to stdout.  Deal with EOL differences.
34334
34335 2009-11-17  Eric Blake  <ebb9@byu.net>
34336
34337         unsetenv: work around Solaris bug
34338         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34339         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34340         Reported by Jim Meyering.
34341
34342         vasnprintf: avoid compiler warnings
34343         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34344         variables.
34345         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34346
34347 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34348
34349         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34350         settings since xalloc-die is no longer the self test,
34351         xalloc-die.sh is.
34352
34353 2009-11-17  Jim Meyering  <meyering@redhat.com>
34354
34355         test-xalloc-die.sh: make the code agree with the commit log
34356         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34357         at the end, just in case you happen to have a test-xalloc-die
34358         program in some other PATH directory.
34359
34360         test-xalloc-die.sh: fix a portability bug
34361         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34362         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34363         Otherwise, argv[0] (as often seen in diagnostics) would be too
34364         system-dependent, sometimes with, and sometimes without the leading "./".
34365
34366         version-etc-fsf: relax license to LGPLv3+
34367         * modules/version-etc-fsf (License): Relax license.
34368
34369 2009-11-16  Eric Blake  <ebb9@byu.net>
34370
34371         xalloc-die-tests: avoid printing null pointer
34372         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34373         shell script.
34374         * tests/test-xalloc-die.c (program_name): Declare.
34375         * tests/test-xalloc-die.sh (tmpfiles): New file.
34376
34377         setenv, unsetenv: work around various bugs
34378         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34379         (setenv) [HAVE_SETENV]: Work around bugs.
34380         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34381         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34382         for bugs.
34383         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34384         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34386         * modules/stdlib (Makefile.am): Update substitutions.
34387         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34388         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34389         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34390         * modules/setenv-tests: New test.
34391         * modules/unsetenv-tests: Likewise.
34392         * tests/test-setenv.c: New file.
34393         * tests/test-unsetenv.c: Likewise.
34394
34395 2009-11-16  Jim Meyering  <meyering@redhat.com>
34396
34397         version-etc: relax license to LGPLv3+
34398         * modules/version-etc (License): Relax license.
34399
34400         better AC_REQUIRE expanded-before-required-warning avoidance
34401         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34402         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34403         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34404         which is no longer needed.
34405
34406 2009-11-16  Eric Blake  <ebb9@byu.net>
34407
34408         test-freading: clean up temporary file
34409         * tests/test-freading.c (main): Remove file on success, and use
34410         ASSERT more liberally.
34411         Reported by Jim Meyering.
34412
34413 2009-11-16  Jim Meyering  <meyering@redhat.com>
34414
34415         avoid new AC_REQUIRE expanded-before-required warnings
34416         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34417         merely using it.
34418         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34419         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34420
34421 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34422
34423         * tests/test-xalloc-die.c: New file.
34424         * modules/xalloc-die-tests: New file.
34425         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34426         XFAIL_TESTS so it can be appended by modules.
34427
34428 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34429
34430         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34431         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34432
34433 2009-11-14  Eric Blake  <ebb9@byu.net>
34434
34435         fnmatch: avoid compiler warning
34436         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34437         to silence compiler warning about mismatch signedness in ?:.
34438         Reported by Robert Millan.
34439
34440         intprops: add double-inclusion guard
34441         * lib/intprops.h: Allow idempotent includes.
34442         Suggested by Bruce Korb.
34443
34444         openat: detect Solaris fchownat bug
34445         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34446         penalizing glibc chownat when only lchownat is broken.
34447         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34448         trailing slash bugs.
34449         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34450         * modules/openat-tests (Files): Include more files.
34451         (Depends-on): Add mgetgroups, sleep, stat-time.
34452         (configure.ac): Add additional checks.
34453         (Makefile.am): Build new test.
34454         * tests/test-fchownat.c: New file.
34455
34456         lchown: detect Solaris and FreeBSD bug
34457         * lib/lchown.c (rpl_lchown): Work around bug.
34458         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34460         * modules/unistd (Makefile.am): Populate it.
34461         * lib/unistd.in.h (lchown): Update declaration.
34462         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34463         * modules/lchown-tests: New file.
34464         * tests/test-lchown.h (test_lchown): Likewise.
34465         * tests/test-lchown.c (main): Likewise.
34466
34467         chown: detect Solaris and FreeBSD bug
34468         * lib/chown.c (rpl_chown): Work around bug.
34469         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34470         (gl_PREREQ_CHOWN): Delete.
34471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34472         * modules/unistd (Makefile.am): Populate it.
34473         * lib/unistd.in.h (chown): Update declaration.
34474         * lib/lchown.c (chown): Update client.
34475         * modules/lchown (Depends-on): Add lstat.
34476         * doc/posix-functions/chown.texi (chown): Document the bug.
34477         * doc/posix-functions/getgroups.texi (getgroups): Document
34478         getgroups pitfall.
34479         * modules/chown-tests: New file.
34480         * tests/test-chown.h (test_chown): Likewise.
34481         * tests/test-chown.c (main): Likewise.
34482
34483 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34484
34485         gnulib-tool: correctly detect absence of m4 directories
34486         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34487
34488 2009-11-14  Jim Meyering  <meyering@redhat.com>
34489
34490         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34491         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34492
34493 2009-11-14  John W. Eaton  <jwe@gnu.org>
34494
34495         strftime.h: wrap funtion declaration in extern "C" block
34496         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34497
34498 2009-11-13  Eric Blake  <ebb9@byu.net>
34499
34500         getgroups: avoid compiler warning
34501         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34502
34503         getgroups: work around FreeBSD bug
34504         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34505         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34506         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34507         * tests/test-getgroups.c (main): Fix buffer overrun.
34508
34509         getgroups: avoid compilation failure
34510         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34511         * modules/getgroups (Depends-on): Add stdint.
34512
34513 2009-11-13  Jim Meyering  <meyering@redhat.com>
34514
34515         test-getgroups: avoid compilation failure
34516         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34517
34518 2009-11-13  Eric Blake  <ebb9@byu.net>
34519
34520         mgetgroups: new module, taken from coreutils
34521         * modules/mgetgroups: New file.
34522         * lib/mgetgroups.h: Likewise.
34523         * lib/mgetgroups.c (mgetgroups): Likewise.
34524         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34525         * MODULES.html.sh (Users and groups): Mention it.
34526
34527         getgroups: don't expose GETGROUPS_T to user
34528         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34529         an element at a time if GETGROUPS_T is wrong size.
34530         * lib/getugroups.h (getugroups): Change signature.
34531         * lib/unistd.in.h (getgroups): Likewise.
34532         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34533         signature needs fixing.
34534         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34535         AC_TYPE_GETGROUPS.
34536         * modules/group-member (Depends-on): Add getgroups.
34537         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34538         (group_member): Rely on getgroups replacement.
34539         * lib/getugroups.c (getugroups): Use gid_t.
34540         * tests/test-getgroups.c (main): Likewise.
34541         * NEWS: Mention the signature change.
34542         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34543         problem with signature.
34544         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34545         GETGROUPS_T is still useful for setgroups.
34546
34547         getgroups, getugroups: provide stubs for mingw
34548         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34549         * lib/getugroups.c (getugroups): Likewise.
34550         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34551         function.  Modernize replacement scheme.
34552         (gl_PREREQ_GETGROUPS): Delete.
34553         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34554         * modules/getgroups (configure.ac): Declare witness.
34555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34556         * modules/unistd (Depends-on): Substitute witness.
34557         * lib/unistd.in.h (getgroups): Declare replacement.
34558
34559         getgroups: avoid calling exit
34560         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34561         drop xalloc.
34562         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34563         dependencies.
34564         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34565         exiting, in the rare case of malloc failure.
34566
34567         getgroups: fix logic error
34568         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34569         has more than 20 groups.
34570         * modules/getgroups-tests: New test.
34571         * tests/test-getgroups.c: New file.
34572
34573 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34574
34575         * tests/test-base64.c: Improve.
34576
34577 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34578
34579         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34580         Blake <ebb9@byu.net>.
34581
34582 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34583
34584         * tests/test-xvasprintf.c: Add %s%s related checks.
34585
34586 2009-11-12  Eric Blake  <ebb9@byu.net>
34587
34588         version-etc: match standards.texi style
34589         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34590         and use <> only for URLs.
34591
34592 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34593
34594         fts: do not fail on a submount during traversal
34595         * lib/fts.c (fts_build): Read the stat info again after opening
34596         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34597         Original report at http://bugzilla.redhat.com/501848.
34598
34599 2009-11-12  Jim Meyering  <meyering@redhat.com>
34600
34601         bootstrap: sync from coreutils
34602         * build-aux/bootstrap (bootstrap_epilogue): New function.
34603         Use git_modules_config in one more place.  This make bootstrap's
34604         --gnulib-srcdir option more useful for testing.
34605
34606         bootstrap: generalize autoheader check
34607         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34608         AC_CONFIG_HEADERS.
34609
34610 2009-11-11  Eric Blake  <ebb9@byu.net>
34611
34612         mkfifoat: use new modules for Solaris and BSD bugs
34613         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34614         * lib/mkfifoat.c (mknodat): Split...
34615         * lib/mknodat.c (mknodat): ...into new file.
34616         * modules/mkfifoat (Files): Ship new file.
34617         (Depends-on): Add mkfifo, mknod.
34618         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34619         (Depends-on): Add symlink.
34620         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34621         redundant with test_mkfifo.h.
34622         (do_mkfifoat, do_mknodat): New helpers.
34623
34624         mknod: new module
34625         * modules/mknod: New file.
34626         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34627         * lib/mknod.c (mknod): Likewise.
34628         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34629         defaults.
34630         * modules/sys_stat (Makefile.am): Substitute them.
34631         * lib/sys_stat.in.h (mknod): Declare replacement.
34632         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34633         Document it.
34634         * doc/posix-functions/mknod.texi (mknod): Likewise.
34635         * modules/mknod-tests: New test.
34636         * tests/test-mknod.c: Likewise.
34637
34638         mkfifo: new module
34639         * modules/mkfifo: New file.
34640         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34641         * lib/mkfifo.c (mkfifo): Likewise.
34642         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34643         defaults.
34644         * modules/sys_stat (Makefile.am): Substitute them.
34645         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34646         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34647         Document it.
34648         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34649         * modules/mkfifo-tests: New test.
34650         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34651         from test-mkfifoat.c.
34652         * tests/test-mkfifo.c: New file.
34653
34654         readlink: detect FreeBSD bug
34655         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34656         slash on symlink.
34657         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34658         * tests/test-readlink.h (test_readlink): Enhance test.
34659
34660         symlink: detect FreeBSD bug
34661         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34662         slash on symlink.
34663         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34664         * tests/test-symlink.h (test_symlink): Enhance test.
34665
34666 2009-11-10  Eric Blake  <ebb9@byu.net>
34667
34668         link: detect FreeBSD bug
34669         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34670         symlink.
34671         * doc/posix-functions/link.texi (link): Document the bug.
34672         * tests/test-link.h (test_link): Enhance test.
34673         * tests/test-linkat.c (main): Update caller.
34674
34675         unlink, remove: detect FreeBSD bug
34676         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34677         slash on symlink.
34678         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34679         * doc/posix-functions/remove.texi (remove): Likewise.
34680         * tests/test-unlink.h (test_unlink): Enhance test.
34681         * tests/test-remove.c (main): Likewise.
34682
34683 2009-11-09  Eric Blake  <ebb9@byu.net>
34684
34685         rename: detect FreeBSD bug
34686         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34687         slash on symlink.
34688         * modules/renameat-tests (Depends-on): Add filenamecat.
34689         * tests/test-rename.h (test_rename): Allow one more errno.
34690         * tests/test-renameat.c (main): Likewise.
34691         * doc/posix-functions/rename.texi (rename): Document the bug.
34692
34693         open: detect FreeBSD bug
34694         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34695         symlink.
34696         * doc/posix-functions/open.texi (open): Document the bug.
34697         * doc/posix-functions/utimes.texi (utimes): Likewise.
34698         * tests/test-open.h (test_open): Add parameters, and test symlink
34699         handling.
34700         * tests/test-open.c (main): Adjust caller.
34701         * tests/test-fcntl-safer.c (main): Likewise.
34702         * modules/open-tests (Depends-on): Add stdbool, symlink.
34703         * modules/fcntl-safer-tests (Depends-on): Likewise.
34704         * tests/test-openat.c (main): Add test-open tests.
34705
34706         stat: detect FreeBSD bug
34707         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34708         symlink.
34709         * doc/posix-functions/stat.texi (stat): Document the bug.
34710         * tests/test-stat.h (test_stat_func): Add argument.
34711         * tests/test-stat.c (main): Adjust caller.
34712         * tests/test-fstatat.c (main): Likewise.
34713         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34714         Reported by Jim Meyering.
34715
34716 2009-11-09  James Youngman  <jay@gnu.org>
34717
34718         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34719         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34720
34721 2009-11-08  Jim Meyering  <meyering@redhat.com>
34722
34723         utimens: remove invalid futimesat call
34724         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34725         It used the file descriptor of the target file as the DIR_FD
34726         parameter and NULL as the file name.  That caused failure with
34727         errno == EFAULT on FreeBSD-8.0-rc2
34728
34729 2009-11-07  Eric Blake  <ebb9@byu.net>
34730
34731         fflush, freadseek: use fseeko, not fseek
34732         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34733         (clear_ungetc_buffer): Avoid potential problems on large files.
34734         * lib/freadseek.c (freadseek): Likewise.
34735         * modules/freadseek (Depends-on): Add fseeko.
34736         * modules/fseek (configure.ac): Set a witness.
34737         * tests/test-fflush.c (main): Use fseeko.
34738         * tests/test-fpurge.c (fseek): Disable link warning.
34739         * tests/test-freadable.c (fseek): Likewise.
34740         * tests/test-freading.c (fseek): Likewise.
34741         * tests/test-fseeko.c (fseek): Likewise.
34742         * tests/test-ftell.c (fseek): Likewise.
34743         * tests/test-ftello.c (fseek): Likewise.
34744         * tests/test-fwritable.c (fseek): Likewise.
34745         * tests/test-fwriting.c (fseek): Likewise.
34746
34747 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34748
34749         * modules/memchr (Depends-on): Drop getpagesize dependency.
34750
34751 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34752
34753         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34754         Reported by Ludovic Courtès.
34755         * build-aux/pmccabe2html: Improve example usage.
34756         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34757
34758 2009-11-06  Jim Meyering  <meyering@redhat.com>
34759
34760         do-release-commit-and-tag: New module.
34761         Automate the release-commit and tag process.
34762         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34763         * modules/do-release-commit-and-tag: New file.
34764         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34765
34766 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34767
34768         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34769         because test-select.c uses inet_pton.
34770
34771 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34772
34773         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34774         GETADDRINFO_LIB.  Bump serial number.
34775         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34776         Suggested by Eric Blake <ebb9@byu.net>.
34777
34778 2009-11-05  Eric Blake  <ebb9@byu.net>
34779
34780         strtod: detect darwin bug
34781         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34782         Reported by Leo Davis.
34783
34784         freopen-safer: new module
34785         * modules/freopen-safer: New module.
34786         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34787         * lib/freopen-safer.c (freopen_safer): New file.
34788         * lib/stdio-safer.h (freopen_safer): New declaration.
34789         * lib/stdio--.h (freopen): New override.
34790         * MODULES.html.sh (File stream based Input/Output): Mention it.
34791         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34792         freopen-safer module.
34793         * doc/posix-functions/stderr.texi (stderr): Likewise.
34794         * doc/posix-functions/stdin.texi (stdin): Likewise.
34795         * doc/posix-functions/stdout.texi (stdout): Likewise.
34796         * modules/freopen-safer-tests: New test.
34797         * tests/test-reopen-safer.c: New file.
34798
34799 2009-11-05  Jim Meyering  <meyering@redhat.com>
34800
34801         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34802         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34803
34804 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34805
34806         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34807
34808 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34809
34810         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34811
34812 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34813
34814         Fix link error.
34815         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34816         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34817
34818 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34819
34820         * tests/test-func.c: Also test value of __func__.
34821
34822 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34823
34824         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34825         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34826
34827 2009-11-05  Bruno Haible  <bruno@clisp.org>
34828
34829         Fix link error.
34830         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34831         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34832         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34833
34834 2009-11-05  Bruno Haible  <bruno@clisp.org>
34835
34836         Tests for module 'inet_pton'.
34837         * modules/inet_pton-tests: New file.
34838         * tests/test-inet_pton.c: New file.
34839
34840 2009-11-05  Bruno Haible  <bruno@clisp.org>
34841
34842         Tests for module 'inet_ntop'.
34843         * modules/inet_ntop-tests: New file.
34844         * tests/test-inet_ntop.c: New file.
34845
34846 2009-11-04  Eric Blake  <ebb9@byu.net>
34847
34848         stdlib-safer: wrap all mkstemp variants
34849         * modules/mkostemp (configure.ac): Set witness.
34850         * modules/mkostemps (configure.ac): Likewise.
34851         * modules/mkstemps (configure.ac): Likewise.
34852         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34853         (mkstemps_safer): Wrap more functions.
34854         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34855         wrapping.
34856         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34857         (mkstemps_safer): Implement the wrappers.
34858
34859         mkstemps, mkostemps: new modules
34860         * modules/mkostemps: New module.
34861         * modules/mkstemps: Likewise.
34862         * lib/mkostemps.c (mkostemps): New file.
34863         * lib/mkstemps.c (mkstemps): Likewise.
34864         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34865         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34867         * modules/stdlib (Makefile.am): Substitute them.
34868         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34869         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34870         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34871         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34872         * MODULES.html.sh (File system functions): Mention them.
34873
34874         tempname: resync from glibc
34875         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34876         same values for __GT_FILE as glibc.  Abort even when assertions
34877         are disabled.
34878         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34879         match its value otherwise.  Allow idempotent inclusion.
34880         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34881         * lib/mkostemp.c (mkostemp): Likewise.
34882         * lib/mkstemp.c (mkstemp): Likewise.
34883         * lib/tmpfile.c (tmpfile): Likewise.
34884         * NEWS: Document this.
34885
34886         utimens: fix use of futimens on older Linux
34887         * lib/utimens.c (fdutimens): Use updated, rather than original,
34888         timespec to avoid bug in older Linux kernel.
34889         Reported by Simon Josefsson.
34890
34891 2009-11-04  Bruno Haible  <bruno@clisp.org>
34892
34893         Make num_processors more flexible and consistent.
34894         * lib/nproc.h (enum nproc_query): New type.
34895         (num_processors): Add a 'query' argument.
34896         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34897         (num_processors): Add a 'query' argument. Test the value of the
34898         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34899         mingw, count the number of CPUs available for the current process.
34900         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34901         Check for sched_getaffinity and sched_getaffinity_np.
34902         * modules/nproc (Depends-on): Add c-ctype, extensions.
34903         * NEWS: Mention the change.
34904
34905 2009-11-03  Bruno Haible  <bruno@clisp.org>
34906
34907         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34908
34909 2009-11-03  Jim Meyering  <meyering@redhat.com>
34910
34911         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34912         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34913         if it is defined.
34914
34915 2009-11-02  Eric Blake  <ebb9@byu.net>
34916
34917         mktime, timegm: share common declaration
34918         * lib/mktime-internal.h: New file.
34919         * lib/mktime.c: Use it rather than open-coding a declaration.
34920         * lib/timegm.c: Likewise.
34921         * modules/mktime (Files): Ship it.
34922         * modules/timegm (Files): Likewise.
34923         Suggested by Bruno Haible.
34924
34925         test-update-copyright: update test to match script changes
34926         * tests/test-update-copyright.sh: Avoid hard-coding perl
34927         location.  Don't update *.bak created by earlier runs.
34928
34929 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34930             Simon Josefsson  <simon@josefsson.org>
34931             Bruno Haible  <bruno@clisp.org>
34932
34933         Fix link error on Solaris 8.
34934         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34935         also in libnsl. Define also INET_PTON_LIB.
34936         * modules/inet_pton (Link): New section.
34937
34938 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34939             Bruno Haible  <bruno@clisp.org>
34940
34941         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34942         * modules/inet_ntop (Link): New section.
34943         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34944
34945 2009-11-02  Eric Blake  <ebb9@byu.net>
34946
34947         maint: avoid compiler warnings in m4 macros
34948         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34949         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34950
34951 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34952
34953         * m4/pmccabe2html.m4: Remove file.
34954         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34955         function.  Change maintainer.
34956         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34957         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34958         Courtès).
34959
34960 2009-10-31  Eric Blake  <ebb9@byu.net>
34961
34962         fseeko: fix m4 regression
34963         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34964         regression from 2009-10-27.
34965         Reported by Ralf Wildenhues.
34966
34967 2009-10-31  Jim Meyering  <meyering@redhat.com>
34968
34969         inttostr: aesthetics and improved (compile-time) safety
34970         Define inttype_is_signed rather than inttype_is_unsigned,
34971         since the sole use is via "#if inttype_is_signed".
34972         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34973         inttype_is_unsigned.
34974         * lib/offtostr.c (inttype_is_signed): Likewise.
34975         * lib/uinttostr.c (inttype_is_signed): Likewise.
34976         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34977         * lib/inttostr.c (inttostr): Use verify to cross-check the
34978         inttype_is_signed value and the signedness of the actual type.
34979         * modules/inttostr (Depends-on): Add verify.
34980
34981 2009-10-30  Eric Blake  <ebb9@byu.net>
34982
34983         build: avoid compiler warnings
34984         * lib/fchmodat.c (lchmod): Mark unused variables.
34985         * lib/getopt.c (_getopt_initialize): Likewise.
34986         * lib/mktime.c (__mktime_internal): Provide prototype.
34987         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34988         older gcc that do not understand #pragma GCC diagnostic.
34989         * lib/uinttostr.c (inttype_is_unsigned): Define.
34990         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34991
34992 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34993
34994         stat: fix compilation on AIX
34995         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34996         only see struct stat64.
34997
34998 2009-10-30  Eric Blake  <ebb9@byu.net>
34999
35000         exclude: make more robust
35001         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
35002         rather than masking a coding bug.
35003         Suggested by Bruno Haible.
35004
35005 2009-10-30  Jim Meyering  <meyering@redhat.com>
35006
35007         perl scripts: remove #!/usr/bin/perl in favor of more portable...
35008         Rather than putting #!/usr/bin/perl on the first line,
35009         start with a variant of what's recommended by "man perlrun" that
35010         invokes the first "perl" program from your shell's search path.
35011         * build-aux/gitlog-to-changelog: Replace #!... as above.
35012         Add a "Local Variables" perl mode setting.
35013         Prompted by a patch from Ludovic Courtès.
35014         Improved by Eric Blake.
35015         * build-aux/useless-if-before-free: Likewise.
35016         * build-aux/announce-gen: Likewise.
35017         * build-aux/update-copyright: Likewise.
35018
35019 2009-10-29  Eric Blake  <ebb9@byu.net>
35020
35021         filenamecat-lgpl: adjust clients
35022         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
35023         filenamecat.
35024         * modules/renameat (Depends-on): Likewise.
35025
35026         filenamecat: split into filenamecat-lgpl
35027         * modules/filenamecat-lgpl: New module.
35028         * modules/filenamecat (Files): Move library-safe files into
35029         filenamecat-lgpl.
35030         (Depends-on): Add filenamecat-lgpl.
35031         (configure.ac): Declare witness.
35032         * lib/filenamecat.h (file_name_concat): Only declare when using
35033         GPL module.
35034         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
35035         Move...
35036         * lib/filenamecat-lgpl.c: ...into new file.
35037         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
35038         (gl_FILE_NAME_CONCAT): Use it.
35039         * MODULES.html.sh (File system functions): Mention new module.
35040
35041         argp: avoid memory leak
35042         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35043         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35044         base_name, since the latter malloc()s and can call exit().
35045         Leak introduced 2006-07-03.
35046
35047         dirname-lgpl: adjust clients that don't need full dirname
35048         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35049         * modules/filenamecat (Depends-on): Likewise.
35050         * modules/linkat (Depends-on): Likewise.
35051         * modules/mkancesdirs (Depends-on): Likewise.
35052         * modules/mkdir (Depends-on): Likewise.
35053         * modules/openat (Depends-on): Likewise.
35054         * modules/savewd (Depends-on): Likewise.
35055         * modules/rename (Depends-on): Likewise.
35056         (License): Relax license.
35057         * modules/mkdir-tests (Depends-on): Drop progname.
35058         (Makefile.am): Delete unneeded LDADD.
35059         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
35060
35061         dirname: split into dirname-lgpl
35062         * modules/dirname-lgpl: New module.
35063         * modules/dirname (Files): Move library-safe files into
35064         dirname-lgpl.
35065         (Depends-on): Add dirname-lgpl.
35066         (configure.ac): Declare witness.
35067         * modules/double-slash-root (License): Relax license.
35068         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35069         module.
35070         * lib/dirname.c (dir_len, mdir_name): Move...
35071         * lib/dirname-lgpl.c: ...into new file.
35072         * lib/basename.c (last_component, base_len): Move...
35073         * lib/basename-lgpl.c: ...into new file.
35074         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35075         (gl_DIRNAME): Use it.
35076         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35077         Mention new module.
35078         * modules/dirname-tests (Depends-on): Add progname.
35079         * tests/test-dirname.c (program_name): Delete.
35080
35081         mkdir: make safe for libraries
35082         * modules/mkdir (Depends-on): Drop xalloc.
35083         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35084         exit.
35085
35086         tests: avoid some compiler warnings
35087         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35088         literals.
35089         * tests/test-memchr.c (main): Avoid type mismatch.
35090         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35091         * tests/test-base64.c (main): Likewise.
35092         * tests/test-getdelim.c (main): Likewise.
35093         * tests/test-gethostname.c (main): Likewise.
35094         * tests/test-getline.c (main): Likewise.
35095         * tests/test-netinet_in.c (main): Likewise.
35096         * tests/test-select.c (open_server_socket, main): Likewise.
35097         * tests/test-select-stdin.c (main): Likewise.
35098         * tests/test-sockets.c (main): Likewise.
35099         * tests/test-strsignal.c (main): Likewise.
35100         * tests/test-sys_select.c (main): Likewise.
35101         * tests/test-sys_socket.c (main): Likewise.
35102         * tests/test-u64.c (main): Likewise.
35103         * tests/test-xfprintf-posix.c (main): Likewise.
35104         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35105
35106         sockets: avoid compiler warning
35107         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35108
35109         maint: detect usage(1) and other suspicious exits
35110         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35111
35112 2009-10-29  Jim Meyering  <meyering@redhat.com>
35113
35114         timespec: long-to-int truncation could make timespec_cmp malfunction
35115         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35116         a multiple of 2^32 nanoseconds as no difference.
35117
35118 2009-10-28  Jim Meyering  <meyering@redhat.com>
35119
35120         fprintftime: wrap macro code argument in "do {...} while(0)"
35121         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35122         cpy macro must be a statement that can be followed by a semicolon.
35123         Now that the else clause contains a comment and is hence longer
35124         than one line, I require curly braces.  That in turn requires
35125         that we wrap this code block in the standard do...while(0).
35126
35127         fprintftime: remove stray semicolon from previous change
35128         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35129
35130         fprintftime: avoid a warning about ignored fwrite return value
35131         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35132         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35133         that is unsafe.
35134         * modules/fprintftime (Depends-on): Add ignore-value.
35135
35136         exclude: avoid an unwarranted warning
35137         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35138
35139 2009-10-27  Eric Blake  <ebb9@byu.net>
35140
35141         fseek: avoid compilation failure when fflush is replaced
35142         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35143         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35144         module is in use.
35145         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35146         module is not in use; since REPLACE_FSEEK worked otherwise.
35147         (GNULIB_FTELLO): Likewise for ftell.
35148         Reported by Ian Beckwith and others.
35149
35150 2009-10-27  Bruno Haible  <bruno@clisp.org>
35151
35152         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35153         Reported by Jim Meyering.
35154
35155 2009-10-27  Jim Meyering  <jim@meyering.net>
35156             Bruno Haible  <bruno@clisp.org>
35157
35158         Avoid warning despite dropping the return value of fwrite.
35159         * lib/unicodeio.c: Include ignore-value.h.
35160         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35161         * modules/unicodeio (Depends-on): Add ignore-value.
35162
35163 2009-10-26  Eric Blake  <ebb9@byu.net>
35164
35165         areadlinkat: fix fallback path
35166         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35167         pointer and zero.
35168
35169 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35170
35171         Use a better IO block size for modern systems
35172         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35173         * lib/md2.c: Likewise.
35174         * lib/md4.c: Likewise.
35175         * lib/md5.c: Likewise.
35176         * lib/sha1.c: Likewise.
35177         * lib/sha256.c: Likewise.
35178         * lib/sha512.c: Likewise.
35179
35180 2009-10-22  Eric Blake  <ebb9@byu.net>
35181
35182         tests: avoid several compiler warnings
35183         * tests/test-getcwd.c (main): Avoid buffer underflow.
35184         * tests/test-getdate.c (main): String literals are not safe with
35185         putenv, so use setenv.  Declare unused argument.
35186         * modules/getdate-tests (Depends-on): Add setenv.
35187         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35188         problems with string literals in char *.
35189         * tests/test-hash.c (main): Avoid shadowing declaration.
35190         (insert_new): Treat string literals as char const *.
35191         * tests/test-getopt.h (test_getopt): Likewise.
35192         (getopt_loop): Alter types to minimize casting elsewhere.
35193         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35194         (test_getopt_long_posix): Likewise.
35195         (do_getopt_long): Add wrapper to minimize casting.
35196         * tests/test-atexit.c (clear_temp_file): Use void.
35197         * tests/test-areadlink-with-size.c (main): Declare unused
35198         arguments.
35199         * tests/test-areadlink.c (main): Likewise.
35200         * tests/test-areadlinkat-with-size.c (main): Likewise.
35201         * tests/test-areadlinkat.c (main): Likewise.
35202         * tests/test-canonicalize-lgpl.c (main): Likewise.
35203         * tests/test-canonicalize.c (main): Likewise.
35204         * tests/test-dirent-safer.c (main): Likewise.
35205         * tests/test-dirname.c (main): Likewise.
35206         * tests/test-dup2.c (main): Likewise.
35207         * tests/test-fchdir.c (main): Likewise.
35208         * tests/test-fcntl-h.c (main): Likewise.
35209         * tests/test-fcntl-safer.c (main): Likewise.
35210         * tests/test-fdopendir.c (main): Likewise.
35211         * tests/test-fdutimensat.c (main): Likewise.
35212         * tests/test-fflush.c (main): Likewise.
35213         * tests/test-filenamecat.c (main): Likewise.
35214         * tests/test-filevercmp.c (main): Likewise.
35215         * tests/test-fopen-safer.c (main): Likewise.
35216         * tests/test-fopen.c (main): Likewise.
35217         * tests/test-fpending.c (main): Likewise.
35218         * tests/test-fpurge.c (main): Likewise.
35219         * tests/test-freading.c (main): Likewise.
35220         * tests/test-fstatat.c (main): Likewise.
35221         * tests/test-fsync.c (main): Likewise.
35222         * tests/test-futimens.c (main): Likewise.
35223         * tests/test-getndelim2.c (main): Likewise.
35224         * tests/test-gettimeofday.c (main): Likewise.
35225         * tests/test-getopt.c (main): Likewise.
35226         * tests/test-i-ring.c (main): Likewise.
35227         * tests/test-inttypes.c (main): Likewise.
35228         * tests/test-link.c (main): Likewise.
35229         * tests/test-lstat.c (main): Likewise.
35230         * tests/test-math.c (main): Likewise.
35231         * tests/test-md5.c (main): Likewise.
35232         * tests/test-memchr2.c (main): Likewise.
35233         * tests/test-memrchr.c (main): Likewise.
35234         * tests/test-mkdir.c (main): Likewise.
35235         * tests/test-mkdirat.c (main): Likewise.
35236         * tests/test-mkfifoat.c (main): Likewise.
35237         * tests/test-open.c (main): Likewise.
35238         * tests/test-openat-safer.c (main): Likewise.
35239         * tests/test-openat.c (main): Likewise.
35240         * tests/test-quotearg.c (main): Likewise.
35241         * tests/test-rawmemchr.c (main): Likewise.
35242         * tests/test-readlink.c (main): Likewise.
35243         * tests/test-remove.c (main): Likewise.
35244         * tests/test-rename.c (main): Likewise.
35245         * tests/test-renameat.c (main): Likewise.
35246         * tests/test-rmdir.c (main): Likewise.
35247         * tests/test-sha1.c (main): Likewise.
35248         * tests/test-signal.c (main): Likewise.
35249         * tests/test-sigaction.c (main): Likewise.
35250         * tests/test-stat.c (main): Likewise.
35251         * tests/test-stat-time.c (main): Likewise.
35252         * tests/test-stddef.c (main): Likewise.
35253         * tests/test-stdint.c (main): Likewise.
35254         * tests/test-stdio.c (main): Likewise.
35255         * tests/test-stdlib.c (main): Likewise.
35256         * tests/test-strchrnul.c (main): Likewise.
35257         * tests/test-strerror.c (main): Likewise.
35258         * tests/test-string.c (main): Likewise.
35259         * tests/test-strtod.c (main): Likewise.
35260         * tests/test-strverscmp.c (main): Likewise.
35261         * tests/test-symlink.c (main): Likewise.
35262         * tests/test-symlinkat.c (main): Likewise.
35263         * tests/test-sys_stat.c (main): Likewise.
35264         * tests/test-sys_time.c (main): Likewise.
35265         * tests/test-time.c (main): Likewise.
35266         * tests/test-unistd.c (main): Likewise.
35267         * tests/test-unlink.c (main): Likewise.
35268         * tests/test-unlinkat.c (main): Likewise.
35269         * tests/test-utimens.c (main): Likewise.
35270         * tests/test-utimensat.c (main): Likewise.
35271         * tests/test-version-etc.c (main): Likewise.
35272         * tests/test-wchar.c (main): Likewise.
35273         * tests/test-wctype.c (main): Likewise.
35274         * tests/test-xprintf-posix.c (main): Likewise.
35275         * tests/test-posixtm.c (main): Likewise.
35276         (STREQ): Delete unused macro.
35277         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35278         shadowed variables.
35279         * tests/test-memchr.c (main): Likewise.
35280
35281 2009-10-21  Eric Blake  <ebb9@byu.net>
35282
35283         areadlinkat: avoid failure on older glibc
35284         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35285         rather than mis-comparing 0 against FUNC_RESULT of char*.
35286
35287 2009-10-21  Bruno Haible  <bruno@clisp.org>
35288
35289         * modules/stpncpy (License): Relicense under LGPLv2+.
35290         Reported by David Lutterkort <lutter@redhat.com>.
35291
35292 2009-10-20  Eric Blake  <ebb9@byu.net>
35293
35294         utimensat: work around Solaris 9 bug
35295         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35296         has trailing slash bugs.
35297         * tests/test-lutimens.h (test_lutimens): Enhance test.
35298         * tests/test-utimens.h (test_utimens): Likewise.
35299         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35300         * doc/posix-functions/utimes.texi (utimes): Likewise.
35301         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35302         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35303         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35304         * doc/posix-functions/futimens.texi (futimens): Likewise.
35305
35306         fdutimensat: new module
35307         * modules/fdutimensat: New file.
35308         * lib/fdutimensat.c (fdutimensat): Likewise.
35309         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35310         * MODULES.html.sh (File system functions): Mention module.
35311         * modules/fdutimensat-tests: New test.
35312         * tests/test-fdutimensat.c: Likewise.
35313
35314         doc: regenerate INSTALL
35315         * doc/INSTALL: Reflect recent autoconf update.
35316         * doc/INSTALL.ISO: Likewise.
35317         * doc/INSTALL.UTF-8: Likewise.
35318
35319 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35320
35321         acl: warn if ACL support is not detected
35322         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35323
35324 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35325
35326         * lib/nproc.h: Add extern "C" block for C++.
35327
35328 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35329             Bruno Haible  <bruno@clisp.org>
35330
35331         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35332         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35333         * doc/posix-functions/isalpha.texi: Likewise.
35334         * doc/posix-functions/isblank.texi: Likewise.
35335         * doc/posix-functions/iscntrl.texi: Likewise.
35336         * doc/posix-functions/isdigit.texi: Likewise.
35337         * doc/posix-functions/isgraph.texi: Likewise.
35338         * doc/posix-functions/islower.texi: Likewise.
35339         * doc/posix-functions/isprint.texi: Likewise.
35340         * doc/posix-functions/ispunct.texi: Likewise.
35341         * doc/posix-functions/isspace.texi: Likewise.
35342         * doc/posix-functions/isupper.texi: Likewise.
35343         * doc/posix-functions/isxdigit.texi: Likewise.
35344
35345 2009-10-18  Bruno Haible  <bruno@clisp.org>
35346
35347         Tests for module 'isblank'.
35348         * modules/isblank-tests: New file.
35349         * tests/test-isblank.c: New file.
35350
35351         New module 'isblank'.
35352         * lib/isblank.c: New file.
35353         * m4/isblank.m4: New file.
35354         * modules/isblank: New file.
35355         * doc/posix-functions/isblank.texi: Mention the new module.
35356
35357 2009-10-18  Bruno Haible  <bruno@clisp.org>
35358
35359         New module 'ctype'.
35360         * lib/ctype.in.h: New file.
35361         * m4/ctype.m4: New file.
35362         * modules/ctype: New file.
35363         * doc/posix-headers/ctype.texi: Mention the new module.
35364
35365 2009-10-18  Jim Meyering  <meyering@redhat.com>
35366
35367         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35368         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35369         right after its initialization, rather than farther down.
35370         Keeping these in close proximity makes it easier to ensure
35371         that each such variable is initialized.  E.g.,
35372
35373             LIB_CLOCK_GETTIME=
35374             AC_SUBST([LIB_CLOCK_GETTIME])
35375
35376         This change also increments these serial numbers.
35377         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35378         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35379         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35380
35381 2009-10-18  Bruno Haible  <bruno@clisp.org>
35382
35383         Don't let environment variables perturb build.
35384         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35385         (gl_PREREQ_GETHRXTIME): ... not here.
35386
35387 2009-10-18  Bruno Haible  <bruno@clisp.org>
35388
35389         Avoid symlink attack in localcharset module.
35390         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35391         (O_NOFOLLOW): Define fallback.
35392         (get_charset_aliases): Don't open the file if it is a symbolic link.
35393         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35394         gl_FCNTL_H.
35395         (gl_FCNTL_H): Require it.
35396         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35397         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35398         Reported by Fergal Glynn <fglynn@veracode.com>.
35399
35400 2009-10-18  Bruno Haible  <bruno@clisp.org>
35401
35402         Implement nproc for mingw.
35403         * lib/nproc.c: Include <windows.h>
35404         (num_processors): On native Windows platforms, try GetSystemInfo.
35405
35406 2009-10-18  Bruno Haible  <bruno@clisp.org>
35407
35408         Implement nproc for IRIX.
35409         * lib/nproc.c: Include <sys/sysmp.h>.
35410         (num_processors): On IRIX systems, try sysmp.
35411         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35412
35413 2009-10-18  Bruno Haible  <bruno@clisp.org>
35414
35415         Implement nproc for HP-UX.
35416         * lib/nproc.c: Include <sys/pstat.h>
35417         (num_processors): On HP-UX systems, try pstat_getdynamic.
35418         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35419         pstat_getdynamic.
35420
35421 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35422             Bruno Haible  <bruno@clisp.org>
35423
35424         Implement nproc for NetBSD, OpenBSD.
35425         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35426         (ARRAY_SIZE): New macro.
35427         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35428         * m4/nproc.m4: New file.
35429         * modules/nproc (Files): Add m4/nproc.m4.
35430         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35431         (Makefile.am): Instead, augment lib_SOURCES.
35432
35433 2009-10-18  Bruno Haible  <bruno@clisp.org>
35434
35435         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35436         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35437         sys/param.h.
35438
35439 2009-10-16  Eric Blake  <ebb9@byu.net>
35440
35441         utimensat: new module
35442         * modules/utimensat: New file.
35443         * lib/utimensat.c (utimensat): Likewise.
35444         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35445         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35446         so we can work around Linux bugs.
35447         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35448         * modules/sys_stat (Makefile.am): Substitute them.
35449         * lib/sys_stat.in.h (utimensat): Declare it.
35450         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35451         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35452         * modules/utimensat-tests: New test.
35453         * tests/test-utimensat.c: Likewise.
35454
35455         utimens: let lutimens work on non-symlinks
35456         * lib/utimens.c (lutimens): Fall back to utimens rather than
35457         failing with ENOSYS, when file is not a symlink.
35458         (utimens): Reduce redirection.
35459         * tests/test-lutimens.h (test_lutimens): Update test to cover
35460         non-symlinks.
35461         * tests/test-utimens.h (test_utimens): Update test to cover
35462         symlinks.
35463         * tests/test-utimens.c (main): Update caller.
35464
35465         utimens: cache whether utimensat syscall works
35466         * lib/utimens.c (utimensat_works_really): New cache variable.
35467         (fdutimens, lutimens): Use it to avoid failing syscall.
35468
35469         test-stat-time, test-utimens: improve portability
35470         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35471         ext4 on alpha, and for cygwin.
35472         * tests/test-utimens-common.h: New file.
35473         (nap): Factor delays into single function.
35474         * tests/test-lutimens.h (test_lutimens): Use new header.
35475         * tests/test-futimens.h (test_futimens): Likewise.
35476         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35477         timestamps to occur from same machine, as was done previously for
35478         test_utimens.
35479         * modules/utimens-tests (Files): Ship new file.
35480         * modules/futimens-tests (Files): Likewise.
35481         Reported in part by Jim Meyering.
35482
35483         sys_stat: sort replacement declarations
35484         * lib/sys_stat.in.h: Sort declarations.
35485         * lib/futimens.c (futimens): Fix typo.
35486
35487 2009-10-15  Jim Meyering  <meyering@redhat.com>
35488
35489         don't let environment settings perturb build
35490         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35491         could cause a configure-time and/or build-time malfunction.
35492         Typically, a configure-time function-in-library test is performed
35493         via code like this:
35494
35495           LIB_VAR=
35496           AC_SUBST([LIB_VAR])
35497           prefix_saved_LIBS=$LIBS
35498             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35499                        [test "$ac_cv_search_FUNC" = "none required" ||
35500                         LIB_VAR=$ac_cv_search_FUNC])
35501           LIBS=$prefix_saved_LIBS
35502
35503         However, in each of the files affected by this change, the LIB_VAR=
35504         initialization was omitted.  Thus, when set in the environment, its
35505         value would propagate into generated Makefiles when FUNC is not found
35506         in LIB_NAME.
35507         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35508         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35510
35511 2009-10-14  Eric Blake  <ebb9@byu.net>
35512
35513         fchdir: avoid infinite recursion in mingw
35514         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35515         recursing.
35516
35517         test-stat-time: port to mingw
35518         * tests/test-stat-time.c (force_unlink): Return a value.
35519         (test_ctime) [W32]: Fix compilation error.
35520         (nap): Don't call usleep with too large an argument.  Use
35521         force_unlink.
35522         * doc/pastposix-functions/usleep.texi (usleep): Document the
35523         portability issue.
35524
35525 2009-10-13  Jim Meyering  <meyering@redhat.com>
35526
35527         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35528         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35529         * modules/pipe-filter-ii: Likewise.
35530         * modules/sys_socket-tests: Likewise.
35531         * modules/tsearch-tests: Likewise.
35532         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35533         (check): Depend on it.
35534
35535 2009-10-12  Eric Blake  <ebb9@byu.net>
35536
35537         utimens-tests: port to NFS file systems
35538         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35539         comparisons to avoid spurious failures from timestamp drift
35540         between NFS machines.
35541
35542 2009-10-12  Eric Blake  <ebb9@byu.net>
35543
35544         stat-time-tests: minor cleanups
35545         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35546         * tests/test-stat-time.c (nap): Separate assignment from call.
35547         Suggested by Paolo Bonzini and Bruno Haible.
35548
35549         sys_stat: guarantee struct timespec
35550         * lib/sys_stat.in.h (includes): Always include <time.h>
35551         * modules/sys_stat (Depends-on): Add time.
35552         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35553         mode_t permission values.
35554         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35555         get at subsecond timestamps.
35556
35557 2009-10-10  Eric Blake  <ebb9@byu.net>
35558
35559         futimens: new module
35560         * modules/futimens: New file.
35561         * lib/futimens.c (futimens): Likewise.
35562         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35563         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35564         we can work around Linux bugs.
35565         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35566         * modules/sys_stat (Makefile.am): Substitute them.
35567         * lib/sys_stat.in.h (futimens): Declare it.
35568         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35569         * doc/posix-functions/futimens.texi (futimens): Likewise.
35570         * modules/futimens-tests: New test.
35571         * tests/test-futimens.c: Likewise.
35572
35573         utimens: introduce fdutimens
35574         * lib/utimens.h (fdutimens): New prototype.
35575         * lib/utimens.c (gl_futimens): Move guts...
35576         (fdutimens): ...to new interface.
35577         * tests/test-utimens.c (do_fdutimens): Use it.
35578
35579         utimens: add UTIME_NOW and UTIME_OMIT support
35580         * lib/utimens.c (validate_timespec, update_timespec): New helper
35581         functions.
35582         (gl_futimens, lutimens): Use them.
35583         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35584         stdbool, sys_stat.
35585         (Link): Mention resulting library dependency.
35586         * modules/utimecmp (Link): Likewise.
35587         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35588         (Makefile.am): Pick up library dependency.
35589         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35590         definition.
35591         * tests/test-sys_stat.c: Test the definitions.
35592         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35593         * NEWS: Document library dependency.
35594
35595         utimecmp: support symlink timestamps
35596         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35597         hashing when possible.  Use pathconf when available.
35598         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35599         * modules/utimecmp (Depends-on): Add lstat.
35600
35601         utimens: add lutimens interface
35602         * lib/utimens.c (lutimens): New function.
35603         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35604         * lib/utimens.h (lutimens): Declare new interface.
35605         * tests/test-utimens.c (main): Enhance test.
35606         * tests/test-lutimens.h (test_lutimens): New file.
35607         * modules/utimens-tests (Files): Distribute it.
35608         (Depends-on): Add symlink.
35609         (configure.ac): Check for usleep.
35610
35611         utimens: validate futimens usage
35612         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35613         fewer syscalls on failure later on.  Avoid compiler warning on
35614         mingw.
35615         * modules/utimens (Depends-on): Add dup2.
35616
35617         utimens: add test
35618         * modules/utimens-tests: New test.
35619         * tests/test-utimens.h: New file.
35620         * tests/test-futimens.h: Likewise.
35621         * tests/test-utimens.c: Likewise.
35622
35623         doc: mention timestamp portability issues
35624         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35625         instead.
35626         * doc/posix-functions/utime.texi (utime): Likewise.
35627         * doc/posix-functions/utimes.texi (utimes): Likewise.
35628         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35629         instead.
35630         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35631         module.
35632         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35633         Mention weakness with symlink timestamps.
35634         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35635         to utimensat/futimens instead.
35636         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35637
35638         test-dup2: enhance test
35639         * tests/test-dup2.c (main): Also check AT_FDCWD.
35640
35641         test-stat-time: avoid more spurious failures
35642         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35643         xfs; and avoid race if the two timestamps cross quantization edge.
35644
35645         relocatable: prefer 'file system' over 'filesystem'
35646         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35647         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35648         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35649         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35650         * lib/relocatable.c (compute_curr_prefix): Likewise.
35651
35652 2009-10-10  Jim Meyering  <meyering@redhat.com>
35653
35654         stat-time-tests: check for the usleep function
35655         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35656
35657 2009-10-10  Bruno Haible  <bruno@clisp.org>
35658
35659         * modules/xnanosleep: Put the Link section after the Include section.
35660
35661 2009-10-09  Eric Blake  <ebb9@byu.net>
35662
35663         dup2: work around FreeBSD 6.1 bug
35664         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35665         * doc/posix-functions/dup2.texi (dup2): Document it.
35666         Reported by Nelson H. F. Beebe and Jim Meyering.
35667
35668         test-stat-time: port to buggy NFS clients
35669         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35670         (test_ctime): Also skip test if mtime and ctime are skewed.
35671
35672         maint: prefer 'file system' over 'filesystem'
35673         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35674         * doc/posix-functions/lstat.texi (lstat): Likewise.
35675         * lib/file-has-acl.c (file_has_acl): Likewise.
35676         * lib/fwriteerror.c [TEST]: Likewise.
35677         * tests/test-areadlink.h (test_areadlink): Likewise.
35678         * tests/test-areadlinkat-with-size.c (main): Likewise.
35679         * tests/test-areadlinkat.c (main): Likewise.
35680         * tests/test-canonicalize-lgpl.c (main): Likewise.
35681         * tests/test-canonicalize.c (main): Likewise.
35682         * tests/test-fstatat.c (main): Likewise.
35683         * tests/test-linkat.c (main): Likewise.
35684         * tests/test-lstat.h (test_lstat_func): Likewise.
35685         * tests/test-mkdir.h (test_mkdir): Likewise.
35686         * tests/test-readlink.h (test_readlink): Likewise.
35687         * tests/test-remove.c (main): Likewise.
35688         * tests/test-rename.h (test_rename): Likewise.
35689         * tests/test-renameat.c (main): Likewise.
35690         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35691         * tests/test-symlink.h (test_symlink): Likewise.
35692         * tests/test-symlinkat.c (main): Likewise.
35693         * tests/test-unlink.h (test_unlink_func): Likewise.
35694         * tests/test-unlinkat.c (main): Likewise.
35695
35696         maint: make realtime library usage explicit
35697         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35698         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35699         * modules/settime (Link): Likewise.
35700         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35701
35702         test-stat-time: speed up execution
35703         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35704         warning on mingw.
35705         (nap): New helper function.
35706         (prepare_test): Use it to reduce sleep time.
35707         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35708         execution.
35709         * modules/stat-time-tests (configure.ac): Check for usleep.
35710
35711 2009-10-09  Jim Meyering  <meyering@redhat.com>
35712
35713         selinux-h: always use getfilecon wrappers
35714         * lib/getfilecon.c: New file.
35715         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35716         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35717         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35718         (fgetfilecon): Provide a stub.
35719         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35720         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35721         file unconditionally.
35722         When <selinux/selinux.h> is found, arrange to use wrappers.
35723         * modules/selinux-h (Files): Add getfilecon.c.
35724         (Makefile.am): Substitute include-next-related bits
35725         into the now-always-generated selinux/selinux.h file.
35726         * doc/glibc-functions/lgetfilecon.texi: New file.
35727         * doc/glibc-functions/fgetfilecon.texi: New file.
35728         * doc/glibc-functions/getfilecon.texi: New file.
35729         * doc/glibc-functions/getfilecon-desc.texi: New file.
35730         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35731         which to pull in the new files.
35732         * MODULES.html.sh (Misc): Add selinux-h.
35733
35734 2009-10-08  Jim Meyering  <meyering@redhat.com>
35735
35736         unistd: fix comment typo
35737         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35738
35739 2009-10-08  Eric Blake  <ebb9@byu.net>
35740
35741         areadlink: use SIZE_MAX consistently
35742         * modules/areadlink (Depends-on): Add stdint.
35743         * modules/areadlink-with-size (Depends-on): Likewise.
35744         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35745         gives NULL; drop sys/types, since unistd gives size_t; and add
35746         stdint for SIZE_MAX.
35747         (SIZE_MAX): Rely on headers.
35748         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35749         and add stdint.
35750         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35751         (SIZE_MAX): Likewise.
35752         (INITIAL_BUF_SIZE): Turn into enum.
35753         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35754
35755 2009-10-08  Jim Meyering  <meyering@redhat.com>
35756
35757         areadlinkat: avoid compilation failure
35758         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35759         Fix typo in comment.
35760
35761 2009-10-07  Eric Blake  <ebb9@byu.net>
35762
35763         areadlinkat-with-size: new module
35764         * modules/areadlinkat-with-size: New module.
35765         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35766         * lib/areadlink.h (areadlinkat): Declare it.
35767         * MODULES.html.sh (File system functions): Mention it.
35768         * modules/areadlinkat-with-size-tests: New test.
35769         * tests/test-areadlinkat-with-size.c: New file.
35770
35771         xreadlinkat: new module
35772         * modules/xreadlinkat: New module.
35773         * lib/xreadlinkat.c (xreadlinkat): New file.
35774         * lib/xreadlink.h (xreadlinkat): Declare it.
35775         * MODULES.html.sh (File system functions): Mention it.
35776
35777         areadlinkat: new module
35778         * lib/at-func.c (FUNC_FAIL): New define.
35779         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35780         * modules/areadlinkat: New module.
35781         * lib/linkat.c (areadlinkat): Move...
35782         * lib/areadlinkat.c (areadlinkat): ...to new file.
35783         * lib/areadlink.h (areadlinkat): Declare it.
35784         * modules/linkat (Depends-on): Add areadlinkat.
35785         * MODULES.html.sh (File system functions): Mention it.
35786         * modules/areadlinkat-tests: New test.
35787         * tests/test-areadlinkat.c: New file.
35788
35789         areadlink, areadlink-with-size: add tests
35790         * modules/areadlink-tests: New test.
35791         * modules/areadlink-with-size-tests: Likewise.
35792         * tests/test-areadlink.h: New file.
35793         * tests/test-areadlink.c: Likewise.
35794         * tests/test-areadlink-with-size.c: Likewise.
35795
35796         maint: minor cleanups
35797         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35798         _UNUSED_PARAMETER_ instead.
35799         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35800         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35801         * modules/linkat-tests (Files): Distribute test-link.h.
35802
35803         openat, utimens: whitespace cleanup
35804         * lib/openat.c: Prefer space throughout, rather than mix of 8
35805         spaces vs. tabs.
35806         * lib/at-func.c: Likewise.
35807         * lib/utimens.c: Likewise.
35808
35809         openat: avoid using wrong fd
35810         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35811         working directory chooses same fd.
35812         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35813
35814         mkdir, mkdirat: fix cygwin 1.5.x bug
35815         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35816         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35817         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35818         bug.
35819         (gl_PREREQ_MKDIR): Delete unused macro.
35820         * modules/mkdir (Files): Track file rename.
35821         (configure.ac): Update macro name.
35822         * modules/openat (Depends-on): Add mkdir.
35823         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35824
35825         mkdir, mkdirat: add tests
35826         * modules/mkdir-tests: New test.
35827         * tests/test-mkdir.h: New file.
35828         * tests/test-mkdir.c: Likewise.
35829         * tests/test-mkdirat.c: Likewise.
35830         * modules/openat-tests (Files): Add new files.
35831         (Makefile.am): Run new test.
35832
35833 2009-10-06  Eric Blake  <ebb9@byu.net>
35834
35835         doc: tweak *at function documentation
35836         * doc/posix-functions/faccessat.texi (faccessat): Mention
35837         known issue with replacement.
35838         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35839         * doc/posix-functions/linkat.texi (linkat): Likewise.
35840         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35841         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35842         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35843         * doc/posix-functions/renameat.texi (renameat): Likewise.
35844         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35845
35846         openat: fix GNU/Hurd bug in unlinkat
35847         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35848         broken.
35849         * doc/posix-functions/unlink.texi (unlink): Document this.
35850         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35851
35852         fdopendir: fix GNU/Hurd bug
35853         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35854         allowing non-directory fds.
35855         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35856         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35857         * modules/dirent (Makefile.am): Substitute it.
35858         * lib/dirent.in.h (fdopendir): Declare replacement.
35859         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35860         * tests/test-fdopendir.c (main): Test something other than
35861         /dev/null, since on Hurd that behaves like a directory.
35862
35863         test-symlink: port to GNU/Hurd
35864         * tests/test-symlink.h (test_symlink): Relax expected errno.
35865
35866         doc: tweak more cygwin information
35867         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35868         now compatible with glibc.
35869         * doc/posix-functions/getopt.texi (getopt): Likewise.
35870
35871         getopt-gnu: add another test
35872         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35873         guarantee behavior relied on by m4.
35874         * tests/test-getopt.c (main): Use it.
35875         * modules/getopt-posix-tests (Depends-on): Add setenv.
35876         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35877
35878         getopt: fix compilation on darwin
35879         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35880         include.
35881         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35882         Reported by Ludovic Courtès.
35883
35884 2009-10-06  Bruno Haible  <bruno@clisp.org>
35885
35886         * modules/size_max (Description): Discourage its use.
35887         Reported by Simon Josefsson.
35888
35889 2009-10-06  Jim Meyering  <meyering@redhat.com>
35890
35891         linkat: avoid compilation failure
35892         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35893
35894 2009-10-05  Eric Blake  <ebb9@byu.net>
35895
35896         linkat: support Linux 2.6.17
35897         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35898         linkat on Linux, but allow cache variable override.
35899         * lib/linkat.c (rpl_linkat): Define override.
35900         * modules/linkat (Depends-on): Add symlinkat.
35901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35902         * modules/unistd (Makefile.am): Substitute it.
35903         * lib/unistd.in.h (linkat): Declare replacement.
35904         Reported by Pádraig Brady.
35905
35906         quotearg: port test to systems with C.UTF-8 locale
35907         * tests/test-quotearg.c (struct result_strings): Add another
35908         member, differentiating between C.ASCII and C.UTF-8 handling.
35909         (compare_strings): Add parameter.
35910         (main): Adjust all callers.
35911
35912         getopt: avoid clash with FreeBSD _getopt_internal
35913         * lib/getopt.in.h (_getopt_internal): Override the name.
35914         * lib/getopt_int.h (includes): Pick up any overrides.
35915         Reported by Reuben Thomas.
35916
35917         hash: allow C89 compilation
35918         * lib/hash.c (check_tuning): Move declaration before statement.
35919         Reported by Reuben Thomas.
35920
35921 2009-10-05  Karl Berry  <karl@gnu.org>
35922
35923         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35924
35925 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35926             Bruno Haible  <bruno@clisp.org>
35927
35928         * lib/uname.c (uname): Use a table-driven algorithm to compute
35929         Windows NT versions.
35930
35931 2009-10-04  Bruno Haible  <bruno@clisp.org>
35932
35933         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35934         program_invocation_short_name.
35935         * modules/progname (configure.ac): Test for presence of
35936         program_invocation_short_name.
35937         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35938
35939 2009-10-04  Bruno Haible  <bruno@clisp.org>
35940
35941         * lib/progname.c (set_program_name): Fix comment.
35942         Reported by Jim Meyering.
35943
35944 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35945             Bruno Haible  <bruno@clisp.org>
35946
35947         * lib/uname.c: Include <string.h>.
35948         (uname): Do only one call to GetVersionEx in the common case.
35949
35950 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35951             Bruno Haible  <bruno@clisp.org>
35952
35953         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35954         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35955         (uname): Add support for Windows CE and various non-x86 CPU types.
35956
35957 2009-10-03  Bruno Haible  <bruno@clisp.org>
35958
35959         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35960         invocation to tests/configure.ac.
35961         Reported by Ian Beckwith <ianb@erislabs.net>.
35962
35963 2009-10-02  Eric Blake  <ebb9@byu.net>
35964
35965         fchdir: avoid compiler warning
35966         * lib/fchdir.c (canonicalize_file_name)
35967         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35968
35969         test-open: support mingw errno values
35970         * tests/test-open.h (test_open): Relax test.
35971         * tests/test-fopen.h (test_fopen): Likewise.
35972         * tests/test-openat-safer.c (main): Likewise.
35973
35974         open: fix opening directory on mingw
35975         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35976
35977         test-open: on GNU/Hurd, /dev/null is a directory
35978         * tests/test-fopen.h (main): Rename...
35979         (test_fopen): ...to this.  Use a guaranteed non-directory when
35980         confirming open behavior on trailing slash.
35981         * tests/test-openat-safer.c (main): Likewise.
35982         * tests/test-open.h (main): Likewise....
35983         (test_open): ...to this.
35984         * tests/test-fopen.c (main): Adjust caller.
35985         * tests/test-fopen-safer.c (main): Likewise.
35986         * tests/test-open.c (main): Likewise.
35987         * tests/test-fcntl-safer.c (main): Likewise.
35988         Reported by Samuel Thibault.
35989
35990         rename, fchdir: don't ignore chdir failure
35991         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35992         * lib/rename.c (rpl_rename) [W32]: Likewise.
35993         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35994         an empty destination directory if source cannot be renamed,
35995         although there is still possibility for failure.
35996         * doc/posix-functions/rename.texi (rename): Document the race.
35997         Reported by Jim Meyering.
35998
35999         maint: cleanup whitespace in recent commits
36000         * lib/rename.c (rpl_rename): Remove tabs.
36001         * tests/test-link.h (test_link): Likewise.
36002         * lib/fchdir.c (get_name): Likewise.
36003         Reported by Jim Meyering.
36004
36005 2009-10-02  Ben Pfaff  <blp@gnu.org>
36006
36007         relocatable-prog-wrapper: Add missing dependency on
36008         double-slash-root.
36009         * modules/relocatable-prog-wrapper: Add dependency.
36010         Reported by Ian Beckwith <ianb@erislabs.net>.
36011
36012 2009-10-02  Eric Blake  <ebb9@byu.net>
36013
36014         renameat: fix Solaris bugs
36015         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
36016         needed fixing.
36017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
36018         * modules/stdio (Makefile.am): Substitute it.
36019         * lib/stdio.in.h (renameat): Declare replacement.
36020         * lib/renameat.c (rpl_renameat): Implement fix.
36021
36022         renameat: new module
36023         * modules/renameat: New file.
36024         * lib/renameat.c (renameat): Likewise.
36025         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
36026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36027         * modules/stdio (Makefile.am): Substitute them.
36028         * lib/stdio.in.h (renameat): Declare it.
36029         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36030         * doc/posix-functions/renameat.texi (renameat): Likewise.
36031         * modules/renameat-tests: New test.
36032         * tests/test-renameat.c: Likewise.
36033
36034         rename: fix mingw bugs
36035         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
36036         directory overwrite bugs.
36037
36038         rename: fix another cygwin 1.5 bug
36039         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36040         checks.
36041         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36042         unnecessary cygwin workarounds.  Also work around bug with moving
36043         full directory onto an empty one.
36044         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36045
36046         rename-dest-slash: merge into rename module
36047         * modules/rename-dest-slash (Status): Mark obsolete.
36048         (Depends-on): Add rename.
36049         (Files): Let rename do it all.
36050         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36051         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36052         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36053         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36054         * lib/rename.c (rpl_rename): Update comments.
36055
36056         rename: fix cygwin 1.5.x bugs
36057         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
36058         * lib/rename.c (rpl_rename): Work around them.
36059         * modules/rename (Depends-on): Add same-inode.
36060
36061         rename: fix Solaris 10 bug
36062         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36063         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36064         was the only bug.
36065
36066         rename: fix Solaris 9 bug
36067         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36068         on non-directory.  Avoid calling exit.
36069         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36070         strdup.
36071         * modules/rename-tests (Depends-on): Drop lstat.
36072         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36073         (gl_PREREQ_RENAME): Delete unused macro.
36074
36075         rename-dest-slash: fix NetBSD bug
36076         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36077         links.
36078         * modules/rename-dest-slash (Depends-on): Add same-inode.
36079
36080         rename-tests: new test, exposes several platform bugs
36081         * modules/rename-tests: New file.
36082         * tests/test-rename.h: Likewise.
36083         * tests/test-rename.c: Likewise.
36084         * doc/posix-functions/rename.texi (rename): Improve documentation,
36085         including bugs that will eventually be fixed in gnulib.
36086
36087 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36088
36089         * lib/uname.c: Include <stdlib.h>
36090         (uname): Assume version info is available.
36091
36092 2009-10-02  Jim Meyering  <meyering@redhat.com>
36093
36094         gnu-web-doc-update: correct --help output
36095         * build-aux/gnu-web-doc-update: Make --help output relevant.
36096
36097         gnu-web-doc-update: add standard options
36098         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36099
36100         gnu-web-doc-update: New module.
36101         Use this script to automatically update the on-line web documentation
36102         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36103         * modules/gnu-web-doc-update: New file, from coreutils.
36104         * build-aux/gnu-web-doc-update: New script.
36105
36106 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36107
36108         link: LoadLibrary is not needed.
36109         * lib/link.c: Use GetModuleHandle.
36110
36111 2009-10-01  Eric Blake  <ebb9@byu.net>
36112
36113         getopt: bump serial number
36114         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36115         change.
36116
36117         tests: tighten link, rmdir, and remove tests
36118         * tests/test-link.h (includes): No need to use <config.h> here.
36119         Clean up if directory hard link was created, otherwise test for
36120         trailing '.'.
36121         * tests/test-linkat.c (main): Simplify.
36122         * tests/test-remove.c (main): Enhance test for trailing '.'.
36123         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36124
36125 2009-10-01  Jim Meyering  <meyering@redhat.com>
36126
36127         maint.mk: requiring "make major" was annoying, for a "minor" release.
36128         What is intended is "stable", to contrast with alpha and beta,
36129         so require "make stable", not "make major".
36130         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36131         (get_tool_versions): Likewise.
36132         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36133
36134 2009-09-30  Ben Pfaff  <blp@gnu.org>
36135
36136         Fix broken build of replacement for Windows tmpfile().
36137         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36138         flags argument added along with the 'mkostemp' module.
36139
36140 2009-09-28  Bruno Haible  <bruno@clisp.org>
36141
36142         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36143         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36144         to 'remove_elt'.
36145         (gl_list_remove): Update.
36146         * lib/gl_list.c (gl_list_remove): Update.
36147         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36148         to 'remove_elt'.
36149         (gl_oset_remove): Update.
36150         * lib/gl_list.c (gl_oset_remove): Update.
36151         Reported by Eric Blake.
36152
36153 2009-09-28  Eric Blake  <ebb9@byu.net>
36154
36155         doc: mention yet more cygwin 1.7 status
36156         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36157         cygwin.
36158         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36159         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36160
36161         argp: fix test failure
36162         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36163         that are not upper-case.  Pass correct range to tolower.
36164
36165 2009-09-27  Jim Meyering  <meyering@redhat.com>
36166
36167         test-yesno: work around sparc-dash here-document infelicity
36168         Without this change, the literal \177 byte in a here document
36169         would make dash 0.5.5.1-3 access uninitialized memory.
36170         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36171         Instead, use a marker, "@", and filter through tr to create the desired
36172         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36173
36174 2009-09-27  Bruno Haible  <bruno@clisp.org>
36175
36176         Disable untested support for new flavours of ACLs on AIX.
36177         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36178         progress.
36179         * lib/set-mode-acl.c (qset_acl): Likewise.
36180
36181 2008-12-07  Bruno Haible  <bruno@clisp.org>
36182
36183         Add support for new flavours of ACLs on AIX. (Untested.)
36184         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36185         (file_has_acl): Add support for newer AIX.
36186         * lib/set-mode-acl.c (qset_acl): Likewise.
36187         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36188         Rainer Tammer <tammer@tammer.net>.
36189
36190 2009-09-26  Eric Blake  <ebb9@byu.net>
36191
36192         argp: fix compilation of getopt
36193         * lib/getopt.in.h (includes): Use different guard than glibc.
36194         Reported by Sergey Poznyakoff.
36195
36196         doc: mention more cygwin 1.7 status
36197         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36198         bug.
36199         * doc/posix-functions/execl.texi (execl): Likewise.
36200         * doc/posix-functions/execle.texi (execle): Likewise.
36201         * doc/posix-functions/execlp.texi (execlp): Likewise.
36202         * doc/posix-functions/execv.texi (execv): Likewise.
36203         * doc/posix-functions/execve.texi (execve): Likewise.
36204         * doc/posix-functions/execvp.texi (execvp): Likewise.
36205         * doc/glibc-functions/canonicalize_file_name.texi
36206         (canonicalize_file_name): Cygwin 1.7 now provides this.
36207         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36208         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36209         on AT_SYMLINK_NOFOLLOW.
36210
36211 2009-09-24  Eric Blake  <ebb9@byu.net>
36212
36213         test-linkat: make test more robust
36214         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36215
36216         getopt: fix inclusion guards for cygwin
36217         * modules/getopt-posix (Depends-on): Add include-next.
36218         (Makefile.am): Substitute more items in replacement header.
36219         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36220         <getopt.h>.
36221         * lib/getopt.in.h (includes): Use split inclusion guard, and
36222         prefer <getopt.h> over include <unistd.h> when one is present.
36223         (option): Also override name of 'struct option'.
36224
36225         same-inode: revert prior change; it is not yet ready
36226         * NEWS: Undo mention of this change.
36227         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36228         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36229         * lib/cycle-check.c (cycle_check): Likewise.
36230         * lib/same.c (same_name): Likewise.
36231         * lib/at-func2.c (at_func2): Likewise.
36232
36233 2009-09-23  Eric Blake  <ebb9@byu.net>
36234
36235         linkat: new module
36236         * modules/linkat: New file.
36237         * lib/at-func2.c (at_func2): Likewise.
36238         * lib/linkat.c (linkat): Likewise.
36239         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36240         * lib/openat-priv.h (at_func2): Add declaration.
36241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36242         * modules/unistd (Makefile.am): Substitute them.
36243         * lib/unistd.in.h (linkat): Declare it.
36244         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36245         * doc/posix-functions/linkat.texi (linkat): Likewise.
36246         * doc/posix-functions/link.texi (link): Tweak wording.
36247         * tests/test-link.c (main): Move guts...
36248         * tests/test-link.h (test_link): ...into new file.
36249         * modules/linkat-tests: New test.
36250         * tests/test-linkat.c: Likewise.
36251         * modules/link-tests (Files): Ship new file.
36252         (Depends-on): Add stdbool.
36253
36254         dirname: add library-safe mdir_name
36255         * lib/dirname.h (mdir_name): New prototype.
36256         * lib/dirname.c (dir_name): Move guts...
36257         (mdir_name): ...to new function that avoids xalloc_die.
36258
36259         fchdir: another mingw fix
36260         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36261         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36262         on mingw (where it has not yet been ported), and make it optional
36263         elsewhere.
36264         (_gl_register_fd): Use it.
36265
36266         same-inode: make SAME_INODE tri-state, to port to mingw
36267         * NEWS: Mention this change.
36268         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36269         st_ino always being 0.
36270         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36271         * lib/cycle-check.c (cycle_check): Likewise.
36272         * lib/same.c (same_name): Likewise.
36273
36274         lstat: avoid mingw compilation error
36275         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36276         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36277         lstat ourselves.
36278         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36279         was adequate.
36280         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36281         the checks for lstat.
36282         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36283
36284         link: fix test failure on Solaris 9
36285         * lib/link.c (rpl_link): Don't assume link will catch bogus
36286         trailing slash on source.
36287
36288         test-symlinkat: enhance test
36289         * tests/test-readlink.c (main): Move guts...
36290         * tests/test-readlink.h (test_readlink): ...into new file.
36291         * tests/test-symlink.c (main): Move guts...
36292         * tests/test-symlink.h (test_symlink): ...into new file.
36293         * tests/test-symlinkat.c (main): Use new files for further
36294         coverage.
36295         (do_symlink, do_readlink): New helper functions.
36296         * modules/symlink-tests (Files): Ship new file.
36297         (Depends-on): Add stdbool.
36298         * modules/readlink-tests (Files): Ship new file.
36299         (Depends-on): Add stdbool.
36300         * modules/symlinkat-tests (Files): Use new files.
36301
36302 2009-09-23  Eric Blake  <ebb9@byu.net>
36303
36304         readlink: document portability issue with symlink length
36305         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36306         systems have bogus st_size on symlinks, and mention the
36307         areadlink-with-size module.
36308         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36309         * doc/posix-functions/readlink.texi (readlink): Mention the
36310         areadlink module, and ERANGE failure.
36311         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36312         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36313
36314         readlink: fix Solaris 9 bug with trailing slash
36315         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36316         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36317         * doc/posix-functions/readlink.texi (readlink): Document this.
36318         * modules/readlink-tests: New test.
36319         * tests/test-readlink.c: Likewise.
36320
36321         readlink: fix cygwin 1.5.x bug with return type
36322         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36323         * lib/unistd.in.h (readlink): Use ssize_t.
36324         * lib/readlink.c (readlink): Likewise.
36325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36326         * modules/unistd (Makefile.am): Substitute it.
36327         * lib/unistd.in.h (readlink): Declare replacement.
36328         * doc/posix-functions/readlink.texi (readlink): Document this.
36329
36330         symlink: use throughout gnulib
36331         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36332         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36333         symlink is not used.
36334         * modules/symlinkat (Depends-on): Add symlink.
36335         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36336         * modules/canonicalize-tests (Depends-on): Likewise.
36337         * modules/lstat-tests (Depends-on): Likewise.
36338         * modules/openat-tests (Depends-on): Likewise.
36339         * modules/remove-tests (Depends-on): Likewise.
36340         * modules/rmdir-tests (Depends-on): Likewise.
36341         * modules/unlink-tests (Depends-on): Likewise.
36342         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36343         * tests/test-canonicalize.c (symlink): Likewise.
36344         * tests/test-fstatat.c (symlink): Likewise.
36345         * tests/test-lstat.c (symlink): Likewise.
36346         * tests/test-remove.c (symlink): Likewise.
36347         * tests/test-rmdir.c (symlink): Likewise.
36348         * tests/test-unlink.c (symlink): Likewise.
36349         * tests/test-unlinkat.c (symlink): Likewise.
36350
36351         symlink: new module, for Solaris 9 bug
36352         * modules/symlink: New file.
36353         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36354         * lib/symlink.c: Likewise.
36355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36356         * modules/unistd (Makefile.am): Substitute them.
36357         * lib/unistd.in.h (symlink): Declare replacement.
36358         * MODULES.html.sh (File system functions): Mention it.
36359         * doc/posix-functions/symlink.texi (symlink): Likewise.
36360         * modules/symlink-tests: New test.
36361         * tests/test-symlink.c: Likewise.
36362
36363 2009-09-23  Bruno Haible  <bruno@clisp.org>
36364
36365         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36366         when needed.
36367         Test case: gnulib-tool --import --with-tests atexit inttypes.
36368         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36369
36370 2009-09-23  Bruno Haible  <bruno@clisp.org>
36371
36372         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36373         subcommand, not in a subshell.
36374
36375 2009-09-22  Eric Blake  <ebb9@byu.net>
36376
36377         unistd: sort replacement declarations
36378         * lib/unistd.in.h: Sort declarations.
36379
36380         open, openat: minor optimization
36381         * lib/open.c (open): If open succeeded, len is non-zero.
36382         * lib/openat.c (rpl_openat): Likewise.
36383
36384         link-follow: ensure correct result
36385         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36386         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36387         distinguish between possible failures.
36388
36389 2009-09-21  Eric Blake  <ebb9@byu.net>
36390
36391         fts: avoid compiler warning
36392         * lib/fts.c (dirent_inode_sort_may_be_useful)
36393         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36394
36395 2009-09-19  Bruno Haible  <bruno@clisp.org>
36396
36397         * lib/progreloc.c (canonicalize_file_name): New declaration.
36398
36399 2009-09-19  Eric Blake  <ebb9@byu.net>
36400
36401         link: fix quoting
36402         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36403
36404         openat: fix openat bugs on Solaris 9
36405         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36406         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36407         * modules/openat (Depends-on): Add open.
36408         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36409         * modules/fcntl-h (Makefile.am): Substitute it.
36410         * lib/fcntl.in.h (openat): Declare replacement.
36411         * doc/posix-functions/openat.texi (openat): Document this.
36412
36413         openat: move fstatat and unlinkat into correct files
36414         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36415         compiled.
36416         * lib/openat.c (fstatat, unlinkat): Move...
36417         * lib/fstatat.c (fstatat): ...into correct files.
36418         * lib/unlinkat.c (unlinkat): Likewise.
36419
36420         openat: fix unlinkat bugs on Solaris 9
36421         * lib/unlinkat.c (unlinkat): New file.
36422         * modules/openat (Depends-on): Add unlink.
36423         (Files): Distribute it.
36424         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36425         trailing slash behavior is broken.
36426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36427         * modules/unistd (Makefile.am): Substitute it.
36428         * lib/unistd.in.h (unlinkat): Declare replacement.
36429         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36430
36431         openat: fix fstatat bugs on Solaris 9
36432         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36433         stat.
36434         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36435
36436         test-unlinkat: enhance test, to expose Solaris 9 bug
36437         * tests/test-unlink.c (main): Factor guts...
36438         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36439         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36440         * tests/test-rmdir.c (main): Adjust caller.
36441         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36442         (unlinker): New helper function.
36443         (rmdirat): Enhance check.
36444         * modules/rmdir-tests (Depends-on): Add stdbool.
36445         * modules/unlink-tests (Depends-on): Likewise.
36446         (Files): Add test-unlink.h.
36447         * modules/openat-tests (Files): Likewise.
36448         (Depends-on): Add unlinkdir.
36449
36450         test-fstatat: new test, to expose Solaris 9 bugs
36451         * tests/test-stat.c (main): Factor guts...
36452         * tests/test-stat.h (test_stat_func): ...into new file.
36453         * tests/test-lstat.c (main): Factor guts...
36454         * tests/test-lstat.h (test_lstat_func): ...into new file.
36455         * tests/test-fstatat.c: New file.
36456         * modules/stat-tests (Files): Add test-stat.h.
36457         * modules/lstat-tests (Files): Add test-lstat.h.
36458         (Depends-on): Add stdbool.
36459         * modules/openat-tests (Depends-on): Add pathmax.
36460         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36461         (Makefile.am): Run new test.
36462
36463         remove: new module, for mingw and Solaris 9 bugs
36464         * modules/remove: New file.
36465         * lib/remove.c: Likewise.
36466         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36468         * modules/stdio (Makefile.am): Use them.
36469         * lib/stdio.in.h (remove): Declare replacement.
36470         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36471         * doc/posix-functions/remove.texi (remove): Likewise.
36472         * modules/remove-tests: New test.
36473         * tests/test-remove.c: Likewise.
36474
36475         unlink: new module, for Solaris 9 bug
36476         * modules/unlink: New file.
36477         * lib/unlink.c: Likewise.
36478         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36480         * modules/unistd (Makefile.am): Use them.
36481         * lib/unistd.in.h (stat): Declare replacement.
36482         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36483         * doc/posix-functions/unlink.texi (unlink): Likewise.
36484         * modules/unlink-tests: New test.
36485         * tests/test-unlink.c: Likewise.
36486
36487         lstat: fix Solaris 9 bug
36488         * lib/lstat.c (lstat): Also check for trailing slash on
36489         non-symlink, non-directories.  Use stat module to simplify logic.
36490         * doc/posix-functions/lstat.texi (lstat): Document it.
36491         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36492         (configure.ac): Check for symlink.
36493         * tests/test-lstat.c (main): Add more tests.
36494
36495         stat: add as dependency to other modules
36496         * modules/chown (Depends-on): Add stat.
36497         * modules/euidaccess (Depends-on): Likewise.
36498         * modules/fchdir (Depends-on): Likewise.
36499         * modules/isdir (Depends-on): Likewise.
36500         * modules/link (Depends-on): Likewise.
36501         * modules/lstat (Depends-on): Likewise.
36502         * modules/mkdir-p (Depends-on): Likewise.
36503         * modules/modechange (Depends-on): Likewise.
36504         * modules/open (Depends-on): Likewise.
36505         * modules/readlink (Depends-on): Likewise.
36506         * modules/same (Depends-on): Likewise.
36507
36508         stat: fix Solaris 9 bug
36509         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36510         slash.
36511         * lib/stat.c (rpl_stat): Work around it.
36512         * doc/posix-functions/stat.texi (stat): Update documentation.
36513
36514         stat: new module, for mingw bug
36515         * modules/stat: New file.
36516         * lib/stat.c: Likewise.
36517         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36518         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36519         * modules/sys_stat (Makefile.am): Use them.
36520         * lib/sys_stat.in.h (stat): Declare replacement.
36521         * lib/openat.c (fstatat): Deal with lstat and stat being function
36522         macros.
36523         * modules/openat (Depends-on): Add inline.
36524         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36525         * doc/posix-functions/stat.texi (stat): Likewise.
36526         * modules/stat-tests: New test.
36527         * tests/test-stat.c: Likewise.
36528
36529 2009-09-19  Jim Meyering  <meyering@redhat.com>
36530
36531         syntax-check: detect unnecessary inclusion of canonicalize.h
36532         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36533
36534 2009-09-19  Eric Blake  <ebb9@byu.net>
36535
36536         canonicalize-lgpl: adjust clients to use correct header
36537         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36538         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36539         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36540         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36541         * lib/progreloc.c (includes): Likewise.
36542
36543 2009-09-19  Jim Meyering  <meyering@redhat.com>
36544
36545         test-posixtm.c: correct a comment
36546         * tests/test-posixtm.c: Correct first-line comment.
36547         Spotted by Eric Blake.
36548
36549 2009-09-16  Jim Meyering  <meyering@redhat.com>
36550
36551         posixtm-tests: make T const-correct; add a test case
36552         * tests/test-posixtm.c (T): Declare const.
36553         Add a test for -(2^31+1).
36554         Remove useless can-succeed-only-in-2002 test.
36555
36556         posixtm-tests: adjust the sole failing test
36557         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36558         expected output matches what mktime now produces.  Cross-checked via
36559         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36560
36561         posixtm: move #ifdef'd tests into a new module
36562         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36563         * tests/test-posixtm.c: ... this new file.
36564         * modules/posixtm-tests: New module.
36565
36566 2009-09-19  Eric Blake  <ebb9@byu.net>
36567
36568         openat: simplify use of at-func.c
36569         * lib/at-func.c (includes): Include prerequisites here, to
36570         simplify requirements on client files.
36571         * lib/openat-priv.h: Add double-inclusion guard.
36572         * lib/faccessat.c (includes): Simplify.
36573         * lib/fchmodat.c (includes): Likewise.
36574         * lib/fchownat.c (includes): Likewise.
36575         * lib/mkdirat.c (includes): Likewise.
36576         * lib/mkfifoat.c (includes): Likewise.
36577         * lib/symlinkat.c (includes): Likewise.
36578
36579         openat: allow return of fd 0
36580         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36581         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36582         unistd-safer.
36583         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36584         <fcntl.h>; this module does not leak fds.
36585         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36586         must be allowed to return 0, leaving openat_safer to add the
36587         safety.
36588         (openat_permissive): Avoid writing to just-opened fd 2 if
36589         restoring the current directory fails.
36590         * lib/openat-die.c (openat_restore_fail): Add comment.
36591         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36592         (save_cwd): Guarantee safe fd, but without use of open_safer.
36593         * tests/test-openat.c: New test.
36594         * modules/openat-tests (Files, Makefile.am): Distribute and build
36595         new file.
36596
36597         relocatable-prog-wrapper: fix build
36598         * modules/relocatable-prog-wrapper (Files): Update name of
36599         canonicalize m4 file, broken on 2009-09-17.
36600         Reported by emad hajjar <aleppos@hotmail.com>.
36601
36602 2009-09-19  Bruno Haible  <bruno@clisp.org>
36603
36604         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36605         * lib/safe-alloc.c: Likewise.
36606         Reported by Ian Beckwith <ianb@erislabs.net>.
36607
36608 2009-09-18  Bruno Haible  <bruno@clisp.org>
36609
36610         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36611         Reported by <erobles@sensacd.com.mx>.
36612
36613 2009-09-17  Eric Blake  <ebb9@byu.net>
36614
36615         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36616         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36617         slashes when checking if last component is missing.
36618         * tests/test-canonicalize.c (main): Test this.
36619
36620         canonicalize, canonicalize-lgpl: honor // if distinct from /
36621         * modules/canonicalize (Files): Add double-slash-root.m4.
36622         * modules/canonicalize-lgpl (Files): Likewise.
36623         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36624         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36625         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36626         fallback definition.
36627         (canonicalize_filename_mode): Use it to protect //.
36628         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36629         (__realpath): Likewise.
36630         * tests/test-canonicalize.c (main): Test this.
36631         * tests/test-canonicalize-lgpl.c (main): Likewise.
36632         * modules/canonicalize-tests (Depends-on): Add same-inode.
36633         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36634
36635         canonicalize-lgpl: fix glibc bug with trailing slash
36636         * m4/canonicalize-lgpl.m4: Move contents...
36637         * m4/canonicalize.m4: ...here.
36638         (gl_CANONICALIZE_LGPL): Factor realpath check...
36639         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36640         glibc 2.3.5 bug, fixed 2005-04-27.
36641         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36642         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36643         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36644         * modules/canonicalize-lgpl (Files): Manage file rename.
36645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36646         * modules/stdlib (Makefile.am): Substitute witness.
36647         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36648         is needed.
36649         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36650         replacement is required.
36651         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36652         * doc/glibc-functions/canonicalize_file_name.texi
36653         (canonicalize_file_name): Document this.
36654         * doc/posix-functions/realpath.texi (realpath): Likewise.
36655
36656         canonicalize-lgpl: reject non-directory with trailing slash
36657         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36658         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36659         catches failures in glibc 2.3.5.
36660         * tests/test-canonicalize.c (main): Likewise.
36661
36662         canonicalize-lgpl: use native realpath if it works
36663         * lib/canonicalize-lgpl.c (realpath): Guard with
36664         FUNC_REALPATH_WORKS.
36665         * lib/stdlib.in.h (realpath): Make declaration optional based on
36666         HAVE_REALPATH.
36667         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36668         native realpath works.
36669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36670         * modules/stdlib (Makefile.am): Substitute witness.
36671
36672         canonicalize, canonicalize-lgpl: use <stdlib.h>
36673         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36674         (Include): Mention <stdlib.h>.
36675         (configure.ac): Mention functions we provide.
36676         * modules/canonicalize (configure.ac): Likewise.
36677         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36678         realpath if canonicalize_file_name is missing.
36679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36680         * modules/stdlib (Makefile.am): Substitute witnesses.
36681         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36682         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36683         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36684         * NEWS: Document this.
36685         * doc/glibc-functions/canonicalize_file_name.texi
36686         (canonicalize_file_name): Likewise.
36687         * doc/posix-functions/realpath.texi (realpath): Likewise.
36688         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36689
36690         test-canonicalize: consolidate into single C program
36691         * tests/test-canonicalize.sh: Delete; move setup into...
36692         * tests/test-canonicalize.c (main): ...the program, making it
36693         easier to run in debugger.  Add some tests.
36694         * modules/canonicalize-tests (Files): Remove unused file.
36695         (Depends-on): Add progname.
36696         (configure.ac, Makefile.am): Simplify.
36697
36698         test-canonicalize-lgpl: consolidate into single C program
36699         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36700         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36701         easier to run in debugger.  Add some tests.
36702         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36703         (configure.ac, Makefile.am): Simplify.
36704
36705         canonicalize: avoid resolvepath
36706         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36707         unnecessary checks.
36708         * lib/canonicalize.c (includes): Simplify.
36709         (canonicalize_file_name): Drop resolvepath implementation.
36710         * modules/canonicalize (Depends-on): Drop filenamecat.
36711
36712         canonicalize: don't lose errno
36713         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36714         over calls to free.
36715
36716         canonicalize: simplify errno handling
36717         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36718         assignment.
36719
36720         canonicalize, canonicalize-lgpl: update module dependencies
36721         * modules/canonicalize (Depends-on): Add extensions, lstat,
36722         pathmax, stdlib.
36723         (Files): Drop pathmax.h.
36724         (configure.ac): Adjust macro name.
36725         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36726         lstat, stdlib, sys_stat.
36727         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36728         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36729         extensions.
36730         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36731         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36732         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36733         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36734         declaration, if available.
36735         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36736         we can rely on the readlink module.
36737         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36738         (includes): Use <unistd.h> unconditionally.
36739
36740 2009-09-17  Eric Blake  <ebb9@byu.net>
36741
36742         maint: make Include sections of modules consistent
36743         * modules/alloca: Use only header name; no need to list #include.
36744         * modules/alloca-opt: Likewise.
36745         * modules/arpa_inet: Likewise.
36746         * modules/canon-host: Likewise.
36747         * modules/configmake: Likewise.
36748         * modules/dirent: Likewise.
36749         * modules/eealloc: Likewise.
36750         * modules/environ: Likewise.
36751         * modules/fchdir: Likewise.
36752         * modules/fcntl: Likewise.
36753         * modules/fcntl-h: Likewise.
36754         * modules/gethrxtime: Likewise.
36755         * modules/gettime: Likewise.
36756         * modules/ignore-value: Likewise.
36757         * modules/inet_ntop: Likewise.
36758         * modules/inet_pton: Likewise.
36759         * modules/inttypes: Likewise.
36760         * modules/isnand-nolibm: Likewise.
36761         * modules/isnanf-nolibm: Likewise.
36762         * modules/mbchar: Likewise.
36763         * modules/mbfile: Likewise.
36764         * modules/mbiter: Likewise.
36765         * modules/mbuiter: Likewise.
36766         * modules/netdb: Likewise.
36767         * modules/netinet_in: Likewise.
36768         * modules/nproc: Likewise.
36769         * modules/pagealign_alloc: Likewise.
36770         * modules/poll: Likewise.
36771         * modules/printf-frexp: Likewise.
36772         * modules/pthread: Likewise.
36773         * modules/putenv: Likewise.
36774         * modules/random_r: Likewise.
36775         * modules/relocatable-prog: Likewise.
36776         * modules/search: Likewise.
36777         * modules/select: Likewise.
36778         * modules/selinux-h: Likewise.
36779         * modules/settime: Likewise.
36780         * modules/signal: Likewise.
36781         * modules/size_max: Likewise.
36782         * modules/socklen: Likewise.
36783         * modules/ssize_t: Likewise.
36784         * modules/stdarg: Likewise.
36785         * modules/stdbool: Likewise.
36786         * modules/stddef: Likewise.
36787         * modules/stdint: Likewise.
36788         * modules/stdio: Likewise.
36789         * modules/stdlib: Likewise.
36790         * modules/string: Likewise.
36791         * modules/strings: Likewise.
36792         * modules/sys_file: Likewise.
36793         * modules/sys_ioctl: Likewise.
36794         * modules/sys_select: Likewise.
36795         * modules/sys_socket: Likewise.
36796         * modules/sys_stat: Likewise.
36797         * modules/sys_time: Likewise.
36798         * modules/sys_times: Likewise.
36799         * modules/sys_utsname: Likewise.
36800         * modules/sys_wait: Likewise.
36801         * modules/sysexits: Likewise.
36802         * modules/time: Likewise.
36803         * modules/times: Likewise.
36804         * modules/tmpfile: Likewise.
36805         * modules/trim: Likewise.
36806         * modules/unistd: Likewise.
36807         * modules/wchar: Likewise.
36808         * modules/wctype: Likewise.
36809
36810 2009-09-17  Bruno Haible  <bruno@clisp.org>
36811
36812         Make getdate.y compile on QNX and NetBSD 5 / i386.
36813         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36814         TIME_T_FITS_IN_LONG_INT.
36815         * lib/getdate.y (long_time_t): New type.
36816         (relative_time): Change type of 'seconds' field to long_time_t.
36817         (get_date): Update types of local variables. Check against overflow
36818         during conversion from long_time_t to time_t.
36819         Reported by Matt Kraai <kraai@ftbfs.org>
36820         and Hasso Tepper <hasso@netbsd.org>.
36821
36822 2009-09-17  Bruno Haible  <bruno@clisp.org>
36823
36824         * modules/COPYING: Update copyright years.
36825         * modules/README: Likeiwse.
36826         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36827         Reported by Ian Beckwith <ianb@erislabs.net>.
36828
36829 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36830
36831         * users.txt: Update references for gnuit package.
36832
36833 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36834
36835         * m4/getdelim.m4: Fix typo in copyright line.
36836
36837 2009-09-17  Bruno Haible  <bruno@clisp.org>
36838
36839         * lib/atoll.c: Use the standard header with GPL copyright.
36840         * lib/argz.in.h: Likewise.
36841         * lib/glob.c: Likewise.
36842         * lib/glob-libc.h: Likewise.
36843         * lib/random_r.c: Likewise.
36844         * lib/siglist.h: Likewise.
36845         * lib/strsignal.c: Likewise.
36846         Reported by Ian Beckwith <ianb@erislabs.net>.
36847
36848 2009-09-17  Eric Blake  <ebb9@byu.net>
36849
36850         rmdir: ensure correct dependency order
36851         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36852
36853 2009-09-17  Bruno Haible  <bruno@clisp.org>
36854
36855         Disable assertion that fails on NetBSD 5 / i386.
36856         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36857         Reported by Sam Steingold <sds@gnu.org>
36858         and Hasso Tepper <hasso@netbsd.org>.
36859
36860 2009-09-16  Eric Blake  <ebb9@byu.net>
36861
36862         unlinkdir: port to mingw
36863         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36864         on which no one can unlink a directory.
36865
36866         stdlib: sort witness names
36867         * modules/stdlib (Makefile.am): Sort replacements.
36868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36869         * lib/stdlib.in.h: Likewise.
36870
36871         parse-duration-tests: avoid link failure
36872         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36873         LIBINTL.
36874         Reported by Tom G. Christensen.
36875
36876         openat-tests: ensure unlinkat behaves like rmdir
36877         * tests/test-rmdir.c (main): Factor guts...
36878         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36879         * modules/rmdir-tests (Files): Ship new file.
36880         * modules/openat-tests: New test.
36881         * tests/test-unlinkat.c: Likewise.
36882
36883         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36884         * modules/rmdir-errno (Status, Notice): Now obsolete.
36885
36886         rmdir: work around cygwin 1.5.x and mingw bugs
36887         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36888         * lib/rmdir.c (rmdir): Work around it.
36889         * modules/rmdir (Status, Notice): No longer obsolete.
36890         (Files): Add dos.m4.
36891         (Depends-on): Add unistd.
36892         (configure.ac): Set witnesses.
36893         (License): Relax to LGPLv2+.
36894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36895         * modules/unistd (Makefile.am): Substitute witnesses.
36896         * lib/unistd.in.h (rmdir): Declare replacement.
36897         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36898         * modules/rmdir-tests: New tests.
36899         * tests/test-rmdir.c: Likewise.
36900
36901 2009-09-15  Eric Blake  <ebb9@byu.net>
36902
36903         fchdir: improve use of replacement functions
36904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36905         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36906         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36907         REPLACE_CLOSEDIR.
36908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36909         * modules/sys_stat (Makefile.am): Substitute correct witness.
36910         * modules/dirent (Makefile.am): Likewise.
36911         * modules/unistd (Makefile.am): Likewise.
36912         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36913         * lib/unistd.in.h (dup): Likewise.
36914         * lib/sys_stat.in.h (fstat): Likewise.
36915
36916         maint: ignore gnulib-tool temp files
36917         * .gitignore: Ignore files created during gnulib-tool --test.
36918
36919 2009-09-13  Jim Meyering  <meyering@redhat.com>
36920
36921         posixtm: don't reject a time that specify "60" as the number of seconds
36922         * lib/posixtm.c (posixtime): The code to reject invalid dates
36923         would also reject a time specified with the .60 suffix.
36924         But POSIX allows that, in order to accommodate leap seconds.
36925         So don't reject it.
36926         (main): Adjust tests accordingly.
36927         * modules/posixtm (Depends-on): Add stpcpy.
36928
36929 2009-09-11  Jim Meyering  <meyering@redhat.com>
36930
36931         announce-gen: include [$release_type] in emitted Subject:
36932         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36933         e.g., [stable] in the emitted Subject: line.
36934
36935 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36936
36937         Remove obsolete macros from several modules.
36938         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36939         obsolete Autoconf macros with their modern counterparts.
36940         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36941         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36942         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36943         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36944         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36945         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36946         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36947         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36948         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36949         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36950         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36951         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36952         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36953         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36954         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36955         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36956         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36957         * m4/time_r.m4 (gl_TIME_R): Likewise.
36958         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36959         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36960         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36961
36962         Fix copyright header in build-aux scripts.
36963         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36964         recommendation.
36965         * build-aux/ncftpput-ftp: Likewise.
36966         * build-aux/update-copyright: Likewise.
36967
36968 2009-09-09  Eric Blake  <ebb9@byu.net>
36969
36970         test-link: allow Linux choice of errno
36971         * tests/test-link.c (main): Relax test for alternate error.
36972
36973         strndup: fix improper m4 caching
36974         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36975         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36976         (gl_PREREQ_STRNDUP): Delete.
36977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36978         * modules/string (Makefile.am): Substitute it.
36979         * lib/string.in.h (strndup): Modernize prototype.
36980
36981         getcwd: port to mingw
36982         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36983         different from the POSIX assumptions made throughout the getcwd
36984         module; fortunately, the mingw getcwd does not need replacement.
36985         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36986         * modules/getcwd-tests: New test.
36987         * tests/test-getcwd.c: Likewise.
36988
36989         link: fix platform bugs
36990         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36991         * lib/link.c (link): Work around them.  Fix related mingw bug.
36992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36993         * modules/unistd (Makefile.am): Substitute it.
36994         * lib/unistd.in.h (link): Declare replacement.
36995         * doc/posix-functions/link.texi (link): Document this.
36996         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36997
36998         test-link: consolidate into single C program, test more cases
36999         * tests/test-link.sh: Delete.
37000         * tests/test-link.c: Test more error conditions.  Exposes bugs on
37001         at least Cygwin and Solaris.
37002         * modules/link-tests (Files): Remove unused file.
37003         (Depends-on): Add errno, sys_stat.
37004         (Makefile.am): Simplify.
37005
37006 2009-09-08  Bruno Haible  <bruno@clisp.org>
37007
37008         Work around towlower, towupper bug on mingw.
37009         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
37010         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
37011         * doc/posix-functions/towlower.texi: Mention the mingw bug.
37012         * doc/posix-functions/towupper.texi: Likewise.
37013         Reported by Eric Blake.
37014
37015 2009-09-08  Jim Meyering  <meyering@redhat.com>
37016
37017         build: don't try to run autoheader if we don't use it
37018         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
37019         is not used in configure.ac.
37020
37021 2009-09-08  Eric Blake  <ebb9@byu.net>
37022
37023         euidaccess: fix compilation error
37024         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
37025
37026         rawmemchr: relax license
37027         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
37028         okay.
37029         Reported by Jim Meyering.
37030
37031         mkfifoat: new module
37032         * modules/mkfifoat: New file.
37033         * lib/mkfifoat.c: Likewise.
37034         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
37035         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37036         * modules/sys_stat (Makefile.am): Use them.
37037         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
37038         * MODULES.html.sh (File system functions): Mention module.
37039         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37040         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37041         * modules/mkfifoat-tests: New test.
37042         * tests/test-mkfifoat.c: Likewise.
37043
37044         strchrnul: relax license
37045         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37046         okay.
37047         Reported by Jim Meyering.
37048
37049 2009-09-08  Eric Blake  <ebb9@byu.net>
37050
37051         fstatat: fix compilation on Solaris
37052         * lib/fstatat.c (includes): Add fcntl.h.
37053         Reported by Pádraig Brady.
37054
37055 2009-09-07  Eric Blake  <ebb9@byu.net>
37056
37057         rename: modernize replacement
37058         * modules/rename (Depends-on): Add stdio.
37059         (configure.ac): Declare witness.
37060         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
37061         stdio take care of replacement.
37062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37063         * modules/stdio (Makefile.am): Substitute them.
37064         * lib/stdio.in.h (rename): Declare replacement.
37065         * lib/rename.c (includes): Allow cross-compilation to non-windows
37066         machines.
37067         * doc/posix-functions/rename.texi (rename): Improve
37068         documentation.
37069
37070         stdio: sort witness names
37071         * modules/stdio (Makefile.am): Sort replacements.
37072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37073         * lib/stdio.in.h: Likewise.
37074
37075         getcwd: minor cleanups
37076         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37077         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37078
37079         openat: provide more convenience names
37080         * modules/faccessat (configure.ac): Add C witness.
37081         * lib/unistd.in.h (readlinkat): Fix typo.
37082         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37083         convenience wrappers.
37084         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37085         wrappers in syntax checks.
37086
37087 2009-09-06  Eric Blake  <ebb9@byu.net>
37088
37089         doc: fix comments in recent patches
37090         * lib/faccessat.c: Mention correct function.
37091         * lib/fchmodat.c: Likewise.
37092         * lib/fchownat.c: Likewise.
37093         * lib/symlinkat.c: Likewise.
37094         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37095         constants.
37096
37097         faccessat, symlinkat: continue cleanup of previous patch
37098         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37099         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37100         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37102         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37103         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37104         set.
37105
37106 2009-09-06  Bruno Haible  <bruno@clisp.org>
37107
37108         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37109         (fstatat): Declare if GNULIB_FSTATAT is set.
37110         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37111         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37112         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37113         * modules/fcntl-h (Files): Remove m4/openat.m4.
37114         * modules/sys_stat (Files): Remove m4/openat.m4.
37115         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37116         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37117         * modules/unistd (Files): Remove m4/openat.m4.
37118         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37119         GNULIB_OPENAT.
37120         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37121         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37122         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37123         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37124         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37125         gl_OPENAT_DEFAULTS.
37126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37127         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37128         Don't require gl_OPENAT_DEFAULTS.
37129         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37130         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37131         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37132         (gl_OPENAT_DEFAULTS): Remove macro.
37133
37134 2009-09-06  Bruno Haible  <bruno@clisp.org>
37135
37136         * modules/openat (configure.ac): Remove unneeded witness.
37137
37138 2009-09-06  Bruno Haible  <bruno@clisp.org>
37139
37140         Set errno to ENOSYS when a function is entirely unsupported.
37141         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37142         EOPNOTSUPP.
37143         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37144         * modules/chown (Depends-on): Remove errno.
37145
37146 2009-09-06  Bruno Haible  <bruno@clisp.org>
37147
37148         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37149
37150 2009-09-06  Bruno Haible  <bruno@clisp.org>
37151
37152         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37153
37154 2009-09-06  Ben Pfaff  <blp@gnu.org>
37155             Bruno Haible  <bruno@clisp.org>
37156
37157         Work around a glibc bug in strtok_r.
37158         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37159         Undefine if UNDEFINE_STRTOK_R is set.
37160         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37162         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37163         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37164         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37165         UNDEFINE_STRTOK_R.
37166         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37167
37168 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37169
37170         exclude: minor fix
37171         * lib/exclude.c: Include wctype.h
37172
37173 2009-09-06  Akim Demaille  <demaille@gostai.com>
37174
37175         bootstrap: improve error message
37176         * build-aux/bootstrap (find_tool): Upon failure, report the list
37177         of candidates.
37178         Honor the initial value of the envvar.
37179
37180 2009-09-05  Eric Blake  <ebb9@byu.net>
37181
37182         symlinkat: new module
37183         * modules/symlinkat: New file.
37184         * lib/symlinkat.c: Likewise.
37185         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37187         * modules/unistd (Makefile.am): Use them.
37188         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37189         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37190         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37191         * MODULES.html.sh (File system functions): Mention module.
37192         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37193         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37194         * modules/symlinkat-tests: New test.
37195         * tests/test-symlinkat.c: Likewise.
37196
37197         test-openat-safer: add more checks
37198         * tests/test-openat-safer.c (main): Check more code paths.
37199
37200 2009-09-05  Jim Meyering  <meyering@redhat.com>
37201
37202         syntax-check: detect unnecessary inclusion of openat.h
37203         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37204
37205 2009-09-05  Bruno Haible  <bruno@clisp.org>
37206
37207         Support towlower, towupper.
37208         * doc/posix-functions/towlower.texi: Mention module wctype.
37209         * doc/posix-functions/towupper.texi: Likewise.
37210         * lib/wctype.in.h (towlower, towupper): New functions.
37211         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37212         (ASSERT): New macro.
37213         (e): New variable.
37214         (main): Test also towlower, towupper. Test WEOF argument.
37215         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37216
37217 2009-09-05  Bruno Haible  <bruno@clisp.org>
37218
37219         Fix conversion behaviour when the input is invalid.
37220         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37221         mark occurring in first pass of indirect conversion.
37222         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37223         input.
37224         Found by clang's static analyzer.
37225
37226 2009-09-05  Bruno Haible  <bruno@clisp.org>
37227
37228         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37229         where direct conversion is possible.
37230
37231 2009-09-04  Eric Blake  <ebb9@byu.net>
37232
37233         openat: fail with ENOENT on empty name
37234         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37235         buffer.
37236
37237         link-follow: fix logic bug in prior patch
37238         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37239         reversed sense of yes and no in prior patch.  Avoid confusing
37240         compilation failure with desired semantics.
37241
37242         link-follow: accomodate mingw and cross-compilation
37243         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37244         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37245         cross-compilation results to -1, to make linkat easier to
37246         implement when cross-compiling.  Trivially support mingw.
37247         * modules/link-follow (configure.ac): Call new name.
37248         * NEWS: Mention this.
37249
37250 2009-09-03  Eric Blake  <ebb9@byu.net>
37251
37252         faccessat: compile replacement
37253         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37254         needed.
37255
37256         fts: fix compilation error
37257         * lib/fts.c (includes): Re-add "openat.h", for
37258         openat_needs_fchdir.
37259
37260         faccessat: new module
37261         * modules/faccessat: New file.
37262         * lib/faccessat.c: Likewise.
37263         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37265         * modules/unistd (Makefile.am): Use it.
37266         * lib/unistd.in.h (faccessat): Declare it.
37267         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37268         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37269         * MODULES.html.sh (File system functions): Mention it.
37270         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37271         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37272
37273         euidaccess: prefer POSIX over non-standard implementation
37274         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37275         * lib/euidaccess.c (euidaccess): Use it if available.
37276
37277         openat: make template easier to use
37278         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37279         AT_FUNC_F2 to be undefined.
37280         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37281         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37282         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37283         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37284         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37285         Likewise.
37286         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37287         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37288         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37289         Likewise.
37290
37291         openat: declare in POSIX headers
37292         * NEWS: Mention this.
37293         * modules/openat (configure.ac): Declare witnesses.
37294         (Depends-on): Add fcntl-h, sys_stat, unistd.
37295         (Include): Mention correct headers.
37296         * modules/fcntl-h (Depends-on): Add link-warning.
37297         (Files): Add openat.m4.
37298         (Makefile.am): Substitute witnesses.
37299         * modules/sys_stat (Files, Makefile.am): Likewise.
37300         * modules/unistd (Files, Makefile.am): Likewise.
37301         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37302         (gl_OPENAT_DEFAULTS): New macro.
37303         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37305         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37306         (SYS_STAT_H): Remove unused variable.
37307         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37308         * lib/fcntl--.h (includes): Remove unneeded header.
37309         * lib/openat-safer.c (includes): Likewise.
37310         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37311         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37312         appropriate headers.
37313         (__OPENAT_PREFIX): Delete.
37314         * lib/fcntl.in.h (openat): Provide declaration.
37315         (AT_FDCWD): Fix Solaris bug.
37316         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37317         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37318         * lib/fchmodat.c (includes):  Adjust to find declaration.
37319         * lib/fchownat.c (includes): Likewise.
37320         * lib/mkdirat.c (includes): Likewise.
37321         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37322         still visible.
37323
37324 2009-09-02  Eric Blake  <ebb9@byu.net>
37325
37326         errno: use consistently
37327         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37328         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37329         * lib/canonicalize.c (ELOOP): Likewise.
37330         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37331         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37332         * lib/lchown.c (EOPNOTSUPP): Likewise.
37333         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37334         * lib/savewd.c (ESTALE): Likewise.
37335         * lib/settime.c (ENOSYS): Likewise.
37336         * lib/utimens.c (ENOSYS): Likewise.
37337         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37338         * lib/chdir-safer.c (ELOOP): Likewise.
37339         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37340         * modules/c-stack (Depends-on): Add errno.
37341         * modules/canonicalize (Depends-on): Likewise.
37342         * modules/chdir-safer (Depends-on): Likewise.
37343         * modules/fdopendir (Depends-on): Likewise.
37344         * modules/inet_ntop (Depends-on): Likewise.
37345         * modules/inet_pton (Depends-on): Likewise.
37346         * modules/lchown (Depends-on): Likewise.
37347         * modules/openat (Depends-on): Likewise.
37348         * modules/savewd (Depends-on): Likewise.
37349         * modules/settime (Depends-on): Likewise.
37350         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37351
37352         fts: avoid leaking fds
37353         * modules/fts (Depends-on): Add cloexec.
37354         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37355         flag.
37356
37357         fts: make directory fds more robust
37358         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37359         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37360
37361         backupfile, chdir-long, fts, savedir: make safer
37362         * lib/backupfile.c (includes): Use "dirent--.h", since
37363         numbered_backup can write to stderr during readdir.
37364         * lib/savedir.c (includes): Likewise.
37365         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37366         emulation can write to stderr on failure.
37367         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37368         * lib/getcwd.c: Document why opendir_safer is unused.
37369         * lib/glob.c: Likewise.
37370         * lib/scandir.c: Likewise.
37371         * lib/openat-proc.c: Likewise, for open_safer.
37372         * modules/backupfile (Depends-on): Add dirent-safer.
37373         * modules/savedir (Depends-on): Likewise.
37374         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37375         * modules/chdir-long (Depends-on): Add openat-safer.
37376
37377         openat-safer: new module
37378         * modules/openat-safer: New file.
37379         * lib/openat-safer.c: Likewise.
37380         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37381         * lib/fcntl-safer.h (openat_safer): Declare.
37382         * lib/fcntl--.h (openat): Override.
37383         * MODULES.html.sh (File descriptor based I/O): Mention it.
37384         * lib/openat.h: Add double-inclusion guards.
37385         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37386         "fcntl--.h", so we can implement openat.
37387         * modules/openat-safer-tests: New test.
37388         * tests/test-openat-safer.c: New file.
37389
37390         dirent-safer: new module
37391         * modules/dirent-safer: New file.
37392         * lib/dirent--.h: Likewise.
37393         * lib/dirent-safer.h: Likewise.
37394         * lib/opendir-safer.c: Likewise.
37395         * m4/dirent-safer.m4: Likewise.
37396         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37397         * modules/dirent-safer-tests: New test.
37398         * tests/test-dirent-safer.c: New file.
37399         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37400
37401         fdopendir: optimize on mingw
37402         * lib/unistd.in.h (_gl_directory_name): New prototype.
37403         * lib/fchdir.c (_gl_directory_name): Implement it.
37404         (fchdir): Use it to simplify implementation.
37405         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37406         fchdir, when available, to avoid calling [f]chdir().
37407
37408         fdopendir: split into its own module
37409         * lib/openat.c (fdopendir): Move...
37410         * lib/fdopendir.c: ...into new file.
37411         * modules/fdopendir: New module.
37412         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37413         * modules/openat (Depends-on): Add fdopendir.
37414         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37415         fdopendir here.
37416         * modules/savedir (Depends-on): Only need fdopendir, not full
37417         openat.
37418         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37419         * lib/openat.h (fdopendir): Drop prototype.
37420         * lib/dirent.in.h (fdopendir): Provide prototype.
37421         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37422         * modules/dirent (Makefile.am): Substitute them.
37423         * MODULES.html.sh (File system functions): Mention it.
37424         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37425         * modules/fdopendir-tests: New file.
37426         * tests/test-fdopendir.c: Likewise.
37427
37428         fchdir: use more consistent macro convention
37429         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37430         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37431         REPLACE_FCHDIR, rather than relying on config.h macros.
37432         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37433         inside a single make-time REPLACE_FCHDIR block, rather than using
37434         the config.h FCHDIR_REPLACEMENT.
37435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37436         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37437         Manage fstat replacement.
37438         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37439         REPLACE_FCHDIR.
37440         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37441         (Makefile.am): Substitute REPLACE_FCHDIR.
37442         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37443         FCHDIR_REPLACEMENT.
37444         * lib/dup-safer.c (dup_safer): Likewise.
37445         * lib/dup2.c (rpl_dup2): Likewise.
37446         * lib/dup3.c (rpl_dup3): Likewise.
37447         * lib/open.c (rpl_open): Likewise.
37448
37449         fchdir: simplify error handling, and support dup3
37450         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37451         stdbool, malloc-posix, realloc-posix.
37452         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37453         (ensure_dirs_slot): Return false on allocation failure.
37454         (rpl_dup2): Delete.
37455         (_gl_register_dup): New function.
37456         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37457         (_gl_register_fd): Close fd on allocation failure.
37458         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37459         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37460         prototype.
37461         (rpl_dup2_fchdir): Delete prototype.
37462         * lib/open.c (open): Update caller.
37463         * lib/dup2.c (dup2): Track fchdir metadata.
37464         * lib/dup3.c (dup3): Likewise.
37465         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37467
37468 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37469
37470         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37471         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37472         don't pass arguments to AC_OUTPUT.
37473
37474 2009-09-02  Bruno Haible  <bruno@clisp.org>
37475
37476         * modules/mkdtemp (License): Relicense under LGPLv2+.
37477         Reported by Paolo Bonzini.
37478
37479 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37480
37481         Replace uses of obsolete autoconf macros in Jim's modules.
37482         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37483         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37484         can evoke a warning from autoconf when run with -Wobsolete
37485         enabled.  They were declared obsolete for good reasons (see
37486         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37487         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37488         should not continue using the deprecated macros.
37489         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37490         obsolete Autoconf macros with modern counterparts.
37491         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37492         * m4/dos.m4 (gl_AC_DOS): Likewise.
37493         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37494         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37495         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37496         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37497         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37498         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37499         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37500         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37501         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37502         Likewise.
37503         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37504         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37505         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37506         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37507         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37508         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37509
37510 2009-09-01  Eric Blake  <ebb9@byu.net>
37511
37512         fchdir: fix off-by-one bug in previous patch
37513         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37514         (_gl_unregister_fd): Delete useless if.
37515
37516 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37517
37518         maint.mk: sort the list of syntax-check rules
37519         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37520         easier to get a sense of progress when the rules are run sequentially
37521         and take a long time.
37522
37523 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37524
37525         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37526         * modules/netinet_in: Likewise.
37527         * modules/sys_file: Likewise.
37528         * modules/sys_ioctl: Likewise.
37529         * modules/sys_select: Likewise.
37530         * modules/sys_socket: Likewise.
37531         * modules/sys_stat: Likewise.
37532         * modules/sys_time: Likewise.
37533         * modules/sys_times: Likewise.
37534         * modules/sys_utsname: Likewise.
37535         * modules/sys_wait: Likewise.
37536
37537 2009-09-01  Jim Meyering  <meyering@redhat.com>
37538
37539         fts: help ensure that return values are not ignored
37540         * lib/fts_.h (__GNUC_PREREQ): Define.
37541         (__attribute_warn_unused_result__): Define.
37542         (fts_children, fts_close, fts_open, fts_read): Declare with
37543         __attribute_warn_unused_result__.
37544
37545         fts: fts_close now fails also when closing a dir file descriptor fails
37546         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37547         and propagate to caller, along with errno.
37548
37549         announce-gen: correct formatting in --help output
37550         * build-aux/announce-gen (usage): Move the one-line description in
37551         --help output "up", to where it belongs, just after Usage:.
37552
37553 2009-08-31  Eric Blake  <ebb9@byu.net>
37554
37555         fchdir: port to mingw
37556         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37557         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37558         opened, then use a substitute.
37559         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37560         replacement.
37561         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37562         (_gl_register_fd): No need to check stat if open already filters
37563         all directories.
37564         (fchdir): Fix error condition to match POSIX.
37565         * modules/fchdir (Depends-on): Add sys_stat.
37566         * doc/posix-functions/open.texi (open): Document the limitation.
37567         * modules/fchdir-tests: New file.
37568         * tests/test-fchdir.c: Likewise.
37569
37570         canonicalize: allow cross-testing from cygwin to mingw
37571         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37572         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37573         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37574         Likewise.
37575         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37576         target does not support symlinks.
37577         * tests/test-canonicalize-lgpl.sh: Likewise.
37578
37579         chown: avoid compilation warning on mingw
37580         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37581         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37582         mingw.
37583         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37584         * modules/chown (Depends-on): Add errno.
37585
37586 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37587
37588         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37589         command.
37590
37591 2009-08-31  Jim Meyering  <meyering@redhat.com>
37592
37593         canonicalize: remove useless initialization
37594         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37595         initialization of local, "end".
37596
37597 2009-08-30  Bruno Haible  <bruno@clisp.org>
37598
37599         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37600         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37601         ENOSYS.
37602
37603 2009-08-30  Bruno Haible  <bruno@clisp.org>
37604
37605         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37606         /usr/xpg4/bin/tr when it exists.
37607         * tests/test-pipe-filter-gi1.sh: Likewise.
37608
37609 2009-08-30  Bruno Haible  <bruno@clisp.org>
37610
37611         Work around deficient /usr/bin/id program on Solaris.
37612         * tests/test-file-has-acl.sh (ID): New variable.
37613         * tests/test-set-mode-acl.sh (ID): Likewise.
37614         * tests/test-copy-acl.sh (ID): Likewise.
37615         * tests/test-copy-file.sh (ID): Likewise.
37616
37617 2009-08-30  Bruno Haible  <bruno@clisp.org>
37618
37619         New module 'xstriconveh'.
37620         * lib/xstriconveh.h: New file.
37621         * lib/xstriconveh.c: New file.
37622         * modules/xstriconveh: New file.
37623
37624 2009-08-30  Bruno Haible  <bruno@clisp.org>
37625
37626         Make it easier to use mem_cd_iconveh.
37627         * lib/striconveh.h (iconveh_t): New type.
37628         (iconveh_open, iconveh_close): New declarations.
37629         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37630         with a single 'const iconveh_t *' argument.
37631         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37632         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37633         with a single 'const iconveh_t *' argument.
37634         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37635         * tests/test-striconveh.c (main): Update.
37636         * NEWS: Mention the change.
37637
37638 2009-08-30  Bruno Haible  <bruno@clisp.org>
37639
37640         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37641         problem.
37642
37643 2009-08-30  Bruno Haible  <bruno@clisp.org>
37644
37645         Work around iconv_open problem on Solaris.
37646         * lib/iconv_open-solaris.gperf: New file.
37647         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37648         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37649         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37650         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37651         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37652         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37653
37654 2009-08-29  Jim Meyering  <meyering@redhat.com>
37655
37656         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37657         * top/maint.mk (cvs-check): Remove target; it was just an alias
37658         to the better-named vc-diff-check.
37659         (maintainer-distcheck): Remove rule.  It was used only from
37660         the (alpha/beta/major) target, and all of its commands but one
37661         were coreutils-specific.
37662         (vc-dist): Remove rule.
37663         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37664         Run vc-diff-check, not vc-dist.
37665         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37666
37667 2009-08-27  Bruno Haible  <bruno@clisp.org>
37668
37669         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37670         of 0.
37671
37672 2009-08-27  Bruno Haible  <bruno@clisp.org>
37673
37674         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37675         compilers.
37676         * doc/func.texi: Document the SunPRO C bug.
37677
37678 2009-08-27  Bruno Haible  <bruno@clisp.org>
37679
37680         Fix link error on Solaris.
37681         * tests/test-parse-duration.c (xstrdup): Remove function.
37682
37683 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37684
37685         ignore-value: handle pointer types, too
37686         * lib/ignore-value.h (__attribute__): Remove definition.
37687         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37688         of a more concise and more-often effective "(void) i" statement.
37689         (ignore_ptr): New function to suppress warnings from functions that
37690         return pointers, and to make it explicit that one function doesn't
37691         handle all cases.
37692
37693 2009-08-25  Bruno Haible  <bruno@clisp.org>
37694
37695         dup2: work around a Linux bug.
37696         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37697         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37698         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37699         Reported by Simon Josefsson.
37700
37701 2009-08-25  Jim Meyering  <meyering@redhat.com>
37702
37703         libguestfs uses gnulib
37704         * users.txt: Add libguestfs.
37705
37706 2009-08-24  Eric Blake  <ebb9@byu.net>
37707
37708         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37709         * lib/pipe2.c (includes): Add binary-io.h.
37710         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37711
37712 2009-08-24  Bruno Haible  <bruno@clisp.org>
37713
37714         Tolerate declared but missing accept4 syscall.
37715         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37716         available.
37717         * lib/sys_socket.in.h (accept4): If the function is already present,
37718         override it.
37719         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37720         * modules/accept4 (Makefile.am): Compile accept4.c always.
37721         Reported by Paolo Bonzini and Eric Blake.
37722
37723 2009-08-23  Bruno Haible  <bruno@clisp.org>
37724
37725         New module 'accept4'.
37726         * lib/sys_socket.in.h (accept4): New declaration.
37727         * lib/accept4.c: New file.
37728         * m4/accept4.m4: New file.
37729         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37730         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37731         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37732         HAVE_ACCEPT4.
37733         * modules/accept4: New file.
37734         * doc/glibc-functions/accept4.texi: Mention the new module.
37735
37736 2009-08-24  Jim Meyering  <meyering@redhat.com>
37737
37738         progname: also set global program_invocation_name, when possible
37739         Before this change, a libtool-enabled program that calls glibc's
37740         error function would report the program name as
37741         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37742         * modules/progname (configure.ac): Check for a declaration of
37743         program_invocation_name.
37744         * lib/progname.c:  Include <errno.h>.
37745         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37746         Set program_invocation_name.
37747
37748 2009-08-23  Bruno Haible  <bruno@clisp.org>
37749
37750         * lib/dup3.c: Include <string.h>.
37751
37752 2009-08-23  Bruno Haible  <bruno@clisp.org>
37753
37754         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37755         * lib/pipe2.c (pipe2): Likewise.
37756         Suggested by Eric Blake.
37757
37758 2009-08-23  Bruno Haible  <bruno@clisp.org>
37759
37760         Tolerate declared but missing dup3 syscall.
37761         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37762         * lib/unistd.in.h (dup3): If the function is already present,
37763         override it.
37764         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37765         * modules/dup3 (Makefile.am): Compile dup3.c always.
37766         Reported by Paolo Bonzini.
37767
37768 2009-08-23  Bruno Haible  <bruno@clisp.org>
37769
37770         Tolerate declared but missing pipe2 syscall.
37771         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37772         available.
37773         * lib/unistd.in.h (pipe2): If the function is already present,
37774         override it.
37775         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37776         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37777         Reported by Paolo Bonzini.
37778
37779 2009-08-23  Bruno Haible  <bruno@clisp.org>
37780
37781         * lib/pipe2.c (pipe2): Move #ifs inside function.
37782
37783 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37784
37785         quotearg: document limitations of quote_these_too
37786         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37787         those limitations are created.
37788         * lib/quotearg.h (set_char_quoting): Document that digits and
37789         letters that are special after backslash are not permitted.
37790         (quotearg_char): Cross-reference set_char_quoting documentation.
37791
37792 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37793
37794         quotearg: implement custom_quoting_style
37795         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37796         right_quote fields.
37797         (set_custom_quoting): New public function.
37798         (quotearg_buffer_restyled): Add left_quote and right_quote
37799         arguments, handle them very much like locale quoting, and update
37800         all uses.
37801         (quotearg_n_custom): New public function.
37802         (quotearg_n_custom_mem): New public function.
37803         (quotearg_custom): New public function.
37804         (quotearg_custom_mem): New public function.
37805         * lib/quotearg.h: Prototype and document new public functions.
37806         (enum quoting_style): For escape_quoting_style and
37807         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37808         ignored even though they're otherwise like c_quoting_style.
37809         Add custom_quoting_style member and document with comparison to
37810         clocale_quoting_style.
37811         * tests/test-quotearg.c (custom_quotes): New array.
37812         (custom_results): New array.
37813         (main): Extend to test custom quoting.
37814
37815 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37816
37817         quotearg: fix right quote escaping when it's in quote_these_too
37818         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37819         quote, be sure to prepend only one backslash.
37820         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37821         (main): Test it.
37822
37823 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37824
37825         quotearg-tests: test escaping of embedded locale quotes
37826         * tests/test-quotearg.c (struct result_strings): Add member for
37827         new input.
37828         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37829         (inputs): Add new input.
37830         (results_g): Add expected results.
37831         (flag_results): Likewise.
37832         (locale_results): Likewise.
37833         (compare_strings): Check those.
37834
37835 2009-08-23  Bruno Haible  <bruno@clisp.org>
37836
37837         Tests for module 'dup3'.
37838         * modules/dup3-tests: New file.
37839         * tests/test-dup3.c: New file.
37840
37841         New module 'dup3'.
37842         * lib/unistd.in.h (dup3): New declaration.
37843         * lib/dup3.c: New file.
37844         * m4/dup3.m4: New file.
37845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37846         HAVE_DUP3.
37847         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37848         * modules/dup3: New file.
37849         * doc/glibc-functions/dup3.texi: Mention the new module.
37850
37851 2009-08-23  Bruno Haible  <bruno@clisp.org>
37852
37853         Tweak the dup2 test.
37854         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37855         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37856         the test file is still empty. Fix argument order of lseek.
37857
37858 2009-08-23  Bruno Haible  <bruno@clisp.org>
37859
37860         Avoid test link errors when the modules getopt-gnu, gettext are used.
37861         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37862         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37863
37864 2009-08-23  Bruno Haible  <bruno@clisp.org>
37865
37866         Fix getdtablesize() on mingw.
37867         * lib/getdtablesize.c (getdtablesize): Implement differently.
37868         * lib/unistd.in.h (getdtablesize): Improve comment.
37869
37870 2009-08-23  Bruno Haible  <bruno@clisp.org>
37871
37872         New module 'mkostemp'.
37873         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37874         * lib/stdlib.in.h (mksotemp): New declaration.
37875         * lib/mkostemp.c: New file, from glibc with modifications.
37876         * lib/tempname.h (GT_FILE): Remove outdated comment.
37877         (gen_tempname): Add flags argument.
37878         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37879         (__GT_FILE): Map to 1.
37880         (small_open, large_open): Remove macros.
37881         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37882         * lib/mkstemp.c (mkstemp): Update.
37883         * lib/mkdtemp.c (mkdtemp): Likewise.
37884         * m4/mkostemp.m4: New file.
37885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37886         HAVE_MKOSTEMP.
37887         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37888         HAVE_MKOSTEMP.
37889         * modules/mkostemp: New file, based on modules/mkstemp.
37890         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37891         * NEWS: Mention the change.
37892
37893 2009-08-23  Bruno Haible  <bruno@clisp.org>
37894
37895         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37896         Reported by Eric Blake.
37897
37898 2009-08-23  Bruno Haible  <bruno@clisp.org>
37899
37900         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37901         Reported by Eric Blake.
37902
37903 2009-08-23  Bruno Haible  <bruno@clisp.org>
37904
37905         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37906         * modules/pipe2 (Depends-on): Likewise.
37907
37908 2009-08-23  Eric Blake  <ebb9@byu.net>
37909
37910         fcntl-h: add O_TTY_INIT support
37911         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37912         * tests/test-fcntl-h.c (o): Test it.
37913         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37914
37915         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37916         * modules/fcntl: Move <fcntl.h> header replacement...
37917         * modules/fcntl-h: ...to new name, so as not to collide with
37918         like-named function.
37919         * tests/test-fcntl.c: Rename...
37920         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37921         * modules/fcntl-tests: Rename...
37922         * modules/fcntl-h-tests: ...to this.  Update test file name.
37923         * modules/chdir-long (Depends-on): Update clients.
37924         * modules/chdir-safer (Depends-on): Likewise.
37925         * modules/fcntl-safer (Depends-on): Likewise.
37926         * modules/fts (Depends-on): Likewise.
37927         * modules/mkancesdirs (Depends-on): Likewise.
37928         * modules/mkdir-p (Depends-on): Likewise.
37929         * modules/open (Depends-on): Likewise.
37930         * modules/savewd (Depends-on): Likewise.
37931         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37932         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37933
37934 2009-08-22  Bruno Haible  <bruno@clisp.org>
37935
37936         * modules/binary-io (License): Relicense under LGPL.
37937         * modules/pipe2 (License): Likewise.
37938
37939 2009-08-22  Bruno Haible  <bruno@clisp.org>
37940
37941         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37942         return value.
37943         * lib/pipe-filter-gi.c (filter_init): Likewise.
37944         Reported by Eric Blake.
37945
37946 2009-08-22  Bruno Haible  <bruno@clisp.org>
37947
37948         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37949         * modules/pipe (Depends-on): Add pipe2.
37950
37951 2009-08-22  Bruno Haible  <bruno@clisp.org>
37952
37953         Tests for module 'pipe2'.
37954         * modules/pipe2-tests: New file.
37955         * tests/test-pipe2.c: New file.
37956
37957         New module 'pipe2'.
37958         * lib/unistd.in.h (pipe2): New declaration.
37959         * lib/pipe2.c: New file.
37960         * m4/pipe2.m4: New file.
37961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37962         HAVE_PIPE2.
37963         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37964         * modules/pipe2: New file.
37965         * doc/glibc-functions/pipe2.texi: Mention the new module.
37966
37967 2009-08-22  Bruno Haible  <bruno@clisp.org>
37968
37969         Reference some new glibc functions.
37970         * doc/glibc-functions/accept4.texi: New file.
37971         * doc/glibc-functions/dup3.texi: New file.
37972         * doc/glibc-functions/mkostemp.texi: New file.
37973         * doc/glibc-functions/pipe2.texi: New file.
37974         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37975         (Glibc sys/socket.h): Refer to accept4.
37976         (Glibc unistd.h): Refer to dup3, pipe2.
37977         Reported by Eric Blake.
37978
37979 2009-08-22  Jim Meyering  <meyering@redhat.com>
37980             Bruno Haible  <bruno@clisp.org>
37981
37982         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37983         This makes it so packages using automake-1.11's silent-rules option
37984         can print e.g., a single "GEN    configmake.h" line, rather than
37985         the 30+ statements that perform the job.  If you want to see the
37986         actual commands, you can still run "make V=1".
37987         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37988         so that make output is abbreviated when those variables are defined
37989         appropriately.
37990         * modules/argz: Likewise.
37991         * modules/arpa_inet: Likewise.
37992         * modules/byteswap: Likewise.
37993         * modules/configmake: Likewise.
37994         * modules/dirent: Likewise.
37995         * modules/errno: Likewise.
37996         * modules/fcntl: Likewise.
37997         * modules/float: Likewise.
37998         * modules/fnmatch: Likewise.
37999         * modules/getopt-posix: Likewise.
38000         * modules/glob: Likewise.
38001         * modules/iconv_open: Likewise.
38002         * modules/inttypes: Likewise.
38003         * modules/localcharset: Likewise.
38004         * modules/locale: Likewise.
38005         * modules/math: Likewise.
38006         * modules/netdb: Likewise.
38007         * modules/netinet_in: Likewise.
38008         * modules/poll: Likewise.
38009         * modules/posix_spawnp-tests: Likewise.
38010         * modules/sched: Likewise.
38011         * modules/search: Likewise.
38012         * modules/selinux-h: Likewise.
38013         * modules/signal: Likewise.
38014         * modules/spawn: Likewise.
38015         * modules/stdarg: Likewise.
38016         * modules/stdbool: Likewise.
38017         * modules/stddef: Likewise.
38018         * modules/stdint: Likewise.
38019         * modules/stdio: Likewise.
38020         * modules/stdlib: Likewise.
38021         * modules/string: Likewise.
38022         * modules/strings: Likewise.
38023         * modules/sys_file: Likewise.
38024         * modules/sys_ioctl: Likewise.
38025         * modules/sys_select: Likewise.
38026         * modules/sys_socket: Likewise.
38027         * modules/sys_stat: Likewise.
38028         * modules/sys_time: Likewise.
38029         * modules/sys_times: Likewise.
38030         * modules/sys_utsname: Likewise.
38031         * modules/sys_wait: Likewise.
38032         * modules/sysexits: Likewise.
38033         * modules/time: Likewise.
38034         * modules/unistd: Likewise.
38035         * modules/wchar: Likewise.
38036         * modules/wctype: Likewise.
38037
38038 2009-08-22  Jim Meyering  <meyering@redhat.com>
38039
38040         announce-gen: detect write failure
38041         * build-aux/announce-gen: Add Coda at end.
38042         Remove equivalent-but-more-verbose block at top.
38043
38044 2009-08-19  Akim Demaille  <demaille@gostai.com>
38045
38046         bootstrap: --help to stdout.
38047         * bootstrap (usage): Don't send --help to stderr.
38048         Use a here doc instead of a long string.
38049
38050 2009-08-21  Eric Blake  <ebb9@byu.net>
38051
38052         test-popen-safer: split from test-popen
38053         * tests/test-popen.c (main): Move...
38054         * tests/test-popen.h: ...into new file.
38055         * tests/test-popen-safer2.c: New file.
38056         * modules/popen-tests (Files): Add test-popen.h.
38057         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
38058         Suggested by Bruno Haible.
38059
38060         test-fcntl-safer: split from test-open
38061         * tests/test-open.c (main): Move...
38062         * tests/test-open.h: ...into new file.
38063         * tests/test-fcntl-safer.c: New file.
38064         * modules/open-tests (Files): Add test-open.h.
38065         * modules/fcntl-safer-tests: New file.
38066         Suggested by Bruno Haible.
38067
38068         test-fopen-safer: split from test-fopen
38069         * tests/test-fopen.c (main): Move...
38070         * tests/test-fopen.h: ...into new file.
38071         * tests/test-fopen-safer.c: New file.
38072         * modules/fopen-tests (Files): Add test-fopen.h.
38073         * modules/fopen-safer-tests: New file.
38074         Suggested by Bruno Haible.
38075
38076 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38077
38078         popen-safer: test O_CLOEXEC at run-time.
38079         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38080
38081 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38082
38083         fcntl: move more flags to the header
38084         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38085         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38086         * lib/fcntl.in.h: Do both things here.
38087
38088 2009-08-21  Jim Meyering  <meyering@redhat.com>
38089
38090         consistently remove $@-t before redirecting to it
38091         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38092         * modules/alloca-opt: Likewise.
38093         * modules/byteswap: Likewise.
38094         * modules/fnmatch: Likewise.
38095         * modules/getopt-posix: Likewise.
38096         * modules/glob: Likewise.
38097         * modules/poll: Likewise.
38098         * modules/posix_spawnp-tests: Likewise.
38099         * modules/sys_socket: Likewise.
38100         * modules/sysexits: Likewise.
38101
38102 2009-08-21  Eric Blake  <ebb9@byu.net>
38103
38104         popen: simplify access to original popen
38105         * lib/popen.c (rpl_popen): No need to worry about popen being a
38106         macro.
38107         Reported by Bruno Haible.
38108
38109 2009-08-20  Eric Blake  <ebb9@byu.net>
38110
38111         build: avoid some compiler warnings
38112         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38113         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38114         type.
38115         (new_exclude_segment, excluded_file_pattern_p)
38116         (excluded_file_name_p): Reduce scope.
38117         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38118         old-style declaration.
38119
38120 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38121
38122         * tests/test-exclude1.sh: Handle Windows EOL.
38123         * tests/test-exclude2.sh: Likewise.
38124         * tests/test-exclude3.sh: Likewise.
38125         * tests/test-exclude4.sh: Likewise.
38126         * tests/test-exclude5.sh: Likewise.
38127         * tests/test-exclude6.sh: Likewise.
38128         * tests/test-exclude7.sh: Likewise.
38129
38130 2009-08-19  Akim Demaille  <demaille@gostai.com>
38131
38132         bootstrap: find sha1sum when named gsha1sum.
38133         * bootstrap (find_tool): New.
38134         ($SHA1SUM): New.
38135         Use it.
38136
38137 2009-08-20  Jim Meyering  <meyering@redhat.com>
38138
38139         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38140         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38141         expression that converts "." in a file name to "\." in the resulting
38142         regexp.  Start with a dummy statement, so that prior shell variable
38143         definitions are expanded portably.  Reported by Simon Josefsson.
38144
38145 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38146
38147         Fix polling for writeability of a screen buffer.
38148         * lib/poll.c: Distinguish input and screen buffers for the
38149         Win32 implementation.
38150         * lib/select.c: Likewise.
38151
38152 2009-08-19  Eric Blake  <ebb9@byu.net>
38153
38154         popen-safer: prevent popen from clobbering std descriptors
38155         * modules/popen-safer: New file.
38156         * lib/popen-safer.c: Likewise.
38157         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38158         * lib/stdio--.h (popen): Provide override.
38159         * lib/stdio-safer.h (popen_safer): Provide declaration.
38160         * tests/test-popen.c (includes): Partially test this.
38161         * modules/popen-safer-tests: New file, for more tests.
38162         * tests/test-popen-safer.c: Likewise.
38163         * MODULES.html.sh (file stream based Input/Output): Mention it.
38164
38165         tests: test some of the *-safer modules
38166         * modules/fopen-safer (Depends-on): Add fopen.
38167         * modules/fcntl-safer (Depends-on): Add fcntl.
38168         * modules/stdlib-safer (Depends-on): Add stdlib.
38169         (configure.ac): Set indicator.
38170         * modules/unistd-safer (configure.ac): Likewise.
38171         * modules/tmpfile-safer (configure.ac): Likewise.
38172         (Depends-on): Add tmpfile.
38173         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38174         active.
38175         * tests/test-fopen.c (includes): Test safer versions when they are
38176         in use.
38177         * tests/test-open.c (includes): Likewise.
38178
38179         popen: fix cygwin 1.5 bug when stdin closed
38180         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38181         * modules/popen: New file.
38182         * modules/popen-tests: Likewise.
38183         * tests/test-popen.c: Likewise.
38184         * m4/popen.m4: Likewise.
38185         * lib/popen.c: Likewise.
38186         * lib/stdio.in.h (popen): New declaration.
38187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38188         * modules/stdio (Makefile.am): Likewise.
38189         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38190
38191 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38192
38193         maint.mk: give full control over update-copyright exclusions
38194         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38195         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38196         (update-copyright): Don't force inclusion of top-level
38197         ChangeLog.  Don't force exclusion of all COPYING files, but make
38198         them the default exclusion instead.
38199
38200 2009-08-16  Bruno Haible  <bruno@clisp.org>
38201
38202         Fix test failures on Solaris 10.
38203         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38204         tests when Solaris iconv() is used.
38205         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38206         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38207         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38208         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38209         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38210
38211 2009-08-16  Bruno Haible  <bruno@clisp.org>
38212
38213         Fix test failures on Solaris 10.
38214         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38215         'tr' program and pass it as first argument.
38216         * tests/test-pipe-filter-gi1.sh: Likewise.
38217         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38218         program as first argument.
38219         * tests/test-pipe-filter-gi1.c (main): Likewise.
38220
38221 2009-08-16  Eric Blake  <ebb9@byu.net>
38222
38223         fpurge: fix previous commits
38224         * modules/fpurge (Makefile.am): Make replacement conditional,
38225         partially reverting 2007-04-29 change; missed in previous
38226         attempt.
38227         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38228         is missing.
38229
38230 2009-08-16  Bruno Haible  <bruno@clisp.org>
38231
38232         Clarify fpurge's effect on the file position.
38233         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38234         * tests/test-fpurge.c (main): Make a second pass for checking the file
38235         position.
38236
38237 2009-08-16  Bruno Haible  <bruno@clisp.org>
38238
38239         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38240         declaration of fpurge is missing.
38241         * tests/test-fpurge.c (main): Check that the file has not more contents
38242         than expected. Close the file before removing it.
38243
38244 2009-08-15  Eric Blake  <ebb9@byu.net>
38245
38246         fpurge: don't wrap working cygwin implementation
38247         * lib/fpurge.c (fpurge): Fix comment typo.
38248         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38249         1.7 to avoid replacement.
38250         * tests/test-fpurge.c (main): Enhance test.
38251
38252 2009-08-15  Eric Blake  <ebb9@byu.net>
38253         and Jim Meyering  <meyering@redhat.com>
38254
38255         test-update-copyright: skip if perl is insufficient
38256         * tests/test-update-copyright.sh: Failure to run maintainer tool
38257         should not cause testsuite failure on cygwin 1.5.
38258
38259 2009-08-14  Eric Blake  <ebb9@byu.net>
38260
38261         doc: mention more functions added in cygwin 1.7.0
38262         * doc/posix-headers/limits.texi (limits.h): Update for recent
38263         cygwin additions.
38264         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38265         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38266         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38267         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38268         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38269
38270 2009-08-14  Eric Blake  <ebb9@byu.net>
38271
38272         maint.mk: simplify update-copyright rule
38273         * top/maint.mk (update-copyright-local): Delete, and document how
38274         to do it in cfg.mk instead.
38275         (update-copyright-exclude-regexp): Delete, and document how to do
38276         it in .x-update-copyright instead.
38277         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38278         exclude ChangeLog.
38279
38280 2009-08-14  Bruno Haible  <bruno@clisp.org>
38281
38282         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38283
38284 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38285
38286         maint.mk: support update-copyright-env
38287         * top/maint.mk (update-copyright-env): Define place-holder.
38288         (update-copyright): Expand $(update-copyright-env) before
38289         invoking update-copyright.
38290
38291 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38292
38293         update-copyright: implement forced reformatting
38294         * build-aux/update-copyright: Implement and document
38295         UPDATE_COPYRIGHT_FORCE.
38296         * tests/test-update-copyright.sh: Test it.
38297
38298 2009-08-14  Eric Blake  <ebb9@byu.net>
38299         and Bruno Haible  <bruno@clisp.org>
38300
38301         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38302         * tests/test-locale.c: Revert previous patch related to NULL.
38303         * tests/test-stdio.c: Likewise.
38304         * tests/test-stdlib.c: Likewise.
38305         * tests/test-string.c: Likewise.
38306         * tests/test-unistd.c: Likewise.
38307         * modules/time-tests (Depends-on): Add verify.
38308         * modules/wchar-tests (Depends-on): Likewise.
38309         * tests/test-time.c: Test for NULL compliance.
38310         * tests/test-wchar.c: Likewise.
38311         * modules/locale (Depends-on): Add stddef.
38312         * modules/stdio (Depends-on): Likewise.
38313         * modules/stdlib (Depends-on): Likewise.
38314         * modules/string (Depends-on): Likewise.
38315         * modules/time (Depends-on): Likewise.
38316         * modules/unistd (Depends-on): Likewise.
38317         * modules/wchar (Depends-on): Likewise.
38318         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38319         * lib/stdlib.in.h (includes): Likewise.
38320         * lib/string.in.h (includes): Likewise.
38321         * lib/time.in.h (includes): Likewise.
38322         * lib/unistd.in.h (includes): Likewise.
38323         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38324         replaced.
38325         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38326         * m4/stddef_h.m4: New file.
38327         * modules/stddef: Likewise.
38328         * lib/stddef.in.h: Likewise.
38329         * modules/stddef-tests: Likewise.
38330         * tests/test-stddef.c: Likewise.
38331         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38332         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38333         * doc/posix-headers/locale.texi (locale.h): Likewise.
38334         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38335         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38336         * doc/posix-headers/string.texi (string.h): Likewise.
38337         * doc/posix-headers/time.texi (time.h): Likewise.
38338         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38339         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38340
38341 2009-08-14  Eric Blake  <ebb9@byu.net>
38342
38343         doc: improve git diff of texinfo files
38344         * .gitattributes: Add rule for *.texi files, with hint on how to
38345         use it.
38346         Copied from m4, and based on a report by Bruno Haible.
38347
38348 2009-08-14  Bruno Haible  <bruno@clisp.org>
38349
38350         Disable multithread support by default on Cygwin 1.5.x for real.
38351         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38352
38353 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38354
38355         update-copyright: much ado about intervals
38356         * build-aux/update-copyright: Implement and document
38357         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38358         of copyright year intervals.
38359         Also, document UPDATE_COPYRIGHT_YEAR.
38360         * tests/test-update-copyright.sh: Test it.
38361
38362         update-copyright: convert 2-digit to 4-digit years
38363         * build-aux/update-copyright: Implement and document.
38364         * tests/test-update-copyright.sh: Update.
38365
38366 2009-08-14  Jim Meyering  <meyering@redhat.com>
38367
38368         test-exclude: avoid coreutils "make check" failure
38369         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38370         just as in test-argmatch.c.
38371
38372 2009-08-13  Eric Blake  <ebb9@byu.net>
38373
38374         test-dup2: fix bad assumption
38375         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38376         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38377
38378         test-version-etc: fix CRLF portability issue
38379         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38380         recognize \r.
38381         * tests/test-argp-version-etc-1.sh: Likewise.
38382
38383         getopt: update client modules
38384         * modules/argp (Depends-on): Use getopt-gnu.
38385         * modules/git-merge-changelog (Depends-on): Likewise.
38386         * modules/long-options (Depends-on): Likewise.
38387         * modules/xstrtol (Depends-on): Likewise.
38388
38389 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38390
38391         * tests/test-version-etc.sh: Don't fail on different
38392         project/version.  Don't fail on CRLF differences.  Rewrite to use
38393         multiple -e instead of multiple sed forks, suggested by Eric Blake
38394         <ebb9@byu.net>.
38395         * tests/test-argp-version-etc-1.sh: Likewise.
38396
38397 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38398
38399         * tests/test-version-etc.sh: Don't fail on different
38400         project/version.
38401
38402 2009-08-12  Bruno Haible  <bruno@clisp.org>
38403
38404         Tests for modules 'getopt-posix', 'getopt-gnu'.
38405         * modules/getopt-posix-tests: New file.
38406         * tests/test-getopt.c: New file.
38407         * tests/test-getopt.h: New file.
38408         * tests/test-getopt_long.h: New file.
38409
38410         New modules 'getopt-posix', 'getopt-gnu'.
38411         * modules/getopt-gnu: New file, renamed from modules/getopt.
38412         * modules/getopt-posix: New file.
38413         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38414         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38415         (gl_GETOPT): Remove macro.
38416         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38417         Disable the test against BSD systems that declare optreset. Test
38418         against mingw bug. Test against lack of support of optional arguments
38419         on many platforms.
38420         * doc/glibc-headers/getopt.texi: Update module name and list of
38421         relevant platforms.
38422         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38423         'getopt-gnu' and more portability problems.
38424         * NEWS: Mention the changes.
38425
38426 2009-08-12  Bruno Haible  <bruno@clisp.org>
38427
38428         Ensure that optarg etc. get declared by <unistd.h>.
38429         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38430         AC_USE_SYSTEM_EXTENSIONS.
38431         * modules/getopt (Depends-on): Add 'extensions'.
38432
38433 2009-08-12  Bruno Haible  <bruno@clisp.org>
38434
38435         Avoid test link errors.
38436         * modules/pipe-filter-ii-tests (Makefile.am): Define
38437         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38438         * modules/pipe-filter-gi-tests (Makefile.am): Define
38439         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38440         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38441
38442 2009-08-12  Bruno Haible  <bruno@clisp.org>
38443
38444         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38445         gl_GETOPT_SUBSTITUTE before.
38446         (gl_GETOPT): Use it.
38447         * m4/argp.m4 (gl_ARGP): Update.
38448         Reported by Sergey Poznyakoff.
38449
38450         * m4/getopt.m4: Reorder macros.
38451         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38452         (gl_GETOPT_SUBSTITUTE): Remove macro.
38453
38454 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38455
38456         Minor improvement in gitlog-to-changelog
38457
38458         * build-aux/gitlog-to-changelog: New option `--format' makes
38459         output format string configurable.
38460
38461 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38462
38463         Optimize exclude: use hash tables for non-wildcard patterns.
38464
38465         * lib/exclude.c: Include hash.h and mbuiter.h
38466         (struct exclude_pattern, exclude_segment): New data types.
38467         (struct exclude): Rewrite.
38468         (fnmatch_pattern_has_wildcards): New function.
38469         (new_exclude_segment, free_exclude_segment): New functions.
38470         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38471         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38472         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38473         * modules/exclude: Depend on hash and mbuiter.
38474
38475         * modules/exclude-tests: New file.
38476         * tests/test-exclude.c: New file.
38477         * tests/test-exclude1.sh: New file.
38478         * tests/test-exclude2.sh: New file.
38479         * tests/test-exclude3.sh: New file.
38480         * tests/test-exclude4.sh: New file.
38481         * tests/test-exclude5.sh: New file.
38482         * tests/test-exclude6.sh: New file.
38483         * tests/test-exclude7.sh: New file.
38484
38485 2009-08-12  Bruno Haible  <bruno@clisp.org>
38486
38487         Ensure that getopt() gets declared by <unistd.h>.
38488         * lib/unistd.in.h: Conditionally include getopt.h.
38489         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38490         Set GNULIB_UNISTD_H_GETOPT.
38491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38492         GNULIB_UNISTD_H_GETOPT.
38493         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38494
38495 2009-08-12  Bruno Haible  <bruno@clisp.org>
38496
38497         Clarify logic.
38498         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38499         gl_replace_getopt instead of GETOPT_H.
38500
38501 2009-08-12  Bruno Haible  <bruno@clisp.org>
38502
38503         * m4/getopt.m4: Add comments.
38504
38505 2009-08-12  Bruno Haible  <bruno@clisp.org>
38506
38507         Disable multithread support by default on Cygwin 1.5.x.
38508         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38509         set gl_use_threads=no if not specified otherwise.
38510
38511 2009-08-11  Bruno Haible  <bruno@clisp.org>
38512
38513         Avoid compilation error on NetBSD 5.0.
38514         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38515         * tests/test-stdio.c: Likewise.
38516         * tests/test-stdlib.c: Likewise.
38517         * tests/test-string.c: Likewise.
38518         * tests/test-unistd.c: Likewise.
38519         Reported by Greg Troxel <gdt@ir.bbn.com>
38520         at <https://savannah.gnu.org/support/?106973>.
38521
38522 2009-08-11  Bruno Haible  <bruno@clisp.org>
38523
38524         * modules/dup2-tests (Depends-on): Remove close.
38525
38526         Undo 2009-07-19 commit.
38527         * modules/acl-tests (Depends-on): Remove close.
38528         * modules/binary-io-tests (Depends-on): Likewise.
38529         * modules/closein-tests (Depends-on): Likewise.
38530         * modules/flock-tests (Depends-on): Likewise.
38531         * modules/fsync-tests (Depends-on): Likewise.
38532         * modules/lseek-tests (Depends-on): Likewise.
38533         * modules/pipe-tests (Depends-on): Likewise.
38534         * modules/posix_spawn-tests (Depends-on): Likewise.
38535         * modules/posix_spawnp-tests (Depends-on): Likewise.
38536         * modules/stat-time-tests (Depends-on): Likewise.
38537         * modules/yesno-tests (Depends-on): Likewise.
38538
38539 2009-08-10  Bruno Haible  <bruno@clisp.org>
38540
38541         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38542
38543 2009-08-10  Bruno Haible  <bruno@clisp.org>
38544
38545         Fix a gcc warning.
38546         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38547
38548 2009-08-10  Bruno Haible  <bruno@clisp.org>
38549
38550         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38551         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38552         not only the first time.
38553         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38554         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38555         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38556         is 1, not only the the first time.
38557
38558 2009-08-10  Bruno Haible  <bruno@clisp.org>
38559
38560         Make it possible to use module 'gethostname' without module 'close'.
38561         * lib/unistd.in.h (close): Evoke a link error only if
38562         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38564         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38565         * modules/unistd (Makefile.am): Substitute
38566         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38567         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38568         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38569         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38570         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38571         * modules/sys_ioctl (Makefile.am): Substitute
38572         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38573         * modules/socket (configure.ac): On native Windows, set
38574         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38575         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38576         Reported by Sam Steingold <sds@gnu.org>.
38577
38578 2009-08-10  Bruno Haible  <bruno@clisp.org>
38579
38580         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38581         * modules/ioctl (configure.ac): Likewise.
38582
38583 2009-08-10  Bruno Haible  <bruno@clisp.org>
38584
38585         Avoid collision between gnulib wrapper and libintl wrapper.
38586         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38587         already defined in intl/printf.c.
38588         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38589         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38590
38591 2009-08-09  Bruno Haible  <bruno@clisp.org>
38592
38593         Make <sys/select.h> really self-contained, also on Solaris 10.
38594         * lib/sys_select.in.h: Include <string.h>.
38595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38596         Solaris 10 problem.
38597         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38598         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38599         Reported by Jim Meyering.
38600
38601 2009-08-09  Bruno Haible  <bruno@clisp.org>
38602
38603         Avoid warnings from 'aclocal' that are due to a use of macro name
38604         AM_XGETTEXT_OPTION that is not defined in automake.
38605         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38606         automake.
38607         * modules/error (configure.ac): Likewise.
38608         * modules/propername (configure.ac): Likewise.
38609         * modules/vasprintf (configure.ac): Likewise.
38610         * modules/verror (configure.ac): Likewise.
38611         * modules/xprintf (configure.ac): Likewise.
38612         * modules/xvasprintf (configure.ac): Likewise.
38613
38614 2009-08-08  Bruno Haible  <bruno@clisp.org>
38615
38616         Avoid compilation error in C++ mode.
38617         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38618         Reported by Sam Steingold <sds@gnu.org>.
38619
38620 2009-08-08  Bruno Haible  <bruno@clisp.org>
38621
38622         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38623         for the various Unix platforms.
38624         * doc/posix-headers/limits.texi: Update platforms list regarding
38625         HOST_NAME_MAX.
38626         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38627
38628 2009-08-07  Jim Meyering  <meyering@redhat.com>
38629
38630         selinux-at: fix typo in a comment
38631         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38632         Spotted by Paolo Bonzini.
38633
38634         selinux-at: remove redundant m4 code, add documentation
38635         * modules/selinux-at (configure.ac): Remove redundant code.
38636         LIB_SELINUX is already set via the dependent module, selinux-h.
38637         (Include): Add quotes around selinux-at.h.
38638         * lib/selinux-at.h: Add documentation.
38639         Reported by Bruno Haible in
38640         http://marc.info/?l=gnulib-bug&m=124958988300749
38641
38642 2009-08-07  Bruno Haible  <bruno@clisp.org>
38643
38644         Avoid link error on MacOS X 10.3 and 10.4.
38645         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38646         on non-ELF systems.
38647         * lib/argp-pv.c (argp_program_version): Likewise.
38648         Reported by Simon Josefsson.
38649
38650 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38651
38652         * tests/test-version-etc.sh: Use $EXEEXT.
38653
38654 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38655
38656         update-copyright: update documentation to point to maint.mk
38657         * build-aux/update-copyright: Here.
38658
38659 2009-08-06  Jim Meyering  <meyering@redhat.com>
38660
38661         maint.mk: support update-copyright-local
38662         * top/maint.mk (update-copyright-local): Define place-holder.
38663         (update-copyright): Depend on $(update-copyright-local).
38664
38665 2009-08-06  Jim Meyering  <meyering@redhat.com>
38666
38667         selinux-at: new module
38668         Initially written for coreutils, this module will soon be
38669         used by findutils, too.
38670         * MODULES.html.sh [Misc]: Add selinux-at.
38671         * lib/selinux-at.h: New file, from coreutils.
38672         * lib/selinux-at.c: Likewise.
38673         * modules/selinux-at: Likewise.
38674         (License): Change from LGPL to GPL, since it depends
38675         on the GPL'd openat module.
38676
38677         doc: update README
38678         * README: Remove references to cogito.
38679         Remove cvs-repo-updating instructions from 2007.
38680         Don't imply that CVS is better if you have limited disk space.
38681
38682 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38683
38684         update-copyright: support C-style comments
38685         * build-aux/update-copyright: Implement and document.
38686         * tests/test-update-copyright.sh: Test.
38687
38688 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38689
38690         update-copyright: support omitted "(C)"
38691         * build-aux/update-copyright: Implement and document.  Also,
38692         allow variable whitespace before "(C)".
38693         * tests/test-update-copyright.sh: Test.
38694
38695 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38696
38697         update-copyright: don't trip on non-FSF copyright statements
38698         * build-aux/update-copyright: Fix so that the first correctly
38699         formatted FSF copyright statement is recognized no matter what
38700         appears before it.  Update documentation.
38701         * tests/test-update-copyright.sh: Test that.
38702
38703 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38704
38705         update-copyright: clean up code a little
38706         * build-aux/update-copyright: Append "_re" to the name of any
38707         variable holding a regular expression.
38708         Replace "old" and "new" with "stmt" in variable names.
38709         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38710         handled correctly.
38711         Format code more consistently.
38712
38713 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38714
38715         update-copyright-tests: improve portability
38716         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38717         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38718
38719 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38720
38721         update-copyright: support @copyright{} and &copy;
38722         * build-aux/update-copyright: Implement and document.
38723         * tests/test-update-copyright.sh: Test.
38724
38725 2009-08-04  Jim Meyering  <meyering@redhat.com>
38726
38727         update-copyright-tests: correctly test EOL=\r\n handling
38728         * tests/test-update-copyright.sh: Put \r at the end of some lines
38729         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38730
38731         maint.mk: make update-copyright exclusion list more configurable
38732         * top/maint.mk (update-copyright): Default to excluding COPYING,
38733         but allow an override, in case someone does want to update that file.
38734
38735         maint.mk: don't update copyright date in COPYING
38736         * top/maint.mk (update-copyright): Exclude COPYING.
38737
38738         maint.mk: add a copyright-updating rule
38739         * top/maint.mk (update-copyright): New rule.
38740         Derived from coreutils/Makefile.am.
38741
38742         update-copyright: rename some variables
38743         * build-aux/update-copyright: Rename a few variables for clarity.
38744         Tweak syntax.  List Joel E. Denny as coauthor.
38745
38746 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38747
38748         update-copyright: fix bug for 2-digit last year and add tests
38749         * build-aux/update-copyright: Fix bug.
38750         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38751         specified.
38752         * modules/update-copyright-tests: New
38753         * tests/test-update-copyright.sh: New.
38754
38755 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38756
38757         update-copyright: handle leading tabs in line prefix
38758         * build-aux/update-copyright: Count leading tabs as 8 spaces
38759         when computing margin.  This helps with the formatting of
38760         ChangeLogs, for example.
38761         Fix documentation a little.
38762
38763 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38764
38765         update-copyright: support EOL=\r\n
38766         * build-aux/update-copyright: Implement that.
38767
38768 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38769
38770         update-copyright: automatically format copyright statements
38771         * build-aux/update-copyright: Implement that.
38772         Also, be a little more predictable and safer by always failing
38773         when the full copyright format is not perfectly recognized as an
38774         unbroken whole.  Discussed at
38775         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38776         Rewrite documentation.
38777
38778 2009-08-03  Bruno Haible  <bruno@clisp.org>
38779
38780         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38781
38782 2009-08-02  Bruno Haible  <bruno@clisp.org>
38783
38784         Tests for module 'uname'.
38785         * modules/uname-tests: New file.
38786         * tests/test-uname.c: New file.
38787
38788         New module 'uname'.
38789         * lib/uname.c: New file.
38790         * m4/uname.m4: New file.
38791         * modules/uname: New file.
38792         * doc/posix-functions/uname.texi: Mention the new module.
38793
38794 2009-08-02  Bruno Haible  <bruno@clisp.org>
38795
38796         Tests for module 'sys_utsname'.
38797         * modules/sys_utsname-tests: New file.
38798         * tests/test-sys_utsname.c: New file.
38799
38800         New module 'sys_utsname'.
38801         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38802         * m4/sys_utsname_h.m4: New file.
38803         * modules/sys_utsname: New file.
38804         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38805
38806 2009-08-02  Bruno Haible  <bruno@clisp.org>
38807
38808         Implicitly initialize the sockets library.
38809         * lib/gethostname.c: Include sockets.h.
38810         (rpl_gethostname): Invoke gl_sockets_startup.
38811         * lib/socket.c: Include sockets.h.
38812         (rpl_socket): Invoke gl_sockets_startup.
38813         * modules/gethostname (Depends-on): Add sockets.
38814         * modules/socket (Depends-on): Likewise.
38815         * tests/test-poll.c: Don't include sockets.h.
38816         (main): Don't invoke gl_sockets_startup.
38817         * tests/test-select.c: Don't include sockets.h.
38818         (main): Don't invoke gl_sockets_startup.
38819
38820 2009-08-02  Bruno Haible  <bruno@clisp.org>
38821
38822         Allow multiple calls to gl_sockets_startup.
38823         * lib/sockets.c (initialized_sockets_version): New variable.
38824         (gl_sockets_startup): Do nothing if already called for this or a higher
38825         version.
38826         (gl_sockets_cleanup): Reset initialized_sockets_version.
38827
38828 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38829
38830         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38831         different project/version.
38832
38833 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38834             Bruno Haible  <bruno@clisp.org>
38835
38836         Tests for module 'pipe-filter-gi'.
38837         * modules/pipe-filter-gi-tests: New file.
38838         * tests/test-pipe-filter-gi1.sh: New file.
38839         * tests/test-pipe-filter-gi1.c: New file.
38840         * tests/test-pipe-filter-gi2.sh: New file.
38841         * tests/test-pipe-filter-gi2-main.c: New file.
38842         * tests/test-pipe-filter-gi2-child.c: New file.
38843
38844         New module 'pipe-filter-gi'.
38845         * lib/pipe-filter-gi.c: New file.
38846         * modules/pipe-filter-gi: New file.
38847
38848 2009-08-02  Bruno Haible  <bruno@clisp.org>
38849             Paolo Bonzini  <bonzini@gnu.org>
38850
38851         Tests for module 'pipe-filter-ii'.
38852         * modules/pipe-filter-ii-tests: New file.
38853         * tests/test-pipe-filter-ii1.sh: New file.
38854         * tests/test-pipe-filter-ii1.c: New file.
38855         * tests/test-pipe-filter-ii2.sh: New file.
38856         * tests/test-pipe-filter-ii2-main.c: New file.
38857         * tests/test-pipe-filter-ii2-child.c: New file.
38858
38859         New module 'pipe-filter-ii'.
38860         * lib/pipe-filter.h: New file.
38861         * lib/pipe-filter-ii.c: New file.
38862         * lib/pipe-filter-aux.h: New file.
38863         * modules/pipe-filter-ii: New file.
38864
38865 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38866
38867         * lib/gc-libgcrypt.c: Change copyright to FSF.
38868         * lib/gc-gnulib.c: Likewise.
38869
38870 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38871
38872         * lib/gethostname.c: Include limits.h.
38873
38874 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38875             Bruno Haible  <bruno@clisp.org>
38876
38877         Ensure HOST_NAME_MAX as part of the gethostname module.
38878         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38879         define also HOST_NAME_MAX.
38880         * tests/test-gethostname.c: Include <limits.h>.
38881         (main): Check also HOST_NAME_MAX.
38882         * doc/posix-headers/limits.texi: Document the mingw problem.
38883
38884 2009-08-02  Bruno Haible  <bruno@clisp.org>
38885
38886         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38887         Add comments.
38888
38889 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38890
38891         * lib/gethostname.c: Add Windows wrapper.
38892         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38893         * modules/gethostname: Depend on sys_socket & errno, for also
38894         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38895         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38896
38897 2009-07-31  Jim Meyering  <meyering@redhat.com>
38898
38899         getloadavg: fix symbol name in comment
38900         * lib/getloadavg.c: Correct a typo I introduced when adding
38901         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38902         Matt Kraai spotted the problem.
38903
38904 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38905
38906         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38907         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38908         code also if ! defined N_NAME_POINTER.
38909         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38910         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38911         but the n_name member is a 12-byte array.
38912
38913 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38914
38915         update-copyright: generalize comment handling
38916         * build-aux/update-copyright: Handle copyright statements
38917         within more comment styles.
38918         Document usage.
38919         Report any file with an external copyright holder or parse failure.
38920
38921 2009-07-29  Jim Meyering  <meyering@redhat.com>
38922
38923         mktime: correct setting of REPLACE_MKTIME
38924         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38925
38926         update-copyright: new module
38927         * modules/update-copyright: New file.
38928         * build-aux/update-copyright: New file.
38929         * MODULES.html.sh (maint+release support): Add update-copyright.
38930
38931 2009-07-27  Bruno Haible  <bruno@clisp.org>
38932
38933         Fix compilation error when <ctime> is used and mktime is replaced.
38934         * lib/time.in.h (mktime): New declaration.
38935         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38936         REPLACE_MKTIME instead of defining mktime in config.h.
38937         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38938         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38939         Reported by Ross McFarland <rwmcfa1@neces.com>.
38940
38941 2009-07-27  Bruno Haible  <bruno@clisp.org>
38942
38943         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38944         Reported by Matt Kraai <mkraai@beckman.com>.
38945
38946 2009-07-25  Jim Meyering  <meyering@redhat.com>
38947
38948         maint.mk: avoid warnings about missing files
38949         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38950         diagnostic when .prev-version does not exist.
38951         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38952         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38953         nonexistent cfg.mk.
38954         Suggestions from Simon Josefsson.
38955
38956 2009-07-25  Bruno Haible  <bruno@clisp.org>
38957
38958         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38959         defined as macros. Needed on QNX 6.4.1.
38960         Reported by Matt Kraai <mkraai@beckman.com>.
38961
38962 2009-07-23  Jim Meyering  <meyering@redhat.com>
38963
38964         maint.mk: invoke "make dist" with a working value of XZ_OPT
38965         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38966
38967 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38968
38969         Make fseeko.c compile on QNX.
38970         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38971
38972 2009-07-22  Peter Simons  <simons@cryp.to>
38973
38974         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38975         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38976         * lib/md4.h: Likewise.
38977         * lib/md5.h: Likewise.
38978         * lib/sha1.h: Likewise.
38979         * lib/sha256.h: Likewise.
38980         * lib/sha512.h: Likewise.
38981
38982         tests-sha1: don't assign literal string to 'char *' variable
38983         * tests/test-sha1.c (main): Declare locals with "const" to match
38984         attributes of the right hand side.
38985
38986 2009-07-21  Eric Blake  <ebb9@byu.net>
38987
38988         dup2: fix more mingw problems
38989         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38990         fd to itself.
38991         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38992         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38993         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38994         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38995         care of mingw bugs.
38996
38997 2009-07-21  Jim Meyering  <meyering@redhat.com>
38998
38999         vc-list-files: avoid failure when /bin/sh is dash
39000         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
39001         On some Debian based systems, /bin/sh is a symlink to dash, and running
39002         this command would omit the "/" following each 'tests' prefix:
39003           dash -x build-aux/vc-list-files -C . tests
39004         That is because bash and dash work differently:
39005           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
39006           bash ok
39007           dash odd
39008
39009 2009-07-21  Eric Blake  <ebb9@byu.net>
39010
39011         dup2-tests: test previous patch
39012         * modules/dup2-tests: New file.
39013         * tests/test-dup2.c: Likewise.
39014         * tests/test-open.c (main): Avoid unspecified behavior.
39015         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
39016         test.
39017
39018         dup2: work around mingw and cygwin 1.5 bug
39019         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
39020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39021         * modules/unistd (Makefile.am): Substitute it.
39022         * lib/unistd.in.h (dup2): Declare the replacement.
39023         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
39024         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
39025         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
39026         * modules/execute (Depends-on): Add dup2.
39027         * modules/fseterr (Depends-on): Likewise.
39028         * modules/pipe (Depends-on): Likewise.
39029         * modules/posix_spawn-internal (Depends-on): Likewise.
39030
39031 2009-07-21  Bruno Haible  <bruno@clisp.org>
39032
39033         * modules/.gitattributes: New file.
39034
39035 2009-07-20  Bruno Haible  <bruno@clisp.org>
39036
39037         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
39038         (main): Use it.
39039
39040 2009-07-20  Eric Blake  <ebb9@byu.net>
39041
39042         test-pipe: make a bit more robust.
39043         * tests/test-pipe.c (myerr): Allow error messages regardless of
39044         what we do to stderr.
39045         (test_pipe): Rearrange to avoid deadlock.
39046         (child_main): Try a larger read, to ensure we avoided deadlock.
39047         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39048         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39049         if misused.
39050
39051 2009-07-19  Jim Meyering  <meyering@redhat.com>
39052
39053         fts: avoid false-positive cycle-detection
39054         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39055         for each new command line argument.
39056
39057 2009-07-19  Bruno Haible  <bruno@clisp.org>
39058
39059         Fix build error on mingw with the modules sys_select and unistd.
39060         * modules/acl-tests (Depends-on): Add close.
39061         * modules/binary-io-tests (Depends-on): Likewise.
39062         * modules/closein-tests (Depends-on): Likewise.
39063         * modules/flock-tests (Depends-on): Likewise.
39064         * modules/fsync-tests (Depends-on): Likewise.
39065         * modules/lseek-tests (Depends-on): Likewise.
39066         * modules/pipe-tests (Depends-on): Likewise.
39067         * modules/posix_spawn-tests (Depends-on): Likewise.
39068         * modules/posix_spawnp-tests (Depends-on): Likewise.
39069         * modules/stat-time-tests (Depends-on): Likewise.
39070         * modules/yesno-tests (Depends-on): Likewise.
39071
39072 2009-07-19  Bruno Haible  <bruno@clisp.org>
39073
39074         Unify conditionals.
39075         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39076         macros, not at the compiler macros.
39077         * lib/pipe.c: Likewise.
39078         * lib/execute.c: Likewise.
39079         * lib/spawni.c: Likewise.
39080
39081 2009-07-19  Bruno Haible  <bruno@clisp.org>
39082
39083         Fix handling of closed stdin/stdout/stderr on mingw.
39084         * lib/w32spawn.h: Include unistd.h.
39085         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39086         file descriptor with O_NOINHERIT flag.
39087         (fd_safer_noinherit): New function, based on fd-safer.c.
39088         (dup_safer_noinherit): New function, based on dup-safer.c.
39089         (undup_safer_noinherit): New function.
39090         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39091         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39092         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39093         instead of fd_safer.
39094         * tests/test-pipe.c: Include <windows.h>.
39095         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39096         result.
39097
39098         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39099         from main.
39100         (test_pipe): Pass an extra argument for disambiguation.
39101         (main): Invoke parent_main or child_main.
39102
39103         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39104         consistently.
39105
39106 2009-07-18  Eric Blake  <ebb9@byu.net>
39107
39108         test-pipe: fix mingw build
39109         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39110
39111 2009-07-18  Bruno Haible  <bruno@clisp.org>
39112
39113         * modules/pipe-tests (Makefile.am): Fix typo.
39114
39115 2009-07-18  Eric Blake  <ebb9@byu.net>
39116
39117         error: fix mingw build
39118         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39119         Reported by Bruno Haible.
39120
39121         error: avoid undefined use of stdout
39122         * lib/error.c (error, error_at_line): Check that fd 1 is open
39123         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39124         is handling faults and the close_stdout module wants to report the
39125         detection of closed stdout as an error.
39126
39127 2009-07-17  Eric Blake  <ebb9@byu.net>
39128
39129         pipe: be robust in face of closed fds
39130         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39131         should cause child to misbehave.
39132         * modules/pipe-tests: New module.
39133         * tests/test-pipe.c: New file.
39134         * tests/test-pipe.sh: New file.
39135         Reported by Akim Demaille.
39136
39137 2009-07-14  Bruno Haible  <bruno@clisp.org>
39138
39139         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39140         Reported by anonymous kc.
39141
39142 2009-07-07  Jim Meyering  <meyering@redhat.com>
39143
39144         maint.mk: don't look for translatable strings in *.m4 or *.mk
39145         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39146         when searching for translatable strings.
39147
39148 2009-07-05  Jim Meyering  <meyering@redhat.com>
39149
39150         remove superfluous parentheses in STREQ definition
39151         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39152         * lib/getugroups.c (STREQ): Likewise.
39153         * lib/fnmatch.c (STREQ): Likewise.
39154         Spotted by Bruno Haible.
39155
39156 2009-07-04  Jim Meyering  <meyering@redhat.com>
39157
39158         argv-iter: new module
39159         * MODULES.html.sh: Add argv-iter.
39160         * lib/argv-iter.c, lib/argv-iter.h: New files.
39161         * modules/argv-iter: New file.
39162         * modules/argv-iter-tests: New file.
39163         * tests/test-argv-iter.c: Test it.
39164
39165 2009-07-04  Bruno Haible  <bruno@clisp.org>
39166
39167         Fix assertion.
39168         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39169         contains more exact copies of a given entry than file2, leave the extra
39170         copies unpaired rather than aborting.
39171         Reported by Eric Blake.
39172
39173 2009-07-02  Bruno Haible  <bruno@clisp.org>
39174
39175         Speedup git-merge-changelog for git cherry-pick.
39176         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39177         (entries_mapping_get): New function, extracted from compute_mapping.
39178         (entries_mapping_reverse_get): New function.
39179         (compute_mapping): Add a 'full' argument. Return the result in a
39180         'struct entries_mapping'.
39181         (main): Update. Access the mappings through entries_mapping_get.
39182         Reported by Eric Blake.
39183
39184 2009-07-02  Bruno Haible  <bruno@clisp.org>
39185
39186         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39187         best_i.
39188
39189 2009-07-02  Bruno Haible  <bruno@clisp.org>
39190
39191         Speed up approximate search for matching ChangeLog entries.
39192         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39193         argument. Call fstrcmp_bounded instead of fstrcmp.
39194         (compute_mapping, try_split_merged_entry, main): Update callers.
39195
39196 2009-07-02  Bruno Haible  <bruno@clisp.org>
39197
39198         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39199
39200 2009-06-30  Bruno Haible  <bruno@clisp.org>
39201
39202         Reduce the number of uc_is_cased calls.
39203         * lib/unicase.h (casing_suffix_context_t): Add
39204         'first_char_except_ignorable' field.
39205         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39206         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39207         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39208         Update initializer.
39209         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39210         case-ignorable characters.
39211         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39212         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39213         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39214         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39215         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39216
39217 2009-06-30  Bruno Haible  <bruno@clisp.org>
39218
39219         Tests for module 'unicase/ignorable'.
39220         * modules/unicase/ignorable-tests: New file.
39221         * tests/unicase/test-ignorable.c: New file, generated by
39222         gen-uni-tables.
39223
39224         Tests for module 'unicase/cased'.
39225         * modules/unicase/cased-tests: New file.
39226         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39227         * tests/unicase/test-predicate-part1.h: New file, derived from
39228         tests/unictype/test-predicate-part1.h.
39229         * tests/unicase/test-predicate-part2.h: New file, same as
39230         tests/unictype/test-predicate-part2.h.
39231
39232         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39233         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39234         (output_casing_properties): New function.
39235         (main): Call it.
39236         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39237         * lib/unicase/cased.c: Include unictype/bitmap.h.
39238         (uc_is_cased): Define through a bitmap lookup.
39239         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39240         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39241         (uc_is_case_ignorable): Define through a bitmap lookup.
39242         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39243         lib/unictype/bitmap.h.
39244         (Depends-on): Add inline. Clean up.
39245         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39246         lib/unictype/bitmap.h.
39247         (Depends-on): Add inline. Clean up.
39248         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39249         recognition.
39250         * tests/unicase/test-u16-tolower.c (main): Likewise.
39251         * tests/unicase/test-u32-tolower.c (main): Likewise.
39252
39253 2009-06-30  Bruno Haible  <bruno@clisp.org>
39254
39255         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39256         * lib/unicase/u16-casemap.c: Likewise.
39257         * lib/unicase/u32-casemap.c: Likewise.
39258
39259 2009-06-29  Bruno Haible  <bruno@clisp.org>
39260
39261         Define u32_casefold as a wrapper around u32_ct_casefold.
39262         * lib/unicase/u32-casefold.c: Update.
39263         * modules/unicase/u32-casefold (Depends-on): Add
39264         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39265         unicase/empty-suffix-context. Clean up.
39266
39267         Define u16_casefold as a wrapper around u16_ct_casefold.
39268         * lib/unicase/u16-casefold.c: Update.
39269         * modules/unicase/u16-casefold (Depends-on): Add
39270         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39271         unicase/empty-suffix-context. Clean up.
39272
39273         Define u8_casefold as a wrapper around u8_ct_casefold.
39274         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39275         * lib/unicase/u8-casefold.c: Update.
39276         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39277         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39278
39279         Define u32_totitle as a wrapper around u32_ct_totitle.
39280         * lib/unicase/u32-totitle.c: Update.
39281         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39282         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39283
39284         Define u16_totitle as a wrapper around u16_ct_totitle.
39285         * lib/unicase/u16-totitle.c: Update.
39286         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39287         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39288
39289         Define u8_totitle as a wrapper around u8_ct_totitle.
39290         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39291         functions.
39292         (FUNC): Delegate to U_CT_TOTITLE.
39293         * lib/unicase/u8-totitle.c: Update.
39294         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39295         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39296
39297         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39298         invocation.
39299         * modules/unicase/u32-tolower (Depends-on): Add
39300         unicase/empty-prefix-context, unicase/empty-suffix-context.
39301
39302         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39303         invocation.
39304         * modules/unicase/u16-tolower (Depends-on): Add
39305         unicase/empty-prefix-context, unicase/empty-suffix-context.
39306
39307         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39308         * modules/unicase/u8-tolower (Depends-on): Add
39309         unicase/empty-prefix-context, unicase/empty-suffix-context.
39310
39311         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39312         invocation.
39313         * modules/unicase/u32-toupper (Depends-on): Add
39314         unicase/empty-prefix-context, unicase/empty-suffix-context.
39315
39316         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39317         invocation.
39318         * modules/unicase/u16-toupper (Depends-on): Add
39319         unicase/empty-prefix-context, unicase/empty-suffix-context.
39320
39321         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39322         * modules/unicase/u8-toupper (Depends-on): Add
39323         unicase/empty-prefix-context, unicase/empty-suffix-context.
39324
39325         New module 'unicase/u32-ct-casefold'.
39326         * lib/unicase/u32-ct-casefold.c: New file.
39327         * modules/unicase/u32-ct-casefold: New file.
39328
39329         New module 'unicase/u16-ct-casefold'.
39330         * lib/unicase/u16-ct-casefold.c: New file.
39331         * modules/unicase/u16-ct-casefold: New file.
39332
39333         New module 'unicase/u8-ct-casefold'.
39334         * lib/unicase/u8-ct-casefold.c: New file.
39335         * lib/unicase/u-ct-casefold.h: New file, derived from
39336         lib/unicase/u-casefold.h.
39337         * modules/unicase/u8-ct-casefold: New file.
39338
39339         New module 'unicase/u32-ct-totitle'.
39340         * lib/unicase/u32-ct-totitle.c: New file.
39341         * modules/unicase/u32-ct-totitle: New file.
39342
39343         New module 'unicase/u16-ct-totitle'.
39344         * lib/unicase/u16-ct-totitle.c: New file.
39345         * modules/unicase/u16-ct-totitle: New file.
39346
39347         New module 'unicase/u8-ct-totitle'.
39348         * lib/unicase/u8-ct-totitle.c: New file.
39349         * lib/unicase/u-ct-totitle.h: New file, derived from
39350         lib/unicase/u-totitle.h.
39351         * modules/unicase/u8-ct-totitle: New file.
39352
39353         New module 'unicase/u32-ct-tolower'.
39354         * lib/unicase/u32-ct-tolower.c: New file.
39355         * modules/unicase/u32-ct-tolower: New file.
39356
39357         New module 'unicase/u16-ct-tolower'.
39358         * lib/unicase/u16-ct-tolower.c: New file.
39359         * modules/unicase/u16-ct-tolower: New file.
39360
39361         New module 'unicase/u8-ct-tolower'.
39362         * lib/unicase/u8-ct-tolower.c: New file.
39363         * modules/unicase/u8-ct-tolower: New file.
39364
39365         New module 'unicase/u32-ct-toupper'.
39366         * lib/unicase/u32-ct-toupper.c: New file.
39367         * modules/unicase/u32-ct-toupper: New file.
39368
39369         New module 'unicase/u16-ct-toupper'.
39370         * lib/unicase/u16-ct-toupper.c: New file.
39371         * modules/unicase/u16-ct-toupper: New file.
39372
39373         New module 'unicase/u8-ct-toupper'.
39374         * lib/unicase/u8-ct-toupper.c: New file.
39375         * modules/unicase/u8-ct-toupper: New file.
39376
39377         Add context arguments to u*_casemap functions.
39378         * lib/unicase/unicasemap.h: Include unicase.h.
39379         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39380         suffix_context arguments.
39381         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39382         functions.
39383         (FUNC): Add prefix_context and suffix_context arguments. Use
39384         uc_is_cased and uc_is_case_ignorable.
39385         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39386         * lib/unicase/u16-casemap.c: Likewise.
39387         * lib/unicase/u32-casemap.c: Likewise.
39388         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39389         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39390         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39391         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39392         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39393         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39394
39395         New module 'unicase/u32-suffix-context'.
39396         * lib/unicase/u32-suffix-context.c: New file.
39397         * modules/unicase/u32-suffix-context: New file.
39398
39399         New module 'unicase/u16-suffix-context'.
39400         * lib/unicase/u16-suffix-context.c: New file.
39401         * modules/unicase/u16-suffix-context: New file.
39402
39403         New module 'unicase/u8-suffix-context'.
39404         * lib/unicase/u8-suffix-context.c: New file.
39405         * lib/unicase/u-suffix-context.h: New file.
39406         * modules/unicase/u8-suffix-context: New file.
39407
39408         New module 'unicase/empty-suffix-context'.
39409         * lib/unicase/empty-suffix-context.c: New file.
39410         * modules/unicase/empty-suffix-context: New file.
39411
39412         New module 'unicase/u32-prefix-context'.
39413         * lib/unicase/u32-prefix-context.c: New file.
39414         * modules/unicase/u32-prefix-context: New file.
39415
39416         New module 'unicase/u16-prefix-context'.
39417         * lib/unicase/u16-prefix-context.c: New file.
39418         * modules/unicase/u16-prefix-context: New file.
39419
39420         New module 'unicase/u8-prefix-context'.
39421         * lib/unicase/u8-prefix-context.c: New file.
39422         * lib/unicase/u-prefix-context.h: New file.
39423         * lib/unicase/context.h: New file.
39424         * modules/unicase/u8-prefix-context: New file.
39425
39426         New module 'unicase/empty-prefix-context'.
39427         * lib/unicase/empty-prefix-context.c: New file.
39428         * modules/unicase/empty-prefix-context: New file.
39429
39430         New module 'unicase/ignorable'.
39431         * lib/unicase/ignorable.c: New file.
39432         * modules/unicase/ignorable: New file.
39433
39434         New module 'unicase/cased'.
39435         * lib/unicase/caseprop.h: New file.
39436         * lib/unicase/cased.c: New file.
39437         * modules/unicase/cased: New file.
39438
39439         New functions for case mapping of substrings.
39440         * lib/unicase.h (casing_prefix_context_t): New type.
39441         (unicase_empty_prefix_context): New variable.
39442         (u8_casing_prefix_context, u16_casing_prefix_context,
39443         u32_casing_prefix_context, u8_casing_prefixes_context,
39444         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39445         declarations.
39446         (casing_suffix_context_t): New type.
39447         (unicase_empty_suffix_context): New variable.
39448         (u8_casing_suffix_context, u16_casing_suffix_context,
39449         u32_casing_suffix_context, u8_casing_suffixes_context,
39450         u16_casing_suffixes_context, u32_casing_suffixes_context,
39451         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39452         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39453         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39454         declarations.
39455
39456 2009-06-28  Jim Meyering  <meyering@redhat.com>
39457
39458         boostrap: indent only with spaces
39459         * build-aux/bootstrap: Indent only with spaces, never TABs.
39460
39461         bootstrap: split long lines
39462         * build-aux/bootstrap: Keep line length < 80.
39463
39464         bootstrap: sync from coreutils
39465         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39466         just as autoreconf does.  Verify a list of prerequisite
39467         package-name,version-number pairs if defined in bootstrap.conf.
39468         Refer to README-prereq, if prerequisites are not satisfied.
39469
39470 2009-06-27  Eric Blake  <ebb9@byu.net>
39471
39472         tests: add test for bogus NULL definition
39473         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39474         * tests/test-stdlib.c: Likewise.
39475         * tests/test-string.c: Likewise.
39476         * tests/test-locale.c: Likewise.
39477         * tests/test-unistd.c: Likewise.
39478         * modules/stdio-tests (Depends-on): Add verify.
39479         * modules/stdlib-tests (Depends-on): Likewise.
39480         * modules/string-tests (Depends-on): Likewise.
39481         * modules/locale-tests (Depends-on): Likewise.
39482         * modules/unistd-tests (Depends-on): Likewise.
39483
39484 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39485
39486         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39487         self-explaining comment.
39488         * m4/selinux-selinux-h: Update serial.
39489         (gl_LIBSELINUX): New macro, adding a warning for missing development
39490         packages to code extracted from...
39491         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39492         Add warning for missing development packages here, too.
39493
39494 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39495
39496         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39497
39498 2009-06-25  Eric Blake  <ebb9@byu.net>
39499
39500         version-etc: fix regression
39501         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39502         gcc.
39503         (version_etc): Use it, to catch bugs with trailing NULL.
39504         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39505         (version_etc_va): Fix logic bug.
39506         * modules/version-etc-tests: Add test.
39507         * tests/test-version-etc.c: New file.
39508         * tests/test-version-etc.sh: Likewise.
39509
39510 2009-06-25  Sam Steingold  <sds@gnu.org>
39511
39512         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39513         mbtowc declaration.
39514
39515 2009-06-25  Eric Blake  <ebb9@byu.net>
39516
39517         fpurge: migrate into <stdio.h>
39518         * lib/fpurge.h: Delete...
39519         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39520         * lib/fpurge.c (fpurge): Change declaring header.
39521         * modules/fpurge (Files): Drop deleted file.
39522         (Depends-on): Add stdio.
39523         (configure.ac): Set witness.
39524         * modules/stdio (Makefile.am): Support fpurge macros.
39525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39526         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39527         * lib/fflush.c: Update client.
39528         * tests/test-fpurge.c: Likewise.
39529         * NEWS: Mention the change.
39530
39531 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39532
39533         * lib/argp-version-etc.c (program_authors): Add const
39534         qualifier.
39535         * lib/version-etc.c: Fix typos in the comments.
39536         * modules/argp-version-etc: Depends on version-etc.
39537
39538 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39539
39540         argp-version-etc: new module.
39541
39542         * lib/argp-version-etc.c: New file.
39543         * lib/argp-version-etc.h: New file.
39544         * modules/argp-version-etc: New file.
39545         * modules/argp-version-etc-tests: New file.
39546         * tests/test-argp-version-etc.c: New test.
39547         * tests/test-argp-version-etc-1.sh: New test.
39548
39549 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39550
39551         Provide additional interfaces and documentation for version-etc
39552         module.
39553
39554         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39555         interfaces.
39556         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39557         prototypes.
39558
39559 2009-06-24  Bruno Haible  <bruno@clisp.org>
39560
39561         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39562         HAVE_LIB${NAME} macro.
39563         Reported by Sam Steingold <sds@gnu.org>.
39564
39565 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39566
39567         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39568         needed.
39569
39570 2009-06-21  Bruno Haible  <bruno@clisp.org>
39571
39572         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39573         work.
39574         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39575         together with LIB${NAME}, LTLIB${NAME}.
39576         Reported by Sam Steingold <sds@gnu.org>.
39577
39578 2009-06-20  Jim Meyering  <meyering@redhat.com>
39579
39580         tests: make sc_require_test_exit_idiom more generic
39581         * top/maint.mk (Exit_witness_file): New overridable variable.
39582         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39583         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39584
39585 2009-06-19  Jim Meyering  <meyering@redhat.com>
39586
39587         hash: reverse order of src/dst parameters in an internal interface
39588         * lib/hash.c (transfer_entries): Reverse order of parameters to
39589         put DST before SRC.  Adjust callers.
39590
39591         tests: test-hash: avoid wholesale duplication
39592         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39593         Instead, use a loop and add a single conditional.
39594
39595         tests: test-hash: allow seed selection via a command line argument
39596         * tests/test-hash.c (get_seed): New function.
39597         (main): Use it.
39598
39599 2009-06-19  Eric Blake  <ebb9@byu.net>
39600
39601         hash: avoid memory leak on allocation failure
39602         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39603         failure.  Factor repeated algorithm...
39604         (transfer_entries): ...into new helper routine.
39605         (hash_delete): React to hash_rehash return value.
39606
39607         hash: reduce memory pressure in hash_rehash no-op case
39608         * lib/hash.c (next_prime): Avoid overflow.
39609         (hash_initialize): Factor bucket size computation...
39610         (compute_bucket_size): ...into new helper function.
39611         (hash_rehash): Use new function and open coding to reduce memory
39612         pressure, and avoid a memory leak in USE_OBSTACK code.
39613         Reported by Jim Meyering.
39614
39615 2009-06-18  Eric Blake  <ebb9@byu.net>
39616
39617         hash: make rotation more obvious
39618         * modules/hash (Depends-on): Add bitrotate and stdint.
39619         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39620         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39621         (SIZE_MAX): Rely on headers for definition.
39622         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39623         (raw_hasher): Use rotr_sz.
39624         Suggested by Jim Meyering.
39625
39626         hash: fix memory leak in last patch
39627         * lib/hash.c (hash_rehash): Avoid memory leak.
39628
39629         hash: avoid no-op rehashing
39630         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39631
39632         hash: provide default callback functions
39633         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39634         (hash_initialize): Use them as defaults.
39635         * tests/test-hash.c (main): Test this.
39636
39637         hash: minor optimization
39638         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39639         when possible.
39640         (hash_initialize): Document this promise.
39641         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39642         * tests/test-hash.c (hash_compare_strings): Test this.
39643
39644 2009-06-18  Bruno Haible  <bruno@clisp.org>
39645
39646         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39647         going to be replaced anyway.
39648
39649 2009-06-18  Bruno Haible  <bruno@clisp.org>
39650
39651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39652         in one place.
39653         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39654         be replaced anyway.
39655
39656 2009-06-18  Eric Blake  <ebb9@byu.net>
39657
39658         hash: check for resize before insertion
39659         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39660         threshold before insertion, so that a pathological hash_rehash
39661         that fills every bucket can still trigger another rehash.
39662
39663 2009-06-18  Jim Meyering  <meyering@redhat.com>
39664
39665         hash-tests: add a loop around the small tests
39666         * tests/test-hash.c (main): Repeat small tests with selected
39667         small initial table sizes.
39668
39669 2009-06-17  Eric Blake  <ebb9@byu.net>
39670
39671         hash: minor cleanups
39672         * lib/hash.h (hash_entry): Make opaque, by moving...
39673         * lib/hash.c (hash_entry): ...here.
39674         (hash_insert): Clarify restrictions on what can be inserted.
39675         (hash_get_next): Clarify when it is safe to remove an element
39676         during traversal.
39677         (check_tuning): Skip verification when tuning is known safe.
39678         (hash_initialize): Clarify restrictions on tuning.
39679
39680 2009-06-17  Jim Meyering  <jim@meyering.net>
39681         and Eric Blake  <ebb9@byu.net>
39682
39683         hash-tests: new module
39684         * modules/hash-tests: New file.
39685         * tests/test-hash.c: New file.
39686
39687 2009-06-17  Eric Blake  <ebb9@byu.net>
39688
39689         strstr-simple: document new module
39690         * MODULES.html.sh: Document new module.
39691
39692         strstr, strcasestr: replace on platforms with broken memchr
39693         * modules/strstr: Split into...
39694         * modules/strstr-simple: ...new module that does not care about
39695         performance, but does care about glibc bug.
39696         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39697         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39698         if platform memchr is broken, per Debian bug 521737.
39699         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39700         memchr.
39701         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39702         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39703         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39704         * modules/mountlist (Depends-on): Add strstr-simple.
39705         * modules/gen-uni-tables (Depends-on): Likewise.
39706         * modules/argz (Depends-on): Add strstr.
39707
39708 2009-06-17  Bruno Haible  <bruno@clisp.org>
39709
39710         * modules/posix_spawn-internal (Depends-on): Add errno.
39711
39712 2009-06-17  Bruno Haible  <bruno@clisp.org>
39713
39714         Define missing ESTALE on Interix 3.5.
39715         * lib/errno.in.h (ESTALE): Assign a value if missing.
39716         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39717         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39718         missing.
39719         * doc/posix-headers/errno.texi: Mention the Interix bug.
39720         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39721
39722 2009-06-15  Eric Blake  <ebb9@byu.net>
39723
39724         memchr, memchr2: add valgrind exception
39725         * lib/memchr.valgrind: New file.
39726         * lib/memchr2.valgrind: New file.
39727         * modules/memchr (Files): Distribute valgrind file.
39728         * modules/memchr2 (Files): Likewise.
39729
39730         docs: memchr is no longer obsolete
39731         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39732         * lib/string.in.h (memchr): Simplify logic.
39733
39734 2009-06-14  Jim Meyering  <meyering@redhat.com>
39735
39736         link-follow: fix the "checking..." message to not mention trailing slash
39737         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39738         never considered trailing slashes.
39739
39740 2009-06-14  Bruno Haible  <bruno@clisp.org>
39741
39742         * m4/memchr.m4: Mention also the bug on IA-64.
39743         * doc/posix-functions/memchr.texi: Likewise.
39744
39745 2009-06-12  Eric Blake  <ebb9@byu.net>
39746
39747         memchr: detect broken x86_64 and alpha implementations
39748         * modules/memchr-tests (Depends-on): Move mmap detection...
39749         * modules/memchr (Depends-on): ...here.
39750         (configure.ac): Set indicator.
39751         * lib/string.in.h (memchr): Declare replacement.
39752         * modules/string (Makefile.am): Trigger replacement.
39753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39754         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39755         bugs.
39756         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39757         * modules/getpagesize (License): Relax license.
39758
39759 2009-06-11  Bruno Haible  <bruno@clisp.org>
39760
39761         * lib/idpriv.h: Add more references.
39762
39763 2009-06-08  Bruno Haible  <bruno@clisp.org>
39764
39765         Tests for module 'idpriv-droptemp'.
39766         * modules/idpriv-droptemp-tests: New file.
39767         * tests/test-idpriv-droptemp.sh: New file.
39768         * tests/test-idpriv-droptemp.su.sh: New file.
39769         * tests/test-idpriv-droptemp.c: New file.
39770
39771         New module 'idpriv-droptemp'.
39772         * lib/idpriv-droptemp.c: New file.
39773         * modules/idpriv-droptemp: New file.
39774
39775 2009-06-08  Bruno Haible  <bruno@clisp.org>
39776
39777         Tests for module 'idpriv-drop'.
39778         * modules/idpriv-drop-tests: New file.
39779         * tests/test-idpriv-drop.sh: New file.
39780         * tests/test-idpriv-drop.su.sh: New file.
39781         * tests/test-idpriv-drop.c: New file.
39782
39783         New module 'idpriv-drop'.
39784         * lib/idpriv.h: New file.
39785         * lib-idpriv-drop.c: New file.
39786         * m4/idpriv.m4: New file.
39787         * modules/idpriv-drop: New file.
39788
39789 2009-06-08  Bruno Haible  <bruno@clisp.org>
39790
39791         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39792         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39793         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39794         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39795         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39796         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39797         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39798
39799 2009-06-08  Eric Blake  <ebb9@byu.net>
39800
39801         test-strstr: use memory fence, when possible
39802         * tests/test-strstr.c (main): Use memory fence, in order to be
39803         more likely to trigger Debian bug 521737.
39804         * modules/strstr-tests (Files): Pull in additional files.
39805
39806         memchr: no longer obsolete, for wider field testing
39807         * modules/memchr (Status, Notice): Delete, this module is no
39808         longer obsolete.
39809         * modules/vasnprintf (Depends-on): Add memchr.
39810
39811 2009-06-07  Jim Meyering  <meyering@redhat.com>
39812
39813         hash: declare some functions with the warn_unused_result attribute
39814         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39815
39816 2009-06-07  Bruno Haible  <bruno@clisp.org>
39817
39818         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39819         Reported by Eric Blake.
39820
39821 2009-06-06  Eric Blake  <ebb9@byu.net>
39822
39823         test-alignof: fix typo with long double
39824         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39825         compiler error.
39826
39827 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39828
39829         Escape non-texinfo { and }s.
39830         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39831         markup error.
39832
39833 2009-06-04  Jim Meyering  <meyering@redhat.com>
39834
39835         gitlog-to-changelog: don't infloop on an empty commit log
39836         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39837         Reported by Boris Petersen <transacid@centerim.org>.
39838
39839 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39840
39841         version-etc: extend for packagers
39842         Add three new configure options, intended for packagers:
39843           --with-packager="packager name"
39844           --with-packager-version="packager-specific version"
39845           --with-packager-bug-reports="packager bug reporting"
39846         An example with coreutils:
39847           $ ./configure \
39848             --with-packager=Gentoo \
39849             --with-packager-bug-report=http://bugs.gentoo.org/ \
39850             --with-packager-version="patchset 1.6"
39851           $ ./src/ls --version | head -n2
39852           ls (GNU coreutils) 7.1-dirty
39853           Packaged by Gentoo (patchset 1.6)
39854         Note that the bug reporting info via --help doesn't show up because
39855         coreutils uses its own custom emit_bug_reporting_address() implementation
39856         in src/system.h.  If it didn't, it'd look like:
39857           $ ./src/ls --help | tail -n4
39858           Report bugs to <bug-coreutils@gnu.org>.
39859           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39860           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39861           General help using GNU software: <http://www.gnu.org/gethelp/>.
39862         * lib/version-etc.c: Print new information, if provided.
39863         * m4/version-etc.m4: New file.
39864         * modules/version-etc (Files): Add m4/version-etc.m4.
39865         (configure.ac): Add gl_VERSION_ETC.
39866
39867 2009-05-31  Bruno Haible  <bruno@clisp.org>
39868
39869         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39870         and 'int64_t'.
39871         * modules/alignof-tests (Dependencies): Add stdint.
39872         Reported by Eric Blake.
39873
39874 2009-05-31  Bruno Haible  <bruno@clisp.org>
39875
39876         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39877         restriction due to compiler bugs.
39878         Reported by Eric Blake.
39879
39880 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39881             Bruno Haible  <bruno@clisp.org>
39882
39883         Fix test-alignof failure.
39884         * lib/alignof.h (alignof_slot): New macro.
39885         (alignof_type): New macro, with the same semantics as the previous
39886         'alignof'.
39887         (alignof): Alias to alignof_slot.
39888         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39889         check that the results are usable as constant expressions.
39890
39891 2009-05-31  Bruno Haible  <bruno@clisp.org>
39892
39893         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39894         * tests/test-memchr.c (main): Check that memchr does not read past the
39895         first occurrence of the byte.
39896         * tests/test-strstr.c (main): Update comment.
39897         Suggested by Eric Blake.
39898
39899 2009-05-30  Bruno Haible  <bruno@clisp.org>
39900
39901         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39902         detail how to use dumpbin.
39903         Reported by David Byron <dbyron@dbyron.com>.
39904
39905 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39906
39907         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39908
39909 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39910
39911         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39912
39913 2009-05-28  Bruno Haible  <bruno@clisp.org>
39914
39915         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39916         build-aux/ files.
39917
39918 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39919
39920         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39921
39922 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39923
39924         * gnulib-tool (sed_transform_main_lib_file)
39925         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39926         regexps.
39927
39928 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39929
39930         * tests/test-strstr.c: Add another self-test.
39931         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39932         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39933
39934 2009-05-23  Bruno Haible  <bruno@clisp.org>
39935
39936         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39937         change.
39938
39939 2009-05-21  Bruno Haible  <bruno@clisp.org>
39940
39941         Simplify use of mode_t varargs.
39942         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39943         uses 'mode_t' or 'int'.
39944         * lib/openat.c (openat): Likewise.
39945         * lib/open-safer.c (open_safer): Likewise.
39946         * m4/mode_t.m4: New file.
39947         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39948         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39949         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39950         * modules/open (Files): Add m4/mode_t.m4.
39951         * modules/openat (Files): Likewise.
39952         * modules/fcntl-safer (Files): Likewise.
39953         Suggested by Eric Blake.
39954
39955 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39956
39957         * doc/glibc-functions/fallocate.texi: New file.
39958         * doc/gnulib.texi: Include it.
39959
39960 2009-05-21  Eric Blake  <ebb9@byu.net>
39961             Bruno Haible  <bruno@clisp.org>
39962
39963         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39964         invocations.
39965         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39966
39967 2009-05-21  Eric Blake  <ebb9@byu.net>
39968             Bruno Haible  <bruno@clisp.org>
39969
39970         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39971         include_next. Fix of 2008-11-20 commit.
39972         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39973         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39974         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39975         NEXT_MATH_H.
39976         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39977         instead of NEXT_MATH_H.
39978
39979 2009-05-21  Bruno Haible  <bruno@clisp.org>
39980
39981         Avoid redefinition warnings for SIZE_MAX.
39982         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39983         Reported by Simon Josefsson.
39984
39985 2009-05-21  Bruno Haible  <bruno@clisp.org>
39986
39987         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39988         AC_CACHE_VAL.
39989
39990 2009-05-20  Bruno Haible  <bruno@clisp.org>
39991
39992         Make zeroptr.h work on mingw.
39993         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39994         mprotect.
39995         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39996         * modules/memchr2-tests (configure.ac): Likewise.
39997         * modules/memcmp-tests (configure.ac): Likewise.
39998         * modules/memmem-tests (configure.ac): Likewise.
39999         * modules/memrchr-tests (configure.ac): Likewise.
40000         Reported by Simon Josefsson.
40001
40002 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40003
40004         * tests/test-glob.c: Include string.h for strcmp prototype.
40005
40006 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40007
40008         * modules/getdelim (Depends-on): Add explicit stdint, although it
40009         was implicitly already pulled in via realloc-posix.
40010         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
40011
40012 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40013
40014         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
40015         G. Christensen" <tgc@jupiterrise.com>.
40016         * m4/sys_socket_h.m4: Check for sa_family_t.
40017         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40018         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
40019         * tests/test-sys_socket.c: Check that sa_family_t works.
40020
40021 2009-05-18  Eric Blake  <ebb9@byu.net>
40022
40023         maint.mk: allow gnulib_dir in VPATH build
40024         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
40025
40026 2009-05-15  Jim Meyering  <meyering@redhat.com>
40027
40028         maint.mk: Give gnulib_dir a default definition.
40029         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
40030         Thus, most packages no longer need to specify this variable in cfg.mk
40031
40032 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
40033
40034         rename.m4: fix typos that would make non-mingw cross-configure fail
40035         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
40036
40037 2009-05-13  Eric Blake  <ebb9@byu.net>
40038
40039         mmap-anon: avoid out-of-order autoconf expansion
40040         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40041         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40042         * modules/memchr-tests (Depends-on): Add extensions.
40043         * modules/memchr2-tests (Depends-on): Add extensions.
40044         * modules/memcmp-tests (Depends-on): Add extensions.
40045         * modules/memmem-tests (Depends-on): Add extensions.
40046         * modules/memrchr-tests (Depends-on): Add extensions.
40047
40048 2009-05-13  Bruno Haible  <bruno@clisp.org>
40049
40050         Make some tests ISO C 99 compliant.
40051         * tests/zerosize-ptr.h: New file.
40052         * tests/test-memchr.c: Include zerosize-ptr.h.
40053         (main): Use a zero-size object pointer instead of NULL.
40054         * tests/test-memchr2.c: Include zerosize-ptr.h.
40055         (main): Use a zero-size object pointer instead of NULL.
40056         * tests/test-memcmp.c: Include zerosize-ptr.h.
40057         (main): Use a zero-size object pointer instead of NULL.
40058         * tests/test-memmem.c: Include zerosize-ptr.h.
40059         (main): Use a zero-size object pointer instead of NULL.
40060         * tests/test-memrchr.c: Include zerosize-ptr.h.
40061         (main): Use a zero-size object pointer instead of NULL.
40062         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40063         m4/mmap-anon.m4.
40064         (Depends-on): Add getpagesize.
40065         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40066         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40067         m4/mmap-anon.m4.
40068         (Depends-on): Add getpagesize.
40069         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40070         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40071         m4/mmap-anon.m4.
40072         (Depends-on): Add getpagesize.
40073         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40074         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40075         m4/mmap-anon.m4.
40076         (Depends-on): Add getpagesize.
40077         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40078         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40079         m4/mmap-anon.m4.
40080         (Depends-on): Add getpagesize.
40081         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40082
40083 2009-05-12  Bruno Haible  <bruno@clisp.org>
40084
40085         Tests for module 'alignof'.
40086         * modules/alignof-tests: New file.
40087         * tests/test-alignof.c: New file.
40088
40089 2009-05-12  Bruno Haible  <bruno@clisp.org>
40090
40091         Fix alignof macro.
40092         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40093         vendor compilers that are always correct.
40094
40095 2009-05-12  Bruno Haible  <bruno@clisp.org>
40096
40097         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40098         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40099         not whether its fully works.
40100
40101 2009-05-12  Bruno Haible  <bruno@clisp.org>
40102
40103         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40104
40105 2009-05-12  Jim Meyering  <meyering@redhat.com>
40106
40107         * top/maint.mk: Adjust backslash alignment.
40108
40109 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40110
40111         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40112
40113 2009-05-11  Eric Blake  <ebb9@byu.net>
40114
40115         argp: avoid undefined behavior
40116         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40117         macros.
40118
40119 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40120
40121         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40122         user.name to prevent git commit from complaining.
40123
40124 2009-05-10  Bruno Haible  <bruno@clisp.org>
40125
40126         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40127         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40128         it rewrites every file name only once.
40129         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40130
40131 2009-05-08  Bruno Haible  <bruno@clisp.org>
40132
40133         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40134         instead of 'max'.
40135
40136 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40137
40138         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40139         sockaddr_storage test.
40140
40141 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40142
40143         * modules/sys_socket (Makefile.am): Substitute
40144         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40145         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40146         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40147         * tests/test-sys_socket.c: Check sockaddr_storage.
40148
40149 2009-05-08  Bruno Haible  <bruno@clisp.org>
40150
40151         New module 'alignof'.
40152         * lib/alignof.h: New file.
40153         * modules/alignof: New file.
40154
40155 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40156             Bruno Haible  <bruno@clisp.org>
40157
40158         Fix test-file-has-acl on FreeBSD.
40159         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40160         mask is implicitly added.
40161         * tests/test-file-has-acl.c: Include <signal.h>.
40162         (main): Terminate the test after 5 seconds.
40163         * modules/acl-tests (configure.ac): Check for alarm function.
40164
40165 2009-05-04  Bruno Haible  <bruno@clisp.org>
40166
40167         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40168         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40169         * modules/errno (configure.ac): Drop AC_REQUIRE.
40170         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40171         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40172
40173 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40174
40175         * modules/glob-tests: New module.
40176         * tests/test-glob.c: Add.
40177
40178 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40179
40180         * modules/fnmatch-tests: New module.
40181         * tests/test-fnmatch.c: Add.
40182
40183 2009-05-04  Eric Blake  <ebb9@byu.net>
40184
40185         maint: make the new no-submodule-changes rule VPATH-safe
40186         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40187
40188 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40189             Bruno Haible  <bruno@clisp.org>
40190
40191         acl: Fix infinite loop on FreeBSD.
40192         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40193         of return value from acl_get_entry.
40194         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40195         Likewise.
40196
40197 2009-05-03  Bruno Haible  <bruno@clisp.org>
40198
40199         * lib/acl-internal.h (acl_entries): Clarify return value.
40200         * lib/acl_entries.c (acl_entries): Likewise.
40201
40202 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40203
40204         Bug fix in acl module.
40205         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40206
40207 2009-05-03  Bruno Haible  <bruno@clisp.org>
40208
40209         Create gperf-generated file in the source dir, not in the build dir.
40210         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40211         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40212         * modules/unicase/locale-language (unicase/locale-languages.h):
40213         Likewise.
40214         * modules/unicase/special-casing (unicase/special-casing-table.h):
40215         Likewise.
40216         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40217         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40218         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40219         Reported by Ralf Wildenhues.
40220
40221 2009-05-03  Bruno Haible  <bruno@clisp.org>
40222
40223         * modules/fnmatch (Description, configure.ac): Taken from
40224         fnmatch-posix.
40225         * modules/fnmatch-posix: Turn into a symbolic reference to the
40226         'fnmatch' module, and deprecate.
40227         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40228
40229 2009-05-03  Bruno Haible  <bruno@clisp.org>
40230
40231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40232         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40233         Reported by Ralf Wildenhues.
40234
40235 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40236
40237         * m4/fnmatch.m4: Fix fnmatch re-define.
40238
40239 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40240
40241         priv-set: new module and tests; adapt write-any-file
40242         * lib/priv-set.c: New file.
40243         * lib/priv-set.h: New file.
40244         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40245         * lib/write-any-file.c: Simplify by using priv-set module.
40246         * m4/priv-set.m4: New file.
40247         * modules/priv-set: New file.
40248         * modules/unlinkdir: Add dependency on priv-set module.
40249         * modules/write-any-file: Likewise.
40250
40251         Tests for module 'priv-set'.
40252         * modules/priv-set-tests: New file.
40253         * tests/test-priv-set.c: New file.
40254
40255 2009-05-03  Jim Meyering  <meyering@redhat.com>
40256             Bruno Haible  <bruno@clisp.org>
40257
40258         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40259         use the converted UTF-8 variant of the name instead.
40260
40261 2009-05-03  Jim Meyering  <meyering@redhat.com>
40262
40263         tests: tighten some getdate tests
40264         * tests/test-getdate.c (main): Tighten tests: require equality,
40265         not just greater than.  Set TZ envvar to UTC0.
40266
40267 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40268
40269         getdate: correctly interpret "next monday" when run on a Monday
40270         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40271         that e.g., "next tues" (when run on a tuesday) results in a date
40272         that is one week in the future, and not today's date.
40273         I.e., add a week when the wday is the same as the current one.
40274         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40275         and earlier by Martin Bernreuther and Jan Minář.
40276         * tests/test-getdate.c (main): Check that "next DAY" is always in
40277         the future and that "last DAY" is always in the past.
40278
40279 2009-05-02  Jim Meyering  <meyering@redhat.com>
40280
40281         build: ensure that a release build fails when a submodule is unclean
40282         * top/maint.mk (no-submodule-changes): New rule.
40283         (alpha beta major): Depend on it.
40284
40285 2009-05-02  Bruno Haible  <bruno@clisp.org>
40286
40287         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40288         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40289         shell variable gl_fnmatch_required to detect which variant is
40290         requested.
40291         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40292         gl_FUNC_FNMATCH_POSIX.
40293         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40294         exclude fnmatch-posix.
40295
40296 2009-05-02  Bruno Haible  <bruno@clisp.org>
40297
40298         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40299         * modules/mbsrtowcs (License): Change to LGPLv2+.
40300         * modules/strnlen1 (License): Likewise.
40301         Reported by Simon Josefsson.
40302
40303 2009-05-02  Bruno Haible  <bruno@clisp.org>
40304
40305         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40306         "cross".
40307         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40308         gnulib-tool was called with option --source-base=lib.
40309
40310 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40311
40312         Use automake *-local hooks without commands, for extensibility.
40313         * modules/localcharset (Makefile.am): Rename install-exec-local
40314         rule to install-exec-localcharset, and make it a prerequisite of
40315         install-exec-local.  Likewise, rename the uninstall-local rule to
40316         uninstall-localcharset, and make it a prerequisite of the former.
40317
40318 2009-05-01  Bruno Haible  <bruno@clisp.org>
40319
40320         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40321         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40322         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40324         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40325         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40326         m4/locale-zh.m4, m4/codeset.m4.
40327
40328         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40329         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40330         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40331         m4/locale-zh.m4.
40332
40333         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40334         REPLACE_WCRTOMB if mbstate_t must be replaced.
40335         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40336         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40337
40338 2009-05-01  Bruno Haible  <bruno@clisp.org>
40339
40340         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40341         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40342         dngettext, dcngettext, textdomain, bindtextdomain,
40343         bind_textdomain_codeset): Undefine before redefining.
40344
40345 2009-04-30  Bruno Haible  <bruno@clisp.org>
40346
40347         Fix bug introduced on 2009-04-25.
40348         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40349         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40350         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40351         is defined.
40352         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40353         is defined.
40354         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40355         is defined.
40356         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40357
40358 2009-04-28  Bruno Haible  <bruno@clisp.org>
40359
40360         Comment tweaks.
40361         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40362         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40363         * lib/unicase.h (u*_casexfrm): Likewise.
40364         Reported by Paolo Bonzini.
40365
40366 2009-04-28  Bruno Haible  <bruno@clisp.org>
40367
40368         Fix a compilation error.
40369         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40370         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40371         Reported by Jim Meyering.
40372
40373 2009-04-27  Bruno Haible  <bruno@clisp.org>
40374
40375         New module 'libunistring'.
40376         * modules/libunistring: New file.
40377         * m4/libunistring.m4: New file.
40378         * MODULES.html.sh (Unicode string functions): Add it.
40379
40380 2009-04-27  Eric Blake  <ebb9@byu.net>
40381
40382         maint.mk: allow package-specific header to provide <config.h>
40383         * top/maint.mk (sc_require_config_h): New variable.
40384         (sc_require_config_h, sc_require_config_h_first): Use it.
40385
40386 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40387
40388         * top/maint.mk (sc_avoid_if_before_free): Except
40389         useless-if-before-free script.
40390
40391 2009-04-27  Eric Blake  <ebb9@byu.net>
40392
40393         maintainer-makefile: depend on all required helper scripts
40394         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40395         useless-if-before-free.
40396         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40397         version, rather than assuming gnulib checkout is available.
40398         Reported by Simen Josefsson.
40399
40400 2009-04-26  Bruno Haible  <bruno@clisp.org>
40401
40402         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40403         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40404         "../" or "..".
40405
40406 2009-04-26  Bruno Haible  <bruno@clisp.org>
40407
40408         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40409         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40410         AC_LIB_HAVE_LINKFLAGS.
40411
40412 2009-04-26  Bruno Haible  <bruno@clisp.org>
40413
40414         Simplify calling convention of u*_conv_from_encoding.
40415         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40416         u32_conv_from_encoding): Expect a resultbuf argument and return the
40417         result directly as a pointer.
40418         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40419         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40420         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40421         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40422         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40423         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40424         Update.
40425         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40426         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40427         * lib/vasnprintf.c (VASNPRINTF): Update.
40428         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40429         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40430         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40431         * NEWS: Mention the change.
40432
40433 2009-04-26  Bruno Haible  <bruno@clisp.org>
40434
40435         Simplify calling convention of u*_conv_to_encoding.
40436         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40437         u32_conv_to_encoding): Expect a resultbuf argument and return the
40438         result directly as a pointer.
40439         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40440         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40441         freeing scaled_offsets if mem_iconveha failed.
40442         * lib/unicase/u-casexfrm.h (FUNC): Update.
40443         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40444         * lib/vasnprintf.c (VASNPRINTF): Update.
40445         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40446         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40447         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40448         * NEWS: Mention the change.
40449
40450 2009-04-26  Bruno Haible  <bruno@clisp.org>
40451
40452         Avoid test failures on AIX and OSF/1.
40453         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40454         malloc(0).
40455         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40456         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40457         Likewise.
40458         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40459         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40460         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40461         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40462         * doc/posix-functions/malloc.texi: Document the portability problem
40463         related to malloc(0).
40464
40465 2009-04-26  Bruno Haible  <bruno@clisp.org>
40466
40467         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40468         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40469         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40470
40471 2009-04-25  Bruno Haible  <bruno@clisp.org>
40472
40473         Avoid link error when creating a namespace clean library.
40474         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40475         as macro with arguments if already defined as an alias.
40476         * lib/signbitf.c (gl_signbitf): Don't undefine.
40477         * lib/signbitd.c (gl_signbitd): Don't undefine.
40478         * lib/signbitl.c (gl_signbitl): Don't undefine.
40479
40480 2009-04-25  Jim Meyering  <meyering@redhat.com>
40481
40482         vc-list-files: fix another quoting bug
40483         * build-aux/vc-list-files: Avoid sed backslash expansion
40484         of pathological directory names.
40485
40486 2009-04-25  Eric Blake  <ebb9@byu.net>
40487
40488         vc-list-files: fix shell quoting error
40489         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40490         timestamp.
40491
40492 2009-04-25  Jim Meyering  <meyering@redhat.com>
40493
40494         vc-list-files: restore lost functionality with subdir argument
40495         * build-aux/vc-list-files: When given a non-"." sub-directory
40496         argument, substitute the $dir/ prefix back onto each resulting name.
40497         Otherwise, coreutils' root_tests check would fail.
40498
40499 2009-04-24  Eric Blake  <ebb9@byu.net>
40500
40501         vc-list-files: ignore git symlinks
40502         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40503         than ls-files, to ignore git symlinks.
40504
40505         maint.mk: import improvements from m4
40506         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40507         (move_if_change): Delete unused macro.
40508         (news-date-check, vc-diff-check): Support VPATH builds.
40509         (announcement): Likewise.  Split --bootstrap-tools list...
40510         (boostrap-tools): ...into separate list, which can be overridden
40511         in cfg.mk.
40512         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40513         requiring dependency on useless-if-before-free module.
40514         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40515         Support VPATH builds.
40516
40517 2009-04-24  Jim Meyering  <meyering@redhat.com>
40518
40519         maint.mk: remove coreutils-specific rules and variables
40520         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40521         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40522         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40523
40524         maint.mk: remove obsolete rule
40525         * top/maint.mk (rel-check): Remove rule.
40526         (WGET, WGETFLAGS): Remove now-unused variables.
40527
40528 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40529
40530         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40531         consistency.
40532
40533         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40534         '$(PATH_SEPARATOR)' instead of ':'.
40535
40536 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40537
40538         * lib/getopt1.c (main): Use 'const' for static array.
40539
40540 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40541
40542         * top/maint.mk: Sync with coreutils.
40543         * NEWS: Explain incompatibilities.
40544
40545 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40546             Bruno Haible  <bruno@clisp.org>
40547
40548         Fix cross-compilation results.
40549         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40550         statement, as third argument of AC_TRY_RUN.
40551         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40552         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40553         Likewise.
40554         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40555         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40556         Likewise.
40557         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40558         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40559         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40560
40561 2009-04-20  Bruno Haible  <bruno@clisp.org>
40562
40563         Avoid test failure on mingw.
40564         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40565
40566 2009-04-20  Bruno Haible  <bruno@clisp.org>
40567
40568         Avoid compilation error on mingw.
40569         * modules/localename-tests (Depends-on): Add locale.
40570
40571 2009-04-19  Bruno Haible  <bruno@clisp.org>
40572
40573         Support for building a shared library on Windows platforms.
40574         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40575         (main): Test the presence of UNINORM_NFC here.
40576         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40577         (main): Test the presence of UNINORM_NFD here.
40578         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40579         (main): Test the presence of UNINORM_NFKC here.
40580         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40581         (main): Test the presence of UNINORM_NFKD here.
40582
40583 2009-04-19  Bruno Haible  <bruno@clisp.org>
40584
40585         Avoid a compiler warning.
40586         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40587         Change type of variable 'sequence'.
40588
40589 2009-04-19  Bruno Haible  <bruno@clisp.org>
40590
40591         * modules/configmake (Makefile.am): When the contents of configmake.h
40592         does not change, arrange to preserve its modification time.
40593
40594 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40595
40596         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40597         gettext domain.
40598
40599 2009-04-16  Jim Meyering  <meyering@redhat.com>
40600
40601         useless-if-before-free: improve conversion code
40602         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40603         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40604
40605 2009-04-14  Bruno Haible  <bruno@clisp.org>
40606
40607         * modules/fcntl (Depends-on): Add extensions.
40608         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40609
40610 2009-04-12  Ben Pfaff  <blp@gnu.org>
40611
40612         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40613         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40614
40615 2009-03-20  Ben Pfaff  <blp@gnu.org>
40616
40617         Make rename replace existing destinations on Windows.
40618         * m4/rename.m4: Add test for Mingw.
40619         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40620         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40621         * doc/posix-functions/rename.texi: Document.
40622
40623 2009-04-10  Bruno Haible  <bruno@clisp.org>
40624
40625         New include file "iconveh.h".
40626         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40627         * lib/striconveh.h: Include it.
40628         (enum iconv_ilseq_handler): Remove definition.
40629         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40630         striconveh.h.
40631         * lib/striconveha.c: Include striconveh.h.
40632         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40633         * modules/striconveh (Files): Add lib/iconveh.h.
40634         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40635         lib/striconveh.h.
40636
40637 2009-04-10  Bruno Haible  <bruno@clisp.org>
40638
40639         * lib/uniconv.h: Update comment.
40640
40641 2009-04-10  Bruno Haible  <bruno@clisp.org>
40642
40643         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40644         always.
40645         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40646         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40647         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40648         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40649         "unistring-notinline.h", so that the function gets defined always.
40650         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40651         * lib/unistr/u8-uctomb.c: Likewise.
40652         * lib/unistr/u16-mbtouc.c: Likewise.
40653         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40654         * lib/unistr/u16-uctomb.c: Likewise.
40655         * lib/unistr/u32-mbtouc.c: Likewise.
40656         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40657         * lib/unistr/u32-uctomb.c: Likewise.
40658
40659 2009-04-10  Bruno Haible  <bruno@clisp.org>
40660
40661         Mark 'utime' obsolete.
40662         * modules/utime (Status, Notice): New sections.
40663         Suggested by Jim Meyering.
40664
40665         Fix cross-compile guess for utime test.
40666         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40667         autoconf.
40668         * doc/posix-functions/utime.texi: Give more precisions.
40669         Reported by Jan <ipif@ymail.com>.
40670
40671 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40672
40673         filevercmp: correct today's change
40674         * lib/filevercmp.c: Also handle coreutils' test inputs.
40675         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40676
40677         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40678         for reporting it.
40679         * lib/filevercmp.c: Special handle for "", "." and "..".
40680         * tests/test-filevercmp.c: Enlarge the set suite.
40681
40682 2009-04-07  Jim Meyering  <meyering@redhat.com>
40683
40684         useless-if-before-free: show how to remove braced useless free, too
40685         * build-aux/useless-if-before-free: still only in a comment, though.
40686
40687 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40688
40689         maint.mk: import changes to syntax-check macros from coreutils
40690         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40691         Use them in the relevant macros.
40692
40693 2009-04-06  Bruno Haible  <bruno@clisp.org>
40694
40695         Fix unportable use of bit-fields.
40696         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40697         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40698         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40699
40700 2009-04-06  Bruno Haible  <bruno@clisp.org>
40701
40702         Avoid test failures on AIX and OSF/1.
40703         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40704         that malloc(0) = NULL.
40705         * tests/unicase/test-u8-tolower.c (check): Likewise.
40706         * tests/unicase/test-u8-totitle.c (check): Likewise.
40707         * tests/unicase/test-u8-toupper.c (check): Likewise.
40708         * tests/unicase/test-u16-casefold.c (check): Likewise.
40709         * tests/unicase/test-u16-tolower.c (check): Likewise.
40710         * tests/unicase/test-u16-totitle.c (check): Likewise.
40711         * tests/unicase/test-u16-toupper.c (check): Likewise.
40712         * tests/unicase/test-u32-casefold.c (check): Likewise.
40713         * tests/unicase/test-u32-tolower.c (check): Likewise.
40714         * tests/unicase/test-u32-totitle.c (check): Likewise.
40715         * tests/unicase/test-u32-toupper.c (check): Likewise.
40716         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40717         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40718         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40719         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40720         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40721         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40722         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40723         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40724         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40725         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40726         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40727         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40728
40729 2009-04-05  Bruno Haible  <bruno@clisp.org>
40730
40731         Work around an autoconf limitation.
40732         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40733         comment line if it would be longer than 3 KB.
40734
40735 2009-04-05  Bruno Haible  <bruno@clisp.org>
40736
40737         Avoid test failure with libiconv-1.13.
40738         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40739         of the expected test results.
40740
40741 2009-04-05  Bruno Haible  <bruno@clisp.org>
40742
40743         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40744         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40745         that it should be installed.
40746
40747 2009-04-05  Bruno Haible  <bruno@clisp.org>
40748
40749         * gnulib-tool: New option --copy-file.
40750         (func_usage): Document it.
40751         (func_dest_tmpfilename): Moved out of func_import.
40752         (func_add_file, func_update_file): New functions, extracted from
40753         func_import.
40754         (func_import): Update.
40755
40756 2009-04-05  Karl Berry  <karl@gnu.org>
40757
40758         * README: prominently mention gnulib-tool.
40759         Rearrange sections so getting the code is near the top.
40760
40761 2009-04-05  Bruno Haible  <bruno@clisp.org>
40762
40763         * lib/unicase.h: Mention u*_cmp2.
40764         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40765         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40766         * lib/unicase/ulc-casecmp.c: Likewise.
40767         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40768         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40769         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40770         unistr/u8-cmp.
40771         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40772         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40773         unistr/u16-cmp.
40774         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40775         unistr/u32-cmp.
40776
40777         * lib/uninorm.h: Mention u*_cmp2.
40778         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40779         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40780         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40781         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40782         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40783         unistr/u8-cmp.
40784         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40785         unistr/u16-cmp.
40786         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40787         unistr/u32-cmp.
40788
40789         New module 'unistr/u32-cmp2'.
40790         * lib/unistr/u32-cmp2.c: New file.
40791         * modules/unistr/u32-cmp2: New file.
40792
40793         New module 'unistr/u16-cmp2'.
40794         * lib/unistr/u16-cmp2.c: New file.
40795         * modules/unistr/u16-cmp2: New file.
40796
40797         New module 'unistr/u8-cmp2'.
40798         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40799         * lib/unistr/u8-cmp2.c: New file.
40800         * lib/unistr/u-cmp2.h: New file.
40801         * modules/unistr/u8-cmp2: New file.
40802
40803 2009-04-05  Bruno Haible  <bruno@clisp.org>
40804
40805         * lib/unictype.h (uc_property_is_valid): New macro.
40806         * tests/unictype/test-pr_byname.c (main): Use it.
40807
40808         * lib/unistr.h: Doc fixes.
40809         * lib/uniconv.h: Doc fixes.
40810         * lib/unictype.h: Doc fixes.
40811
40812 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40813
40814         Port coreutils 7.2 to Solaris 8.
40815
40816         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40817         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40818         for Solaris 8.  This is a bit of a hack, as it means it's the
40819         caller's responsibility to add -lnsl if needed, but most likely it
40820         won't be needed since only getaddrinfo uses this and getaddrinfo
40821         isn't needed on Solaris 8.
40822
40823         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40824         problem to Solaris 8 encountered with coreutils 7.2, which
40825         resulted in a message "fnmatch.c:292: warning: passing argument 4
40826         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40827         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40828
40829 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40830
40831         * m4/ld-version-script.m4: Add FIXME comment.
40832
40833 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40834
40835         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40836         SOVERSION variable.
40837
40838 2009-04-02  Bruno Haible  <bruno@clisp.org>
40839
40840         * Makefile (info, html, dvi, pdf): Combine the rules.
40841         Suggested by Jim Meyering.
40842
40843 2009-04-01  Bruno Haible  <bruno@clisp.org>
40844
40845         * Makefile (info, html, dvi, pdf): New targets.
40846         Reported by Reuben Thomas <rrt@sc3d.org>.
40847
40848 2009-04-01  Bruno Haible  <bruno@clisp.org>
40849
40850         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40851         can be put into PATH.
40852         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40853
40854 2009-04-01  Bruno Haible  <bruno@clisp.org>
40855
40856         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40857
40858 2009-04-01  Bruno Haible  <bruno@clisp.org>
40859
40860         Rename module 'visibility'.
40861         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40862         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40863         * doc/gnulib.texi: Update.
40864         * MODULES.html.sh (Misc): Update.
40865         * NEWS: Mention the change.
40866
40867 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40868
40869         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40870         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40871         Eric Blake <ebb9@byu.net> for review.
40872         * MODULES.html.sh: Add lib-msvc-compat.
40873         * doc/gnulib.texi: Link to new section.
40874         * m4/ld-output-def.m4: New file.
40875         * doc/ld-output-def.texi: New file.
40876
40877 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40878
40879         Rename ld-version-script to lib-symbol-versions.  Suggested by
40880         Bruno Haible <bruno@clisp.org>.
40881         * modules/ld-version-script: Renamed to lib-symbol-versions.
40882         * doc/ld-version-script.texi: Fix module name.
40883         * MODULES.html.sh: Add lib-symbol-versions.
40884
40885 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40886
40887         * modules/u64-tests: New file.
40888         * tests/test-u64.c: New file.
40889
40890 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40891
40892         * MODULES.html.sh: Mention u64.
40893         * modules/u64: New module.
40894         * modules/crypto/sha512: Depend on u64 module instead of providing
40895         u64.h.
40896
40897 2009-03-27  Eric Blake  <ebb9@byu.net>
40898
40899         test-strerror: make debugging EAI_SYSTEM easier
40900         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40901         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40902         failure was EAI_SYSTEM.
40903
40904 2009-03-25  Bruno Haible  <bruno@clisp.org>
40905
40906         Fix a problem with --enable-relocatable on Solaris 7.
40907         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40908         since 2008-02-24.
40909
40910 2009-03-25  Eric Blake  <ebb9@byu.net>
40911
40912         test-sockets: avoid gcc warning
40913         * tests/test-sockets.c (main): Silence compiler warning.
40914
40915 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40916
40917         New modules nproc, pthread, contributed by Glen Lenker.
40918
40919         * MODULES.html.sh: Add pthread, nproc.
40920         * lib/nproc.c: New file.
40921         * lib/nproc.h: New file.
40922         * lib/pthread.in.h: New file.
40923         * m4/pthread.m4: New file.
40924         * modules/nproc: New file.
40925         * modules/pthread: New file.
40926
40927 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40928
40929         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40930         New variable.
40931
40932 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40933
40934         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40935         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40936         * tests/test-filevercmp.c: Add tests for backup suffixes.
40937
40938 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40939
40940         * modules/stdlib (Depends-on): Add stdint, needed when defining
40941         struct random_data on, for example, HP-UX 10.20.  Reported by
40942         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40943
40944 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40945
40946         * lib/readline.c (readline): Call fflush on stdout after printing
40947         prompt.
40948
40949 2009-03-20  Bruno Haible  <bruno@clisp.org>
40950
40951         Remove dependency from 'close' module to -lws2_32 on native Windows.
40952         * lib/close-hook.h: New file.
40953         * lib/close-hook.c: New file.
40954         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40955         w32sock.h.
40956         (_gl_close_fd_maybe_socket): Remove function.
40957         (rpl_close): Invoke execute_all_close_hooks instead of
40958         _gl_close_fd_maybe_socket.
40959         * lib/sockets.c: Include close-hook.h, w32sock.h.
40960         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40961         (close_sockets_hook): New variable.
40962         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40963         (gl_sockets_cleanup): Unregister it.
40964         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40965         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40966         * modules/close-hook: New file.
40967         * modules/close (Files): Remove lib/w32sock.h.
40968         (Depends-on): Add close-hook.
40969         (Link): Remove section.
40970         * modules/sockets (Files): Add lib/w32sock.h.
40971         (Depends-on): Add close-hook.
40972         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40973         invocation.
40974         * NEWS: Mention that LIB_CLOSE is gone.
40975
40976 2009-03-23  Eric Blake  <ebb9@byu.net>
40977
40978         signal-tests: test previous patch
40979         * tests/test-signal.c: New file.
40980         * modules/signal-tests: Likewise.
40981
40982         signal.h: always support 'volatile sig_atomic_t'
40983         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40984         (gl_SIGNAL_H_DEFAULTS): Add a default.
40985         * modules/signal (Makefile.am): Substitute if needed.
40986         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40987         users can blindly add volatile.
40988         * doc/posix-headers/signal.texi (signal.h): Document it.
40989         Reported by Matthew Woehlke.
40990
40991 2009-03-23  Jim Meyering  <meyering@redhat.com>
40992
40993         pathmax: PATH_MAX: use pathconf only when available
40994         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40995         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40996         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40997         This avoids a link failure in a PSP cross-compilation environment
40998         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40999
41000         * lib/vasnprintf.c (divide): Fix typo in comment.
41001
41002 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41003
41004         * gnulib-tool (func_filter_filelist): Fix comment.
41005
41006 2009-03-20  Bruno Haible  <bruno@clisp.org>
41007
41008         Make sockets.h self-contained.
41009         * lib/sockets.c: Include sockets.h first.
41010         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
41011
41012 2009-03-19  Eric Blake  <ebb9@byu.net>
41013
41014         doc: mention more functions added in cygwin 1.7.0
41015         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
41016         addition.
41017         * doc/posix-functions/log2f.texi: Likewise.
41018
41019 2009-03-19  Jim Meyering  <meyering@redhat.com>
41020
41021         fsusage: avoid syntax error due to statement-before-declaration
41022         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
41023         after all declarations.  Reported by Matthew Woehlke in
41024         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
41025
41026 2009-03-18  Eric Blake  <ebb9@byu.net>
41027
41028         build-aux/compile: sync from automake
41029         * build-aux/compile: New file, from automake.
41030         * config/srclist.txt: Mention build-aux/compile.
41031
41032 2009-03-17  Bruno Haible  <bruno@clisp.org>
41033
41034         * lib/git-merge-changelog.c: Fix typo in comment.
41035         Reported by Reuben Thomas <rrt@sc3d.org>.
41036
41037 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
41038
41039         * m4/regex.m4: update and improve help for
41040         --without-included-regex.
41041
41042 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41043
41044         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41045         failure on missing include files.
41046
41047 2009-03-17  Eric Blake  <ebb9@byu.net>
41048
41049         doc: mention more functions added in cygwin 1.7.0
41050         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41051         addition.
41052         * doc/posix-functions/fwscanf.texi: Likewise.
41053         * doc/posix-functions/swprintf.texi: Likewise.
41054         * doc/posix-functions/swscanf.texi: Likewise.
41055         * doc/posix-functions/vfwprintf.texi: Likewise.
41056         * doc/posix-functions/vfwscanf.texi: Likewise.
41057         * doc/posix-functions/vswprintf.texi: Likewise.
41058         * doc/posix-functions/vswscanf.texi: Likewise.
41059         * doc/posix-functions/vwprintf.texi: Likewise.
41060         * doc/posix-functions/vwscanf.texi: Likewise.
41061         * doc/posix-functions/wcscasecmp.texi: Likewise.
41062         * doc/posix-functions/wcsdup.texi: Likewise.
41063         * doc/posix-functions/wcsftime.texi: Likewise.
41064         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41065         * doc/posix-functions/wprintf.texi: Likewise.
41066         * doc/posix-functions/wscanf.texi: Likewise.
41067         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41068
41069 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41070
41071         maint.mk: really add $(AM_MAKEFLAGS)
41072         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41073         was inadvertently omitted in the last commit.
41074         Spotted by Bruno Haible.
41075
41076         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41077         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41078         $(AM_MAKEFLAGS)' rather than plain `make'.
41079
41080         gnulib-tool: execute $MAKE not make
41081         * gnulib-tool: Default $MAKE to 'make'.
41082         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41083         than make.  Initialize $MAKE in the do-autobuild script.
41084
41085         gnulib-tool: use $MAKE not make in generated files
41086         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41087         make, in generated files.  Initialize $MAKE in the do-autobuild
41088         script.
41089
41090         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41091
41092         GNUmakefile: disable parallelism only for multiple, recursive targets
41093         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41094         additions in the Makefile.
41095         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41096         by Automake.
41097         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41098         are listed on the command line and at least one of them is
41099         listed in $(ALL_RECURSIVE_TARGETS).
41100
41101 2009-03-14  Bruno Haible  <bruno@clisp.org>
41102
41103         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41104         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41105         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41106         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41107         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41108         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41109         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41110         unistr/u8-uctomb.
41111         * modules/unistr/u8-strchr (Depends-on): Likewise.
41112         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41113         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41114         unistr/u16-uctomb.
41115         * modules/unistr/u16-strchr (Depends-on): Likewise.
41116         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41117
41118 2009-03-12  Bruno Haible  <bruno@clisp.org>
41119
41120         Work around select() bug on Interix 3.5.
41121         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41122         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41123         * m4/select.m4: New file.
41124         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41125         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41126         * modules/select (Files): Add m4/select.m4.
41127         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41128         * modules/nanosleep (Depends-on): Add select.
41129         * modules/poll (Depends-on): Likewise.
41130         * doc/posix-functions/select.texi: Mention the Interix bug.
41131         Reported by Markus Duft <mduft@gentoo.org>.
41132
41133         * lib/select.c: Renamed from lib/winsock-select.c.
41134         * modules/select (Files): Add lib/select.c, remove
41135         lib/winsock-select.c.
41136         (configure.ac): Update.
41137
41138 2009-03-12  Jim Meyering  <meyering@redhat.com>
41139
41140         avoid gcc warnings about unused macro definitions
41141         * lib/readtokens.c (STREQ): Remove unused definition.
41142         * lib/xmalloc.c (SIZE_MAX): Likewise.
41143         * lib/openat-die.c (N_): Likewise.
41144         * lib/mountlist.c (SIZE_MAX): Remove definition.
41145         Instead, include <stdint.h>.
41146         * lib/readutmp.c: Likewise.
41147         * modules/readutmp (Depends-on): Add stdint.
41148         * modules/mountlist (Depends-on): Add stdint.
41149         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41150
41151 2009-03-10  Bruno Haible  <bruno@clisp.org>
41152
41153         Tests for module 'mbmemcasecoll'.
41154         * modules/mbmemcasecoll-tests: New file.
41155         * tests/test-mbmemcasecoll1.sh: New file.
41156         * tests/test-mbmemcasecoll2.sh: New file.
41157         * tests/test-mbmemcasecoll3.sh: New file.
41158         * tests/test-mbmemcasecoll.c: New file.
41159
41160         New module 'mbmemcasecoll'.
41161         * lib/mbmemcasecoll.h: New file.
41162         * lib/mbmemcasecoll.c: New file.
41163         * modules/mbmemcasecoll: New file.
41164
41165         * tests/test-mbmemcasecmp.h: New file, extracted from
41166         tests/test-mbmemcasecmp.c.
41167         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41168         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41169         (main): Update.
41170         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41171
41172 2009-03-09  Bruno Haible  <bruno@clisp.org>
41173
41174         Tests for module 'mbmemcasecmp'.
41175         * modules/mbmemcasecmp-tests: New file.
41176         * tests/test-mbmemcasecmp1.sh: New file.
41177         * tests/test-mbmemcasecmp2.sh: New file.
41178         * tests/test-mbmemcasecmp3.sh: New file.
41179         * tests/test-mbmemcasecmp.c: New file.
41180
41181         New module 'mbmemcasecmp'.
41182         * lib/mbmemcasecmp.h: New file.
41183         * lib/mbmemcasecmp.c: New file.
41184         * modules/mbmemcasecmp: New file.
41185
41186 2009-03-09  Bruno Haible  <bruno@clisp.org>
41187
41188         Tests for module 'unicase/ulc-casecoll'.
41189         * modules/unicase/ulc-casecoll-tests: New file.
41190         * tests/unicase/test-ulc-casecoll1.sh: New file.
41191         * tests/unicase/test-ulc-casecoll2.sh: New file.
41192         * tests/unicase/test-ulc-casecoll.c: New file.
41193
41194         New module 'unicase/ulc-casecoll'.
41195         * lib/unicase.h (ulc_casecoll): New declaration.
41196         * lib/unicase/ulc-casecoll.c: New file.
41197         * modules/unicase/ulc-casecoll: New file.
41198
41199         New module 'unicase/ulc-casexfrm'.
41200         * lib/unicase.h (ulc_casexfrm): New declaration.
41201         * lib/unicase/ulc-casexfrm.c: New file.
41202         * modules/unicase/ulc-casexfrm: New file.
41203
41204 2009-03-09  Bruno Haible  <bruno@clisp.org>
41205
41206         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41207         invocations.
41208
41209         * m4/mbscasecmp.m4: Remove file.
41210         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41211         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41212
41213         * m4/mbscasestr.m4: Remove file.
41214         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41215         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41216
41217         * m4/mbschr.m4: Remove file.
41218         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41219         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41220
41221         * m4/mbscspn.m4: Remove file.
41222         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41223         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41224
41225         * m4/mbslen.m4: Remove file.
41226         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41227         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41228
41229         * m4/mbsncasecmp.m4: Remove file.
41230         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41231         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41232
41233         * m4/mbsnlen.m4: Remove file.
41234         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41235         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41236
41237         * m4/mbspbrk.m4: Remove file.
41238         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41239         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41240
41241         * m4/mbspcasecmp.m4: Remove file.
41242         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41243         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41244
41245         * m4/mbsrchr.m4: Remove file.
41246         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41247         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41248
41249         * m4/mbssep.m4: Remove file.
41250         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41251         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41252
41253         * m4/mbsspn.m4: Remove file.
41254         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41255         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41256
41257         * m4/mbsstr.m4: Remove file.
41258         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41259         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41260
41261         * m4/mbstok_r.m4: Remove file.
41262         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41263         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41264
41265         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41266
41267         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41268         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41269
41270         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41271
41272 2009-03-08  Bruno Haible  <bruno@clisp.org>
41273
41274         Tests for module 'unicase/ulc-casecmp'.
41275         * modules/unicase/ulc-casecmp-tests: New file.
41276         * tests/unicase/test-ulc-casecmp1.sh: New file.
41277         * tests/unicase/test-ulc-casecmp2.sh: New file.
41278         * tests/unicase/test-ulc-casecmp.c: New file.
41279
41280         New module 'unicase/ulc-casecmp'.
41281         * lib/unicase.h (ulc_casecmp): New declaration.
41282         * lib/unicase/ulc-casecmp.c: New file.
41283         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41284         'const SRC_UNIT *'.
41285         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41286         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41287         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41288         * modules/unicase/ulc-casecmp: New file.
41289
41290         Tests for module 'unicase/u32-is-cased'.
41291         * modules/unicase/u32-is-cased-tests: New file.
41292         * tests/unicase/test-u32-is-cased.c: New file.
41293
41294         Tests for module 'unicase/u16-is-cased'.
41295         * modules/unicase/u16-is-cased-tests: New file.
41296         * tests/unicase/test-u16-is-cased.c: New file.
41297
41298         Tests for module 'unicase/u8-is-cased'.
41299         * modules/unicase/u8-is-cased-tests: New file.
41300         * tests/unicase/test-u8-is-cased.c: New file.
41301         * tests/unicase/test-is-cased.h: New file.
41302
41303         New module 'unicase/u32-is-cased'.
41304         * lib/unicase/u32-is-cased.c: New file.
41305         * modules/unicase/u32-is-cased: New file.
41306
41307         New module 'unicase/u16-is-cased'.
41308         * lib/unicase/u16-is-cased.c: New file.
41309         * modules/unicase/u16-is-cased: New file.
41310
41311         New module 'unicase/u8-is-cased'.
41312         * lib/unicase/u8-is-cased.c: New file.
41313         * lib/unicase/u-is-cased.h: New file.
41314         * modules/unicase/u8-is-cased: New file.
41315
41316         Tests for module 'unicase/u32-is-casefolded'.
41317         * modules/unicase/u32-is-casefolded-tests: New file.
41318         * tests/unicase/test-u32-is-casefolded.c: New file.
41319
41320         Tests for module 'unicase/u16-is-casefolded'.
41321         * modules/unicase/u16-is-casefolded-tests: New file.
41322         * tests/unicase/test-u16-is-casefolded.c: New file.
41323
41324         Tests for module 'unicase/u8-is-casefolded'.
41325         * modules/unicase/u8-is-casefolded-tests: New file.
41326         * tests/unicase/test-u8-is-casefolded.c: New file.
41327         * tests/unicase/test-is-casefolded.h: New file.
41328
41329         New module 'unicase/u32-is-casefolded'.
41330         * lib/unicase/u32-is-casefolded.c: New file.
41331         * modules/unicase/u32-is-casefolded: New file.
41332
41333         New module 'unicase/u16-is-casefolded'.
41334         * lib/unicase/u16-is-casefolded.c: New file.
41335         * modules/unicase/u16-is-casefolded: New file.
41336
41337         New module 'unicase/u8-is-casefolded'.
41338         * lib/unicase/u8-is-casefolded.c: New file.
41339         * modules/unicase/u8-is-casefolded: New file.
41340
41341         Tests for module 'unicase/u32-is-titlecase'.
41342         * modules/unicase/u32-is-titlecase-tests: New file.
41343         * tests/unicase/test-u32-is-titlecase.c: New file.
41344
41345         Tests for module 'unicase/u16-is-titlecase'.
41346         * modules/unicase/u16-is-titlecase-tests: New file.
41347         * tests/unicase/test-u16-is-titlecase.c: New file.
41348
41349         Tests for module 'unicase/u8-is-titlecase'.
41350         * modules/unicase/u8-is-titlecase-tests: New file.
41351         * tests/unicase/test-u8-is-titlecase.c: New file.
41352         * tests/unicase/test-is-titlecase.h: New file.
41353
41354         New module 'unicase/u32-is-titlecase'.
41355         * lib/unicase/u32-is-titlecase.c: New file.
41356         * modules/unicase/u32-is-titlecase: New file.
41357
41358         New module 'unicase/u16-is-titlecase'.
41359         * lib/unicase/u16-is-titlecase.c: New file.
41360         * modules/unicase/u16-is-titlecase: New file.
41361
41362         New module 'unicase/u8-is-titlecase'.
41363         * lib/unicase/u8-is-titlecase.c: New file.
41364         * modules/unicase/u8-is-titlecase: New file.
41365
41366         Tests for module 'unicase/u32-is-lowercase'.
41367         * modules/unicase/u32-is-lowercase-tests: New file.
41368         * tests/unicase/test-u32-is-lowercase.c: New file.
41369
41370         Tests for module 'unicase/u16-is-lowercase'.
41371         * modules/unicase/u16-is-lowercase-tests: New file.
41372         * tests/unicase/test-u16-is-lowercase.c: New file.
41373
41374         Tests for module 'unicase/u8-is-lowercase'.
41375         * modules/unicase/u8-is-lowercase-tests: New file.
41376         * tests/unicase/test-u8-is-lowercase.c: New file.
41377         * tests/unicase/test-is-lowercase.h: New file.
41378
41379         New module 'unicase/u32-is-lowercase'.
41380         * lib/unicase/u32-is-lowercase.c: New file.
41381         * modules/unicase/u32-is-lowercase: New file.
41382
41383         New module 'unicase/u16-is-lowercase'.
41384         * lib/unicase/u16-is-lowercase.c: New file.
41385         * modules/unicase/u16-is-lowercase: New file.
41386
41387         New module 'unicase/u8-is-lowercase'.
41388         * lib/unicase/u8-is-lowercase.c: New file.
41389         * modules/unicase/u8-is-lowercase: New file.
41390
41391         Tests for module 'unicase/u32-is-uppercase'.
41392         * modules/unicase/u32-is-uppercase-tests: New file.
41393         * tests/unicase/test-u32-is-uppercase.c: New file.
41394
41395         Tests for module 'unicase/u16-is-uppercase'.
41396         * modules/unicase/u16-is-uppercase-tests: New file.
41397         * tests/unicase/test-u16-is-uppercase.c: New file.
41398
41399         Tests for module 'unicase/u8-is-uppercase'.
41400         * modules/unicase/u8-is-uppercase-tests: New file.
41401         * tests/unicase/test-u8-is-uppercase.c: New file.
41402         * tests/unicase/test-is-uppercase.h: New file.
41403
41404         New module 'unicase/u32-is-uppercase'.
41405         * lib/unicase/u32-is-uppercase.c: New file.
41406         * modules/unicase/u32-is-uppercase: New file.
41407
41408         New module 'unicase/u16-is-uppercase'.
41409         * lib/unicase/u16-is-uppercase.c: New file.
41410         * modules/unicase/u16-is-uppercase: New file.
41411
41412         New module 'unicase/u8-is-uppercase'.
41413         * lib/unicase/u8-is-uppercase.c: New file.
41414         * modules/unicase/u8-is-uppercase: New file.
41415
41416         New module 'unicase/u32-is-invariant'.
41417         * lib/unicase/u32-is-invariant.c: New file.
41418         * modules/unicase/u32-is-invariant: New file.
41419
41420         New module 'unicase/u16-is-invariant'.
41421         * lib/unicase/u16-is-invariant.c: New file.
41422         * modules/unicase/u16-is-invariant: New file.
41423
41424         New module 'unicase/u8-is-invariant'.
41425         * lib/unicase/u8-is-invariant.c: New file.
41426         * lib/unicase/invariant.h: New file.
41427         * lib/unicase/u-is-invariant.h: New file.
41428         * modules/unicase/u8-is-invariant: New file.
41429
41430         Tests for module 'unicase/u32-casecoll'.
41431         * modules/unicase/u32-casecoll-tests: New file.
41432         * tests/unicase/test-u32-casecoll.c: New file.
41433
41434         Tests for module 'unicase/u16-casecoll'.
41435         * modules/unicase/u16-casecoll-tests: New file.
41436         * tests/unicase/test-u16-casecoll.c: New file.
41437
41438         Tests for module 'unicase/u8-casecoll'.
41439         * modules/unicase/u8-casecoll-tests: New file.
41440         * tests/unicase/test-u8-casecoll.c: New file.
41441
41442         New module 'unicase/u32-casecoll'.
41443         * lib/unicase/u32-casecoll.c: New file.
41444         * modules/unicase/u32-casecoll: New file.
41445
41446         New module 'unicase/u16-casecoll'.
41447         * lib/unicase/u16-casecoll.c: New file.
41448         * modules/unicase/u16-casecoll: New file.
41449
41450         New module 'unicase/u8-casecoll'.
41451         * lib/unicase/u8-casecoll.c: New file.
41452         * lib/unicase/u-casecoll.h: New file.
41453         * modules/unicase/u8-casecoll: New file.
41454
41455         New module 'unicase/u32-casexfrm'.
41456         * lib/unicase/u32-casexfrm.c: New file.
41457         * modules/unicase/u32-casexfrm: New file.
41458
41459         New module 'unicase/u16-casexfrm'.
41460         * lib/unicase/u16-casexfrm.c: New file.
41461         * modules/unicase/u16-casexfrm: New file.
41462
41463         New module 'unicase/u8-casexfrm'.
41464         * lib/unicase/u8-casexfrm.c: New file.
41465         * lib/unicase/u-casexfrm.h: New file.
41466         * modules/unicase/u8-casexfrm: New file.
41467
41468         Tests for module 'unicase/u32-casecmp'.
41469         * modules/unicase/u32-casecmp-tests: New file.
41470         * tests/unicase/test-u32-casecmp.c: New file.
41471
41472         Tests for module 'unicase/u16-casecmp'.
41473         * modules/unicase/u16-casecmp-tests: New file.
41474         * tests/unicase/test-u16-casecmp.c: New file.
41475
41476         Tests for module 'unicase/u8-casecmp'.
41477         * modules/unicase/u8-casecmp-tests: New file.
41478         * tests/unicase/test-u8-casecmp.c: New file.
41479         * tests/unicase/test-casecmp.h: New file.
41480
41481         New module 'unicase/u32-casecmp'.
41482         * lib/unicase/u32-casecmp.c: New file.
41483         * modules/unicase/u32-casecmp: New file.
41484
41485         New module 'unicase/u16-casecmp'.
41486         * lib/unicase/u16-casecmp.c: New file.
41487         * modules/unicase/u16-casecmp: New file.
41488
41489         New module 'unicase/u8-casecmp'.
41490         * lib/unicase/u8-casecmp.c: New file.
41491         * lib/unicase/u-casecmp.h: New file.
41492         * modules/unicase/u8-casecmp: New file.
41493
41494         Tests for module 'unicase/u32-casefold'.
41495         * modules/unicase/u32-casefold-tests: New file.
41496         * tests/unicase/test-u32-casefold.c: New file.
41497
41498         Tests for module 'unicase/u16-casefold'.
41499         * modules/unicase/u16-casefold-tests: New file.
41500         * tests/unicase/test-u16-casefold.c: New file.
41501
41502         Tests for module 'unicase/u8-casefold'.
41503         * modules/unicase/u8-casefold-tests: New file.
41504         * tests/unicase/test-u8-casefold.c: New file.
41505
41506         New module 'unicase/u32-casefold'.
41507         * lib/unicase/u32-casefold.c: New file.
41508         * modules/unicase/u32-casefold: New file.
41509
41510         New module 'unicase/u16-casefold'.
41511         * lib/unicase/u16-casefold.c: New file.
41512         * modules/unicase/u16-casefold: New file.
41513
41514         New module 'unicase/u8-casefold'.
41515         * lib/unicase/u8-casefold.c: New file.
41516         * lib/unicase/u-casefold.h: New file.
41517         * modules/unicase/u8-casefold: New file.
41518
41519         New module 'unicase/tocasefold'.
41520         * lib/unicase/casefold.h: New file.
41521         * lib/unicase/tocasefold.c: New file.
41522         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41523         * modules/unicase/tocasefold: New file.
41524
41525         Tests for module 'unicase/u32-totitle'.
41526         * modules/unicase/u32-totitle-tests: New file.
41527         * tests/unicase/test-u32-totitle.c: New file.
41528
41529         Tests for module 'unicase/u16-totitle'.
41530         * modules/unicase/u16-totitle-tests: New file.
41531         * tests/unicase/test-u16-totitle.c: New file.
41532
41533         Tests for module 'unicase/u8-totitle'.
41534         * modules/unicase/u8-totitle-tests: New file.
41535         * tests/unicase/test-u8-totitle.c: New file.
41536
41537         New module 'unicase/u32-totitle'.
41538         * lib/unicase/u32-totitle.c: New file.
41539         * modules/unicase/u32-totitle: New file.
41540
41541         New module 'unicase/u16-totitle'.
41542         * lib/unicase/u16-totitle.c: New file.
41543         * modules/unicase/u16-totitle: New file.
41544
41545         New module 'unicase/u8-totitle'.
41546         * lib/unicase/u8-totitle.c: New file.
41547         * lib/unicase/u-totitle.h: New file.
41548         * modules/unicase/u8-totitle: New file.
41549
41550         Tests for module 'unicase/u32-tolower'.
41551         * modules/unicase/u32-tolower-tests: New file.
41552         * tests/unicase/test-u32-tolower.c: New file.
41553
41554         Tests for module 'unicase/u16-tolower'.
41555         * modules/unicase/u16-tolower-tests: New file.
41556         * tests/unicase/test-u16-tolower.c: New file.
41557
41558         Tests for module 'unicase/u8-tolower'.
41559         * modules/unicase/u8-tolower-tests: New file.
41560         * tests/unicase/test-u8-tolower.c: New file.
41561
41562         New module 'unicase/u32-tolower'.
41563         * lib/unicase/u32-tolower.c: New file.
41564         * modules/unicase/u32-tolower: New file.
41565
41566         New module 'unicase/u16-tolower'.
41567         * lib/unicase/u16-tolower.c: New file.
41568         * modules/unicase/u16-tolower: New file.
41569
41570         New module 'unicase/u8-tolower'.
41571         * lib/unicase/u8-tolower.c: New file.
41572         * modules/unicase/u8-tolower: New file.
41573
41574         Tests for module 'unicase/u32-toupper'.
41575         * modules/unicase/u32-toupper-tests: New file.
41576         * tests/unicase/test-u32-toupper.c: New file.
41577
41578         Tests for module 'unicase/u16-toupper'.
41579         * modules/unicase/u16-toupper-tests: New file.
41580         * tests/unicase/test-u16-toupper.c: New file.
41581
41582         Tests for module 'unicase/u8-toupper'.
41583         * modules/unicase/u8-toupper-tests: New file.
41584         * tests/unicase/test-u8-toupper.c: New file.
41585
41586         New module 'unicase/u32-toupper'.
41587         * lib/unicase/u32-toupper.c: New file.
41588         * modules/unicase/u32-toupper: New file.
41589
41590         New module 'unicase/u16-toupper'.
41591         * lib/unicase/u16-toupper.c: New file.
41592         * modules/unicase/u16-toupper: New file.
41593
41594         New module 'unicase/u8-toupper'.
41595         * lib/unicase/u8-toupper.c: New file.
41596         * modules/unicase/u8-toupper: New file.
41597
41598         New module 'unicase/u32-casemap'.
41599         * lib/unicase/u32-casemap.c: New file.
41600         * modules/unicase/u32-casemap: New file.
41601
41602         New module 'unicase/u16-casemap'.
41603         * lib/unicase/u16-casemap.c: New file.
41604         * modules/unicase/u16-casemap: New file.
41605
41606         New module 'unicase/u8-casemap'.
41607         * lib/unicase/unicasemap.h: New file.
41608         * lib/unicase/u8-casemap.c: New file.
41609         * lib/unicase/u-casemap.h: New file.
41610         * modules/unicase/u8-casemap: New file.
41611
41612         New module 'unicase/special-casing'.
41613         * lib/unicase/special-casing.h: New file.
41614         * lib/unicase/special-casing.c: New file.
41615         * lib/unicase/special-casing-table.gperf: New file, generated by
41616         gen-uni-tables.c.
41617         * modules/unicase/special-casing: New file.
41618
41619         Tests for module 'unicase/locale-language'.
41620         * modules/unicase/locale-language-tests: New file.
41621         * tests/unicase/test-locale-language.sh: New file.
41622         * tests/unicase/test-locale-language.c: New file.
41623
41624         New module 'unicase/locale-language'.
41625         * lib/unicase/locale-language.c: New file.
41626         * lib/unicase/locale-languages.gperf: New file.
41627         * modules/unicase/locale-language: New file.
41628
41629         Generate more tables for case conversion and case folding.
41630         * lib/gen-uni-tables.c (SCC_*): New enum items.
41631         (struct special_casing_rule): New type.
41632         (casing_rules, num_casing_rules, allocated_casing_rules): New
41633         variables.
41634         (add_casing_rule, fill_casing_rules): New functions.
41635         (struct casefold_rule): New type.
41636         (casefolding_rules, num_casefolding_rules,
41637         allocated_casefolding_rules): New variables.
41638         (fill_casefolding_rules): New function.
41639         (unicode_casefold): New variable.
41640         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41641         sort_casing_rules, output_casing_rules): New functions.
41642         (main): Accept to more arguments: SpecialCasing.txt and
41643         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41644         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41645         Output mapping for casefolding.
41646
41647         * lib/unicase.h: Include stdbool.h, uninorm.h.
41648         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41649         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41650         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41651         arguments.
41652         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41653         resultp arguments.
41654         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41655         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41656         resultp arguments.
41657         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41658         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41659         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41660         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41661         declarations.
41662         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41663
41664 2009-03-08  Bruno Haible  <bruno@clisp.org>
41665
41666         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41667         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41668         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41669         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41670
41671 2009-03-07  Bruno Haible  <bruno@clisp.org>
41672
41673         Adjust u*_normcmp, u*_normcoll API.
41674         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41675         u16_normcoll, u32_normcoll): Change failure conventions.
41676         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41677         errno and return -1.
41678         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41679
41680 2009-03-07  Bruno Haible  <bruno@clisp.org>
41681
41682         Tests for module 'uninorm/u32-normcoll'.
41683         * modules/uninorm/u32-normcoll-tests: New file.
41684         * tests/uninorm/test-u32-normcoll.c: New file.
41685
41686         Tests for module 'uninorm/u16-normcoll'.
41687         * modules/uninorm/u16-normcoll-tests: New file.
41688         * tests/uninorm/test-u16-normcoll.c: New file.
41689
41690         Tests for module 'uninorm/u8-normcoll'.
41691         * modules/uninorm/u8-normcoll-tests: New file.
41692         * tests/uninorm/test-u8-normcoll.c: New file.
41693
41694 2009-03-07  Bruno Haible  <bruno@clisp.org>
41695
41696         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41697         tests/uninorm/test-u32-normcmp.c.
41698         * tests/uninorm/test-u32-normcmp.c: Include it.
41699         (test_nonascii): New function, extracted from main. Add some more
41700         tests.
41701         (main): Invoke test_ascii and test_nonascii.
41702         * modules/uninorm/u32-normcmp-tests (Files): Add
41703         tests/uninorm/test-u32-normcmp.h.
41704         (Depends-on): Remove uninorm/u32-normcmp.
41705
41706         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41707         tests/uninorm/test-u16-normcmp.c.
41708         * tests/uninorm/test-u16-normcmp.c: Include it.
41709         (test_nonascii): New function, extracted from main. Add some more
41710         tests.
41711         (main): Invoke test_ascii and test_nonascii.
41712         * modules/uninorm/u16-normcmp-tests (Files): Add
41713         tests/uninorm/test-u16-normcmp.h.
41714         (Depends-on): Remove uninorm/u16-normcmp.
41715
41716         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41717         tests/uninorm/test-u8-normcmp.c.
41718         * tests/uninorm/test-u8-normcmp.c: Include it.
41719         (test_nonascii): New function, extracted from main. Add some more
41720         tests.
41721         (main): Invoke test_ascii and test_nonascii.
41722         * modules/uninorm/u8-normcmp-tests (Files): Add
41723         tests/uninorm/test-u8-normcmp.h.
41724         (Depends-on): Remove uninorm/u8-normcmp.
41725
41726 2009-03-07  Bruno Haible  <bruno@clisp.org>
41727
41728         New module 'uninorm/u32-normcoll'.
41729         * lib/uninorm/u32-normcoll.c: New file.
41730         * modules/uninorm/u32-normcoll: New file.
41731
41732         New module 'uninorm/u16-normcoll'.
41733         * lib/uninorm/u16-normcoll.c: New file.
41734         * modules/uninorm/u16-normcoll: New file.
41735
41736         New module 'uninorm/u8-normcoll'.
41737         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41738         declarations.
41739         * lib/uninorm/u8-normcoll.c: New file.
41740         * lib/uninorm/u-normcoll.h: New file.
41741         * modules/uninorm/u8-normcoll: New file.
41742
41743         New module 'uninorm/u32-normxfrm'.
41744         * lib/uninorm/u32-normxfrm.c: New file.
41745         * modules/uninorm/u32-normxfrm: New file.
41746
41747         New module 'uninorm/u16-normxfrm'.
41748         * lib/uninorm/u16-normxfrm.c: New file.
41749         * modules/uninorm/u16-normxfrm: New file.
41750
41751         New module 'uninorm/u8-normxfrm'.
41752         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41753         declarations.
41754         * lib/uninorm/u8-normxfrm.c: New file.
41755         * lib/uninorm/u-normxfrm.h: New file.
41756         * modules/uninorm/u8-normxfrm: New file.
41757
41758 2009-03-07  Bruno Haible  <bruno@clisp.org>
41759
41760         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41761         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41762         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41763
41764 2009-03-07  Bruno Haible  <bruno@clisp.org>
41765
41766         New module 'memxfrm'.
41767         * lib/memxfrm.h: New file.
41768         * lib/memxfrm.c: New file.
41769         * modules/memxfrm: New file.
41770
41771 2009-03-07  Bruno Haible  <bruno@clisp.org>
41772
41773         New module 'memcmp2'.
41774         * lib/memcmp2.h: New file.
41775         * lib/memcmp2.c: New file.
41776         * modules/memcmp2: New file.
41777
41778 2009-03-07  Bruno Haible  <bruno@clisp.org>
41779
41780         Tests for module 'uninorm/decomposing-form'.
41781         * modules/uninorm/decomposing-form-tests: New file.
41782         * tests/uninorm/test-decomposing-form.c: New file.
41783
41784         New module 'uninorm/decomposing-form'.
41785         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41786         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41787         Add 'decomposing_variant' field.
41788         * lib/uninorm/decomposing-form.c: New file.
41789         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41790         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41791         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41792         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41793         * modules/uninorm/decomposing-form: New file.
41794         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41795         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41796
41797 2009-03-07  Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41800         strings.
41801
41802 2009-03-06  Bruno Haible  <bruno@clisp.org>
41803
41804         Tests for module 'uninorm/u32-normcmp'.
41805         * tests/uninorm/test-u32-normcmp.c: New file.
41806         * modules/uninorm/u32-normcmp-tests: New file.
41807
41808         Tests for module 'uninorm/u16-normcmp'.
41809         * tests/uninorm/test-u16-normcmp.c: New file.
41810         * modules/uninorm/u16-normcmp-tests: New file.
41811
41812         Tests for module 'uninorm/u8-normcmp'.
41813         * tests/uninorm/test-u8-normcmp.c: New file.
41814         * modules/uninorm/u8-normcmp-tests: New file.
41815
41816         New module 'uninorm/u32-normcmp'.
41817         * lib/uninorm/u32-normcmp.c: New file.
41818         * modules/uninorm/u32-normcmp: New file.
41819
41820         New module 'uninorm/u16-normcmp'.
41821         * lib/uninorm/u16-normcmp.c: New file.
41822         * modules/uninorm/u16-normcmp: New file.
41823
41824         New module 'uninorm/u8-normcmp'.
41825         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41826         declarations.
41827         * lib/uninorm/u8-normcmp.c: New file.
41828         * lib/uninorm/u-normcmp.h: New file.
41829         * modules/uninorm/u8-normcmp: New file.
41830
41831 2009-03-06  Bruno Haible  <bruno@clisp.org>
41832
41833         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41834         Reported by Eric Blake.
41835
41836 2009-03-06  Eric Blake  <ebb9@byu.net>
41837             Bruno Haible  <bruno@clisp.org>
41838
41839         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41840         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41841         condition.
41842         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41843         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41844         condition.
41845         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41846
41847 2009-03-06  Eric Blake  <ebb9@byu.net>
41848
41849         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41850         to avoid compiler warnings.
41851         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41852
41853 2009-03-05  Bruno Haible  <bruno@clisp.org>
41854
41855         * tests/test-ftell.c (main): Disable test beyond end of file on
41856         FreeMiNT.
41857         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41858
41859 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41860
41861         * lib/filevercmp.c: Move hidden files up in ordering.
41862         * tests/test-filevercmp.c: Add tests for hidden files.
41863
41864 2009-03-04  Bruno Haible  <bruno@clisp.org>
41865
41866         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41867         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41868         AM_CFLAGS.
41869         Reported by Simon Josefsson.
41870
41871 2009-03-03  Bruno Haible  <bruno@clisp.org>
41872
41873         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41874         Reported by Simon Josefsson.
41875
41876         * doc/ld-version-script.texi: Update node reference.
41877
41878 2009-03-03  Bruno Haible  <bruno@clisp.org>
41879
41880         * modules/visibility (License): Change to 'unlimited'.
41881         Suggested by Simon Josefsson.
41882
41883 2009-03-03  Jim Meyering  <meyering@redhat.com>
41884
41885         unlinkdir: cannot_unlink_dir may modify process state
41886         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41887         it's neither thread-safe nor appropriate for use in a library.
41888
41889 2009-03-03  Eric Blake  <ebb9@byu.net>
41890
41891         test-closein: silence test under Darwin
41892         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41893         care if it dies from EPIPE or EBADF.
41894
41895 2009-03-03  Bruno Haible  <bruno@clisp.org>
41896
41897         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41898         earlier.
41899         * doc/visibility.texi: Fix @node and @section.
41900
41901 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41902
41903         * doc/gnulib.texi: Link to sections for ld version script and
41904         visibility.
41905         * doc/visibility.texi: Add @node and @section.
41906         * modules/ld-version-script: New module.
41907         * m4/ld-version-script.m4: New file.
41908         * doc/ld-version-script.texi: New file.
41909
41910 2009-03-02  David Lutterkort  <lutter@redhat.com>
41911
41912         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41913         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41914
41915 2009-03-02  Bruno Haible  <bruno@clisp.org>
41916
41917         * doc/visibility.texi: Mention libtool's -export-symbols option.
41918
41919 2009-03-02  Jim Meyering  <meyering@redhat.com>
41920
41921         announce-gen: new option: --no-print-checksums
41922         * build-aux/announce-gen (usage): Describe it.
41923         (print_checksums): Print a newline here, not in the [*] footnote.
41924         (main): Honor it.
41925
41926 2009-03-01  Bruno Haible  <bruno@clisp.org>
41927
41928         Use socklen_t in the native Windows replacements prototypes.
41929         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41930         instead of 'int'.
41931         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41932         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41933         * modules/getsockopt (Depends-on): Add socklen.
41934         * modules/setsockopt (Depends-on): Add socklen.
41935
41936 2009-03-01  Bruno Haible  <bruno@clisp.org>
41937
41938         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41939         least 4.2.
41940
41941 2009-03-01  Eric Blake  <ebb9@byu.net>
41942             Bruno Haible  <bruno@clisp.org>
41943
41944         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41945         error messages.
41946         * lib/wait-process.c (wait_subprocess): Omit error message about
41947         deadly signal sent to the child of termsigp != NULL.
41948
41949 2009-03-01  Eric Blake  <ebb9@byu.net>
41950
41951         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41952
41953 2009-03-01  Bruno Haible  <bruno@clisp.org>
41954
41955         Avoid a gcc warning.
41956         * tests/test-sched.c (b): Make global.
41957         Reported by Eric Blake.
41958
41959 2009-01-19  Martin Lambers  <marlam@marlam.de>
41960
41961         Provide POSIX semantics for socket timeout options on W32.
41962         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41963         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41964         * modules/setsockopt: Depend on sys_time module for struct timeval.
41965         * modules/getsockopt: Depend on sys_time module for struct timeval.
41966
41967 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41968
41969         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41970         __USE_GNU, for consistency with netdb.in.h.
41971         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41972
41973 2009-03-01  Bruno Haible  <bruno@clisp.org>
41974
41975         More support for FreeMiNT.
41976         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41977         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41978
41979 2009-03-01  Bruno Haible  <bruno@clisp.org>
41980
41981         More support for FreeMiNT.
41982         * lib/fpurge.c (fpurge): Correct last commit.
41983         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41984
41985 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41986
41987         Fix unportable awk script in vc-list-files.
41988         * build-aux/vc-list-files: In the replacement awk script, use
41989         substr with a second argument of 1, not zero.
41990         Report by Simon Josefsson.
41991
41992 2009-02-28  Bruno Haible  <bruno@clisp.org>
41993
41994         More support for FreeMiNT.
41995         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41996         to FreeMiNT today.
41997         * lib/fwriting.c (fwriting): Likewise.
41998         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41999
42000 2009-02-28  Bruno Haible  <bruno@clisp.org>
42001
42002         * tests/test-freadseek.c (main): Disable test beyond end of file on
42003         FreeMiNT.
42004         * tests/test-ftello.c (main): Likewise.
42005         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42006
42007 2009-02-28  Bruno Haible  <bruno@clisp.org>
42008
42009         Add tentative support for FreeMiNT.
42010         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
42011         * lib/fpurge.c (fpurge): Likewise.
42012         * lib/freadable.c (freadable): Likewise.
42013         * lib/freading.c (freading): Likewise.
42014         * lib/freadptr.c (freadptr): Likewise.
42015         * lib/freadseek.c (freadptrinc): Likewise.
42016         * lib/fseeko.c (rpl_fseeko): Likewise.
42017         * lib/fseterr.c (fseterr): Likewise.
42018         * lib/fwritable.c (fwritable): Likewise.
42019         * lib/fwriting.c (fwriting): Likewise.
42020         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
42021         Hourihane.
42022         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42023
42024 2009-02-28  Bruno Haible  <bruno@clisp.org>
42025
42026         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
42027         SIGCHLD.
42028         Reported by Jim Meyering.
42029
42030 2009-02-28  Bruno Haible  <bruno@clisp.org>
42031
42032         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
42033         Mention the results of these tests on various platforms.
42034         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
42035         order.
42036         * doc/posix-functions/printf.texi: Likewise.
42037         * doc/posix-functions/snprintf.texi: Likewise.
42038         * doc/posix-functions/sprintf.texi: Likewise.
42039         * doc/posix-functions/vfprintf.texi: Likewise.
42040         * doc/posix-functions/vprintf.texi: Likewise.
42041         * doc/posix-functions/vsnprintf.texi: Likewise.
42042         * doc/posix-functions/vsprintf.texi: Likewise.
42043         * doc/glibc-functions/obstack_printf.texi: Likewise.
42044         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42045
42046 2009-02-28  Bruno Haible  <bruno@clisp.org>
42047
42048         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42049         Reported by Loïc Minier <lool@dooz.org>.
42050
42051 2009-02-27  Bruno Haible  <bruno@clisp.org>
42052
42053         * gnulib-tool (func_import): Make the sed expression used to create the
42054         sed script for updating the .gitignore file POSIX compliant.
42055         Reported by Eric Blake.
42056
42057 2009-02-27  Bruno Haible  <bruno@clisp.org>
42058
42059         * gnulib-tool (sed): Don't alias as "sed --posix".
42060         Reported by Eric Blake.
42061
42062 2009-02-27  Bruno Haible  <bruno@clisp.org>
42063
42064         Avoid test link errors.
42065         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42066         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42067         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42068         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42069         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42070
42071 2009-02-27  Bruno Haible  <bruno@clisp.org>
42072
42073         Avoid spurious "(cached)" in configure output.
42074         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42075         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42076         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42077         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42078         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42079         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42080         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42081         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42082         Reported by Eric Blake.
42083
42084 2009-02-27  Eric Blake  <ebb9@byu.net>
42085
42086         printf: fix regression in previous patch
42087         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42088
42089 2009-02-27  Bruno Haible  <bruno@clisp.org>
42090
42091         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42092         value.
42093         * lib/stdint.in.h: Likewise.
42094         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42095
42096 2009-02-27  Eric Blake  <ebb9@byu.net>
42097
42098         doc: mention more functions added in cygwin 1.7.0
42099         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42100         addition.
42101         * doc/posix-functions/open_wmemstream.texi: Likewise.
42102         * doc/posix-functions/wcsnlen.texi: Likewise.
42103         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42104         * doc/posix-functions/wcstod.texi: Likewise.
42105         * doc/posix-functions/wcstof.texi: Likewise.
42106         * doc/posix-functions/wcstoimax.texi: Likewise.
42107         * doc/posix-functions/wcstok.texi: Likewise.
42108         * doc/posix-functions/wcstoumax.texi: Likewise.
42109
42110         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42111         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42112         * doc/posix-functions/fprintf.texi: Update.
42113         * doc/posix-functions/printf.texi: Update.
42114         * doc/posix-functions/snprintf.texi: Update.
42115         * doc/posix-functions/sprintf.texi: Update.
42116         * doc/posix-functions/vfprintf.texi: Update.
42117         * doc/posix-functions/vprintf.texi: Update.
42118         * doc/posix-functions/vsnprintf.texi: Update.
42119         * doc/posix-functions/vsprintf.texi: Update.
42120         * doc/glibc-functions/obstack_printf.texi: Update.
42121         * doc/glibc-functions/obstack_vprintf.texi: Update.
42122
42123 2009-02-26  Eric Blake  <ebb9@byu.net>
42124
42125         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42126         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42127         compilation bug by using runtime conversion.
42128         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42129         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42130         * modules/ceill-tests (Files): Use nan.h.
42131         * modules/floorl-tests (Files): Likewise.
42132         * modules/frexpl-tests (Files): Likewise.
42133         * modules/isnanl-tests (Files): Likewise.
42134         * modules/ldexpl-tests (Files): Likewise.
42135         * modules/roundl-tests (Files): Likewise.
42136         * modules/truncl-tests (Files): Likewise.
42137         * tests/test-ceill.c (main): Use a working NaN.
42138         * tests/test-floorl.c (main): Likewise.
42139         * tests/test-frexpl.c (main): Likewise.
42140         * tests/test-isnan.c (test_long_double): Likewise.
42141         * tests/test-isnanl.h (main): Likewise.
42142         * tests/test-ldexpl.h (main): Likewise.
42143         * tests/test-roundl.h (main): Likewise.
42144         * tests/test-truncl.h (main): Likewise.
42145         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42146
42147 2009-02-26  Eric Blake  <ebb9@byu.net>
42148             Bruno Haible  <bruno@clisp.org>
42149
42150         Work around a *printf bug with %ls on Solaris.
42151         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42152         precision is specified, sprintf stops converting the wide string
42153         argument when the number of bytes that have been produced by this
42154         conversion equals or exceeds the precision.
42155         * doc/posix-functions/fprintf.texi: Update.
42156         * doc/posix-functions/printf.texi: Update.
42157         * doc/posix-functions/snprintf.texi: Update.
42158         * doc/posix-functions/sprintf.texi: Update.
42159         * doc/posix-functions/vfprintf.texi: Update.
42160         * doc/posix-functions/vprintf.texi: Update.
42161         * doc/posix-functions/vsnprintf.texi: Update.
42162         * doc/posix-functions/vsprintf.texi: Update.
42163         * doc/glibc-functions/obstack_printf.texi: Update.
42164         * doc/glibc-functions/obstack_vprintf.texi: Update.
42165
42166 2009-02-26  Eric Blake  <ebb9@byu.net>
42167
42168         stdlib: favor compiler check of random.h
42169         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42170         to avoid an ObjC random.h installed by Swarm.
42171
42172 2009-02-26  Bruno Haible  <bruno@clisp.org>
42173
42174         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42175         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42176         Reported by Gary V. Vaughan <gary@gnu.org>.
42177
42178 2009-02-26  Bruno Haible  <bruno@clisp.org>
42179
42180         Fix *printf behaviour regarding the %ls directive.
42181         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42182         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42183         NEED_PRINTF_DIRECTIVE_LS.
42184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42185         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42186         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42187         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42188         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42189         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42190         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42191         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42192         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42193         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42194         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42195         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42196         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42197         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42198         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42199         * doc/posix-functions/fprintf.texi: Update.
42200         * doc/posix-functions/printf.texi: Update.
42201         * doc/posix-functions/snprintf.texi: Update.
42202         * doc/posix-functions/sprintf.texi: Update.
42203         * doc/posix-functions/vfprintf.texi: Update.
42204         * doc/posix-functions/vprintf.texi: Update.
42205         * doc/posix-functions/vsnprintf.texi: Update.
42206         * doc/posix-functions/vsprintf.texi: Update.
42207         * doc/glibc-functions/obstack_printf.texi: Update.
42208         * doc/glibc-functions/obstack_vprintf.texi: Update.
42209         Reported by Eric Blake.
42210
42211 2009-02-25  Bruno Haible  <bruno@clisp.org>
42212
42213         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42214         with known value.
42215         Reported by Gary V. Vaughan <gary@gnu.org>.
42216
42217 2009-02-25  Bruno Haible  <bruno@clisp.org>
42218
42219         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42220         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42221         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42222         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42223         Reported by Gary V. Vaughan <gary@gnu.org>.
42224
42225 2009-02-25  Bruno Haible  <bruno@clisp.org>
42226
42227         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42228         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42229         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42230         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42231         Reported by Gary V. Vaughan <gary@gnu.org>.
42232
42233 2009-02-25  Eric Blake  <ebb9@byu.net>
42234
42235         tests: skip fseek/ftell tests if ungetc is broken
42236         * m4/ungetc.m4: New file.
42237         * modules/fseek-tests: Split test, so ungetc dependency is
42238         separate from rest of test.
42239         * modules/fseeko-tests: Likewise.
42240         * modules/ftell-tests: Likewise.
42241         * modules/ftello-tests: Likewise.
42242         * tests/test-fseek.c (main): Isolate ungetc dependency.
42243         * tests/test-fseeko.c (main): Likewise.
42244         * tests/test-ftell.c (main): Likewise.
42245         * tests/test-ftello.c (main): Likewise.
42246         * tests/test-fseek2.sh: New file.
42247         * tests/test-fseeko2.sh: Likewise.
42248         * tests/test-ftell2.sh: Likewise.
42249         * tests/test-ftello2.sh: Likewise.
42250
42251 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
42252
42253         test-getaddrinfo: fix usage of skip return code 77
42254         * tests/test-gettaddrinfo.c: Return skip code 77 only
42255         for first occurance of skip (4x77 is not 77)
42256
42257 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42258
42259         strtod: avoid C99 decl-after-statement
42260         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42261
42262 2009-02-24  Eric Blake  <ebb9@byu.net>
42263
42264         strtod: detect HP-UX 11.31 bug
42265         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42266         Reported by Gary V. Vaughan.
42267
42268 2009-02-23  Bruno Haible  <bruno@clisp.org>
42269
42270         Fix invalid read past end of memory block.
42271         * lib/vasnprintf.c (DCHAR_SET): Define.
42272         (local_wcslen): Define only when needed.
42273         (local_strnlen, local_wcsnlen): New functions.
42274         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42275         directives that involve a conversion ourselves.
42276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42277         wcsnlen, mbrtowc, wcrtomb.
42278         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42279         * tests/test-vasprintf-posix.c (test_function): Likewise.
42280         * tests/test-snprintf-posix.h (test_function): Likewise.
42281         * tests/test-sprintf-posix.h (test_function): Likewise.
42282         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42283
42284 2009-02-22  Bruno Haible  <bruno@clisp.org>
42285
42286         Implement new clarified decomposition of Hangul syllables.
42287         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42288         of type LTV, return only a pairwise decomposition.
42289         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42290         Likewise.
42291         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42292         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42293         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42294
42295 2009-02-22  Bruno Haible  <bruno@clisp.org>
42296
42297         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42298         zero-length results and shrink excess allocated memory.
42299         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42300         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42301         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42302         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42303         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42304         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42305         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42306         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42307         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42308         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42309         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42310         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42311
42312 2009-02-21  Bruno Haible  <bruno@clisp.org>
42313
42314         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42315         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42316         spaces after a period. Put a space between a macro name and its
42317         argument list. Trivial rewordings.
42318         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42319         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42320         (main): Return 0 explicitly.
42321
42322 2009-02-21  Bruno Haible  <bruno@clisp.org>
42323
42324         Tests for module 'uninorm/filter'.
42325         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42326         * modules/uninorm/filter-tests: New file.
42327
42328         New module 'uninorm/filter'.
42329         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42330         uninorm_filter_flush, uninorm_filter_free): New declarations.
42331         * lib/uninorm/uninorm-filter.c: New file.
42332         * modules/uninorm/filter: New file.
42333
42334 2009-02-21  Bruno Haible  <bruno@clisp.org>
42335
42336         Tests for module 'uninorm/nfkc'.
42337         * tests/uninorm/test-nfkc.c: New file.
42338         * tests/uninorm/test-u8-nfkc.c: New file.
42339         * tests/uninorm/test-u16-nfkc.c: New file.
42340         * tests/uninorm/test-u32-nfkc.c: New file.
42341         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42342         * tests/uninorm/test-u32-nfkc-big.c: New file.
42343         * modules/uninorm/nfkc-tests: New file.
42344
42345         New module 'uninorm/nfkc'.
42346         * lib/uninorm/nfkc.c: New file.
42347         * modules/uninorm/nfkc: New file.
42348
42349         Tests for module 'uninorm/nfkd'.
42350         * tests/uninorm/test-nfkd.c: New file.
42351         * tests/uninorm/test-u8-nfkd.c: New file.
42352         * tests/uninorm/test-u16-nfkd.c: New file.
42353         * tests/uninorm/test-u32-nfkd.c: New file.
42354         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42355         * tests/uninorm/test-u32-nfkd-big.c: New file.
42356         * modules/uninorm/nfkd-tests: New file.
42357
42358         New module 'uninorm/nfkd'.
42359         * lib/uninorm/nfkd.c: New file.
42360         * modules/uninorm/nfkd: New file.
42361
42362         Tests for module 'uninorm/nfc'.
42363         * tests/uninorm/test-nfc.c: New file.
42364         * tests/uninorm/test-u8-nfc.c: New file.
42365         * tests/uninorm/test-u16-nfc.c: New file.
42366         * tests/uninorm/test-u32-nfc.c: New file.
42367         * tests/uninorm/test-u32-nfc-big.sh: New file.
42368         * tests/uninorm/test-u32-nfc-big.c: New file.
42369         * modules/uninorm/nfc-tests: New file.
42370
42371         New module 'uninorm/nfc'.
42372         * lib/uninorm/nfc.c: New file.
42373         * modules/uninorm/nfc: New file.
42374
42375         Tests for module 'uninorm/nfd'.
42376         * tests/uninorm/test-nfd.c: New file.
42377         * tests/uninorm/test-u8-nfd.c: New file.
42378         * tests/uninorm/test-u16-nfd.c: New file.
42379         * tests/uninorm/test-u32-nfd.c: New file.
42380         * tests/uninorm/test-u32-nfd-big.sh: New file.
42381         * tests/uninorm/test-u32-nfd-big.c: New file.
42382         * tests/uninorm/test-u32-normalize-big.h: New file.
42383         * tests/uninorm/test-u32-normalize-big.c: New file.
42384         * tests/uninorm/NormalizationTest.txt: New file, created from
42385         Unicode 5.1.0 NormalizationTest.txt.
42386         * modules/uninorm/nfd-tests: New file.
42387
42388         New module 'uninorm/nfd'.
42389         * lib/uninorm/nfd.c: New file.
42390         * modules/uninorm/nfd: New file.
42391
42392         New module 'uninorm/u32-normalize'.
42393         * lib/uninorm/u32-normalize.c: New file.
42394         * modules/uninorm/u32-normalize: New file.
42395
42396         New module 'uninorm/u16-normalize'.
42397         * lib/uninorm/u16-normalize.c: New file.
42398         * modules/uninorm/u16-normalize: New file.
42399
42400         New module 'uninorm/u8-normalize'.
42401         * lib/uninorm/u8-normalize.c: New file.
42402         * lib/uninorm/normalize-internal.h: New file.
42403         * lib/uninorm/u-normalize-internal.h: New file.
42404         * modules/uninorm/u8-normalize: New file.
42405
42406         New module 'uninorm/decompose-internal'.
42407         * lib/uninorm/decompose-internal.c: New file.
42408         * modules/uninorm/decompose-internal: New file.
42409
42410         Tests for module 'uninorm/composition'.
42411         * tests/uninorm/test-composition.c: New file.
42412         * modules/uninorm/composition-tests: New file.
42413
42414         New module 'uninorm/composition'.
42415         * lib/uninorm/composition.c: New file.
42416         * lib/uninorm/composition-table.gperf: New file, generated by
42417         gen-uni-tables.
42418         * modules/uninorm/composition: New file.
42419
42420         Tests for module 'uninorm/compat-decomposition'.
42421         * tests/uninorm/test-compat-decomposition.c: New file.
42422         * modules/uninorm/compat-decomposition-tests: New file.
42423
42424         New module 'uninorm/compat-decomposition'.
42425         * lib/uninorm/decompose-internal.h: New file.
42426         * lib/uninorm/compat-decomposition.c: New file.
42427         * modules/uninorm/compat-decomposition: New file.
42428
42429         Tests for module 'uninorm/canonical-decomposition'.
42430         * tests/uninorm/test-canonical-decomposition.c: New file.
42431         * modules/uninorm/canonical-decomposition-tests: New file.
42432
42433         New module 'uninorm/canonical-decomposition'.
42434         * lib/uninorm/canonical-decomposition.c: New file.
42435         * modules/uninorm/canonical-decomposition: New file.
42436
42437         Tests for module 'uninorm/decomposition'.
42438         * tests/uninorm/test-decomposition.c: New file.
42439         * modules/uninorm/decomposition-tests: New file.
42440
42441         New module 'uninorm/decomposition'.
42442         * lib/uninorm/decomposition.c: New file.
42443         * modules/uninorm/decomposition: New file.
42444
42445         New module 'uninorm/decomposition-table'.
42446         * lib/uninorm/decomposition-table.h: New file.
42447         * lib/uninorm/decomposition-table.c: New file.
42448         * lib/uninorm/decomposition-table1.h: New file, generated by
42449         gen-uni-tables.
42450         * lib/uninorm/decomposition-table2.h: New file, generated by
42451         gen-uni-tables.
42452         * modules/uninorm/decomposition-table: New file.
42453
42454         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42455         (UC_DECOMP_*): New enumeration items.
42456         (get_decomposition): New function.
42457         (struct decomp_table): New type.
42458         (output_decomposition, output_decomposition_tables): New functions.
42459         (unicode_composition_exclusions): New variable.
42460         (fill_composition_exclusions, debug_output_composition_tables): New
42461         functions.
42462         (main): Accept one more argument. Invoke fill_composition_exclusions.
42463         Output decomposition and composition tables.
42464
42465         New module 'uninorm/base'.
42466         * lib/uninorm.h: New file.
42467         * lib/unictype.h: Update comment.
42468         * modules/uninorm/base: New file.
42469
42470 2009-02-21  David Lutterkort  <lutter@redhat.com>
42471
42472         Tests for module 'safe-alloc'.
42473         * tests/test-safe-alloc.c: New file.
42474         * modules/safe-alloc-tests: New file.
42475
42476         New module 'safe-alloc'.
42477         * lib/safe-alloc.h: New file.
42478         * lib/safe-alloc.c: New file.
42479         * m4/safe-alloc.m4: New file.
42480         * modules/safe-alloc: New file.
42481         * doc/safe-alloc.texi: New file.
42482         * doc/gnulib.texi: Include it.
42483         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42484         safe-alloc.
42485
42486 2009-02-18  Bruno Haible  <bruno@clisp.org>
42487
42488         Fix link error on non-glibc systems.
42489         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42490         variable.
42491         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42492
42493 2009-02-18  Jim Meyering  <meyering@redhat.com>
42494
42495         fts: avoid used-uninitialized error due to recent change
42496         * lib/fts.c (fts_read): Guard uses of the new member,
42497         parent->fts_n_dirs_remaining, since it's not relevant for
42498         the parent of a directory specified on the command-line.
42499
42500 2009-02-17  James Youngman  <jay@gnu.org>
42501             Bruno Haible  <bruno@clisp.org>
42502
42503         * m4/include_next.m4: Reformulate comment.
42504
42505 2009-02-16  Jim Meyering  <meyering@redhat.com>
42506
42507         fts: add #if guards so that the fts_lgpl module still builds
42508         * lib/fts.c: Guard just-added hash-table-using parts with
42509         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42510         Reported by Simon Josefsson.
42511
42512 2009-02-15  Bruno Haible  <bruno@clisp.org>
42513
42514         * modules/array-mergesort-tests: New file.
42515         * tests/test-array-mergesort.c: New file.
42516
42517         New module 'array-mergesort'.
42518         * modules/array-mergesort: New file.
42519         * lib/array-mergesort.h: New file.
42520
42521 2009-02-15  Bruno Haible  <bruno@clisp.org>
42522
42523         Fix 2009-02-07 commit.
42524         * lib/gen-uni-tables.c (output_predicate, output_category,
42525         output_combclass, output_bidi_category, output_decimal_digit,
42526         output_digit, output_numeric, output_mirror, output_scripts,
42527         output_ident_category, output_simple_mapping): Fix format directives.
42528         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42529
42530 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42531
42532         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42533         fixes are available from IBM.
42534
42535 2009-02-13  Jim Meyering  <meyering@redhat.com>
42536
42537         fts: arrange not to stat non-directories in more cases
42538         This makes GNU find (when it doesn't need to stat each file)
42539         *much* more efficient at traversing reiserfs file systems.
42540         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42541         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42542         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42543         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42544         (leaf_optimization_applies): New function.
42545         (LCO_hash, LCO_compare): New helper functions.
42546         (link_count_optimize_ok): New function.
42547         (fts_stat): Initialize new member (if dir).
42548         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42549         we've just stat'ed a directory.  Skip the stat call when possible.
42550         ---
42551         Note this AFS-related exchange:
42552         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42553         and note find's pioctl call in find/fstype.c.
42554         But that is necessary only if you want to enable the
42555         optimization for AFS, and for now, I don't.
42556
42557         fts: move a function definition "up" (no semantic change)
42558         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42559         "up" to precede upcoming use of a related function.
42560
42561 2009-02-11  Jim Meyering  <meyering@redhat.com>
42562
42563         fts: correct internal computation of nlinks (optimization-related)
42564         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42565         whether the current entry is a directory, so don't test it.
42566
42567 2009-02-10  Bruno Haible  <bruno@clisp.org>
42568
42569         Tests for module 'uniwbrk/ulc-wordbreaks'.
42570         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42571         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42572         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42573
42574         Tests for module 'uniwbrk/u32-wordbreaks'.
42575         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42576         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42577
42578         Tests for module 'uniwbrk/u16-wordbreaks'.
42579         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42580         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42581
42582         Tests for module 'uniwbrk/u8-wordbreaks'.
42583         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42584         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42585
42586 2009-02-10  Bruno Haible  <bruno@clisp.org>
42587
42588         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42589         property.
42590         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42591         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42592         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42593
42594 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42595
42596         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42597         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42598
42599 2009-02-10  Bruno Haible  <bruno@clisp.org>
42600
42601         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42602         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42603         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42604         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42605         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42606         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42607
42608 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42609
42610         * lib/sockets.h (gl_fd_to_handle): New function.
42611
42612         * tests/test-sockets.c: Call gl_fd_to_handle.
42613
42614 2009-02-09  Bruno Haible  <bruno@clisp.org>
42615
42616         * doc/havelib.texi: Document the conventions on bi-arch systems.
42617
42618 2009-02-08  Bruno Haible  <bruno@clisp.org>
42619
42620         Document the AC_LIB_LINKFLAGS macro.
42621         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42622         * doc/gnulib.texi: Include it.
42623
42624 2009-02-08  Bruno Haible  <bruno@clisp.org>
42625
42626         Fix wrong order of sections, compared to TOC.
42627         * doc/gnulib.texi: Include relocatable-maint.texi after the
42628         "Regular expressions" node, not before.
42629
42630 2009-02-08  Bruno Haible  <bruno@clisp.org>
42631
42632         Tests for module 'unicase/totitle'.
42633         * modules/unicase/totitle-tests: New file.
42634
42635         Tests for module 'unicase/tolower'.
42636         * modules/unicase/tolower-tests: New file.
42637
42638         Tests for module 'unicase/toupper'.
42639         * modules/unicase/toupper-tests: New file.
42640         * tests/unicase/test-mapping-part1.h: New file.
42641         * tests/unicase/test-mapping-part2.h: New file.
42642
42643         New module 'unicase/totitle'.
42644         * modules/unicase/totitle: New file.
42645         * lib/unicase/totitle.c: New file.
42646
42647         New module 'unicase/tolower'.
42648         * modules/unicase/tolower: New file.
42649         * lib/unicase/tolower.c: New file.
42650
42651         New module 'unicase/toupper'.
42652         * modules/unicase/toupper: New file.
42653         * lib/unicase/toupper.c: New file.
42654         * lib/unicase/simple-mapping.h: New file.
42655
42656         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42657         (mapping_table): New structure.
42658         (output_simple_mapping): New function.
42659         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42660         * modules/gen-uni-tables (Description): Update.
42661         * lib/unicase/toupper.h: New file, automatically generated by
42662         gen-uni-tables.
42663         * lib/unicase/tolower.h: New file, automatically generated by
42664         gen-uni-tables.
42665         * lib/unicase/totitle.h: New file, automatically generated by
42666         gen-uni-tables.
42667         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42668         gen-uni-tables.
42669         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42670         gen-uni-tables.
42671         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42672         gen-uni-tables.
42673
42674         New module 'unicase/base'.
42675         * modules/unicase/base: New file.
42676         * lib/unicase.h: New file.
42677
42678 2009-02-08  Bruno Haible  <bruno@clisp.org>
42679
42680         New module 'uniwbrk/ulc-wordbreaks'.
42681         * modules/uniwbrk/ulc-wordbreaks: New file.
42682         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42683
42684         New module 'uniwbrk/u32-wordbreaks'.
42685         * modules/uniwbrk/u32-wordbreaks: New file.
42686         * lib/uniwbrk/u32-wordbreaks.c: New file.
42687
42688         New module 'uniwbrk/u16-wordbreaks'.
42689         * modules/uniwbrk/u16-wordbreaks: New file.
42690         * lib/uniwbrk/u16-wordbreaks.c: New file.
42691
42692         New module 'uniwbrk/u8-wordbreaks'.
42693         * modules/uniwbrk/u8-wordbreaks: New file.
42694         * lib/uniwbrk/u8-wordbreaks.c: New file.
42695         * lib/uniwbrk/u-wordbreaks.h: New file.
42696
42697         New module 'uniwbrk/table'.
42698         * modules/uniwbrk/table: New file.
42699         * lib/uniwbrk/wbrktable.h: New file.
42700         * lib/uniwbrk/wbrktable.c: New file.
42701
42702         New module 'uniwbrk/wordbreak-property'.
42703         * modules/uniwbrk/wordbreak-property: New file.
42704         * lib/uniwbrk/wordbreak-property.c: New file.
42705
42706         * lib/gen-uni-tables.c (WBP_*): New enum items.
42707         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42708         (unicode_org_wbp): New variable.
42709         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42710         New functions.
42711         (wbp_table): New structure.
42712         (output_wbp, output_wbrk_tables): New functions.
42713         (main): Accept additional argument. Invoke fill_org_wbp,
42714         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42715         output_wbrk_tables.
42716         * modules/gen-uni-tables (Description): Update.
42717         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42718         gen-uni-tables.
42719
42720         New module 'uniwbrk/base'.
42721         * modules/uniwbrk/base: New file.
42722         * lib/uniwbrk.h: New file.
42723
42724 2009-02-08  Bruno Haible  <bruno@clisp.org>
42725
42726         Update to Unicode 5.1.0.
42727         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42728         U+2185..U+2188.
42729         (is_property_default_ignorable_code_point): Don't include characters
42730         of category Cc or Cs and not-a-characters.
42731         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42732         U+0D79, U+109E, U+109F, U+A60C.
42733         * lib/unictype/bidi_of.h: Regenerated.
42734         * lib/unictype/blocks.h: Regenerated.
42735         * lib/unictype/categ_C.h: Regenerated.
42736         * lib/unictype/categ_Cf.h: Regenerated.
42737         * lib/unictype/categ_Cn.h: Regenerated.
42738         * lib/unictype/categ_L.h: Regenerated.
42739         * lib/unictype/categ_Ll.h: Regenerated.
42740         * lib/unictype/categ_Lm.h: Regenerated.
42741         * lib/unictype/categ_Lo.h: Regenerated.
42742         * lib/unictype/categ_Lu.h: Regenerated.
42743         * lib/unictype/categ_M.h: Regenerated.
42744         * lib/unictype/categ_Mc.h: Regenerated.
42745         * lib/unictype/categ_Me.h: Regenerated.
42746         * lib/unictype/categ_Mn.h: Regenerated.
42747         * lib/unictype/categ_N.h: Regenerated.
42748         * lib/unictype/categ_Nd.h: Regenerated.
42749         * lib/unictype/categ_Nl.h: Regenerated.
42750         * lib/unictype/categ_No.h: Regenerated.
42751         * lib/unictype/categ_P.h: Regenerated.
42752         * lib/unictype/categ_Pd.h: Regenerated.
42753         * lib/unictype/categ_Pe.h: Regenerated.
42754         * lib/unictype/categ_Pf.h: Regenerated.
42755         * lib/unictype/categ_Pi.h: Regenerated.
42756         * lib/unictype/categ_Po.h: Regenerated.
42757         * lib/unictype/categ_Ps.h: Regenerated.
42758         * lib/unictype/categ_S.h: Regenerated.
42759         * lib/unictype/categ_Sk.h: Regenerated.
42760         * lib/unictype/categ_Sm.h: Regenerated.
42761         * lib/unictype/categ_So.h: Regenerated.
42762         * lib/unictype/categ_of.h: Regenerated.
42763         * lib/unictype/combining.h: Regenerated.
42764         * lib/unictype/ctype_alnum.h: Regenerated.
42765         * lib/unictype/ctype_alpha.h: Regenerated.
42766         * lib/unictype/ctype_graph.h: Regenerated.
42767         * lib/unictype/ctype_lower.h: Regenerated.
42768         * lib/unictype/ctype_print.h: Regenerated.
42769         * lib/unictype/ctype_punct.h: Regenerated.
42770         * lib/unictype/ctype_upper.h: Regenerated.
42771         * lib/unictype/decdigit.h: Regenerated.
42772         * lib/unictype/digit.h: Regenerated.
42773         * lib/unictype/mirror.h: Regenerated.
42774         * lib/unictype/numeric.h: Regenerated.
42775         * lib/unictype/pr_alphabetic.h: Regenerated.
42776         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42777         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42778         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42779         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42780         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42781         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42782         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42783         * lib/unictype/pr_combining.h: Regenerated.
42784         * lib/unictype/pr_dash.h: Regenerated.
42785         * lib/unictype/pr_decimal_digit.h: Regenerated.
42786         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42787         * lib/unictype/pr_deprecated.h: Regenerated.
42788         * lib/unictype/pr_diacritic.h: Regenerated.
42789         * lib/unictype/pr_extender.h: Regenerated.
42790         * lib/unictype/pr_format_control.h: Regenerated.
42791         * lib/unictype/pr_grapheme_base.h: Regenerated.
42792         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42793         * lib/unictype/pr_grapheme_link.h: Regenerated.
42794         * lib/unictype/pr_id_continue.h: Regenerated.
42795         * lib/unictype/pr_id_start.h: Regenerated.
42796         * lib/unictype/pr_ideographic.h: Regenerated.
42797         * lib/unictype/pr_ignorable_control.h: Regenerated.
42798         * lib/unictype/pr_lowercase.h: Regenerated.
42799         * lib/unictype/pr_math.h: Regenerated.
42800         * lib/unictype/pr_numeric.h: Regenerated.
42801         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42802         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42803         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42804         * lib/unictype/pr_other_id_continue.h: Regenerated.
42805         * lib/unictype/pr_other_lowercase.h: Regenerated.
42806         * lib/unictype/pr_other_math.h: Regenerated.
42807         * lib/unictype/pr_punctuation.h: Regenerated.
42808         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42809         * lib/unictype/pr_soft_dotted.h: Regenerated.
42810         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42811         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42812         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42813         * lib/unictype/pr_uppercase.h: Regenerated.
42814         * lib/unictype/pr_xid_continue.h: Regenerated.
42815         * lib/unictype/pr_xid_start.h: Regenerated.
42816         * lib/unictype/pr_zero_width.h: Regenerated.
42817         * lib/unictype/scripts.h: Regenerated.
42818         * lib/unictype/scripts_byname.gperf: Regenerated.
42819         * lib/unictype/sy_java_ident.h: Regenerated.
42820         * lib/unilbrk/lbrkprop1.h: Regenerated.
42821         * lib/unilbrk/lbrkprop2.h: Regenerated.
42822         * tests/unictype/test-categ_C.c: Regenerated.
42823         * tests/unictype/test-categ_Cf.c: Regenerated.
42824         * tests/unictype/test-categ_Cn.c: Regenerated.
42825         * tests/unictype/test-categ_L.c: Regenerated.
42826         * tests/unictype/test-categ_Ll.c: Regenerated.
42827         * tests/unictype/test-categ_Lm.c: Regenerated.
42828         * tests/unictype/test-categ_Lo.c: Regenerated.
42829         * tests/unictype/test-categ_Lu.c: Regenerated.
42830         * tests/unictype/test-categ_M.c: Regenerated.
42831         * tests/unictype/test-categ_Mc.c: Regenerated.
42832         * tests/unictype/test-categ_Me.c: Regenerated.
42833         * tests/unictype/test-categ_Mn.c: Regenerated.
42834         * tests/unictype/test-categ_N.c: Regenerated.
42835         * tests/unictype/test-categ_Nd.c: Regenerated.
42836         * tests/unictype/test-categ_Nl.c: Regenerated.
42837         * tests/unictype/test-categ_No.c: Regenerated.
42838         * tests/unictype/test-categ_P.c: Regenerated.
42839         * tests/unictype/test-categ_Pd.c: Regenerated.
42840         * tests/unictype/test-categ_Pe.c: Regenerated.
42841         * tests/unictype/test-categ_Pf.c: Regenerated.
42842         * tests/unictype/test-categ_Pi.c: Regenerated.
42843         * tests/unictype/test-categ_Po.c: Regenerated.
42844         * tests/unictype/test-categ_Ps.c: Regenerated.
42845         * tests/unictype/test-categ_S.c: Regenerated.
42846         * tests/unictype/test-categ_Sk.c: Regenerated.
42847         * tests/unictype/test-categ_Sm.c: Regenerated.
42848         * tests/unictype/test-categ_So.c: Regenerated.
42849         * tests/unictype/test-ctype_alnum.c: Regenerated.
42850         * tests/unictype/test-ctype_alpha.c: Regenerated.
42851         * tests/unictype/test-ctype_graph.c: Regenerated.
42852         * tests/unictype/test-ctype_lower.c: Regenerated.
42853         * tests/unictype/test-ctype_print.c: Regenerated.
42854         * tests/unictype/test-ctype_punct.c: Regenerated.
42855         * tests/unictype/test-ctype_upper.c: Regenerated.
42856         * tests/unictype/test-decdigit.h: Regenerated.
42857         * tests/unictype/test-digit.h: Regenerated.
42858         * tests/unictype/test-numeric.h: Regenerated.
42859         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42860         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42861         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42862         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42863         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42864         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42865         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42866         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42867         * tests/unictype/test-pr_combining.c: Regenerated.
42868         * tests/unictype/test-pr_dash.c: Regenerated.
42869         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42870         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42871         * tests/unictype/test-pr_deprecated.c: Regenerated.
42872         * tests/unictype/test-pr_diacritic.c: Regenerated.
42873         * tests/unictype/test-pr_extender.c: Regenerated.
42874         * tests/unictype/test-pr_format_control.c: Regenerated.
42875         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42876         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42877         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42878         * tests/unictype/test-pr_id_continue.c: Regenerated.
42879         * tests/unictype/test-pr_id_start.c: Regenerated.
42880         * tests/unictype/test-pr_ideographic.c: Regenerated.
42881         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42882         * tests/unictype/test-pr_lowercase.c: Regenerated.
42883         * tests/unictype/test-pr_math.c: Regenerated.
42884         * tests/unictype/test-pr_numeric.c: Regenerated.
42885         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42886         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42887         Regenerated.
42888         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42889         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42890         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42891         * tests/unictype/test-pr_other_math.c: Regenerated.
42892         * tests/unictype/test-pr_punctuation.c: Regenerated.
42893         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42894         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42895         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42896         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42897         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42898         * tests/unictype/test-pr_uppercase.c: Regenerated.
42899         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42900         * tests/unictype/test-pr_xid_start.c: Regenerated.
42901         * tests/unictype/test-pr_zero_width.c: Regenerated.
42902
42903         Update to Unicode 5.1.0.
42904         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42905         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42906         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42907         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42908         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42909         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42910         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42911         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42912         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42913         (nonspacing_table_ind): Update.
42914         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42915
42916         Update to Unicode 5.1.0.
42917         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42918         code transform.
42919         * lib/uniname/uniname.c (unicode_character_name,
42920         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42921         * lib/uniname/uninames.h: Regenerated.
42922         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42923
42924 2009-02-07  Bruno Haible  <bruno@clisp.org>
42925
42926         Merge gen-ctype and gen-lbrk into a single program.
42927         * lib/gen-uni-tables.c: New file, incorporating
42928         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42929         Add directory prefixes to the names of the generated files.
42930         * lib/unictype/gen-ctype.c: Remove file.
42931         * lib/unilbrk/gen-lbrk.c: Remove file.
42932         * modules/gen-uni-tables: New file.
42933         * modules/unictype/gen-ctype: Remove file.
42934         * modules/unilbrk/gen-lbrk: Remove file.
42935
42936 2009-02-07  Bruno Haible  <bruno@clisp.org>
42937
42938         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42939
42940         New module 'unistr/u32-strcoll'.
42941         * modules/unistr/u32-strcoll: New file.
42942         * lib/unistr/u32-strcoll.c: New file.
42943
42944         New module 'unistr/u16-strcoll'.
42945         * modules/unistr/u16-strcoll: New file.
42946         * lib/unistr/u16-strcoll.c: New file.
42947
42948         New module 'unistr/u8-strcoll'.
42949         * modules/unistr/u8-strcoll: New file.
42950         * lib/unistr/u8-strcoll.c: New file.
42951         * lib/unistr/u-strcoll.h: New file.
42952
42953 2009-02-07  Bruno Haible  <bruno@clisp.org>
42954
42955         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42956         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42957         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42958         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42959         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42960         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42961
42962 2009-02-07  Bruno Haible  <bruno@clisp.org>
42963
42964         Make 64-bit clean.
42965         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42966         output_combclass, output_bidi_category, output_decimal_digit,
42967         output_digit, output_numeric, output_mirror, output_scripts,
42968         output_ident_category): Use proper width specifier in format strings.
42969
42970 2009-02-07  Bruno Haible  <bruno@clisp.org>
42971
42972         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42973         failure behaviour.
42974
42975 2009-02-07  Jim Meyering  <meyering@redhat.com>
42976
42977         regex: avoid compilation failure with upcoming gcc-4.4
42978         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42979         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42980         "... error: integer overflow in preprocessor expression".
42981
42982 2009-02-05  Ben Pfaff  <blp@gnu.org>
42983
42984         Fix link errors on Windows when close module is used.
42985         * modules/close: Add $(LIB_CLOSE) to Link section.
42986         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42987         $(LIB_CLOSE) on Windows.
42988
42989 2009-02-05  Jim Meyering  <meyering@redhat.com>
42990
42991         still avoid unused-parameter warnings, but do it cleanly
42992         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42993         (get_fs_usage): Cast to void instead.
42994         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42995         (dev_from_mount_options, read_file_system_list): Cast to void.
42996         Prompted by Bruno Haible.
42997
42998 2009-02-04  Jim Meyering  <meyering@redhat.com>
42999
43000         fsusage.c: correct copyright year
43001         * lib/fsusage.c: Reflect year in which the change is pushed into
43002
43003         avoid misc. warnings
43004         * lib/fsusage.c (UNUSED_PARAM): Define.
43005         (get_fs_usage): Mark parameter "disk" as unused.
43006         * lib/getugroups.c (getgrent): Use "void" in prototype.
43007         * lib/mountlist.c: Mark unused parameters.
43008         (read_file_system_list): Declare a local with "const".
43009         * lib/nanosleep.c (getnow): Declare static.
43010         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
43011
43012         dirfd: set errno upon failure
43013         * lib/dirfd.c: Include <errno.h>.
43014         Set errno to ENOTSUP when returning -1.
43015         * modules/dirfd (Depends-on): Add errno.
43016         Suggested by John Kodis <kodis@comcast.net>.
43017
43018 2009-02-01  Bruno Haible  <bruno@clisp.org>
43019
43020         Don't assume sizeof (long) >= sizeof (void *).
43021         * lib/memcmp.c: Include stdint.h.
43022         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
43023         srcp2 to 'const byte *'.
43024         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
43025         types to uintptr_t.
43026         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
43027         * modules/memcmp (Depends-on): Add stdint.
43028         Reported by Ozkan Sezer <sezeroz@gmail.com>.
43029
43030 2009-01-30  Eric Blake  <ebb9@byu.net>
43031
43032         fix more require-before-expand issues
43033         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
43034         expand, AC_PROG_AWK.
43035         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
43036
43037 2009-01-28  Eric Blake  <ebb9@byu.net>
43038
43039         version-etc: use consistent URL formatting
43040         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43041         Improve formatting.  Use fputs for string without %.
43042
43043 2009-01-28  Jim Meyering  <meyering@redhat.com>
43044
43045         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43046         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43047         "underquoted definition of NAME" from autoconf-2.59.
43048
43049 2009-01-28  Bruno Haible  <bruno@clisp.org>
43050
43051         * doc/gnulib.texi: Add "Obsolete modules" to index.
43052
43053 2009-01-28  Jim Meyering  <meyering@redhat.com>
43054
43055         useless-if-before-free: recognize more variants
43056         * build-aux/useless-if-before-free: Also recognize e.g.,
43057         if (NULL != p) free (p);
43058
43059 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
43060
43061         test-getaddrinfo: skip (don't fail) this test when there's no network
43062         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43063         on the presumption that it means you lack network access.
43064
43065 2009-01-26  Jim Meyering  <meyering@redhat.com>
43066
43067         fflush: avoid warnings on modern systems
43068         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43069         pos and result, into scopes where they're used.
43070
43071 2009-01-26  Eric Blake  <ebb9@byu.net>
43072
43073         Silence warning reintroduced by recent extensions patch.
43074         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43075         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43076         autoconf.
43077
43078         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43079         * m4/00gnulib.m4: New file.
43080         * gnulib-tool (func_get_filelist): Always use it.
43081         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43082         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43083
43084 2009-01-25  Bruno Haible  <bruno@clisp.org>
43085
43086         Make test-quotearg work on MacOS X and AIX.
43087         * tests/test-quotearg.sh: New file.
43088         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43089         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43090         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43091         include <libintl.h>.
43092         (fake_locale): Remove variable.
43093         (gettext, dgettext, dcgettext): Remove functions.
43094         (main): Instead of setting a fake locale, set a real locale. Call
43095         textdomain and bindtextdomain.
43096         * modules/quotearg-tests (Files): Add the new files.
43097         (Depends-on): Add gettext, setenv, unsetenv.
43098         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43099         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43100         Augment TESTS_ENVIRONMENT.
43101
43102 2009-01-25  Bruno Haible  <bruno@clisp.org>
43103
43104         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43105         fr_FR.ISO8859-1 locale on MacOS X.
43106         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43107         ja_JP.eucJP locale on MacOS X.
43108         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43109         zh_CN.GB18030 locale on MacOS X.
43110
43111 2009-01-25  Bruno Haible  <bruno@clisp.org>
43112
43113         Avoid link errors on MacOS X 10.3.
43114         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43115         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43116
43117 2009-01-25  Bruno Haible  <bruno@clisp.org>
43118
43119         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43120         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43121         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43122         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43123         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43124         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43125         posix_spawnattr_init, posix_spawnattr_setsigmask,
43126         posix_spawnattr_setflags, posix_spawnattr_destroy.
43127
43128         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43129         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43130         * modules/execute (Files): Remove m4/posix_spawn.m4.
43131         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43132         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43133         posix_spawnattr_init, posix_spawnattr_setsigmask,
43134         posix_spawnattr_setflags, posix_spawnattr_destroy.
43135
43136 2009-01-25  Bruno Haible  <bruno@clisp.org>
43137
43138         * lib/glthread/threadlib.c: Include <stdlib.h>.
43139
43140 2009-01-25  Bruno Haible  <bruno@clisp.org>
43141
43142         * lib/glthread/threadlib.c (dummy): New declaration.
43143
43144 2009-01-25  Bruno Haible  <bruno@clisp.org>
43145
43146         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43147         multibyte characters also for the GB18030 encoding. Don't crash when
43148         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43149
43150 2009-01-25  Bruno Haible  <bruno@clisp.org>
43151
43152         Avoid redefining 'struct random_data' on OSF/1 5.1.
43153         * lib/stdlib.in.h: Include <random.h> if it exists.
43154         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43155         HAVE_RANDOM_H. Include <random.h> when testing whether
43156         'struct random_data' exists.
43157         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43158
43159 2009-01-25  Bruno Haible  <bruno@clisp.org>
43160
43161         Don't install charset.alias on MacOS X >= 10.3.
43162         * lib/localcharset.c (DARWIN7): New macro.
43163         (get_charset_aliases): Hardcode the result for Darwin7.
43164         * modules/localcharset (install-exec-local): Don't install
43165         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43166
43167 2009-01-25  Bruno Haible  <bruno@clisp.org>
43168
43169         Don't install charset.alias on mingw and Cygwin.
43170         * modules/localcharset (install-exec-local): Don't install
43171         charset.alias on mingw and Cygwin, if the file does not yet exist.
43172         The result for these platforms is hardcoded in localcharset.c.
43173
43174 2009-01-25  Bruno Haible  <bruno@clisp.org>
43175
43176         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43177         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43178         before requiring AC_USE_SYSTEM_EXTENSIONS.
43179
43180 2009-01-25  Jim Meyering  <meyering@redhat.com>
43181
43182         c-strtod: avoid warnings
43183         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43184         "assignment discards qualifiers from pointer target type" warnings.
43185
43186 2009-01-24  Bruno Haible  <bruno@clisp.org>
43187
43188         Add support for non-UTF-8 locales on MacOS X.
43189         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43190         canonical encodings. For Darwin 7 and newer, don't map traditional
43191         encodings to UTF-8.
43192         Reported by Vincent Lefevre <vincent@vinc17.org>
43193         at <http://savannah.gnu.org/bugs/?25235>.
43194
43195 2009-01-24  Bruno Haible  <bruno@clisp.org>
43196
43197         * doc/gnulib.texi (Obsolete modules): New section.
43198         Reported by Mike Frysinger <vapier@gentoo.org>.
43199
43200 2009-01-24  Bruno Haible  <bruno@clisp.org>
43201
43202         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43203         (%.dvi): New rule.
43204
43205 2009-01-24  Bruno Haible  <bruno@clisp.org>
43206
43207         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43208         Reported by Eric Blake.
43209
43210 2009-01-24  Bruno Haible  <bruno@clisp.org>
43211
43212         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43213         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43214         Reported by Gary V. Vaughan <gary@gnu.org>.
43215
43216 2009-01-24  Bruno Haible  <bruno@clisp.org>
43217
43218         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43219
43220 2009-01-23  Bruno Haible  <bruno@clisp.org>
43221
43222         Make c-strtod, c-strtold usable in libraries.
43223         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43224         (C_STRTOD): Call strdup instead of xstrdup.
43225         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43226         * modules/c-strtold (Depends-on): Likewise.
43227         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43228         * NEWS: Mention the change.
43229         Reported by Michael Gold <mgold@ncf.ca>.
43230
43231 2009-01-23  Jim Meyering  <meyering@redhat.com>
43232
43233         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43234         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43235         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43236
43237 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43238
43239         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43240         GNU CoreUtils.
43241         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43242         * modules/version-etc (Description): Update.
43243
43244 2009-01-22  Bruno Haible  <bruno@clisp.org>
43245
43246         Cache the C locale object.
43247         * lib/c-strtod.c (c_locale_cache): New variable.
43248         (c_locale): New function.
43249         (C_STRTOD): Use it, and don't call freelocale.
43250         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43251         Suggested by Paolo Bonzini.
43252
43253 2009-01-21  Bruno Haible  <bruno@clisp.org>
43254
43255         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43256         conditions other than overflow.
43257
43258 2009-01-21  Bruno Haible  <bruno@clisp.org>
43259
43260         * lib/c-strtod.c: Include errno.h.
43261         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43262         value from STRTOD_L and STRTOD.
43263
43264 2009-01-21  Bruno Haible  <bruno@clisp.org>
43265         and Jim Meyering  <meyering@redhat.com>
43266
43267         nanosleep: skip configure test (fail it) for apple universal builds
43268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43269         universal builds, assume that nanosleep does not work.
43270         * modules/nanosleep (Depends-on): Add multiarch.
43271
43272         mktime: skip configure test (fail it) for apple universal builds
43273         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43274         universal builds, assume that mktime does not work.
43275         * modules/mktime (Depends-on): Add multiarch.
43276
43277 2009-01-21  Eric Blake  <ebb9@byu.net>
43278
43279         multiarch: avoid expand-before-require warning
43280         * modules/multiarch (configure.ac): Require, rather than expand,
43281         gl_MULTIARCH.
43282         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43283         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43284         enforce that all clients require it.  Partial reversion of
43285         2008-12-29 patch.
43286
43287         error: avoid expand-before-require warning
43288         * modules/errno (configure.ac): Require, rather than expand,
43289         gl_HEADER_ERRNO_H.
43290         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43291         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43292         enforce that all clients require it.
43293
43294         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43295         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43296         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43297         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43298
43299 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43300
43301         Revert:
43302         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43303
43304         regex: do not depend on obsolete modules.
43305         * modules/regex: Remove memcmp and memmove.
43306
43307 2009-01-20  Bruno Haible  <bruno@clisp.org>
43308
43309         Make the 'link' module link on Windows NT 4.
43310         * lib/link.c (_WIN32_WINNT): Don't define.
43311         (CreateHardLinkFuncType): New type.
43312         (CreateHardLinkFunc, initialized): New variables.
43313         (initialize): New function.
43314         (link): Invoke CreateHardLink indirectly through the function pointer.
43315
43316 2009-01-20  Bruno Haible  <bruno@clisp.org>
43317
43318         Fix compilation failure on mingw.
43319         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43320
43321 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43322
43323         * doc/c-strtod.texi: Mention a couple of restrictions.
43324
43325 2009-01-20  Jim Meyering  <meyering@redhat.com>
43326
43327         gettimeofday: move more declarations out of functions
43328         * lib/gettimeofday.c: Move extern declarations of tzset and
43329         gmtime out of containing functions.  Prompted by Bruno Haible.
43330
43331 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43332
43333         regex: do not depend on obsolete modules.
43334         * modules/regex: Remove memcmp and memmove.
43335
43336 2009-01-19  Bruno Haible  <bruno@clisp.org>
43337
43338         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43339         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43340         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43341         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43342         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43343
43344 2009-01-19  Bruno Haible  <bruno@clisp.org>
43345
43346         * tests/test-link.c: Include <errno.h>.
43347         (main): Exit with code 77 when a hard link cannot be created due to
43348         the file system.
43349         * tests/test-link.sh: Skip test when a hard link cannot be created due
43350         to the file system.
43351         Suggested by Eric Blake.
43352
43353 2009-01-19  Martin Lambers  <marlam@marlam.de>
43354
43355         * modules/link-tests: New file.
43356         * tests/test-link.sh: New file.
43357         * tests/test-link.c: New file.
43358
43359 2009-01-19  Eric Blake  <ebb9@byu.net>
43360
43361         doc: mention another function added in cygwin 1.7.0
43362         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43363         Another new function in cygwin 1.7.
43364
43365 2009-01-19  Bruno Haible  <bruno@clisp.org>
43366
43367         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43368         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43369         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43370         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43371         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43372         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43373         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43374         * m4/md4.m4 (gl_MD4): Likewise.
43375         * m4/md5.m4 (gl_MD5): Likewise.
43376         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43377         * m4/sha1.m4 (gl_SHA1): Likewise.
43378         * m4/sha256.m4 (gl_SHA256): Likewise.
43379         * m4/sha512.m4 (gl_SHA512): Likewise.
43380
43381 2009-01-19  Bruno Haible  <bruno@clisp.org>
43382
43383         * modules/uniname/uniname-tests (Depends-on): Add progname.
43384         * tests/uniname/test-uninames.c: Include progname.h.
43385         (main): Call set_program_name.
43386
43387         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43388         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43389         (main): Call set_program_name.
43390
43391         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43392         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43393         (main): Call set_program_name.
43394
43395         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43396         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43397         (main): Call set_program_name.
43398
43399         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43400         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43401         (main): Call set_program_name.
43402
43403         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43404         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43405         (main): Call set_program_name.
43406
43407         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43408         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43409         (main): Call set_program_name.
43410
43411         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43412         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43413         (main): Call set_program_name.
43414
43415         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43416         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43417         (main): Call set_program_name.
43418
43419 2009-01-19  Eric Blake  <ebb9@byu.net>
43420
43421         test-unistd: test previous patch
43422         * tests/test-unistd.c: Test *_FILENO macros.
43423
43424         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43425         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43426         Guarantee a definition.
43427         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43428         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43429         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43430         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43431         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43432         Likewise.
43433         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43434         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43435         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43436         Likewise.
43437         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43438         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43439         (STDERR_FILENO): Likewise.
43440         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43441         (STDERR_FILENO): Likewise.
43442         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43443         (STDERR_FILENO): Likewise.
43444         Reported by Elbert Pol.
43445
43446 2009-01-19  Eric Blake  <ebb9@byu.net>
43447
43448         doc: mention more functions added in cygwin 1.7.0
43449         * doc/posix-functions/abort.texi (abort): Update wording related
43450         to cygwin.
43451         * doc/posix-functions/daylight.texi (daylight): Likewise.
43452         * doc/posix-functions/optarg.texi (optarg): Likewise.
43453         * doc/posix-functions/optarg.texi (opterr): Likewise.
43454         * doc/posix-functions/optarg.texi (optind): Likewise.
43455         * doc/posix-functions/optarg.texi (optopt): Likewise.
43456         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43457         worked in 1.5.x, and was withdrawn in 1.7.
43458         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43459         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43460         cygwin versions.
43461         * doc/posix-functions/perror.texi (perror): Likewise.
43462         * doc/posix-functions/printf.texi (printf): Likewise.
43463         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43464         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43465         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43466         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43467         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43468         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43469         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43470         Likewise.
43471         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43472         Likewise.
43473         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43474         this function.
43475         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43476         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43477         Likewise.
43478         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43479         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43480         * doc/posix-functions/confstr.texi (confstr): Likewise.
43481         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43482         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43483         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43484         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43485         * doc/posix-functions/fputws.texi (fputws): Likewise.
43486         * doc/posix-functions/fwide.texi (fwide): Likewise.
43487         * doc/posix-functions/getwc.texi (getwc): Likewise.
43488         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43489         * doc/posix-functions/putwc.texi (putwc): Likewise.
43490         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43491         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43492         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43493         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43494         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43495         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43496         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43497         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43498         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43499         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43500         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43501
43502 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43503
43504         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43505         * lib/ioctl.c: Include <sys/ioctl.h>.
43506
43507 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43508
43509         * modules/getdate-tests (Depends-on): Add progname.
43510         * tests/test-getdate.c: Use progname module, to avoid link errors
43511         on non-glibc systems.
43512
43513 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43514
43515         * modules/filenamecat-tests (Depends-on): Add progname.
43516         * modules/fstrcmp-tests (Depends-on): Likewise.
43517
43518         * tests/test-filenamecat.c: Use progname module, to avoid link
43519         errors on non-glibc systems.
43520         * tests/test-fstrcmp.c: Likewise.
43521
43522 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43523
43524         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43525         * lib/gettimeofday.c: Move extern declaration out of function.
43526
43527 2009-01-18  Bruno Haible  <bruno@clisp.org>
43528
43529         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43530         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43531         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43532
43533 2009-01-18  Bruno Haible  <bruno@clisp.org>
43534
43535         * lib/strftime.c (MEMPCPY): Remove unused macro.
43536         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43537
43538 2009-01-18  Martin Lambers  <marlam@marlam.de>
43539
43540         New module 'link'.
43541         * lib/unistd.in.h (link): New declaration.
43542         * lib/link.c: New file.
43543         * m4/link.m4: New file.
43544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43545         HAVE_LINK.
43546         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43547         * modules/link: New file.
43548         * doc/posix-functions/link.texi: Mention the new module.
43549
43550 2009-01-18  Bruno Haible  <bruno@clisp.org>
43551
43552         * tests/test-avltree_list.c (main): Call set_program_name.
43553         * tests/test-avltree_oset.c (main): Likewise.
43554         * tests/test-obstack-printf.c: Include progname.h.
43555         (main): Call set_program_name.
43556         * tests/test-quotearg.c: Include progname.h.
43557         (main): Call set_program_name.
43558         * tests/test-xmemdup0.c: Include progname.h.
43559         (main): Call set_program_name.
43560
43561 2009-01-18  Bruno Haible  <bruno@clisp.org>
43562
43563         New module 'alphasort'.
43564         * lib/dirent.in.h (alphasort): New declaration.
43565         * lib/alphasort.c: New file, from glibc with modifications.
43566         * m4/alphasort.m4: New file.
43567         * modules/alphasort: New file.
43568         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43569         HAVE_ALPHASORT.
43570         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43571         HAVE_ALPHASORT.
43572         * doc/posix-functions/alphasort.texi: Mention the new module and the
43573         portability problems.
43574
43575 2009-01-18  Bruno Haible  <bruno@clisp.org>
43576
43577         New module 'scandir'.
43578         * lib/dirent.in.h (scandir): New declaration.
43579         * lib/scandir.c: New file, from glibc with modifications.
43580         * m4/scandir.m4: New file.
43581         * modules/scandir: New file.
43582         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43583         HAVE_SCANDIR.
43584         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43585         HAVE_SCANDIR.
43586         * doc/posix-functions/scandir.texi: Mention the new module and the
43587         portability problems.
43588
43589 2009-01-17  Bruno Haible  <bruno@clisp.org>
43590
43591         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43592         Update documentation.
43593         (func_remove_suffix): Escape all dots in the suffix. Update
43594         documentation.
43595         (func_filter_filelist): Update documentation.
43596         Reported by Ralf Wildenhues.
43597
43598 2009-01-17  Bruno Haible  <bruno@clisp.org>
43599
43600         * modules/dprintf-posix-tests: New file.
43601         * tests/test-dprintf-posix.sh: New file.
43602         * tests/test-dprintf-posix.c: New file.
43603
43604         New modules 'dprintf', 'dprintf-posix'.
43605         * lib/stdio.in.h (dprintf): New declaration.
43606         * lib/dprintf.c: New file.
43607         * m4/dprintf.m4: New file.
43608         * m4/dprintf-posix.m4: New file.
43609         * modules/dprintf: New file.
43610         * modules/dprintf-posix: New file.
43611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43612         HAVE_DPRINTF, REPLACE_DPRINTF.
43613         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43614         HAVE_DPRINTF, REPLACE_DPRINTF.
43615         * doc/posix-functions/dprintf.texi: Mention the new modules.
43616
43617 2009-01-17  Bruno Haible  <bruno@clisp.org>
43618
43619         * modules/vdprintf-posix-tests: New file.
43620         * tests/test-vdprintf-posix.sh: New file.
43621         * tests/test-vdprintf-posix.c: New file.
43622
43623         New modules 'vdprintf', 'vdprintf-posix'.
43624         * lib/stdio.in.h (vdprintf): New declaration.
43625         * lib/vdprintf.c: New file.
43626         * m4/vdprintf.m4: New file.
43627         * m4/vdprintf-posix.m4: New file.
43628         * modules/vdprintf: New file.
43629         * modules/vdprintf-posix: New file.
43630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43631         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43632         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43633         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43634         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43635
43636 2009-01-17  Bruno Haible  <bruno@clisp.org>
43637
43638         Fix replacement of fopen on mingw.
43639         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43640         mingw.
43641
43642 2009-01-17  Bruno Haible  <bruno@clisp.org>
43643
43644         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43645         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43646
43647 2009-01-17  Bruno Haible  <bruno@clisp.org>
43648
43649         Avoid test-fflush2.sh failure on mingw.
43650         * tests/test-fflush2.c: Include binary-io.h.
43651         (main): Put standard input into binary mode.
43652         * modules/fflush-tests (Depends-on): Add binary-io.
43653
43654 2009-01-17  Bruno Haible  <bruno@clisp.org>
43655
43656         * lib/wchar.in.h: In another particular situation, include only the
43657         system's <wchar.h> file.
43658         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43659         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43660         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43661
43662 2009-01-17  Bruno Haible  <bruno@clisp.org>
43663
43664         Support for stripping executables in --enable-relocatable.
43665         * build-aux/install-reloc: Expect one more argument, or an environment
43666         variable RELOC_STRIP_PROG. If set, strip the destination program and
43667         its wrapper.
43668         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43669         RELOC_STRIP_PROG.
43670         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43671         to set RELOCATABLE_STRIP.
43672         * NEWS: Mention the new Makefile requirement.
43673
43674 2009-01-17  Bruno Haible  <bruno@clisp.org>
43675
43676         * build-aux/install-reloc: Remove debugging information left over by
43677         C compiler on MacOS X.
43678
43679 2009-01-17  Bruno Haible  <bruno@clisp.org>
43680
43681         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43682         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43683         _NSGetExecutablePath.
43684
43685 2009-01-16  Jim Meyering  <meyering@redhat.com>
43686
43687         strerror: avoid warnings about discarding "const"
43688         * lib/strerror.c (rpl_strerror): Instead of returning a const
43689         string from each and every "case", use a variable, and add a single
43690         cast after the switch.
43691
43692 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43693
43694         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43695
43696 2009-01-16  Bruno Haible  <bruno@clisp.org>
43697
43698         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43699         array initializer syntax that also works in C++ mode.
43700         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43701
43702 2009-01-16  Jim Meyering  <meyering@redhat.com>
43703
43704         poll: suppress a warning
43705         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43706         to ignore "...unsigned expression < 0 is always false" warnings.
43707
43708 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43709
43710         poll: remove declarations of unused variables
43711         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43712         sockbuf and optlen.
43713
43714 2009-01-15  Bruno Haible  <bruno@clisp.org>
43715
43716         Make fflush-after-ungetc POSIX compliant on BSD systems.
43717         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43718         (clear_ungetc_buffer): Implement also for other systems.
43719         (rpl_fflush): On glibc systems, invoke
43720         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43721         clear_ungetc_buffer after fetching the stream's position, not before.
43722
43723 2009-01-15  Bruno Haible  <bruno@clisp.org>
43724
43725         Make fflush-after-ungetc POSIX compliant on glibc systems.
43726         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43727         after ungetc.
43728         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43729         (rpl_fflush): On glibc systems, simply call the system's fflush
43730         function after clearing the ungetc buffer.
43731         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43732         Instead, lseek only to the end of file, then use the system's fseeko
43733         for the rest. On glibc systems, reset the EOF indicator bit.
43734
43735 2009-01-15  Jim Meyering  <meyering@redhat.com>
43736
43737         openmp.m4: revert quote-adding change, for portability to older autoconf
43738         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43739         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43740         Simon Josefsson noticed the problem when using autoconf-2.61.
43741
43742 2009-01-15  Bruno Haible  <bruno@clisp.org>
43743
43744         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43745         * tests/test-fflush2.c (ASSERT): Always fail.
43746         (main): Add two tests for fflush() after ungetc(), taking into account
43747         the Austin Group's clarification.
43748         Suggested by Eric Blake.
43749
43750 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43751
43752         mktime.m4: remove K&R-style function prototypes
43753         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43754         for the Sun C++ compiler.
43755
43756 2009-01-14  Bruno Haible  <bruno@clisp.org>
43757
43758         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43759         while including <wchar.h>.
43760         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43761         the system's <wchar.h> file.
43762         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43763
43764 2009-01-14  Bruno Haible  <bruno@clisp.org>
43765
43766         * m4/csharp.m4: Don't mention gettext on the serial number line.
43767         * m4/csharpexec.m4: Likewise.
43768         * m4/eaccess.m4: Likewise.
43769         * m4/javaexec.m4: Likewise.
43770         * m4/sig_atomic_t.m4: Likewise.
43771         * m4/tmpdir.m4: Likewise.
43772         * m4/intldir.m4: Bump gettext version.
43773         * m4/lib-ld.m4: Likewise.
43774
43775 2009-01-14  Bruno Haible  <bruno@clisp.org>
43776
43777         * lib/progname.c (set_program_name): Add more comments.
43778         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43779
43780 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43781
43782         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43783         were sys/stat.h does not define it.
43784
43785 2009-01-14  Jim Meyering  <meyering@redhat.com>
43786
43787         many *.m4 files: improve m4 quoting
43788         99% of this change was performed by running the following commands:
43789         git ls-files | grep '\.m4$' | xargs perl -pi \
43790           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43791           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43792           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43793           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43794         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43795         The remainder were to add Copyright dates, increment serial numbers,
43796         undo some changes in comments, exclude m4/intl.m4, and add quotes
43797         around the "1" in ",1" where the unusual spacing prohibited the
43798         above regexps from doing the job.  For more details, see
43799         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43800         * m4/acl.m4: Modified.
43801         * m4/afs.m4: Likewise.
43802         * m4/alloca.m4: Likewise.
43803         * m4/argp.m4: Likewise.
43804         * m4/argz.m4: Likewise.
43805         * m4/atexit.m4: Likewise.
43806         * m4/bison-i18n.m4: Likewise.
43807         * m4/bison.m4: Likewise.
43808         * m4/byteswap.m4: Likewise.
43809         * m4/c-stack.m4: Likewise.
43810         * m4/c-strtod.m4: Likewise.
43811         * m4/calloc.m4: Likewise.
43812         * m4/canonicalize-lgpl.m4: Likewise.
43813         * m4/chown.m4: Likewise.
43814         * m4/clock_time.m4: Likewise.
43815         * m4/codeset.m4: Likewise.
43816         * m4/copy-file.m4: Likewise.
43817         * m4/csharp.m4: Likewise.
43818         * m4/csharpcomp.m4: Likewise.
43819         * m4/csharpexec.m4: Likewise.
43820         * m4/d-ino.m4: Likewise.
43821         * m4/d-type.m4: Likewise.
43822         * m4/dirfd.m4: Likewise.
43823         * m4/double-slash-root.m4: Likewise.
43824         * m4/eaccess.m4: Likewise.
43825         * m4/eealloc.m4: Likewise.
43826         * m4/environ.m4: Likewise.
43827         * m4/errno_h.m4: Likewise.
43828         * m4/euidaccess.m4: Likewise.
43829         * m4/execute.m4: Likewise.
43830         * m4/fatal-signal.m4: Likewise.
43831         * m4/fchdir.m4: Likewise.
43832         * m4/fcntl_h.m4: Likewise.
43833         * m4/fileblocks.m4: Likewise.
43834         * m4/filenamecat.m4: Likewise.
43835         * m4/findprog.m4: Likewise.
43836         * m4/flexmember.m4: Likewise.
43837         * m4/fnmatch.m4: Likewise.
43838         * m4/fopen.m4: Likewise.
43839         * m4/fpending.m4: Likewise.
43840         * m4/fprintf-posix.m4: Likewise.
43841         * m4/free.m4: Likewise.
43842         * m4/frexp.m4: Likewise.
43843         * m4/frexpl.m4: Likewise.
43844         * m4/fsusage.m4: Likewise.
43845         * m4/ftruncate.m4: Likewise.
43846         * m4/gc-camellia.m4: Likewise.
43847         * m4/gc-random.m4: Likewise.
43848         * m4/gc.m4: Likewise.
43849         * m4/getaddrinfo.m4: Likewise.
43850         * m4/getcwd-abort-bug.m4: Likewise.
43851         * m4/getcwd-path-max.m4: Likewise.
43852         * m4/getdate.m4: Likewise.
43853         * m4/getdomainname.m4: Likewise.
43854         * m4/getgroups.m4: Likewise.
43855         * m4/gethostname.m4: Likewise.
43856         * m4/gethrxtime.m4: Likewise.
43857         * m4/getline.m4: Likewise.
43858         * m4/getloadavg.m4: Likewise.
43859         * m4/getndelim2.m4: Likewise.
43860         * m4/getpass.m4: Likewise.
43861         * m4/gettext.m4: Likewise.
43862         * m4/gettime.m4: Likewise.
43863         * m4/gettimeofday.m4: Likewise.
43864         * m4/gnulib-common.m4: Likewise.
43865         * m4/group-member.m4: Likewise.
43866         * m4/host-os.m4: Likewise.
43867         * m4/iconv.m4: Likewise.
43868         * m4/iconv_open.m4: Likewise.
43869         * m4/inet_ntop.m4: Likewise.
43870         * m4/inet_pton.m4: Likewise.
43871         * m4/inline.m4: Likewise.
43872         * m4/intldir.m4: Likewise.
43873         * m4/intlmacosx.m4: Likewise.
43874         * m4/intmax.m4: Likewise.
43875         * m4/intmax_t.m4: Likewise.
43876         * m4/inttypes.m4: Likewise.
43877         * m4/inttypes_h.m4: Likewise.
43878         * m4/inttypes-pri.m4: Likewise.
43879         * m4/isapipe.m4: Likewise.
43880         * m4/isnand.m4: Likewise.
43881         * m4/isnanf.m4: Likewise.
43882         * m4/isnanl.m4: Likewise.
43883         * m4/javacomp.m4: Likewise.
43884         * m4/javaexec.m4: Likewise.
43885         * m4/jm-winsz1.m4: Likewise.
43886         * m4/jm-winsz2.m4: Likewise.
43887         * m4/lchown.m4: Likewise.
43888         * m4/lcmessage.m4: Likewise.
43889         * m4/ldexpl.m4: Likewise.
43890         * m4/lib-ld.m4: Likewise.
43891         * m4/lib-link.m4: Likewise.
43892         * m4/libsigsegv.m4: Likewise.
43893         * m4/link-follow.m4: Likewise.
43894         * m4/localcharset.m4: Likewise.
43895         * m4/locale-fr.m4: Likewise.
43896         * m4/locale-ja.m4: Likewise.
43897         * m4/locale-tr.m4: Likewise.
43898         * m4/locale-zh.m4: Likewise.
43899         * m4/lock.m4: Likewise.
43900         * m4/longlong.m4: Likewise.
43901         * m4/ls-mntd-fs.m4: Likewise.
43902         * m4/lstat.m4: Likewise.
43903         * m4/malloc.m4: Likewise.
43904         * m4/mathl.m4: Likewise.
43905         * m4/mbrtowc.m4: Likewise.
43906         * m4/mbstate_t.m4: Likewise.
43907         * m4/mbswidth.m4: Likewise.
43908         * m4/memchr.m4: Likewise.
43909         * m4/memcmp.m4: Likewise.
43910         * m4/memcpy.m4: Likewise.
43911         * m4/memmem.m4: Likewise.
43912         * m4/memmove.m4: Likewise.
43913         * m4/mempcpy.m4: Likewise.
43914         * m4/memrchr.m4: Likewise.
43915         * m4/memset.m4: Likewise.
43916         * m4/minmax.m4: Likewise.
43917         * m4/mkdir-slash.m4: Likewise.
43918         * m4/mkdtemp.m4: Likewise.
43919         * m4/mktime.m4: Likewise.
43920         * m4/mmap-anon.m4: Likewise.
43921         * m4/mountlist.m4: Likewise.
43922         * m4/nanosleep.m4: Likewise.
43923         * m4/nls.m4: Likewise.
43924         * m4/nocrash.m4: Likewise.
43925         * m4/open.m4: Likewise.
43926         * m4/openat.m4: Likewise.
43927         * m4/openmp.m4: Likewise.
43928         * m4/pathmax.m4: Likewise.
43929         * m4/perl.m4: Likewise.
43930         * m4/physmem.m4: Likewise.
43931         * m4/pipe.m4: Likewise.
43932         * m4/po.m4: Likewise.
43933         * m4/poll.m4: Likewise.
43934         * m4/posixtm.m4: Likewise.
43935         * m4/posixver.m4: Likewise.
43936         * m4/printf-frexp.m4: Likewise.
43937         * m4/printf-frexpl.m4: Likewise.
43938         * m4/printf-posix.m4: Likewise.
43939         * m4/printf-posix-rpl.m4: Likewise.
43940         * m4/printf.m4: Likewise.
43941         * m4/progtest.m4: Likewise.
43942         * m4/putenv.m4: Likewise.
43943         * m4/readline.m4: Likewise.
43944         * m4/readlink.m4: Likewise.
43945         * m4/readutmp.m4: Likewise.
43946         * m4/realloc.m4: Likewise.
43947         * m4/regex.m4: Likewise.
43948         * m4/relocatable.m4: Likewise.
43949         * m4/relocatable-lib.m4: Likewise.
43950         * m4/rename-dest-slash.m4: Likewise.
43951         * m4/rename.m4: Likewise.
43952         * m4/rmdir-errno.m4: Likewise.
43953         * m4/rmdir.m4: Likewise.
43954         * m4/roundf.m4: Likewise.
43955         * m4/roundl.m4: Likewise.
43956         * m4/rpmatch.m4: Likewise.
43957         * m4/save-cwd.m4: Likewise.
43958         * m4/selinux-selinux-h.m4: Likewise.
43959         * m4/setenv.m4: Likewise.
43960         * m4/settime.m4: Likewise.
43961         * m4/sig2str.m4: Likewise.
43962         * m4/sig_atomic_t.m4: Likewise.
43963         * m4/signalblocking.m4: Likewise.
43964         * m4/signbit.m4: Likewise.
43965         * m4/sigpipe.m4: Likewise.
43966         * m4/sockets.m4: Likewise.
43967         * m4/sockpfaf.m4: Likewise.
43968         * m4/st_dm_mode.m4: Likewise.
43969         * m4/stat-time.m4: Likewise.
43970         * m4/stdbool.m4: Likewise.
43971         * m4/stdint.m4: Likewise.
43972         * m4/stdint_h.m4: Likewise.
43973         * m4/stpcpy.m4: Likewise.
43974         * m4/stpncpy.m4: Likewise.
43975         * m4/strcase.m4: Likewise.
43976         * m4/strchrnul.m4: Likewise.
43977         * m4/strcspn.m4: Likewise.
43978         * m4/strdup.m4: Likewise.
43979         * m4/strftime.m4: Likewise.
43980         * m4/strndup.m4: Likewise.
43981         * m4/strnlen.m4: Likewise.
43982         * m4/strpbrk.m4: Likewise.
43983         * m4/strptime.m4: Likewise.
43984         * m4/strsep.m4: Likewise.
43985         * m4/strtod.m4: Likewise.
43986         * m4/strtoimax.m4: Likewise.
43987         * m4/strtok_r.m4: Likewise.
43988         * m4/strtol.m4: Likewise.
43989         * m4/strtoll.m4: Likewise.
43990         * m4/strtoul.m4: Likewise.
43991         * m4/strtoull.m4: Likewise.
43992         * m4/strtoumax.m4: Likewise.
43993         * m4/strverscmp.m4: Likewise.
43994         * m4/threadlib.m4: Likewise.
43995         * m4/timegm.m4: Likewise.
43996         * m4/tm_gmtoff.m4: Likewise.
43997         * m4/tmpdir.m4: Likewise.
43998         * m4/tmpfile.m4: Likewise.
43999         * m4/tzset.m4: Likewise.
44000         * m4/uintmax_t.m4: Likewise.
44001         * m4/unlinkdir.m4: Likewise.
44002         * m4/unlocked-io.m4: Likewise.
44003         * m4/uptime.m4: Likewise.
44004         * m4/userspec.m4: Likewise.
44005         * m4/utimbuf.m4: Likewise.
44006         * m4/utime.m4: Likewise.
44007         * m4/utimes-null.m4: Likewise.
44008         * m4/utimes.m4: Likewise.
44009         * m4/vararrays.m4: Likewise.
44010         * m4/vasnprintf.m4: Likewise.
44011         * m4/vfprintf-posix.m4: Likewise.
44012         * m4/vprintf-posix.m4: Likewise.
44013         * m4/wait-process.m4: Likewise.
44014         * m4/wchar_t.m4: Likewise.
44015         * m4/wint_t.m4: Likewise.
44016         * m4/write-any-file.m4: Likewise.
44017         * m4/yield.m4: Likewise.
44018
44019 2009-01-13  Bruno Haible  <bruno@clisp.org>
44020
44021         Avoid test-copy-file.sh failures when ACL support insufficient.
44022         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
44023         TESTS_ENVIRONMENT.
44024         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
44025         Reported by Jim Meyering.
44026
44027 2009-01-13  Bruno Haible  <bruno@clisp.org>
44028
44029         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
44030         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
44031         * modules/unistdio/u8-printf-parse (Files): Likewise.
44032         * modules/unistdio/u32-printf-parse (Files): Likewise.
44033         * modules/unistdio/ulc-printf-parse (Files): Likewise.
44034
44035 2009-01-13  Simon Josefsson  <simon@josefsson.org>
44036
44037         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
44038         and m4/inttypes_h.m4 too.
44039
44040 2009-01-12  Eric Blake  <ebb9@byu.net>
44041
44042         tests: IRIX 6.2 cc can't compile -0.0 into .data
44043         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44044         rather than at compile-time.
44045         * tests/test-floorl.c (minus_zero): Likewise.
44046         * tests/test-frexpl.c (minus_zero): Likewise.
44047         * tests/test-isnan.c (minus_zerol): Likewise.
44048         * tests/test-isnanl.h (minus_zero): Likewise.
44049         * tests/test-ldexpl.c (minus_zero): Likewise.
44050         * tests/test-roundl.c (minus_zero): Likewise.
44051         * tests/test-signbit.c (minus_zerol): Likewise.
44052         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44053         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44054         * tests/test-truncl.c (minus_zero): Likewise.
44055         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44056         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44057         Reported by Tom G. Christensen and Nelson H. F. Beebe.
44058
44059 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44060
44061         regex: fix glibc bug 9697
44062         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44063         handling.
44064
44065 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44066
44067         regex: fix glibc bug 697
44068         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44069         being NULL also if there are no backreferences.
44070
44071 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44072
44073         regex: merge glibc changes
44074         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44075         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44076         re_string_skip_chars, re_string_reconstruct): Likewise.
44077         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44078
44079 2009-01-07  Jim Meyering  <meyering@redhat.com>
44080
44081         poll: filter through cppi
44082         * lib/poll.c: Indent cpp directives to reflect nesting.
44083
44084 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44085
44086         poll: don't return uninitialized
44087         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44088
44089 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44090
44091         avoid compile failure on AIX 6.1
44092         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44093         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44094
44095 2009-01-04  Jim Meyering  <meyering@redhat.com>
44096
44097         remove duplicate inclusion of <stdio.h>
44098         * tests/test-fprintf-posix.c: Likewise.
44099         * tests/test-printf-posix.c: Likewise.
44100         * tests/test-snprintf-posix.c: Likewise.
44101         * tests/test-sprintf-posix.c: Likewise.
44102         * tests/test-vasprintf-posix.c: Likewise.
44103         * tests/test-vfprintf-posix.c: Likewise.
44104         * tests/test-vprintf-posix.c: Likewise.
44105         * tests/test-vsnprintf-posix.c: Likewise.
44106         * tests/test-vsprintf-posix.c: Likewise.
44107
44108 2009-01-03  Jim Meyering  <meyering@redhat.com>
44109
44110         gnulib-tool: fix sed-based filtering
44111         * gnulib-tool (func_filter_filelist): Remove extra backslash
44112         in sed_fff_filter definition.
44113
44114 2009-01-02  Jim Meyering  <meyering@redhat.com>
44115
44116         strftime: avoid compilation failure on Solaris 2.6
44117         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44118         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44119         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44120         be available.  Reported by Tom G. Christensen.  Details in
44121         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44122
44123 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44124             Bruno Haible  <bruno@clisp.org>
44125
44126         Speed up gnulib-tool by doing more string processing through shell
44127         built-ins.
44128         * gnulib-tool (fast_func_append): New variable.
44129         (func_remove_prefix, func_remove_suffix): New functions.
44130         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44131         (func_filter_filelist): New function.
44132         (func_get_dependencies): Use func_remove_suffix instead of sed.
44133         (func_get_automake_snippet): Use func_filter_filelist instead of a
44134         subshell and sed invocation.
44135
44136 2009-01-01  Bruno Haible  <bruno@clisp.org>
44137
44138         Fix a security bug.
44139         * gnulib-tool (func_import, import, update): Don't allow the characters
44140         '"', '$', '`', '\' in macro arguments that become part of commands that
44141         are evaluated.
44142
44143 2009-01-01  Bruno Haible  <bruno@clisp.org>
44144
44145         * gnulib-tool (func_reset_sigpipe): Add more comments.
44146
44147 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44148
44149         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44150         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44151         already know the answer.
44152
44153 2009-01-01  Jim Meyering  <meyering@redhat.com>
44154
44155         * lib/version-etc.c (version_etc_va): Update copyright year.
44156
44157 2008-12-30  Bruno Haible  <bruno@clisp.org>
44158
44159         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44160         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44161         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44162
44163 2008-12-29  Eric Blake  <ebb9@byu.net>
44164
44165         multiarch: avoid autoconf AC_REQUIRE bug
44166         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44167         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44168         2.63 and older.
44169         Reported by Bruno Haible, and analyzed in
44170         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44171
44172 2008-12-29  Bruno Haible  <bruno@clisp.org>
44173
44174         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44175         files in subdirectories correctly.
44176         Reported by Ralf Wildenhues.
44177
44178 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44179
44180         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44181         rather than 'join FILE -', for Solaris join.
44182
44183 2008-12-29  Bruno Haible  <bruno@clisp.org>
44184
44185         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44186         quoting.
44187         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44188         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44189         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44190         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44191         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44192         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44193         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44194         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44195         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44196         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44197         * m4/nls.m4 (AM_NLS): Likewise.
44198         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44199         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44200         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44201         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44202         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44203         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44204         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44205         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44206         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44207         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44208         * m4/xsize.m4 (gl_XSIZE): Likewise.
44209         Suggested by Jim Meyering.
44210
44211 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44212
44213         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44214         * lib/parse-duration.c: use a switch instead of cascading if's.
44215
44216 2008-12-29  Eric Blake  <ebb9@byu.net>
44217
44218         wchar.h: supply WEOF on Irix 5.3
44219         * lib/wchar.in.h (wint_t): Also supply WEOF.
44220         * lib/wctype.in.h (wint_t): Likewise.
44221         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44222         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44223         Reported by Tom G. Christensen.
44224
44225 2008-12-26  Bruno Haible  <bruno@clisp.org>
44226
44227         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44228         i486, i586, i686.
44229
44230 2008-12-26  Bruno Haible  <bruno@clisp.org>
44231
44232         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44233
44234 2008-12-26  Bruno Haible  <bruno@clisp.org>
44235
44236         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44237         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44238         not __STDC_CONSTANT_MACROS.
44239         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44240
44241 2008-12-25  Bruno Haible  <bruno@clisp.org>
44242
44243         Add support for universal builds to vasnprintf.
44244         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44245         universal builds, guess no.
44246         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44247         * modules/vasprintf-posix (Depends-on): Likewise.
44248         * modules/fprintf-posix (Depends-on): Likewise.
44249         * modules/vfprintf-posix (Depends-on): Likewise.
44250         * modules/snprintf-posix (Depends-on): Likewise.
44251         * modules/vsnprintf-posix (Depends-on): Likewise.
44252         * modules/sprintf-posix (Depends-on): Likewise.
44253         * modules/vsprintf-posix (Depends-on): Likewise.
44254         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44255         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44256         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44257         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44258         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44259         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44260         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44261
44262         Add support for universal builds to <inttypes.h>.
44263         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44264         _SCNu64_PREFIX): In Apple
44265         universal builds, define directly, using _LP64.
44266         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44267         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44268         * modules/inttypes (Depends-on): Add multiarch.
44269         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44270
44271         Add support for universal builds to <stdint.h>.
44272         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44273         universal builds, define directly, using _LP64.
44274         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44275         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44276         and size_t.
44277         * modules/stdint (Depends-on): Add multiarch.
44278         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44279
44280         New module 'multiarch'.
44281         * modules/multiarch: New file.
44282         * m4/multiarch.m4: New file.
44283
44284 2008-12-25  Bruno Haible  <bruno@clisp.org>
44285
44286         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44287
44288 2008-12-25  Bruno Haible  <bruno@clisp.org>
44289
44290         * modules/btowc (License): Relicense under LGPLv2+.
44291         * modules/mbsinit (License): Likewise.
44292         * modules/mbrtowc (License): Likewise.
44293         * modules/wcrtomb (License): Likewise.
44294         * modules/streq (License): Likewise.
44295         Reported by David Lutterkort <lutter@redhat.com>.
44296
44297 2008-12-23  Bruno Haible  <bruno@clisp.org>
44298
44299         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44300
44301 2008-12-23  Bruno Haible  <bruno@clisp.org>
44302
44303         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44304         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44305         GETADDRINFO_LIB, not in LIBS.
44306         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44307         * modules/canon-host (Link): Likewise.
44308         * NEWS: Mention the change.
44309         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44310         GETADDRINFO_LIB.
44311
44312 2008-12-22  Bruno Haible  <bruno@clisp.org>
44313
44314         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44315         * doc/posix-functions/iswalpha_l.texi: Likewise.
44316         * doc/posix-functions/iswblank_l.texi: Likewise.
44317         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44318         * doc/posix-functions/iswctype_l.texi: Likewise.
44319         * doc/posix-functions/iswdigit_l.texi: Likewise.
44320         * doc/posix-functions/iswgraph_l.texi: Likewise.
44321         * doc/posix-functions/iswlower_l.texi: Likewise.
44322         * doc/posix-functions/iswprint_l.texi: Likewise.
44323         * doc/posix-functions/iswpunct_l.texi: Likewise.
44324         * doc/posix-functions/iswspace_l.texi: Likewise.
44325         * doc/posix-functions/iswupper_l.texi: Likewise.
44326         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44327         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44328         * doc/posix-functions/open_wmemstream.texi: Likewise.
44329         * doc/posix-functions/swscanf.texi: Likewise.
44330         * doc/posix-functions/towctrans_l.texi: Likewise.
44331         * doc/posix-functions/towlower.texi: Likewise.
44332         * doc/posix-functions/towlower_l.texi: Likewise.
44333         * doc/posix-functions/towupper.texi: Likewise.
44334         * doc/posix-functions/towupper_l.texi: Likewise.
44335         * doc/posix-functions/vfwprintf.texi: Likewise.
44336         * doc/posix-functions/vfwscanf.texi: Likewise.
44337         * doc/posix-functions/vswscanf.texi: Likewise.
44338         * doc/posix-functions/vwprintf.texi: Likewise.
44339         * doc/posix-functions/vwscanf.texi: Likewise.
44340         * doc/posix-functions/wcpcpy.texi: Likewise.
44341         * doc/posix-functions/wcpncpy.texi: Likewise.
44342         * doc/posix-functions/wcscasecmp.texi: Likewise.
44343         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44344         * doc/posix-functions/wcscoll_l.texi: Likewise.
44345         * doc/posix-functions/wcsdup.texi: Likewise.
44346         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44347         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44348         * doc/posix-functions/wcsnlen.texi: Likewise.
44349         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44350         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44351         * doc/posix-functions/wctrans_l.texi: Likewise.
44352         * doc/posix-functions/wctype_l.texi: Likewise.
44353         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44354         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44355         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44356         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44357         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44358         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44359         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44360         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44361         * doc/glibc-functions/wcschrnul.texi: Likewise.
44362         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44363         * doc/glibc-functions/wcstod_l.texi: Likewise.
44364         * doc/glibc-functions/wcstof_l.texi: Likewise.
44365         * doc/glibc-functions/wcstol_l.texi: Likewise.
44366         * doc/glibc-functions/wcstold_l.texi: Likewise.
44367         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44368         * doc/glibc-functions/wcstoq.texi: Likewise.
44369         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44370         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44371         * doc/glibc-functions/wcstouq.texi: Likewise.
44372         * doc/glibc-functions/wmempcpy.texi: Likewise.
44373
44374 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44375             Eric Blake  <ebb9@byu.net>
44376             Paolo Bonzini  <bonzini@gnu.org>
44377             Bruno Haible  <bruno@clisp.org>
44378
44379         Make c-stack work on Haiku.
44380         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44381         (c_stack_action): Use SA_ONSTACK flag.
44382
44383 2008-12-22  Bruno Haible  <bruno@clisp.org>
44384
44385         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44386
44387 2008-12-22  Bruno Haible  <bruno@clisp.org>
44388
44389         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44390         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44391         being overridden.
44392         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44393         New macros.
44394         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44395         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44396         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44397         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44398
44399 2008-12-22  Bruno Haible  <bruno@clisp.org>
44400
44401         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44402         from test code.
44403
44404 2008-12-22  Eric Blake  <ebb9@byu.net>
44405
44406         Avoid gcc warnings on cygwin.
44407         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44408         Avoid unused variable.
44409         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44410         Likewise.
44411
44412 2008-12-22  Bruno Haible  <bruno@clisp.org>
44413
44414         Remove HAVE_MBRTOWC conditionals.
44415         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44416         (mbscasecmp): Assume mbrtowc function.
44417         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44418         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44419         * lib/mbschr.c: Include mbuiter.h unconditionally.
44420         (mbschr): Assume mbrtowc function.
44421         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44422         (mbscspn): Assume mbrtowc function.
44423         * lib/mbslen.c: Include mbuiter.h unconditionally.
44424         (mbslen): Assume mbrtowc function.
44425         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44426         (mbsncasecmp): Assume mbrtowc function.
44427         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44428         (mbsnlen): Assume mbrtowc function.
44429         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44430         (mbspbrk): Assume mbrtowc function.
44431         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44432         (mbspcasecmp): Assume mbrtowc function.
44433         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44434         (mbsrchr): Assume mbrtowc function.
44435         * lib/mbssep.c: Include mbuiter.h unconditionally.
44436         (mbssep): Assume mbrtowc function.
44437         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44438         (mbsspn): Assume mbrtowc function.
44439         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44440         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44441         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44442         (mbstok_r): Assume mbrtowc function.
44443         * lib/propername.c: Include mbuiter.h unconditionally.
44444         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44445         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44446         (trim2): Assume mbrtowc function.
44447         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44448         (mbsnwidth): Assume mbrtowc function.
44449         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44450         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44451         fallback definitions.
44452         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44453
44454 2008-12-22  Bruno Haible  <bruno@clisp.org>
44455
44456         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44457
44458 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44459
44460         * modules/regex: Request emulations for the mb*/wc* functions we need.
44461         * m4/regex.m4: Don't look for those functions here.
44462         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44463
44464 2008-12-22  Bruno Haible  <bruno@clisp.org>
44465
44466         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44467
44468 2008-12-21  Bruno Haible  <bruno@clisp.org>
44469
44470         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44471         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44472         (Include): Remove conditionalization.
44473         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44474         (Include): Remove conditionalization.
44475         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44476         (Include): Remove conditionalization.
44477         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44478         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44479         * NEWS: Mention the change.
44480         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44481         via Sergey Poznyakoff <gray@gnu.org.ua>.
44482
44483 2008-12-21  Bruno Haible  <bruno@clisp.org>
44484
44485         * MODULES.html.sh (Extended multibyte and wide character utilities
44486         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44487         wcrtomb, wcsrtombs.
44488         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44489         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44490         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44491         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44492
44493 2008-12-21  Bruno Haible  <bruno@clisp.org>
44494
44495         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44496
44497 2008-12-21  Bruno Haible  <bruno@clisp.org>
44498
44499         * modules/wcsnrtombs-tests: New file.
44500         * tests/test-wcsnrtombs1.sh: New file.
44501         * tests/test-wcsnrtombs2.sh: New file.
44502         * tests/test-wcsnrtombs3.sh: New file.
44503         * tests/test-wcsnrtombs4.sh: New file.
44504         * tests/test-wcsnrtombs.c: New file.
44505
44506         New module 'wcsnrtombs'.
44507         * lib/wchar.in.h (wcsnrtombs): New declaration.
44508         * lib/wcsnrtombs.c: New file.
44509         * lib/wcsrtombs-state.c: New file.
44510         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44511         (internal_state): Remove variable.
44512         * m4/wcsnrtombs.m4: New file.
44513         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44514         compilation units.
44515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44516         HAVE_WCSNRTOMBS.
44517         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44518         HAVE_WCSNRTOMBS.
44519         * modules/wcsnrtombs: New file.
44520         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44521         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44522
44523 2008-12-21  Bruno Haible  <bruno@clisp.org>
44524
44525         * modules/wcsrtombs-tests: New file.
44526         * tests/test-wcsrtombs1.sh: New file.
44527         * tests/test-wcsrtombs2.sh: New file.
44528         * tests/test-wcsrtombs3.sh: New file.
44529         * tests/test-wcsrtombs4.sh: New file.
44530         * tests/test-wcsrtombs.c: New file.
44531
44532         New module 'wcsrtombs'.
44533         * lib/wchar.in.h (wcsrtombs): New declaration.
44534         * lib/wcsrtombs.c: New file.
44535         * m4/wcsrtombs.m4: New file.
44536         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44537         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44539         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44540         * modules/wcsrtombs: New file.
44541         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44542         bugs.
44543
44544 2008-12-21  Bruno Haible  <bruno@clisp.org>
44545
44546         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44547         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44548         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44549         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44550         if not correct.
44551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44552         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44553         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44554         m4/locale-zh.m4, m4/codeset.m4.
44555         * doc/posix-functions/wcrtomb.texi: Document the bug.
44556
44557 2008-12-21  Bruno Haible  <bruno@clisp.org>
44558
44559         Work around a btowc() bug on IRIX 6.5.
44560         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44561         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44562         REPLACE_WTOBC if not.
44563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44564         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44565         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44566
44567 2008-12-21  Bruno Haible  <bruno@clisp.org>
44568
44569         * modules/wcrtomb-tests: New file.
44570         * tests/test-wcrtomb.sh: New file.
44571         * tests/test-wcrtomb.c: New file.
44572
44573         New module 'wcrtomb'.
44574         * lib/wchar.in.h (wcrtomb): New declaration.
44575         * lib/wcrtomb.c: New file.
44576         * m4/wcrtomb.m4: New file.
44577         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44578         HAVE_WCRTOMB.
44579         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44580         HAVE_WCRTOMB.
44581         * modules/wcrtomb: New file.
44582         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44583
44584 2008-12-21  Bruno Haible  <bruno@clisp.org>
44585
44586         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44587         * modules/mbsrtowcs (Files): Likewise.
44588         * modules/wctob (Files): Likewise.
44589         * modules/c-strcase-tests (Files): Likewise.
44590         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44591         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44592         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44593         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44594         * modules/vasnprintf-posix-tests (Files): Likewise.
44595
44596 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44597
44598         gitlog-to-changelog: pass all command-line arguments to git-log
44599         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44600         it is sometimes convenient to filter the commits in various ways.
44601         gitlog-to-changelog only allows --since to specify a start date,
44602         but git-log itself supports many other filtering mechanisms.
44603         At the moment, I want to filter by branch name.  Rather than
44604         adding a --branch option to gitlog-to-changelog, it seems more
44605         flexible to simply pass all options directly to git-log and let
44606         git do the work.  Notice that this effectively makes --since a
44607         redundant option for gitlog-to-changelog, but removing it would
44608         require current usage to change since calls would then require
44609         an additional '--'.
44610
44611 2008-12-21  Bruno Haible  <bruno@clisp.org>
44612
44613         * modules/mbsnrtowcs-tests: New file.
44614         * tests/test-mbsnrtowcs1.sh: New file.
44615         * tests/test-mbsnrtowcs2.sh: New file.
44616         * tests/test-mbsnrtowcs3.sh: New file.
44617         * tests/test-mbsnrtowcs4.sh: New file.
44618         * tests/test-mbsnrtowcs.c: New file.
44619
44620         New module 'mbsnrtowcs'.
44621         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44622         * lib/mbsnrtowcs.c: New file.
44623         * lib/mbsrtowcs-state.c: New file.
44624         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44625         (internal_state): Remove variable.
44626         * m4/mbsnrtowcs.m4: New file.
44627         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44628         compilation units.
44629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44630         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44631         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44632         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44633         * modules/mbsnrtowcs: New file.
44634         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44635         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44636         portability problem.
44637
44638 2008-12-21  Bruno Haible  <bruno@clisp.org>
44639
44640         Work around mbsrtowcs bug.
44641         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44642         (gl_FUNC_MBSRTOWCS): Invoke it.
44643         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44644         m4/locale-zh.m4.
44645         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44646
44647 2008-12-21  Bruno Haible  <bruno@clisp.org>
44648
44649         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44650
44651 2008-12-21  Bruno Haible  <bruno@clisp.org>
44652
44653         Update doc for AIX.
44654         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44655         16-bit wchar_t type.
44656         * doc/posix-functions/btowc.texi: Likewise.
44657         * doc/posix-functions/fgetwc.texi: Likewise.
44658         * doc/posix-functions/fgetws.texi: Likewise.
44659         * doc/posix-functions/fputwc.texi: Likewise.
44660         * doc/posix-functions/fputws.texi: Likewise.
44661         * doc/posix-functions/fwide.texi: Likewise.
44662         * doc/posix-functions/fwprintf.texi: Likewise.
44663         * doc/posix-functions/fwscanf.texi: Likewise.
44664         * doc/posix-functions/getwchar.texi: Likewise.
44665         * doc/posix-functions/getwc.texi: Likewise.
44666         * doc/posix-functions/iswalnum.texi: Likewise.
44667         * doc/posix-functions/iswalpha.texi: Likewise.
44668         * doc/posix-functions/iswblank.texi: Likewise.
44669         * doc/posix-functions/iswcntrl.texi: Likewise.
44670         * doc/posix-functions/iswctype.texi: Likewise.
44671         * doc/posix-functions/iswdigit.texi: Likewise.
44672         * doc/posix-functions/iswgraph.texi: Likewise.
44673         * doc/posix-functions/iswlower.texi: Likewise.
44674         * doc/posix-functions/iswprint.texi: Likewise.
44675         * doc/posix-functions/iswpunct.texi: Likewise.
44676         * doc/posix-functions/iswspace.texi: Likewise.
44677         * doc/posix-functions/iswupper.texi: Likewise.
44678         * doc/posix-functions/iswxdigit.texi: Likewise.
44679         * doc/posix-functions/mbrtowc.texi: Likewise.
44680         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44681         * doc/posix-functions/mbstowcs.texi: Likewise.
44682         * doc/posix-functions/mbtowc.texi: Likewise.
44683         * doc/posix-functions/putwchar.texi: Likewise.
44684         * doc/posix-functions/putwc.texi: Likewise.
44685         * doc/posix-functions/swprintf.texi: Likewise.
44686         * doc/posix-functions/tolower.texi: Likewise.
44687         * doc/posix-functions/toupper.texi: Likewise.
44688         * doc/posix-functions/towctrans.texi: Likewise.
44689         * doc/posix-functions/ungetwc.texi: Likewise.
44690         * doc/posix-functions/vswprintf.texi: Likewise.
44691         * doc/posix-functions/wcrtomb.texi: Likewise.
44692         * doc/posix-functions/wcscat.texi: Likewise.
44693         * doc/posix-functions/wcschr.texi: Likewise.
44694         * doc/posix-functions/wcscmp.texi: Likewise.
44695         * doc/posix-functions/wcscoll.texi: Likewise.
44696         * doc/posix-functions/wcscpy.texi: Likewise.
44697         * doc/posix-functions/wcscspn.texi: Likewise.
44698         * doc/posix-functions/wcsftime.texi: Likewise.
44699         * doc/posix-functions/wcslen.texi: Likewise.
44700         * doc/posix-functions/wcsncat.texi: Likewise.
44701         * doc/posix-functions/wcsncmp.texi: Likewise.
44702         * doc/posix-functions/wcsncpy.texi: Likewise.
44703         * doc/posix-functions/wcspbrk.texi: Likewise.
44704         * doc/posix-functions/wcsrchr.texi: Likewise.
44705         * doc/posix-functions/wcsrtombs.texi: Likewise.
44706         * doc/posix-functions/wcsspn.texi: Likewise.
44707         * doc/posix-functions/wcsstr.texi: Likewise.
44708         * doc/posix-functions/wcstod.texi: Likewise.
44709         * doc/posix-functions/wcstof.texi: Likewise.
44710         * doc/posix-functions/wcstoimax.texi: Likewise.
44711         * doc/posix-functions/wcstok.texi: Likewise.
44712         * doc/posix-functions/wcstold.texi: Likewise.
44713         * doc/posix-functions/wcstoll.texi: Likewise.
44714         * doc/posix-functions/wcstol.texi: Likewise.
44715         * doc/posix-functions/wcstombs.texi: Likewise.
44716         * doc/posix-functions/wcstoull.texi: Likewise.
44717         * doc/posix-functions/wcstoul.texi: Likewise.
44718         * doc/posix-functions/wcstoumax.texi: Likewise.
44719         * doc/posix-functions/wcswidth.texi: Likewise.
44720         * doc/posix-functions/wcsxfrm.texi: Likewise.
44721         * doc/posix-functions/wctob.texi: Likewise.
44722         * doc/posix-functions/wctomb.texi: Likewise.
44723         * doc/posix-functions/wctrans.texi: Likewise.
44724         * doc/posix-functions/wctype.texi: Likewise.
44725         * doc/posix-functions/wcwidth.texi: Likewise.
44726         * doc/posix-functions/wmemchr.texi: Likewise.
44727         * doc/posix-functions/wmemcmp.texi: Likewise.
44728         * doc/posix-functions/wmemcpy.texi: Likewise.
44729         * doc/posix-functions/wmemmove.texi: Likewise.
44730         * doc/posix-functions/wmemset.texi: Likewise.
44731         * doc/posix-functions/wprintf.texi: Likewise.
44732         * doc/posix-functions/wscanf.texi: Likewise.
44733
44734 2008-12-21  Bruno Haible  <bruno@clisp.org>
44735
44736         Update doc for HP-UX 11.11.
44737         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44738         in HP-UX version 11.00, not in all versions of HP-UX 11.
44739         * doc/posix-functions/fwide.texi: Likewise.
44740         * doc/posix-functions/fwprintf.texi: Likewise.
44741         * doc/posix-functions/fwscanf.texi: Likewise.
44742         * doc/posix-functions/inet_ntop.texi: Likewise.
44743         * doc/posix-functions/inet_pton.texi: Likewise.
44744         * doc/posix-functions/mbrlen.texi: Likewise.
44745         * doc/posix-functions/mbrtowc.texi: Likewise.
44746         * doc/posix-functions/mbsinit.texi: Likewise.
44747         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44748         * doc/posix-functions/swprintf.texi: Likewise.
44749         * doc/posix-functions/swscanf.texi: Likewise.
44750         * doc/posix-functions/towctrans.texi: Likewise.
44751         * doc/posix-functions/vfwprintf.texi: Likewise.
44752         * doc/posix-functions/vswprintf.texi: Likewise.
44753         * doc/posix-functions/vwprintf.texi: Likewise.
44754         * doc/posix-functions/wcrtomb.texi: Likewise.
44755         * doc/posix-functions/wcsrtombs.texi: Likewise.
44756         * doc/posix-functions/wcsstr.texi: Likewise.
44757         * doc/posix-functions/wctob.texi: Likewise.
44758         * doc/posix-functions/wctrans.texi: Likewise.
44759         * doc/posix-functions/wmemchr.texi: Likewise.
44760         * doc/posix-functions/wmemcmp.texi: Likewise.
44761         * doc/posix-functions/wmemcpy.texi: Likewise.
44762         * doc/posix-functions/wmemmove.texi: Likewise.
44763         * doc/posix-functions/wmemset.texi: Likewise.
44764         * doc/posix-functions/wprintf.texi: Likewise.
44765         * doc/posix-functions/wscanf.texi: Likewise.
44766
44767 2008-12-21  Bruno Haible  <bruno@clisp.org>
44768
44769         Work around a portability problem.
44770         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44771         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44772
44773 2008-12-20  Bruno Haible  <bruno@clisp.org>
44774
44775         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44776         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44777         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44778         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44779         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44780
44781         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44782         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44783         set.
44784         (GNULIB_defined_mbstate_t): New macro.
44785         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44786         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44787         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44788         reuses the system's mbrtowc function but works around the bugs.
44789         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44790         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44791         macros.
44792         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44793         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44794         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44795         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44796         REPLACE_MBSINIT if mbsinit needs to be overridden.
44797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44798         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44799         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44800         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44801         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44802         m4/locale-zh.m4.
44803         (Depends): Add mbsinit.
44804         * modules/mbsinit (Depends): Add mbrtowc.
44805         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44806
44807 2008-12-20  Bruno Haible  <bruno@clisp.org>
44808
44809         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44810         so that there are no conversion errors on AIX.
44811         * tests/test-mbsrtowcs.c (main): LIkewise.
44812
44813 2008-12-20  Bruno Haible  <bruno@clisp.org>
44814
44815         Work around wctob bug on Solaris <= 9.
44816         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44817         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44819         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44820         * modules/wctob (Files): Add m4/locale-fr.m4.
44821         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44822
44823 2008-12-20  Bruno Haible  <bruno@clisp.org>
44824
44825         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44826         /dev/null.
44827         * tests/test-select-in.sh: Likewise.
44828         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44829
44830 2008-12-20  Bruno Haible  <bruno@clisp.org>
44831
44832         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44833         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44834         Cygwin 1.5.x.
44835
44836 2008-12-20  Bruno Haible  <bruno@clisp.org>
44837
44838         Ensure mbstate_t is defined on HP-UX 11.11.
44839         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44840         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44841         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44842         AC_USE_SYSTEM_EXTENSIONS.
44843         * modules/fnmatch (Depends-on): Add extensions.
44844         * modules/mbrlen (Depends-on): Likewise.
44845         * modules/mbrtowc (Depends-on): Likewise.
44846         * modules/mbsinit (Depends-on): Likewise.
44847         * modules/mbsrtowcs (Depends-on): Likewise.
44848         * modules/mbswidth (Depends-on): Likewise.
44849         * modules/quotearg (Depends-on): Likewise.
44850         * modules/strftime (Depends-on): Likewise.
44851
44852 2008-12-20  Bruno Haible  <bruno@clisp.org>
44853
44854         Ensure wctob is declared on IRIX 6.5.
44855         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44856         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44857         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44858         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44859         of HAVE_WCTOB.
44860         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44861         HAVE_WCTOB.
44862         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44863
44864 2008-12-19  Bruno Haible  <bruno@clisp.org>
44865
44866         * modules/mbsrtowcs-tests: New file.
44867         * tests/test-mbsrtowcs1.sh: New file.
44868         * tests/test-mbsrtowcs2.sh: New file.
44869         * tests/test-mbsrtowcs3.sh: New file.
44870         * tests/test-mbsrtowcs4.sh: New file.
44871         * tests/test-mbsrtowcs.c: New file.
44872
44873         New module 'mbsrtowcs'.
44874         * lib/wchar.in.h (mbsrtowcs): New declaration.
44875         * lib/mbsrtowcs.c: New file.
44876         * m4/mbsrtowcs.m4: New file.
44877         * modules/mbsrtowcs: New file.
44878         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44879         HAVE_MBSRTOWCS.
44880         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44881         HAVE_MBSRTOWCS.
44882         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44883
44884 2008-12-19  Bruno Haible  <bruno@clisp.org>
44885
44886         New module 'mbrlen'.
44887         * lib/wchar.in.h (mbrlen): New declaration.
44888         * lib/mbrlen.c: New file.
44889         * m4/mbrlen.m4: New file.
44890         * modules/mbrlen: New file.
44891         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44892         HAVE_MBRLEN.
44893         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44894         HAVE_MBRLEN.
44895         * doc/posix-functions/mbrlen.texi: Document the new module.
44896
44897 2008-12-19  Bruno Haible  <bruno@clisp.org>
44898
44899         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44900         * modules/mbrtowc (Depends-on): Add verify.
44901         Suggested by Paul Eggert.
44902
44903 2008-12-18  Bruno Haible  <bruno@clisp.org>
44904
44905         * modules/mbsinit-tests: New file.
44906         * tests/test-mbsinit.sh: New file.
44907         * tests/test-mbsinit.c: New file.
44908
44909 2008-12-18  Bruno Haible  <bruno@clisp.org>
44910
44911         * modules/mbrtowc-tests: New file.
44912         * tests/test-mbrtowc1.sh: New file.
44913         * tests/test-mbrtowc2.sh: New file.
44914         * tests/test-mbrtowc3.sh: New file.
44915         * tests/test-mbrtowc4.sh: New file.
44916         * tests/test-mbrtowc.c: New file.
44917
44918         New module 'mbrtowc'.
44919         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44920         mbsinit and mbrtowc.
44921         (mbrtowc): New declaration.
44922         * lib/mbrtowc.c: New file.
44923         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44924         * modules/mbrtowc: New file.
44925         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44926         HAVE_MBRTOWC.
44927         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44928         HAVE_MBRTOWC.
44929         * doc/posix-functions/mbrtowc.texi: Document the new module.
44930
44931 2008-12-18  Bruno Haible  <bruno@clisp.org>
44932
44933         New module 'wctob'.
44934         * lib/wchar.in.h (wctob): New declaration.
44935         * lib/wctob.c: New file.
44936         * m4/wctob.m4: New file.
44937         * modules/wctob: New file.
44938         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44939         HAVE_WCTOB.
44940         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44941         * doc/posix-functions/wctob.texi: Document the new module.
44942
44943 2008-12-18  Bruno Haible  <bruno@clisp.org>
44944
44945         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44946         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44947
44948 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44949
44950         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44951         G. Christensen" <tgc@jupiterrise.com>.
44952
44953         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44954         G. Christensen" <tgc@jupiterrise.com>.
44955
44956         * lib/flock.c: Need to include string.h.  Reported by "Tom
44957         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44958         <ebb9@byu.net>.
44959
44960 2008-12-18  Bruno Haible  <bruno@clisp.org>
44961
44962         * m4/locale-ja.m4: New file, from GNU gettext.
44963
44964 2008-12-17  Bruno Haible  <bruno@clisp.org>
44965
44966         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44967         Suggested by Eric Blake.
44968
44969 2008-12-17  Bruno Haible  <bruno@clisp.org>
44970
44971         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44972
44973 2008-12-17  Bruno Haible  <bruno@clisp.org>
44974
44975         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44976         * modules/mbsinit (Depends-on): Add verify.
44977         Suggested by Paul Eggert.
44978
44979 2008-12-17  Bruno Haible  <bruno@clisp.org>
44980
44981         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44982         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44983         gl_FUNC_MBRTOWC.
44984         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44985         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44986         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44987         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44988         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44989         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44990         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44991         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44992         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44993         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44994         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44995         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44996         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44997         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44998         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44999         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45000         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
45001         * modules/trim (configure.ac): Likewise.
45002
45003 2008-12-17  Bruno Haible  <bruno@clisp.org>
45004
45005         * modules/btowc-tests: New file.
45006         * tests/test-btowc1.sh: New file.
45007         * tests/test-btowc2.sh: New file.
45008         * tests/test-btowc.c: New file.
45009
45010         New module 'btowc'.
45011         * lib/wchar.in.h (btowc): New declaration.
45012         * lib/btowc.c: New file.
45013         * m4/btowc.m4: New file.
45014         * modules/btowc: New file.
45015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
45016         HAVE_BTOWC.
45017         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
45018         * doc/posix-functions/btowc.texi: Document the new module.
45019
45020 2008-12-17  Bruno Haible  <bruno@clisp.org>
45021
45022         New module 'mbsinit'.
45023         * lib/wchar.in.h (mbsinit): New declaration.
45024         * lib/mbsinit.c: New file.
45025         * m4/mbsinit.m4: New file.
45026         * modules/mbsinit: New file.
45027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
45028         HAVE_MBSINIT.
45029         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
45030         HAVE_MBSINIT.
45031         * doc/posix-functions/mbsinit.texi: Document the new module.
45032
45033 2008-12-16  Bruno Haible  <bruno@clisp.org>
45034
45035         * lib/unistd.in.h: Add comment.
45036         * tests/test-environ.c: Don't include <stdlib.h>.
45037
45038 2008-12-16  Bruno Haible  <bruno@clisp.org>
45039
45040         * lib/parse-duration.h (parse_duration): Document return value
45041         convention.
45042         * lib/parse-duration.c: Include specification header first. Add
45043         comments.
45044         (_): Remove macro.
45045         (parse_year_month_day, parse_hour_minute_second): Move side effects
45046         outside of strchr call.
45047         (parse_non_iso8601): Move side effects outside of isspace call.
45048         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45049         call.
45050
45051 2008-12-16  Bruno Haible  <bruno@clisp.org>
45052
45053         * tests/test-parse-duration.sh: Produce no output when the test
45054         succeeds.
45055
45056 2008-12-16  Bruno Haible  <bruno@clisp.org>
45057
45058         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
45059         expressions.
45060
45061 2008-12-15  Bruno Haible  <bruno@clisp.org>
45062
45063         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45064         * doc/glibc-functions/flistxattr.texi: Likewise.
45065         * doc/glibc-functions/fopencookie.texi: Likewise.
45066         * doc/glibc-functions/fremovexattr.texi: Likewise.
45067         * doc/glibc-functions/fsetxattr.texi: Likewise.
45068         * doc/glibc-functions/getxattr.texi: Likewise.
45069         * doc/glibc-functions/lgetxattr.texi: Likewise.
45070         * doc/glibc-functions/listxattr.texi: Likewise.
45071         * doc/glibc-functions/llistxattr.texi: Likewise.
45072         * doc/glibc-functions/lremovexattr.texi: Likewise.
45073         * doc/glibc-functions/lsetxattr.texi: Likewise.
45074         * doc/glibc-functions/removexattr.texi: Likewise.
45075         * doc/glibc-functions/setxattr.texi: Likewise.
45076         * doc/posix-functions/open_memstream.texi: Likewise.
45077
45078 2008-12-15  Eric Blake  <ebb9@byu.net>
45079
45080         Update doc for cygwin 1.7.
45081         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45082         functions.
45083         * doc/posix-functions/fchmodat.texi: Likewise.
45084         * doc/posix-functions/fchownat.texi: Likewise.
45085         * doc/posix-functions/fdopendir.texi: Likewise.
45086         * doc/posix-functions/fmemopen.texi: Likewise.
45087         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45088         * doc/posix-functions/fstatat.texi: Likewise.
45089         * doc/posix-functions/futimens.texi: Likewise.
45090         * doc/posix-functions/gai_strerror.texi: Likewise.
45091         * doc/posix-functions/getaddrinfo.texi: Likewise.
45092         * doc/posix-functions/getnameinfo.texi: Likewise.
45093         * doc/posix-functions/if_freenameindex.texi: Likewise.
45094         * doc/posix-functions/if_indextoname.texi: Likewise.
45095         * doc/posix-functions/if_nameindex.texi: Likewise.
45096         * doc/posix-functions/if_nametoindex.texi: Likewise.
45097         * doc/posix-functions/insque.texi: Likewise.
45098         * doc/posix-functions/linkat.texi: Likewise.
45099         * doc/posix-functions/llrint.texi: Likewise.
45100         * doc/posix-functions/llrintf.texi: Likewise.
45101         * doc/posix-functions/llrintl.texi: Likewise.
45102         * doc/posix-functions/lockf.texi: Likewise.
45103         * doc/posix-functions/lrintl.texi: Likewise.
45104         * doc/posix-functions/mkdirat.texi: Likewise.
45105         * doc/posix-functions/mkfifoat.texi: Likewise.
45106         * doc/posix-functions/mknodat.texi: Likewise.
45107         * doc/posix-functions/mq_close.texi: Likewise.
45108         * doc/posix-functions/mq_getattr.texi: Likewise.
45109         * doc/posix-functions/mq_notify.texi: Likewise.
45110         * doc/posix-functions/mq_open.texi: Likewise.
45111         * doc/posix-functions/mq_receive.texi: Likewise.
45112         * doc/posix-functions/mq_send.texi: Likewise.
45113         * doc/posix-functions/mq_setattr.texi: Likewise.
45114         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45115         * doc/posix-functions/mq_timedsend.texi: Likewise.
45116         * doc/posix-functions/mq_unlink.texi: Likewise.
45117         * doc/posix-functions/open_memstream.texi: Likewise.
45118         * doc/posix-functions/openat.texi: Likewise.
45119         * doc/posix-functions/posix_fadvise.texi: Likewise.
45120         * doc/posix-functions/posix_fallocate.texi: Likewise.
45121         * doc/posix-functions/posix_madvise.texi: Likewise.
45122         * doc/posix-functions/posix_memalign.texi: Likewise.
45123         * doc/posix-functions/posix_openpt.texi: Likewise.
45124         * doc/posix-functions/readlinkat.texi: Likewise.
45125         * doc/posix-functions/remque.texi: Likewise.
45126         * doc/posix-functions/renameat.texi: Likewise.
45127         * doc/posix-functions/rintl.texi: Likewise.
45128         * doc/posix-functions/sem_unlink.texi: Likewise.
45129         * doc/posix-functions/shm_open.texi: Likewise.
45130         * doc/posix-functions/shm_unlink.texi: Likewise.
45131         * doc/posix-functions/signgam.texi: Likewise.
45132         * doc/posix-functions/sigset.texi: Likewise.
45133         * doc/posix-functions/stpcpy.texi: Likewise.
45134         * doc/posix-functions/stpncpy.texi: Likewise.
45135         * doc/posix-functions/strerror.texi: Likewise.
45136         * doc/posix-functions/strtod.texi: Likewise.
45137         * doc/posix-functions/symlinkat.texi: Likewise.
45138         * doc/posix-functions/unlinkat.texi: Likewise.
45139         * doc/posix-functions/utimensat.texi: Likewise.
45140         * doc/glibc-functions/bindresvport.texi: Likewise.
45141         * doc/glibc-functions/dn_expand.texi: Likewise.
45142         * doc/glibc-functions/exp10.texi: Likewise.
45143         * doc/glibc-functions/exp10f.texi: Likewise.
45144         * doc/glibc-functions/fgetxattr.texi: Likewise.
45145         * doc/glibc-functions/flistxattr.texi: Likewise.
45146         * doc/glibc-functions/fopencookie.texi: Likewise.
45147         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45148         * doc/glibc-functions/fremovexattr.texi: Likewise.
45149         * doc/glibc-functions/fsetxattr.texi: Likewise.
45150         * doc/glibc-functions/getifaddrs.texi: Likewise.
45151         * doc/glibc-functions/getxattr.texi: Likewise.
45152         * doc/glibc-functions/lgetxattr.texi: Likewise.
45153         * doc/glibc-functions/listxattr.texi: Likewise.
45154         * doc/glibc-functions/llistxattr.texi: Likewise.
45155         * doc/glibc-functions/lremovexattr.texi: Likewise.
45156         * doc/glibc-functions/lsetxattr.texi: Likewise.
45157         * doc/glibc-functions/pow10.texi: Likewise.
45158         * doc/glibc-functions/pow10f.texi: Likewise.
45159         * doc/glibc-functions/rcmd_af.texi: Likewise.
45160         * doc/glibc-functions/removexattr.texi: Likewise.
45161         * doc/glibc-functions/res_init.texi: Likewise.
45162         * doc/glibc-functions/res_mkquery.texi: Likewise.
45163         * doc/glibc-functions/res_query.texi: Likewise.
45164         * doc/glibc-functions/res_querydomain.texi: Likewise.
45165         * doc/glibc-functions/res_send.texi: Likewise.
45166         * doc/glibc-functions/rresvport_af.texi: Likewise.
45167         * doc/glibc-functions/setxattr.texi: Likewise.
45168         * doc/glibc-functions/strcasestr.texi: Likewise.
45169
45170 2008-12-15  Bruno Haible  <bruno@clisp.org>
45171
45172         Fix compilation error on OSF/1 4.0.
45173         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45174         <sys/time.h>, simply delegate to the system header.
45175         Reported by Daniel Richard G. <oss@teragram.com>.
45176
45177 2008-12-15  Bruno Haible  <bruno@clisp.org>
45178
45179         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45180         * doc/posix-functions/fchmodat.texi: Likewise.
45181         * doc/posix-functions/fchownat.texi: Likewise.
45182         * doc/posix-functions/fdopendir.texi: Likewise.
45183         * doc/posix-functions/fstatat.texi: Likewise.
45184         * doc/posix-functions/mkdirat.texi: Likewise.
45185         * doc/posix-functions/unlinkat.texi: Likewise.
45186
45187 2008-12-14  Bruno Haible  <bruno@clisp.org>
45188
45189         Update doc for POSIX:2008.
45190         * doc/posix-functions/faccessat.texi: New file.
45191         * doc/posix-functions/fchmodat.texi: New file.
45192         * doc/posix-functions/fchownat.texi: New file.
45193         * doc/posix-functions/fdopendir.texi: New file.
45194         * doc/posix-functions/fstatat.texi: New file.
45195         * doc/posix-functions/futimens.texi: New file.
45196         * doc/posix-functions/linkat.texi: New file.
45197         * doc/posix-functions/mkdirat.texi: New file.
45198         * doc/posix-functions/mkfifoat.texi: New file.
45199         * doc/posix-functions/mknodat.texi: New file.
45200         * doc/posix-functions/open_wmemstream.texi: New file.
45201         * doc/posix-functions/openat.texi: New file.
45202         * doc/posix-functions/psiginfo.texi: New file.
45203         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45204         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45205         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45206         * doc/posix-functions/readlinkat.texi: New file.
45207         * doc/posix-functions/renameat.texi: New file.
45208         * doc/posix-functions/strerror_l.texi: New file.
45209         * doc/posix-functions/symlinkat.texi: New file.
45210         * doc/posix-functions/unlinkat.texi: New file.
45211         * doc/posix-functions/utimensat.texi: New file.
45212         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45213
45214 2008-12-14  Bruno Haible  <bruno@clisp.org>
45215
45216         Update doc for POSIX:2008.
45217         * doc/posix-functions/alphasort.texi: Renamed from
45218         doc/glibc-functions/alphasort.texi.
45219         * doc/posix-functions/dirfd.texi: Renamed from
45220         doc/glibc-functions/dirfd.texi.
45221         * doc/posix-functions/dprintf.texi: Renamed from
45222         doc/glibc-functions/dprintf.texi.
45223         * doc/posix-functions/duplocale.texi: Renamed from
45224         doc/glibc-functions/duplocale.texi.
45225         * doc/posix-functions/fexecve.texi: Renamed from
45226         doc/glibc-functions/fexecve.texi.
45227         * doc/posix-functions/fmemopen.texi: Renamed from
45228         doc/glibc-functions/fmemopen.texi.
45229         * doc/posix-functions/freelocale.texi: Renamed from
45230         doc/glibc-functions/freelocale.texi.
45231         * doc/posix-functions/getdate_err.texi: Renamed from
45232         doc/glibc-functions/getdate_err.texi.
45233         * doc/posix-functions/isalnum_l.texi: Renamed from
45234         doc/glibc-functions/isalnum_l.texi.
45235         * doc/posix-functions/isalpha_l.texi: Renamed from
45236         doc/glibc-functions/isalpha_l.texi.
45237         * doc/posix-functions/isblank_l.texi: Renamed from
45238         doc/glibc-functions/isblank_l.texi.
45239         * doc/posix-functions/iscntrl_l.texi: Renamed from
45240         doc/glibc-functions/iscntrl_l.texi.
45241         * doc/posix-functions/isdigit_l.texi: Renamed from
45242         doc/glibc-functions/isdigit_l.texi.
45243         * doc/posix-functions/isgraph_l.texi: Renamed from
45244         doc/glibc-functions/isgraph_l.texi.
45245         * doc/posix-functions/islower_l.texi: Renamed from
45246         doc/glibc-functions/islower_l.texi.
45247         * doc/posix-functions/isprint_l.texi: Renamed from
45248         doc/glibc-functions/isprint_l.texi.
45249         * doc/posix-functions/ispunct_l.texi: Renamed from
45250         doc/glibc-functions/ispunct_l.texi.
45251         * doc/posix-functions/isspace_l.texi: Renamed from
45252         doc/glibc-functions/isspace_l.texi.
45253         * doc/posix-functions/isupper_l.texi: Renamed from
45254         doc/glibc-functions/isupper_l.texi.
45255         * doc/posix-functions/iswalnum_l.texi: Renamed from
45256         doc/glibc-functions/iswalnum_l.texi.
45257         * doc/posix-functions/iswalpha_l.texi: Renamed from
45258         doc/glibc-functions/iswalpha_l.texi.
45259         * doc/posix-functions/iswblank_l.texi: Renamed from
45260         doc/glibc-functions/iswblank_l.texi.
45261         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45262         doc/glibc-functions/iswcntrl_l.texi.
45263         * doc/posix-functions/iswctype_l.texi: Renamed from
45264         doc/glibc-functions/iswctype_l.texi.
45265         * doc/posix-functions/iswdigit_l.texi: Renamed from
45266         doc/glibc-functions/iswdigit_l.texi.
45267         * doc/posix-functions/iswgraph_l.texi: Renamed from
45268         doc/glibc-functions/iswgraph_l.texi.
45269         * doc/posix-functions/iswlower_l.texi: Renamed from
45270         doc/glibc-functions/iswlower_l.texi.
45271         * doc/posix-functions/iswprint_l.texi: Renamed from
45272         doc/glibc-functions/iswprint_l.texi.
45273         * doc/posix-functions/iswpunct_l.texi: Renamed from
45274         doc/glibc-functions/iswpunct_l.texi.
45275         * doc/posix-functions/iswspace_l.texi: Renamed from
45276         doc/glibc-functions/iswspace_l.texi.
45277         * doc/posix-functions/iswupper_l.texi: Renamed from
45278         doc/glibc-functions/iswupper_l.texi.
45279         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45280         doc/glibc-functions/iswxdigit_l.texi.
45281         * doc/posix-functions/isxdigit_l.texi: Renamed from
45282         doc/glibc-functions/isxdigit_l.texi.
45283         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45284         doc/glibc-functions/mbsnrtowcs.texi.
45285         * doc/posix-functions/mkdtemp.texi: Renamed from
45286         doc/glibc-functions/mkdtemp.texi.
45287         * doc/posix-functions/newlocale.texi: Renamed from
45288         doc/glibc-functions/newlocale.texi.
45289         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45290         doc/glibc-functions/nl_langinfo_l.texi.
45291         * doc/posix-functions/open_memstream.texi: Renamed from
45292         doc/glibc-functions/open_memstream.texi.
45293         * doc/posix-functions/opterr.texi: Renamed from
45294         doc/glibc-functions/opterr.texi.
45295         * doc/posix-functions/optind.texi: Renamed from
45296         doc/glibc-functions/optind.texi.
45297         * doc/posix-functions/optopt.texi: Renamed from
45298         doc/glibc-functions/optopt.texi.
45299         * doc/posix-functions/psignal.texi: Renamed from
45300         doc/glibc-functions/psignal.texi.
45301         * doc/posix-functions/scandir.texi: Renamed from
45302         doc/glibc-functions/scandir.texi.
45303         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45304         doc/glibc-functions/sched_get_priority_min.texi.
45305         * doc/posix-functions/signgam.texi: Renamed from
45306         doc/glibc-functions/signgam.texi.
45307         * doc/posix-functions/stpcpy.texi: Renamed from
45308         doc/glibc-functions/stpcpy.texi.
45309         * doc/posix-functions/stpncpy.texi: Renamed from
45310         doc/glibc-functions/stpncpy.texi.
45311         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45312         doc/glibc-functions/strcasecmp_l.texi.
45313         * doc/posix-functions/strcoll_l.texi: Renamed from
45314         doc/glibc-functions/strcoll_l.texi.
45315         * doc/posix-functions/strfmon_l.texi: Renamed from
45316         doc/glibc-functions/strfmon_l.texi.
45317         * doc/posix-functions/strftime_l.texi: Renamed from
45318         doc/glibc-functions/strftime_l.texi.
45319         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45320         doc/glibc-functions/strncasecmp_l.texi.
45321         * doc/posix-functions/strndup.texi: Renamed from
45322         doc/glibc-functions/strndup.texi.
45323         * doc/posix-functions/strnlen.texi: Renamed from
45324         doc/glibc-functions/strnlen.texi.
45325         * doc/posix-functions/strsignal.texi: Renamed from
45326         doc/glibc-functions/strsignal.texi.
45327         * doc/posix-functions/strxfrm_l.texi: Renamed from
45328         doc/glibc-functions/strxfrm_l.texi.
45329         * doc/posix-functions/timer_gettime.texi: Renamed from
45330         doc/glibc-functions/timer_gettime.texi.
45331         * doc/posix-functions/tolower_l.texi: Renamed from
45332         doc/glibc-functions/tolower_l.texi.
45333         * doc/posix-functions/toupper_l.texi: Renamed from
45334         doc/glibc-functions/toupper_l.texi.
45335         * doc/posix-functions/towctrans_l.texi: Renamed from
45336         doc/glibc-functions/towctrans_l.texi.
45337         * doc/posix-functions/towlower_l.texi: Renamed from
45338         doc/glibc-functions/towlower_l.texi.
45339         * doc/posix-functions/towupper_l.texi: Renamed from
45340         doc/glibc-functions/towupper_l.texi.
45341         * doc/posix-functions/uselocale.texi: Renamed from
45342         doc/glibc-functions/uselocale.texi.
45343         * doc/posix-functions/vdprintf.texi: Renamed from
45344         doc/glibc-functions/vdprintf.texi.
45345         * doc/posix-functions/wcpcpy.texi:
45346         Renamed from doc/glibc-functions/wcpcpy.texi.
45347         * doc/posix-functions/wcpncpy.texi: Renamed from
45348         doc/glibc-functions/wcpncpy.texi.
45349         * doc/posix-functions/wcscasecmp.texi: Renamed from
45350         doc/glibc-functions/wcscasecmp.texi.
45351         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45352         doc/glibc-functions/wcscasecmp_l.texi.
45353         * doc/posix-functions/wcscoll_l.texi: Renamed from
45354         doc/glibc-functions/wcscoll_l.texi.
45355         * doc/posix-functions/wcsdup.texi: Renamed from
45356         doc/glibc-functions/wcsdup.texi.
45357         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45358         doc/glibc-functions/wcsncasecmp.texi.
45359         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45360         doc/glibc-functions/wcsncasecmp_l.texi.
45361         * doc/posix-functions/wcsnlen.texi: Renamed from
45362         doc/glibc-functions/wcsnlen.texi.
45363         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45364         doc/glibc-functions/wcsnrtombs.texi.
45365         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45366         doc/glibc-functions/wcsxfrm_l.texi.
45367         * doc/posix-functions/wctrans_l.texi: Renamed from
45368         doc/glibc-functions/wctrans_l.texi.
45369         * doc/posix-functions/wctype_l.texi: Renamed from
45370         doc/glibc-functions/wctype_l.texi.
45371         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45372         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45373         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45374         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45375         these subsections.
45376         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45377         Remove sections.
45378
45379 2008-12-14  Bruno Haible  <bruno@clisp.org>
45380
45381         Update doc for POSIX:2008.
45382         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45383
45384 2008-12-14  Bruno Haible  <bruno@clisp.org>
45385
45386         Update doc for POSIX:2008.
45387         * doc/pastposix-functions/bcmp.texi: Renamed from
45388         doc/posix-functions/bcmp.texi.
45389         * doc/pastposix-functions/bcopy.texi: Renamed from
45390         doc/posix-functions/bcopy.texi.
45391         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45392         doc/posix-functions/bsd_signal.texi.
45393         * doc/pastposix-functions/bzero.texi: Renamed from
45394         doc/posix-functions/bzero.texi.
45395         * doc/pastposix-functions/ecvt.texi: Renamed from
45396         doc/posix-functions/ecvt.texi.
45397         * doc/pastposix-functions/fcvt.texi: Renamed from
45398         doc/posix-functions/fcvt.texi.
45399         * doc/pastposix-functions/ftime.texi: Renamed from
45400         doc/posix-functions/ftime.texi.
45401         * doc/pastposix-functions/gcvt.texi: Renamed from
45402         doc/posix-functions/gcvt.texi.
45403         * doc/pastposix-functions/getcontext.texi: Renamed from
45404         doc/posix-functions/getcontext.texi.
45405         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45406         doc/posix-functions/gethostbyaddr.texi.
45407         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45408         doc/posix-functions/gethostbyname.texi.
45409         * doc/pastposix-functions/getwd.texi: Renamed from
45410         doc/posix-functions/getwd.texi.
45411         * doc/pastposix-functions/h_errno.texi: Renamed from
45412         doc/posix-functions/h_errno.texi.
45413         * doc/pastposix-functions/index.texi: Renamed from
45414         doc/posix-functions/index.texi.
45415         * doc/pastposix-functions/makecontext.texi: Renamed from
45416         doc/posix-functions/makecontext.texi.
45417         * doc/pastposix-functions/mktemp.texi: Renamed from
45418         doc/posix-functions/mktemp.texi.
45419         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45420         doc/posix-functions/pthread_attr_getstackaddr.texi.
45421         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45422         doc/posix-functions/pthread_attr_setstackaddr.texi.
45423         * doc/pastposix-functions/rindex.texi: Renamed from
45424         doc/posix-functions/rindex.texi.
45425         * doc/pastposix-functions/scalb.texi: Renamed from
45426         doc/posix-functions/scalb.texi.
45427         * doc/pastposix-functions/setcontext.texi: Renamed from
45428         doc/posix-functions/setcontext.texi.
45429         * doc/pastposix-functions/swapcontext.texi: Renamed from
45430         doc/posix-functions/swapcontext.texi.
45431         * doc/pastposix-functions/ualarm.texi: Renamed from
45432         doc/posix-functions/ualarm.texi.
45433         * doc/pastposix-functions/usleep.texi: Renamed from
45434         doc/posix-functions/usleep.texi.
45435         * doc/pastposix-functions/vfork.texi: Renamed from
45436         doc/posix-functions/vfork.texi.
45437         * doc/pastposix-functions/wcswcs.texi: Renamed from
45438         doc/posix-functions/wcswcs.texi.
45439         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45440         (Function Substitutes): Update.
45441
45442 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45443
45444         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45445         m4/strerror.m4.
45446
45447 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45448             Bruno Haible  <bruno@clisp.org>
45449
45450         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45451
45452 2008-12-13  Bruno Haible  <bruno@clisp.org>
45453
45454         * modules/strtoull (Depends-on): Remove unistd.
45455
45456 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45457
45458         * modules/strtoull (Depends-on): Add stdlib.
45459
45460 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45461
45462         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45463
45464 2008-12-10  Jim Meyering  <meyering@redhat.com>
45465
45466         gl_ASSERT: don't say assertions are disabled when they're not
45467         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45468         "checking whether to enable assertions... no", when they are in
45469         fact enabled.  This is solely a bug in the output of configure.
45470         In spite of saying "no", NDEBUG was not defined in that case.
45471         Also, as noted by Eric Blake, leave assertions enabled upon
45472         --enable-assert=INVALID.
45473
45474 2008-12-10  Bruno Haible  <bruno@clisp.org>
45475
45476         Change MODULES.html to refer to POSIX:2008 where possible.
45477         * MODULES.html.sh (POSIX2008_URL): New variable.
45478         (posix_headers): Remove sys/timeb, ucontext.
45479         (posix2001_headers): New variable.
45480         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45481         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45482         index, makecontext, mktemp, pthread_attr_getstackaddr,
45483         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45484         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45485         (posix2001_functions): New variable.
45486         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45487         otherwise.
45488
45489 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45490
45491         add missing include to parse-duration.c
45492         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45493         * modules/parse-duration (Depends-on): Add xalloc.
45494
45495         fix sed script reading maint.mk
45496         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45497         (syntax-check-rules): Use it.
45498
45499 2008-12-09  Bruno Haible  <bruno@clisp.org>
45500
45501         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45502         MacOS X 10.4/PowerPC.
45503         Reported by Simon Josefsson.
45504
45505 2008-12-08  Jim Meyering  <meyering@redhat.com>
45506
45507         work around mingw's lack of some S_IF definitions
45508         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45509         Reported by Simon Josefsson.
45510
45511 2008-12-08  Bruno Haible  <bruno@clisp.org>
45512
45513         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45514         applied to variables. Needed on MacOS X 10.4/PowerPC.
45515         Reported by Simon Josefsson.
45516
45517 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45518         and Eric Blake  <ebb9@byu.net>
45519
45520         assert: honor --enable-assert
45521         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45522         order to honor --enable-assert, rather than treating it as a
45523         synonym for --disable-assert.
45524
45525 2008-12-08  Jim Meyering  <meyering@redhat.com>
45526
45527         * lib/posixtm.c: Remove now-useless declaration of mktime.
45528
45529         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45530
45531 2008-12-07  Bruno Haible  <bruno@clisp.org>
45532
45533         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45534         test_once): Mark functions as static.
45535         * tests/test-tls.c (test_tls): Likewise.
45536
45537 2008-12-07  Bruno Haible  <bruno@clisp.org>
45538
45539         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45540         iconv_register_autodetect.
45541
45542 2008-12-07  Jim Meyering  <meyering@redhat.com>
45543
45544         posixtm.c: avoid a warning
45545         * lib/posixtm.c (posixtime): Don't initialize tm0.
45546         It's no longer needed to placate gcc4's -Wuninitialized,
45547         and the attempt to placate would elicit a new warning.
45548
45549         unicodeio.c: mark unused parameters
45550         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45551         (fallback_failure_callback): Likewise.
45552
45553 2008-12-07  Bruno Haible  <bruno@clisp.org>
45554
45555         * gnulib-tool (func_create_testdir): When building the tests
45556         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45557         Reported by Simon Josefsson.
45558
45559 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45560
45561         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45562
45563 2008-12-06  Bruno Haible  <bruno@clisp.org>
45564
45565         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45566         Suggested by Eric Blake.
45567
45568 2008-12-06  Bruno Haible  <bruno@clisp.org>
45569
45570         Fix a c-stack test failure on MacOS X.
45571         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45572         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45573         handler for SIGBUS as well.
45574         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45575         install a signal handler for SIGBUS as well.
45576         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45577
45578 2008-12-06  Bruno Haible  <bruno@clisp.org>
45579
45580         Advocacy documentation.
45581         * doc/gnulib-intro.texi (Benefits): New section.
45582         * doc/gnulib.texi: Update.
45583
45584 2008-12-06  Bruno Haible  <bruno@clisp.org>
45585
45586         Document the 'manywarnings' module.
45587         * doc/manywarnings.texi: New file.
45588         * doc/gnulib.texi: Include it.
45589
45590 2008-12-05  Eric Blake  <ebb9@byu.net>
45591
45592         tests: silence some gcc warnings
45593         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45594         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45595         type mismatches.
45596
45597 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45598             Bruno Haible  <bruno@clisp.org>
45599
45600         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45601
45602 2008-11-29  Jim Meyering  <meyering@redhat.com>
45603
45604         unicodeio.c: mark unused parameters
45605         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45606         (fallback_failure_callback): Likewise.
45607
45608         fts: fix a thinko
45609         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45610         (set_stat_type): Return S_IF*-valued "type" directly.
45611         Prompted by James Youngman's spotting a related bug.
45612         Confirmed by further testing through find.
45613
45614         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45615         * lib/fts.c (D_TYPE): Define.
45616         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45617         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45618         (s_ifmt_shift_bits): New function.
45619         (set_stat_type): New function.
45620         (fts_build): When not calling fts_stat, call set_stat_type
45621         to propagate dirent.d_type info to fts_read caller.
45622         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45623         fts_statp->st_mode type information may be valid.
45624
45625 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45626
45627         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45628         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45629         <sds@gnu.org>.
45630
45631 2008-11-20  Bruno Haible  <bruno@clisp.org>
45632
45633         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45634         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45635         INCLUDE_NEXT.
45636         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45637         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45638         * modules/math (Makefile.am): Substitute
45639         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45640         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45641
45642 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45643             Bruno Haible  <bruno@clisp.org>
45644
45645         * lib/stdint.in.h: Define all type macros so that their expansion is
45646         a single typedef'ed token. Fixes a compilation failure in Boost which
45647         does "using ::int8_t;".
45648
45649 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45650
45651         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45652         gl_MANYWARN_ALL_GCC.
45653         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45654         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45655         * modules/manywarnings: New file.
45656         * MODULES.html.sh: Mention manywarnings module.
45657
45658 2008-11-18  Bruno Haible  <bruno@clisp.org>
45659
45660         * doc/gnulib-tool.texi (Unit tests): New section.
45661
45662 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45663
45664         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45665         paths like 'lib/po/foo.po'.
45666
45667 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45668
45669         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45670         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45671
45672 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45673
45674         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45675         parameter works.
45676
45677 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45678
45679         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45680
45681 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45682
45683         * modules/parse-duration-tests: New file.
45684         * tests/test-parse-duration.sh: New file.
45685         * tests/test-parse-duration.c: New file.
45686
45687         New module 'parse-duration'.
45688         * lib/parse-duration.h: New file.
45689         * lib/parse-duration.c: New file.
45690         * modules/parse-duration: New file.
45691
45692 2008-11-17  Bruno Haible  <bruno@clisp.org>
45693
45694         * tests/test-select-out.sh: Comment out the first pipe test.
45695         Reported by Simon Josefsson.
45696
45697 2008-11-17  Bruno Haible  <bruno@clisp.org>
45698
45699         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45700         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45701         gl_HOSTENT.
45702
45703 2008-11-17  Bruno Haible  <bruno@clisp.org>
45704
45705         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45706         -lnetwork and -lnet. Needed for Haiku and BeOS.
45707
45708 2008-11-16  Bruno Haible  <bruno@clisp.org>
45709
45710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45711
45712 2008-11-16  Bruno Haible  <bruno@clisp.org>
45713
45714         Avoid test failure on Haiku.
45715         * tests/test-fsync.c: Include <errno.h>.
45716         (main): Don't require that fsync (0) fails.
45717
45718 2008-11-15  Bruno Haible  <bruno@clisp.org>
45719
45720         New module 'hostent'.
45721         * modules/hostent: New file.
45722         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45723
45724 2008-11-15  Bruno Haible  <bruno@clisp.org>
45725
45726         New module 'servent'.
45727         * modules/servent: New file.
45728         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45729
45730 2008-11-15  Bruno Haible  <bruno@clisp.org>
45731
45732         Avoid generating same test program with two different rules.
45733         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45734         test-frexp to test-frexp-nolibm.
45735         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45736         test-frexpl to test-frexpl-nolibm.
45737
45738 2008-11-15  Bruno Haible  <bruno@clisp.org>
45739
45740         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45741         $(FREXPL_LIBM).
45742
45743 2008-11-15  Bruno Haible  <bruno@clisp.org>
45744
45745         * lib/netdb.in.h: Activate the definitions also when the system's
45746         <netdb.h> has 'struct addrinfo'.
45747         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45748         EAI_OVERFLOW or AI_NUMERICSERV.
45749         * doc/posix-headers/netdb.texi: Document the problem.
45750
45751 2008-11-15  Bruno Haible  <bruno@clisp.org>
45752
45753         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45754
45755         Make the 'sched' module work on platforms where <sched.h> exists but
45756         is incomplete (such as Haiku).
45757         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45758         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45759         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45760         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45761         HAVE_STRUCT_SCHED_PARAM.
45762         * modules/sched (Depends-on): Add include_next.
45763         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45764         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45765         * doc/posix-headers/sched.texi: Document the issue.
45766
45767 2008-11-13  Jim Meyering  <meyering@redhat.com>
45768
45769         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45770         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45771         test would fail due to the difference in the Report bugs to ...
45772         line.  The expected address is empty, "<>", while the actual
45773         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45774
45775 2008-11-12  Bruno Haible  <bruno@clisp.org>
45776
45777         lstat: don't compile lstat.c on systems lacking lstat
45778         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45779         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45780         Reported by Daniel P. Berrange via Jim Meyering.
45781
45782 2008-11-12  Jim Meyering  <meyering@redhat.com>
45783
45784         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45785
45786 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45787
45788         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45789         instead.
45790
45791 2008-11-12  Bruno Haible  <bruno@clisp.org>
45792
45793         * lib/unicodeio.c: Include unistr.h.
45794         (utf8_wctomb): Remove function.
45795         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45796
45797 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45798
45799         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45800         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45801         <bruno@clisp.org>.
45802         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45803
45804 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45805
45806         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45807         * doc/gnulib.texi: Add section for warnings.
45808
45809 2008-11-11  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/sockets.h: Add a comment.
45812
45813 2008-11-11  Karl Berry  <karl@gnu.org>
45814
45815         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45816
45817 2008-11-11  Eric Blake  <ebb9@byu.net>
45818
45819         fdl.texi: avoid git symlinks
45820         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45821
45822 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45823
45824         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45825
45826 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45827
45828         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45829         (gl_WARN_ADD): Substitute $2 if literal.
45830
45831 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45832
45833         * m4/warning.m4: Remove.
45834
45835 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45836
45837         * m4/warnings.m4: Almost complete rewrite. :-)
45838
45839 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45840
45841         * modules/warnings: New module.
45842         * m4/warnings.m4: New file.
45843         * MODULES.html.sh: Mention warnings module.
45844         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45845         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45846
45847 2008-11-10  Eric Blake  <ebb9@byu.net>
45848
45849         fdl.texi: make a symlink to the latest version
45850         * doc/standards.texi: Revert today's earlier change.
45851         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45852         * doc/fdl.texi: ...and replace this with a symlink to the newer
45853         fdl-1.3.texi.
45854
45855 2008-11-10  Bruno Haible  <bruno@clisp.org>
45856
45857         * tests/test-select-fd.c (main): Accept the result file name as fourth
45858         argument.
45859         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45860         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45861
45862 2008-11-10  Bruno Haible  <bruno@clisp.org>
45863
45864         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45865         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45866         as autoconf-substituted macros.
45867         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45868         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45869         gl_NETDB_H_DEFAULTS. Set these variables.
45870         * modules/netdb (Makefile.am): Substitute these variables.
45871
45872 2008-11-10  Eric Blake  <ebb9@byu.net>
45873
45874         standards.texi: include correct file for FDL 1.3
45875         * doc/standards.texi (GNU Free Documentation License): Change
45876         include file to pull in FDL 1.3, not 1.2.
45877
45878         fdl.texi: revert accidental change to license
45879         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45880
45881 2008-11-10  Bruno Haible  <bruno@clisp.org>
45882
45883         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45884         cross-compiling guesses also when the native compile gives no result.
45885
45886 2008-11-10  Bruno Haible  <bruno@clisp.org>
45887
45888         * lib/spawni.c (__spawni): Force variable into the stack.
45889
45890 2008-11-10  Bruno Haible  <bruno@clisp.org>
45891
45892         Add support for Haiku.
45893         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45894         glibc and BeOS, but also on Haiku.
45895         * lib/fpurge.c (fpurge): Likewise.
45896         * lib/freadable.c (freadable): Likewise.
45897         * lib/freadahead.c (freadahead): Likewise.
45898         * lib/freading.c (freading): Likewise.
45899         * lib/freadptr.c (freadptr): Likewise.
45900         * lib/freadseek.c (freadptrinc): Likewise.
45901         * lib/fseeko.c (rpl_fseeko): Likewise.
45902         * lib/fseterr.c (fseterr): Likewise.
45903         * lib/fwritable.c (fwritable): Likewise.
45904         * lib/fwriting.c (fwriting): Likewise.
45905         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45906
45907 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45908
45909         * lib/config.charset: Treat Haiku like BeOS.
45910
45911 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45912
45913         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45914         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45915
45916 2008-11-08  Bruno Haible  <bruno@clisp.org>
45917
45918         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45919         AC_CACHE_CHECK.
45920
45921 2008-11-08  Bruno Haible  <bruno@clisp.org>
45922
45923         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45924
45925 2008-11-08  Bruno Haible  <bruno@clisp.org>
45926
45927         * tests/test-select-fd.c: New file.
45928         * tests/test-select-in.sh: New file.
45929         * tests/test-select-out.sh: New file.
45930         * tests/test-select-stdin.c: New file.
45931         * modules/select-tests (Files): Add the new files.
45932         (Depends-on): Add gettimeofday.
45933         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45934         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45935         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45936
45937 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45938             Bruno Haible  <bruno@clisp.org>
45939
45940         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45941
45942 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45943
45944         * build-aux/pmccabe2html: Added support for C++ source files.
45945
45946 2008-11-05  Ben Pfaff  <blp@gnu.org>
45947
45948         Fix lib/close.c build on Windows.
45949         * modules/close (Files): Add lib/w32sock.h.
45950
45951 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45952
45953         Accept Bison's NEWS format.
45954         * build-aux/announce-gen (print_news_deltas): Tweak
45955         $re_prefix.
45956
45957 2008-11-04  Bruno Haible  <bruno@clisp.org>
45958
45959         * modules/random_r (Maintainer): Add glibc.
45960
45961 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45962
45963         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45964         by karl@freefriends.org (Karl Berry).
45965         * doc/alloca.texi: Likewise.
45966         * doc/c-ctype.texi: Likewise.
45967         * doc/c-strcase.texi: Likewise.
45968         * doc/c-strcaseeq.texi: Likewise.
45969         * doc/c-strcasestr.texi: Likewise.
45970         * doc/c-strstr.texi: Likewise.
45971         * doc/c-strtod.texi: Likewise.
45972         * doc/c-strtold.texi: Likewise.
45973         * doc/ctime.texi: Likewise.
45974         * doc/error.texi: Likewise.
45975         * doc/fdl.texi: Likewise.
45976         * doc/gcd.texi: Likewise.
45977         * doc/getdate.texi: Likewise.
45978         * doc/gnulib-intro.texi: Likewise.
45979         * doc/gnulib-tool.texi: Likewise.
45980         * doc/gnulib.texi: Likewise.
45981         * doc/inet_ntoa.texi: Likewise.
45982         * doc/maintain.texi: Likewise.
45983         * doc/make-stds.texi: Likewise.
45984         * doc/quote.texi: Likewise.
45985         * doc/regexprops-generic.texi: Likewise.
45986         * doc/standards.texi: Likewise.
45987         * doc/verify.texi: Likewise.
45988         * doc/visibility.texi: Likewise.
45989         * doc/gnulib.texi (GNU Free Documentation License): Include
45990         fdl-1.3.texi instead of fdl.texi.
45991
45992 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45993
45994         * doc/fdl-1.3.texi: New file, from
45995         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45996         * modules/fdl-1.3: Add.
45997         * MODULES.html.sh: Add fdl-1.3.
45998
45999 2008-11-03  Bruno Haible  <bruno@clisp.org>
46000
46001         Make determination of absolute name of header file work with AIX xlc.
46002         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
46003         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
46004         preprocessing.
46005         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46006         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46007
46008 2008-11-03  Simon Josefsson  <simon@josefsson.org>
46009
46010         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
46011         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
46012         <ludo@gnu.org>.
46013
46014 2008-11-02  Bruno Haible  <bruno@clisp.org>
46015
46016         Mark 'strpbrk' obsolete.
46017         * modules/strpbrk (Status, Notice): New sections.
46018         * modules/strtok_r (Depends-on): Add strpbrk.
46019
46020 2008-11-02  Bruno Haible  <bruno@clisp.org>
46021
46022         Mark 'strdup' obsolete.
46023         * modules/strdup (Status, Notice): New sections.
46024         * modules/findprog (Depends-on): Add strdup.
46025         * modules/getaddrinfo (Depends-on): Likewise.
46026         * modules/localename (Depends-on): Likewise.
46027         * modules/relocatable-lib (Depends-on): Likewise.
46028         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
46029         * modules/relocatable-prog (Depends-on): Likewise.
46030         * modules/trim (Depends-on): Likewise.
46031         * modules/unictype/gen-ctype (Depends-on): Likewise.
46032         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46033
46034 2008-11-02  Bruno Haible  <bruno@clisp.org>
46035
46036         Mark 'strcspn' obsolete.
46037         * modules/strcspn (Status, Notice): New sections.
46038
46039 2008-11-02  Bruno Haible  <bruno@clisp.org>
46040
46041         Mark 'rmdir' obsolete.
46042         * modules/rmdir (Status, Notice): New sections.
46043         * modules/clean-temp (Depends-on): Add rmdir.
46044         * modules/openat (Depends-on): Likewise.
46045
46046 2008-11-02  Bruno Haible  <bruno@clisp.org>
46047
46048         Mark 'raise' obsolete.
46049         * modules/raise (Status, Notice): New sections.
46050         (Include): Specify <signal.h>.
46051         * modules/stdio (Depends-on): Add raise.
46052         * modules/write (Depends-on): Likewise.
46053
46054 2008-11-02  Bruno Haible  <bruno@clisp.org>
46055
46056         Mark 'memset' obsolete.
46057         * modules/memset (Status, Notice): New sections.
46058
46059 2008-11-02  Bruno Haible  <bruno@clisp.org>
46060
46061         Mark 'memmove' obsolete.
46062         * modules/memmove (Status, Notice): New sections.
46063         * modules/argp (Depends-on): Add memmove.
46064         * modules/argz (Depends-on): Likewise.
46065         * modules/canonicalize (Depends-on): Likewise.
46066         * modules/canonicalize-lgpl (Depends-on): Likewise.
46067         * modules/fts (Depends-on): Likewise.
46068         * modules/getcwd (Depends-on): Likewise.
46069         * modules/human (Depends-on): Likewise.
46070         * modules/regex (Depends-on): Likewise.
46071         * modules/striconveh (Depends-on): Likewise.
46072         * modules/trim (Depends-on): Likewise.
46073         * modules/unistr/u8-move (Depends-on): Likewise.
46074         * modules/unistr/u16-move (Depends-on): Likewise.
46075         * modules/unistr/u32-move (Depends-on): Likewise.
46076
46077 2008-11-02  Bruno Haible  <bruno@clisp.org>
46078
46079         Mark 'memcpy' obsolete.
46080         * modules/memcpy (Status, Notice): New sections.
46081
46082 2008-11-02  Bruno Haible  <bruno@clisp.org>
46083
46084         Mark 'memcmp' obsolete.
46085         * modules/memcmp (Status, Notice): New sections.
46086         * modules/argmatch (Depends-on): Add memchr.
46087         * modules/backupfile (Depends-on): Likewise.
46088         * modules/c-strcasestr (Depends-on): Likewise.
46089         * modules/crypto/des (Depends-on): Likewise.
46090         * modules/csharpcomp (Depends-on): Likewise.
46091         * modules/fnmatch (Depends-on): Likewise.
46092         * modules/git-merge-changelog (Depends-on): Likewise.
46093         * modules/isnand (Depends-on): Likewise.
46094         * modules/isnand-nolibm (Depends-on): Likewise.
46095         * modules/isnanf (Depends-on): Likewise.
46096         * modules/isnanf-nolibm (Depends-on): Likewise.
46097         * modules/isnanl (Depends-on): Likewise.
46098         * modules/isnanl-nolibm (Depends-on): Likewise.
46099         * modules/mbchar (Depends-on): Likewise.
46100         * modules/memcoll (Depends-on): Likewise.
46101         * modules/quotearg (Depends-on): Likewise.
46102         * modules/regex (Depends-on): Likewise.
46103         * modules/relocatable-prog (Depends-on): Likewise.
46104         * modules/same (Depends-on): Likewise.
46105         * modules/signbit (Depends-on): Likewise.
46106         * modules/strcasestr-simple (Depends-on): Likewise.
46107         * modules/unictype/gen-ctype (Depends-on): Likewise.
46108         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46109         * modules/uniname/uniname (Depends-on): Likewise.
46110         * modules/unistr/u8-cmp (Depends-on): Likewise.
46111
46112 2008-11-02  Bruno Haible  <bruno@clisp.org>
46113
46114         Mark 'memchr' obsolete.
46115         * modules/memchr (Status, Notice): New sections.
46116         * modules/argp (Depends-on): Add memchr.
46117         * modules/base64 (Depends-on): Likewise.
46118         * modules/c-strcasestr (Depends-on): Likewise.
46119         * modules/chdir-long (Depends-on): Likewise.
46120         * modules/fnmatch (Depends-on): Likewise.
46121         * modules/getsubopt (Depends-on): Likewise.
46122         * modules/git-merge-changelog (Depends-on): Likewise.
46123         * modules/glob (Depends-on): Likewise.
46124         * modules/strcasestr-simple (Depends-on): Likewise.
46125         * modules/strnlen (Depends-on): Likewise.
46126
46127 2008-11-02  Bruno Haible  <bruno@clisp.org>
46128
46129         Mark 'atexit' obsolete.
46130         * modules/atexit (Status, Notice): New sections.
46131         * modules/chdir-long (Depends-on): Add atexit.
46132         * modules/wait-process (Depends-on): Likewise.
46133
46134 2008-11-02  Bruno Haible  <bruno@clisp.org>
46135
46136         * gnulib-tool: New option --with-obsolete.
46137         (func_usage): Document it.
46138         (func_modules_transitive_closure): Drop obsolete dependencies if
46139         incobsolete is not true.
46140         (func_import): Read and save the incobsolete variable to the cache.
46141
46142 2008-11-02  Bruno Haible  <bruno@clisp.org>
46143
46144         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46145         * gnulib-tool: New option --extract-status.
46146         (func_usage): Document it.
46147         (sed_extract_prog): Recognize it.
46148         (func_get_status): New function.
46149
46150 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46151
46152         * modules/sockets (License): Change from LGPL to LGPLv2+.
46153
46154 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46155
46156         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46157
46158 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46159
46160         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46161         Mention times and sys_times.
46162         * modules/sys_times, modules/sys_times-tests: New modules.
46163         * modules/times, modules/times-tests: Likewise
46164         * m4/sys_times_h.m4: New file.
46165         * lib/sys_times.in.h: Likewise
46166         * lib/times.c: Likewise.
46167         * tests/test-sys_times.c: Likewise.
46168         * tests/test-times.c: Likewise.
46169         * doc/posix-headers/sys_times.texi: Update.
46170         * doc/posix-functions/times.texi: Update.
46171
46172 2008-10-28  Jim Meyering  <meyering@redhat.com>
46173
46174         * modules/tempname (Depends-on): Add lstat.
46175
46176         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46177
46178 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46179
46180         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46181         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46182         using idiom used elsewhere in gnulib.
46183
46184 2008-10-27  Jim Meyering  <meyering@redhat.com>
46185
46186         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46187
46188 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46189
46190         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46191         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46192         programs.
46193         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46194
46195 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46196
46197         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46198
46199 2008-10-27  Bruno Haible  <bruno@clisp.org>
46200
46201         * tests/test-lstat.c: Include <stdio.h>.
46202
46203 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46204
46205         * modules/lstat-tests: New module.
46206         * tests/test-lstat.c: New file.
46207
46208 2008-10-26  Jim Meyering  <meyering@redhat.com>
46209
46210         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46211
46212 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46213             Bruno Haible  <bruno@clisp.org>
46214
46215         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46216         * modules/configmake (Include): Add a note that the include must come
46217         after all system headers.
46218         * lib/javaversion.c: Include configmake.h after all other includes.
46219
46220 2008-10-26  Bruno Haible  <bruno@clisp.org>
46221
46222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46223         HAVE_STRUCT_RANDOM_DATA to 1.
46224         (gl_STDLIB_H): Simplify.
46225
46226 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46227
46228         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46229         substitute HAVE_STRUCT_RANDOM_DATA.
46230         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46231         random_data.
46232         * modules/stdlib (Makefile.am): Substitute
46233         HAVE_STRUCT_RANDOM_DATA.
46234
46235 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46236
46237         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46238         * doc/gnulib-intro.texi (Copyright): Likewise.
46239
46240 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46241
46242         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46243         findings.
46244
46245 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46246             Bruno Haible  <bruno@clisp.org>
46247
46248         * lib/unistd.in.h: Include <winsock2.h>.
46249         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46250         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46251         Provide dummy declarations.
46252         (gethostname): Override.
46253         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46254         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46255         gl_PREREQ_SYS_H_WINSOCK2.
46256         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46257         * doc/posix-functions/gethostname.texi: More details.
46258
46259 2008-10-25  Bruno Haible  <bruno@clisp.org>
46260
46261         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46262         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46263         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46264
46265         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46266         here ...
46267         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46268         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46269         gl_UNISTD_H_DEFAULTS.
46270
46271 2008-10-25  Eric Blake  <ebb9@byu.net>
46272
46273         signbit: avoid spurious compiler failure
46274         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46275         declarations inside function.
46276
46277 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46278             Bruno Haible  <bruno@clisp.org>
46279
46280         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46281         * modules/random_r (Depends-on): Add stdint.
46282
46283 2008-10-24  Bruno Haible  <bruno@clisp.org>
46284
46285         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46286         Eggert.
46287         * modules/strerror (License): Likewise.
46288
46289 2008-10-24  Jim Meyering  <meyering@redhat.com>
46290
46291         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46292         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46293
46294 2008-10-24  Eric Blake  <ebb9@byu.net>
46295
46296         getgroups: fix compilation when getgroups is available
46297         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46298         but with <config.h> override of getgroups disabled.
46299
46300 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46301
46302         * doc/gnulib.texi (Header files): Add note about C++ problems.
46303         Explained by Bruno Haible <bruno@clisp.org>.
46304
46305 2008-10-23  Bruno Haible  <bruno@clisp.org>
46306
46307         Define a dummy SA_NODEFER macro on Interix.
46308         * lib/signal.in.h (SA_NODEFER): Define fallback.
46309         Reported by Aleksey Cheusov <cheusov@tut.by> via
46310         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46311
46312 2008-10-23  Bruno Haible  <bruno@clisp.org>
46313
46314         * modules/freadahead (License): Change to LGPLv2+.
46315         Suggested by Simon Josefsson.
46316
46317 2008-10-23  Jim Meyering  <meyering@redhat.com>
46318
46319         random_r: new module
46320         * modules/random_r: New file.
46321         * m4/random_r.m4: New file.
46322         * lib/random_r.c: New file, from glibc.
46323         * modules/random_r-tests: New file.
46324         * tests/test-random_r.c: New file.
46325         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46326          Declare.
46327         (RAND_MAX): Define.
46328         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46329         * modules/stdlib: Substitute them, too.
46330         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46331         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46332         * doc/glibc-functions/random_r.texi: Likewise.
46333         * doc/glibc-functions/setstate_r.texi: Likewise.
46334         * doc/glibc-functions/srandom_r.texi: Likewise.
46335         * config/srclist.txt: Mention it.
46336
46337 2008-10-23  David Lutterkort  <lutter@redhat.com>
46338
46339         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46340         link requirement
46341
46342 2008-10-23  Jim Meyering  <meyering@redhat.com>
46343
46344         selinux-h: mark parameters of stub functions as intentionally unused
46345         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46346         * lib/se-context.in.h: Likewise.
46347
46348 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46349
46350         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46351
46352 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46353
46354         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46355
46356 2008-10-22  Eric Blake  <ebb9@byu.net>
46357
46358         glthread/thread: avoid compiler warning
46359         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46360         Add unreachable abort to silence compiler.
46361
46362 2008-10-22  Eric Blake  <ebb9@byu.net>
46363
46364         netdb: also supply struct addrinfo for cygwin 1.5.x
46365         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46366         older cygwin.
46367         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46368         cygwin.
46369         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46370
46371 2008-10-22  Bruno Haible  <bruno@clisp.org>
46372
46373         * users.txt: Update entry about pspp.
46374
46375 2008-10-21  Bruno Haible  <bruno@clisp.org>
46376
46377         Simplification.
46378         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46379         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46380
46381         Simplification.
46382         * lib/ioctl.c (ioctl): Don't undefine.
46383         * lib/socket.c (socket): Don't undefine.
46384
46385         Remove unused module indicator macros.
46386         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46387         GNULIB_$1 as a C macro.
46388
46389         * doc/posix-functions/close.texi: Undo last change.
46390         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46391         Windows platforms.
46392
46393 2008-10-21  Bruno Haible  <bruno@clisp.org>
46394
46395         Add gethostname() declaration to <unistd.h>.
46396         * lib/unistd.in.h (gethostname): New declaration.
46397         * lib/gethostname.c: Include <unistd.h>.
46398         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46399         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46401         and HAVE_GETHOSTNAME.
46402         * modules/gethostname (Depends-on): Add unistd.
46403         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46404         (Include): Specify <unistd.h>.
46405         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46406         HAVE_GETHOSTNAME.
46407         * tests/test-gethostname.c: Include <unistd.h> first.
46408
46409 2008-10-21  Bruno Haible  <bruno@clisp.org>
46410
46411         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46412         * modules/select-tests (Depends-on): Likewise.
46413         Reported by Simon Josefsson.
46414
46415 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46416
46417         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46418         * lib/accept.c: New file, based on winsock.c.
46419         * lib/bind.c: New file, based on winsock.c.
46420         * lib/connect.c: New file, based on winsock.c.
46421         * lib/getpeername.c: New file, based on winsock.c.
46422         * lib/getsockname.c: New file, based on winsock.c.
46423         * lib/getsockopt.c: New file, based on winsock.c.
46424         * lib/ioctl.c: New file, based on winsock.c.
46425         * lib/listen.c: New file, based on winsock.c.
46426         * lib/recv.c: New file, based on winsock.c.
46427         * lib/recvfrom.c: New file, based on winsock.c.
46428         * lib/send.c: New file, based on winsock.c.
46429         * lib/sendto.c: New file, based on winsock.c.
46430         * lib/setsockopt.c: New file, based on winsock.c.
46431         * lib/shutdown.c: New file, based on winsock.c.
46432         * lib/socket.c: New file, based on winsock.c.
46433         * lib/w32sock.h: New file, based on winsock.c.
46434         * lib/winsock.c: Remove file.
46435         * modules/accept: Likewise.
46436         * modules/bind: Likewise.
46437         * modules/connect: Likewise.
46438         * modules/getpeername: Likewise.
46439         * modules/getsockname: Likewise.
46440         * modules/getsockopt: Likewise.
46441         * modules/ioctl: Likewise.
46442         * modules/listen: Likewise.
46443         * modules/recv: Likewise.
46444         * modules/recvfrom: Likewise.
46445         * modules/send: Likewise.
46446         * modules/sendto: Likewise.
46447         * modules/setsockopt: Likewise.
46448         * modules/shutdown: Likewise.
46449         * modules/socket: Use socket.c instead of winsock.c.
46450         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46451         * doc/posix-functions/accept.texi: Doc fix.
46452         * doc/posix-functions/bind.texi: Doc fix.
46453         * doc/posix-functions/close.texi: Doc fix.
46454         * doc/posix-functions/connect.texi: Doc fix.
46455         * doc/posix-functions/getpeername.texi: Doc fix.
46456         * doc/posix-functions/getsockname.texi: Doc fix.
46457         * doc/posix-functions/getsockopt.texi: Doc fix.
46458         * doc/posix-functions/ioctl.texi: Doc fix.
46459         * doc/posix-functions/listen.texi: Doc fix.
46460         * doc/posix-functions/recv.texi: Doc fix.
46461         * doc/posix-functions/recvfrom.texi: Doc fix.
46462         * doc/posix-functions/send.texi: Doc fix.
46463         * doc/posix-functions/sendto.texi: Doc fix.
46464         * doc/posix-functions/setsockopt.texi: Doc fix.
46465         * doc/posix-functions/shutdown.texi: Doc fix.
46466         * doc/posix-functions/socket.texi: Doc fix.
46467
46468 2008-10-20  Bruno Haible  <bruno@clisp.org>
46469
46470         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46471         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46472         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46473         as an alias for SIGABRT.
46474         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46475         (sigaction): Map it to SIGABRT.
46476         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46477
46478 2008-10-20  Bruno Haible  <bruno@clisp.org>
46479
46480         * lib/fts.c: Don't include lstat.h.
46481         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46482
46483         Move the lstat() declaration to <sys/stat.h>.
46484         * lib/lstat.h: Remove file.
46485         * lib/sys_stat.in.h: Add special invocation convention.
46486         (lstat): New declaration.
46487         * lib/lstat.c (orig_lstat): New function.
46488         (rpl_lstat): Use orig_lstat instead of lstat.
46489         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46490         AC_C_INLINE. Set REPLACE_LSTAT.
46491         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46492         and REPLACE_LSTAT.
46493         * modules/lstat (Files): Remove lib/lstat.h.
46494         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46495         (Include): Specify <sys/stat.h> instead of lstat.h.
46496         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46497         REPLACE_LSTAT.
46498         * NEWS: Mention the change.
46499
46500 2008-10-20  Bruno Haible  <bruno@clisp.org>
46501
46502         * modules/posix_spawn-tests: New file.
46503         * tests/test-posix_spawn3.c: New file.
46504
46505 2008-10-20  Bruno Haible  <bruno@clisp.org>
46506
46507         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46508         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46509         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46510         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46511         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46512
46513 2008-10-20  Bruno Haible  <bruno@clisp.org>
46514
46515         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46516         of posix_spawn on AIX 5.3.
46517
46518 2008-10-20  Bruno Haible  <bruno@clisp.org>
46519
46520         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46521
46522 2008-10-20  Bruno Haible  <bruno@clisp.org>
46523
46524         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46525         of AC_LANG_PROGRAM.
46526
46527 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46528
46529         * lib/netdb.in.h: Don't define GNU specific constants until they
46530         are supported or needed.  Reported by Bruno Haible
46531         <bruno@clisp.org>.
46532
46533 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46534
46535         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46536
46537 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46538
46539         * lib/getaddrinfo.h: Remove file.
46540         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46541         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46542         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46543         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46544         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46545         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46546         * tests/test-getaddrinfo.c: Likewise.
46547         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46548         * NEWS: Mention change.
46549
46550 2008-10-19  Bruno Haible  <bruno@clisp.org>
46551
46552         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46553
46554 2008-10-19  Bruno Haible  <bruno@clisp.org>
46555
46556         * lib/wait-process.c: Include simply <sys/wait.h>.
46557         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46558         WIFSTOPPED): Remove fallback definitions.
46559         * modules/wait-process (Depends-on): Add sys_wait.
46560
46561         New module 'sys_wait'.
46562         * modules/sys_wait: New file.
46563         * lib/sys_wait.in.h: New file, partially copied from
46564         lib/wait-process.c.
46565         * m4/sys_wait_h.m4: New file.
46566         * doc/posix-headers/sys_wait.texi: Mention the new module.
46567
46568 2008-10-19  Bruno Haible  <bruno@clisp.org>
46569
46570         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46571
46572 2008-10-19  Bruno Haible  <bruno@clisp.org>
46573
46574         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46575         * lib/wait-process.c (WAIT_T): Remove type.
46576         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46577         (wait_subprocess): Update.
46578
46579 2008-10-19  Bruno Haible  <bruno@clisp.org>
46580
46581         New module 'atoll'.
46582         * modules/atoll: New file.
46583         * lib/stdlib.in.h (atoll): New declaration.
46584         * lib/atoll.c: New file, from glibc with modifications.
46585         * m4/atoll.m4: New file.
46586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46587         HAVE_ATOLL.
46588         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46589         * doc/posix-functions/atoll.texi: Mention the new module.
46590
46591 2008-10-19  Bruno Haible  <bruno@clisp.org>
46592
46593         Add strtoull() declaration to <stdlib.h>.
46594         * lib/stdlib.in.h (strtoull): New declaration.
46595         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46596         Set HAVE_STRTOULL.
46597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46598         HAVE_STRTOULL.
46599         * modules/strtoull (Depends-on): Add stdlib.
46600         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46601         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46602         HAVE_STRTOULL.
46603
46604 2008-10-19  Bruno Haible  <bruno@clisp.org>
46605
46606         Add strtoll() declaration to <stdlib.h>.
46607         * lib/stdlib.in.h (strtoll): New declaration.
46608         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46609         Set HAVE_STRTOLL.
46610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46611         HAVE_STRTOLL.
46612         * modules/strtoll (Depends-on): Add stdlib.
46613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46614         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46615
46616 2008-10-19  Bruno Haible  <bruno@clisp.org>
46617
46618         * modules/bcopy (Depends-on): Add strings.
46619         (Include): Specify <strings.h>.
46620
46621 2008-10-19  Bruno Haible  <bruno@clisp.org>
46622
46623         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46624
46625 2008-10-19  Bruno Haible  <bruno@clisp.org>
46626
46627         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46628         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46629         mingw.
46630
46631 2008-10-19  Bruno Haible  <bruno@clisp.org>
46632
46633         * lib/atanl.c: Don't include isnanl.h.
46634         * lib/cosl.c: Likewise.
46635         * lib/ldexpl.c: Likewise.
46636         * lib/logl.c: Likewise.
46637         * lib/sinl.c: Likewise.
46638         * lib/sqrtl.c: Likewise.
46639         * lib/tanl.c: Likewise.
46640
46641         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46642         * lib/isnanf.h: Remove file.
46643         * lib/isnand.h: Remove file.
46644         * lib/isnanl.h: Remove file.
46645         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46646         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46647         macros.
46648         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46649         HAVE_ISNANF, don't define it as a C macro.
46650         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46651         HAVE_ISNAND, don't define it as a C macro.
46652         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46653         HAVE_ISNANL, don't define it as a C macro.
46654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46655         HAVE_ISNAN[FDL].
46656         * modules/isnanf (Files): Remove lib/isnanf.h.
46657         (Depends-on): Add math.
46658         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46659         (Include): Specify <math.h> instead of isnanf.h.
46660         * modules/isnand (Files): Remove lib/isnand.h.
46661         (Depends-on): Add math.
46662         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46663         (Include): Specify <math.h> instead of isnand.h.
46664         * modules/isnanl (Files): Remove lib/isnanl.h.
46665         (Depends-on): Add math.
46666         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46667         (Include): Specify <math.h> instead of isnanl.h.
46668         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46669         HAVE_ISNAN[FDL].
46670         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46671         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46672         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46673         * NEWS: Mention the change.
46674
46675 2008-10-18  Bruno Haible  <bruno@clisp.org>
46676
46677         Add getusershell(), setusershell(), endusershell() declarations to
46678         <unistd.h>.
46679         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46680         declarations.
46681         * lib/getusershell.c: Include unistd.h.
46682         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46683         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46684         HAVE_GETUSERSHELL.
46685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46686         and HAVE_GETUSERSHELL.
46687         * modules/getusershell (Depends-on): Add unistd, extensions.
46688         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46689         (Include): Specify <unistd.h>.
46690         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46691         HAVE_GETUSERSHELL.
46692
46693 2008-10-18  Bruno Haible  <bruno@clisp.org>
46694
46695         Add a getloadavg() declaration to <stdlib.h>.
46696         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46697         getloadavg declaration.
46698         (getloadavg): New declaration.
46699         * lib/getloadavg.c: Include <stdlib.h> first.
46700         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46701         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46702         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46704         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46705         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46706         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46707         (Include): Specify <stdlib.h>.
46708         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46709         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46710
46711 2008-10-18  Bruno Haible  <bruno@clisp.org>
46712
46713         * lib/dirchownmod.c: Don't include lchmod.h.
46714
46715         Move the lchmod() declaration to <sys/stat.h>.
46716         * lib/lchmod.h: Remove file.
46717         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46718         (lchmod): New declaration, moved here from lib/lchown.h.
46719         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46720         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46721         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46722         and HAVE_LCHMOD.
46723         * modules/lchmod (Files): Remove lib/lchmod.h.
46724         (Depends-on): Add sys_stat, extensions.
46725         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46726         (Include): Specify <sys/stat.h> instead of lchmod.h.
46727         * modules/sys_stat (Depends-on): Add link-warning.
46728         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46729         definition of GL_LINK_WARNING.
46730         * NEWS: Mention the change.
46731
46732 2008-10-18  Bruno Haible  <bruno@clisp.org>
46733
46734         * lib/fchdir.c: Don't include dirfd.h.
46735         * lib/fts.c: Likewise.
46736         * lib/getcwd.c: Likewise.
46737         * lib/glob.c: Likewise.
46738
46739         Move the dirfd() declaration to <dirent.h>.
46740         * lib/dirfd.h: Remove file.
46741         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46742         (dirfd): New declaration.
46743         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46744         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46745         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46746         HAVE_DECL_DIRFD.
46747         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46748         HAVE_DECL_DIRFD.
46749         * modules/dirfd (Files): Remove lib/dirfd.h.
46750         (Depends-on): Add dirent, extensions.
46751         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46752         (Include): Specify <dirent.h> instead of dirfd.h.
46753         * modules/dirent (Depends-on): Add link-warning.
46754         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46755         definition of GL_LINK_WARNING.
46756         * NEWS: Mention the change.
46757
46758 2008-10-18  Bruno Haible  <bruno@clisp.org>
46759
46760         Move the euidaccess() declaration to <unistd.h>.
46761         * lib/euidaccess.h: Remove file.
46762         * lib/unistd.in.h (euidaccess): New declaration.
46763         * lib/euidaccess.c: Don't include euidaccess.h.
46764         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46765         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46767         and HAVE_EUIDACCESS.
46768         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46769         (Depends-on): Add unistd.
46770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46771         (Include): Specify <unistd.h> instead of euidaccess.h.
46772         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46773         HAVE_EUIDACCESS.
46774         * NEWS: Mention the change.
46775
46776 2008-10-18  Bruno Haible  <bruno@clisp.org>
46777
46778         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46779
46780         Move the getdomainname() declaration to <unistd.h>.
46781         * lib/getdomainname.h: Remove file.
46782         * lib/unistd.in.h (getdomainname): New declaration.
46783         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46784         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46785         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46786         HAVE_GETDOMAINNAME.
46787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46788         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46789         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46790         (Depends-on): Add unistd, extensions.
46791         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46792         (Includes): Specify <unistd.h> instead of getdomainname.h.
46793         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46794         HAVE_GETDOMAINNAME.
46795         * NEWS: Mention the change.
46796
46797 2008-10-18  Bruno Haible  <bruno@clisp.org>
46798
46799         * modules/dirent: New file.
46800         * m4/dirent_h.m4: New file.
46801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46802         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46803         * modules/fchdir (Files): Remove lib/dirent.in.h.
46804         (Depends-on): Add dirent.
46805         (Makefile.am): Move rules to modules/dirent.
46806         * doc/posix-headers/dirent.texi: Mention the new module.
46807
46808 2008-10-18  Bruno Haible  <bruno@clisp.org>
46809
46810         Avoid -Wunused-parameter warnings in public gnulib header files.
46811         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46812         macro.
46813         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46814
46815 2008-10-18  Bruno Haible  <bruno@clisp.org>
46816
46817         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46818         * doc/glibc-functions/error.texi: Mention the module 'error'.
46819         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46820         * doc/glibc-functions/getdomainname.texi: Mention the module
46821         'getdomainname'.
46822         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46823         * doc/glibc-functions/getpagesize.texi: Mention the module
46824         'getpagesize'.
46825         * doc/glibc-functions/getusershell.texi: Mention the module
46826         'getusershell'.
46827         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46828         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46829         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46830         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46831         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46832         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46833         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46834         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46835         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46836         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46837         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46838         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46839         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46840         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46841
46842 2008-10-17  Bruno Haible  <bruno@clisp.org>
46843
46844         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46845         HP-UX and IRIX, use -0.0L.
46846         * tests/test-ceill.c (minus_zero): Likewise.
46847         * tests/test-floorl.c (minus_zero): Likewise.
46848         * tests/test-frexpl.c (minus_zero): Likewise.
46849         * tests/test-isnan.c (minus_zerol): Likewise.
46850         * tests/test-isnanl.h (minus_zero): Likewise.
46851         * tests/test-ldexpl.c (minus_zero): Likewise.
46852         * tests/test-roundl.c (minus_zero): Likewise.
46853         * tests/test-signbit.c (minus_zerol): Likewise.
46854         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46855         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46856         * tests/test-truncl.c (minus_zero): Likewise.
46857         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46858         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46859         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46860         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46861
46862 2008-10-17  Bruno Haible  <bruno@clisp.org>
46863
46864         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46865         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46866         that it gets activated only for gcc >= 3.0.
46867         * lib/dirent.in.h: Likewise.
46868         * lib/errno.in.h: Likewise.
46869         * lib/fcntl.in.h: Likewise.
46870         * lib/float.in.h: Likewise.
46871         * lib/iconv.in.h: Likewise.
46872         * lib/inttypes.in.h: Likewise.
46873         * lib/locale.in.h: Likewise.
46874         * lib/math.in.h: Likewise.
46875         * lib/netdb.in.h: Likewise.
46876         * lib/netinet_in.in.h: Likewise.
46877         * lib/search.in.h: Likewise.
46878         * lib/signal.in.h: Likewise.
46879         * lib/spawn.in.h: Likewise.
46880         * lib/stdarg.in.h: Likewise.
46881         * lib/stdint.in.h: Likewise.
46882         * lib/stdio.in.h: Likewise.
46883         * lib/stdlib.in.h: Likewise.
46884         * lib/string.in.h: Likewise.
46885         * lib/strings.in.h: Likewise.
46886         * lib/sys_file.in.h: Likewise.
46887         * lib/sys_ioctl.in.h: Likewise.
46888         * lib/sys_select.in.h: Likewise.
46889         * lib/sys_socket.in.h: Likewise.
46890         * lib/sys_stat.in.h: Likewise.
46891         * lib/sys_time.in.h: Likewise.
46892         * lib/sysexits.in.h: Likewise.
46893         * lib/time.in.h: Likewise.
46894         * lib/unistd.in.h: Likewise.
46895         * lib/wchar.in.h: Likewise.
46896         * lib/wctype.in.h: Likewise.
46897         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46898
46899 2008-10-17  Jim Meyering  <meyering@redhat.com>
46900
46901         ignore-value: don't depend on inline module
46902         * modules/ignore-value (Depends-on): Remove 'inline'.
46903         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46904         Suggestion from Bruno Haible.
46905
46906 2008-10-17  Bruno Haible  <bruno@clisp.org>
46907
46908         New implementation of condition variables for Win32.
46909         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46910         (gl_linked_waitqueue_t): New type.
46911         (gl_cond_t): Use it.
46912         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46913         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46914         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46915         (glthread_cond_init_func, glthread_cond_wait_func,
46916         glthread_cond_timedwait_func, glthread_cond_signal_func,
46917         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46918         Reimplemented on the basis of gl_linked_waitqueue_t.
46919         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46920         gl_waitqueue_t.
46921         (gl_rwlock_t): Update.
46922         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46923
46924 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46925
46926         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46927         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46928
46929 2008-10-17  Jim Meyering  <meyering@redhat.com>
46930
46931         ignore-value: new module
46932         * modules/ignore-value: New file.
46933         * lib/ignore-value.h: New file.
46934         * MODULES.html.sh (Compiler warning management): New section,
46935         just for this module.  More to come.
46936
46937 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46938
46939         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46940         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46941         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46942
46943 2008-10-16  Jim Meyering  <meyering@redhat.com>
46944
46945         openat-die.c: avoid 'no previous prototype' warning
46946         * lib/openat-die.c: Include "openat.h".
46947         Reported by Reuben Thomas <rrt@sc3d.org>.
46948
46949 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46950
46951         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46952         * lib/netdb.in.h: Fix typo.
46953         Reported by Bruno Haible  <bruno@clisp.org>
46954
46955         * lib/netdb.in.h: Include sys/socket.h for platforms without
46956         netdb.h, to get structures like hostent on MinGW.
46957         * modules/netdb (Depends-on): Add sys_socket.
46958
46959 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46960
46961         * modules/netdb, modules/netdb-tests: New file.
46962         * m4/netdb_h.m4: New file.
46963         * lib/netdb.in.h: Add, currently just an empty file pending
46964         definitions.
46965         * tests/test-netdb.c: New file.
46966         * doc/posix-headers/netdb.texi: Mention that we replace it if
46967         needed.
46968         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46969         netdb.
46970
46971 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46972
46973         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46974         with code.
46975
46976 2008-10-13  Bruno Haible  <bruno@clisp.org>
46977
46978         * lib/glthread/cond.c (glthread_cond_wait_func,
46979         glthread_cond_timedwait_func): Add a comment.
46980
46981 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46982
46983         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46984         * tests/test-select.c: Likewise,
46985
46986 2008-10-13  Bruno Haible  <bruno@clisp.org>
46987
46988         * lib/glthread/cond.c (glthread_cond_wait_func,
46989         glthread_cond_timedwait_func): Fix variable name.
46990         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46991
46992 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46993
46994         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46995         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46996         struct sockaddr.sa_len.
46997         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46998
46999 2008-10-13  Simon Josefsson  <simon@josefsson.org>
47000
47001         * build-aux/pmccabe2html: Add css and css_url parameters.
47002
47003 2008-10-12  Bruno Haible  <bruno@clisp.org>
47004
47005         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
47006         calling aclx_get.
47007         Reported by Rainer Tammer <tammer@tammer.net>.
47008
47009 2008-10-12  Bruno Haible  <bruno@clisp.org>
47010
47011         Use msvcrt aware primitives for creation/termination of Win32 threads.
47012         * lib/glthread/thread.c: Include <process.h>.
47013         (glthread_create_func): Use _beginthreadex instead of CreateThread.
47014         (wrapper_func): Update signature.
47015         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
47016
47017 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47018             Bruno Haible  <bruno@clisp.org>
47019
47020         Provide a Win32 implementation of the 'cond' module.
47021         * lib/glthread/cond.h [USE_WIN32]: New implementation.
47022         * lib/glthread/cond.c (glthread_cond_init_func,
47023         glthread_cond_wait_func, glthread_cond_timedwait_func,
47024         glthread_cond_signal_func, glthread_cond_broadcast_func,
47025         glthread_cond_destroy_func) [USE_WIN32]: New functions.
47026         * modules/cond (Dependencies): Add gettimeofday.
47027
47028 2008-10-11  Bruno Haible  <bruno@clisp.org>
47029
47030         Make sleep work on older versions of mingw.
47031         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
47032         only whether it exists.
47033         * doc/posix-functions/sleep.texi: Mention the problem with older
47034         versions of mingw.
47035
47036 2008-10-11  Bruno Haible  <bruno@clisp.org>
47037
47038         New module 'shutdown'.
47039         * modules/shutdown: New file.
47040         * lib/sys_socket.in.h (shutdown): New declaration.
47041         * lib/winsock.c (shutdown): New function.
47042         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47043         GNULIB_SHUTDOWN.
47044         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47045         * doc/posix-functions/shutdown.texi: Document the new module.
47046
47047 2008-10-11  Jim Meyering  <meyering@redhat.com>
47048
47049         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47050
47051 2008-10-11  Bruno Haible  <bruno@clisp.org>
47052
47053         New module 'fclose'.
47054         * modules/fclose: New file.
47055         * lib/stdio.in.h (fclose): New declaration.
47056         * lib/fclose.c: New file.
47057         * m4/fclose.m4: New file.
47058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
47059         REPLACE_FCLOSE.
47060         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
47061         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47062         REPLACE_FCLOSE.
47063         * modules/close (Depends-on): fclose.
47064         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47065
47066 2008-10-11  Bruno Haible  <bruno@clisp.org>
47067
47068         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47069         set errno and don't call _close.
47070
47071 2008-10-10  Bruno Haible  <bruno@clisp.org>
47072
47073         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47074         ACL, not afterwards. Fixes test failure on Cygwin.
47075
47076 2008-10-09  Ben Pfaff  <blp@gnu.org>
47077
47078         * build-aux/announce-gen: Fix gnulib version related part of usage
47079         message.  Die with a useful error message if no tarballs are
47080         found.
47081
47082 2008-10-10  Jim Meyering  <meyering@redhat.com>
47083
47084         bootstrap: use git's --depth=N option only if it's supported
47085         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47086         recognize the --depth option.  Reported by Pádraig Brady.
47087
47088 2008-10-09  Bruno Haible  <bruno@clisp.org>
47089
47090         New module 'ioctl'.
47091         * modules/ioctl: New file.
47092         * lib/sys_socket.in.h (ioctl): Remove declaration.
47093         * lib/winsock.c: Include <sys/ioctl.h>.
47094         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47095         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47096         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47097         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47098         * doc/posix-functions/ioctl.texi: Mention the new module.
47099
47100 2008-10-09  Bruno Haible  <bruno@clisp.org>
47101
47102         New module 'sys_ioctl'.
47103         * lib/sys_ioctl.in.h: New file.
47104         * m4/sys_ioctl_h.m4: New file.
47105         * modules/sys_ioctl: New file.
47106         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47107
47108 2008-10-09  Bruno Haible  <bruno@clisp.org>
47109
47110         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47111         * lib/winsock.c: Include <stdarg.h>.
47112         (rpl_ioctl): Change to second argument 'int' and then varargs.
47113
47114 2008-10-09  Bruno Haible  <bruno@clisp.org>
47115
47116         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47117         when the sys_socket module is present and the system has <winsock2.h>.
47118
47119 2008-10-09  Bruno Haible  <bruno@clisp.org>
47120
47121         * doc/posix-functions/close.texi: Mention module 'close' instead of
47122         module 'sys_socket'.
47123
47124 2008-10-09  Bruno Haible  <bruno@clisp.org>
47125
47126         * doc/glibc-headers/sys_ioctl.texi: New file.
47127         * doc/gnulib.texi: Include it.
47128
47129 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47130             Bruno Haible  <bruno@clisp.org>
47131
47132         Combine the two replacements of 'close'.
47133         * lib/sys_socket.in.h (close): Define to a reminder to include
47134         <unistd.h>.
47135         (_gl_close_fd_maybe_socket): New declaration.
47136         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47137         * lib/winsock.c (close): Remove undefinition.
47138         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47139         needed for the gnulib module 'close'.
47140         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47141         define to an error symbol or to a warning, if suitable.
47142         * lib/close.c: Include <sys/socket.h>.
47143         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47144         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47145         UNISTD_H_HAVE_WINSOCK2_H.
47146         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47148         UNISTD_H_HAVE_WINSOCK2_H.
47149         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47150         (configure.ac): Set a module indicator.
47151         (Makefile.am): Substitute GNULIB_CLOSE.
47152         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47153         * modules/poll-tests (Depends-on): Add close.
47154         * modules/select-tests (Depends-on): Likewise.
47155
47156 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47157             Bruno Haible  <bruno@clisp.org>
47158
47159         New module 'close'.
47160         * modules/close: New file.
47161         * lib/unistd.in.h (close): Move declaration out of the
47162         FCHDIR_REPLACEMENT scope.
47163         (_gl_unregister_fd): New declaration.
47164         * lib/close.c: New file.
47165         * lib/fchdir.c (rpl_close): Remove function.
47166         * m4/close.m4: New file.
47167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47168         close.
47169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47170         REPLACE_CLOSE.
47171         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47172         REPLACE_CLOSE.
47173         * modules/fchdir (Depends-on): Add close.
47174
47175 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47176             Bruno Haible  <bruno@clisp.org>
47177
47178         * lib/fcntl.in.h (open): Simplify conditionals.
47179         (_gl_register_fd): New declaration.
47180         * lib/fchdir.c (rpl_open): Remove function.
47181         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47182         also.
47183         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47185         open.
47186
47187 2008-10-09  Jim Meyering  <meyering@redhat.com>
47188
47189         GNUmakefile: use the more name-space-friendly "_version"
47190         * top/GNUmakefile (_dummy): Update.
47191         (_version): Rename from "version".
47192
47193 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47194             Bruno Haible  <bruno@clisp.org>
47195
47196         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47197         rpl_close.
47198         (_gl_register_fd): New function, extracted from rpl_open.
47199         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47200         (rpl_open, rpl_opendir): Use _gl_register_fd.
47201
47202 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47203
47204         Fix organization of 'open' replacement.
47205         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47206         (gl_FUNC_OPEN): Use it.
47207         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47208
47209 2008-10-08  Bruno Haible  <bruno@clisp.org>
47210
47211         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47212
47213 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47214
47215         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47216         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47217         listen).
47218
47219 2008-10-08  Eric Blake  <ebb9@byu.net>
47220
47221         GNUmakefile: add 'make version' target
47222         * top/GNUmakefile (_curr-ver): Split version update rules...
47223         (version): ...into a target.
47224
47225 2008-10-07  Bruno Haible  <bruno@clisp.org>
47226
47227         Use a more portable replacement expression for -0.0L.
47228         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47229         instead of -0.0L. Fix m4 quotation.
47230
47231         * tests/test-signbit.c: Include <float.h>.
47232         (minus_zero): New variable.
47233         (test_signbitl): Use minus_zero instead of -zero.
47234         * modules/signbit-tests (Depends-on): Add float.
47235
47236         * tests/test-ceill.c: Include <float.h>.
47237         (zero): Remove variable.
47238         (minus_zero): New variable.
47239         (main): Use minus_zero instead of -zero.
47240         * modules/ceill-tests (Depends-on): Add float.
47241
47242         * tests/test-floorl.c: Include <float.h>.
47243         (zero): Remove variable.
47244         (minus_zero): New variable.
47245         (main): Use minus_zero instead of -zero.
47246         * modules/floorl-tests (Depends-on): Add float.
47247
47248         * tests/test-roundl.c: Include <float.h>.
47249         (zero): Remove variable.
47250         (minus_zero): New variable.
47251         (main): Use minus_zero instead of -zero.
47252         * modules/roundl-tests (Depends-on): Add float.
47253
47254         * tests/test-truncl.c: Include <float.h>.
47255         (zero): Remove variable.
47256         (minus_zero): New variable.
47257         (main): Use minus_zero instead of -zero.
47258         * modules/truncl-tests (Depends-on): Add float.
47259
47260         * tests/test-frexpl.c (zero): Remove variable.
47261         (minus_zero): New variable.
47262         (main): Use minus_zero instead of -zero.
47263         * modules/frexpl-tests (Depends-on): Add float.
47264
47265         * tests/test-isnan.c (zerol): Remove variable.
47266         (minus_zerol): New variable.
47267         (test_long_double): Use minus_zerol instead of -zerol.
47268         * modules/isnan-tests (Depends-on): Add float.
47269
47270         * tests/test-isnanl.h (zero): Remove variable.
47271         (minus_zero): New variable.
47272         (main): Use minus_zero instead of -zero.
47273         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47274         * modules/isnanl-tests (Depends-on): Add float.
47275
47276         * tests/test-ldexpl.c (zero): Remove variable.
47277         (minus_zero): New variable.
47278         (main): Use minus_zero instead of -zero.
47279         * modules/ldexpl-tests (Depends-on): Add float.
47280
47281         * tests/test-snprintf-posix.h (zerol): Remove variable.
47282         (minus_zerol): New variable.
47283         (test_function): Use minus_zerol instead of -zerol.
47284         * modules/snprintf-posix-tests (Depends-on): Add float.
47285         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47286
47287         * tests/test-sprintf-posix.h (zerol): Remove variable.
47288         (minus_zerol): New variable.
47289         (test_function): Use minus_zerol instead of -zerol.
47290         * modules/sprintf-posix-tests (Depends-on): Add float.
47291         * modules/vsprintf-posix-tests (Depends-on): Add float.
47292
47293         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47294         (minus_zerol): New variable.
47295         (test_function): Use minus_zerol instead of -zerol.
47296         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47297
47298         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47299         (minus_zerol): New variable.
47300         (test_function): Use minus_zerol instead of -zerol.
47301         * modules/vasprintf-posix-tests (Depends-on): Add float.
47302
47303 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47304
47305         * MODULES.html.sh (Support for building documentation): Mention
47306         pmccabe2html.  Sort entries.
47307
47308         Add pmccabe2html module, from gnupdf.
47309         * build-aux/pmccabe.css: New file.
47310         * build-aux/pmccabe2html: New file.
47311         * m4/pmccabe2html.m4: New file.
47312         * modules/pmccabe2html: New file.
47313
47314 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47315
47316         flock: new module
47317         * MODULES.html.sh: Add to list of modules.
47318         * lib/flock.c: flock implementation for Windows and Unix systems
47319         which have fcntl.
47320         * doc/glibc-functions/flock.texi: Update documentation.
47321         * lib/sys_file.in.h: <sys/file.h> header file.
47322         * m4/flock.m4: M4 macros.
47323         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47324         * modules/flock: flock module.
47325         * modules/flock-tests: flock tests module.
47326         * modules/sys_file: sys/file.h module.
47327         * tests/test-flock.c: test suite for flock.
47328
47329 2008-10-06  Jim Meyering  <meyering@redhat.com>
47330
47331         bootstrap: check for LT_INIT more portably still ;-)
47332         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47333         Spotted by Bruno Haible.
47334
47335 2008-10-06  Eric Blake  <ebb9@byu.net>
47336
47337         test-signbit: avoid tripping Irix cc bug on -0.0L
47338         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47339         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47340         entire testsuite consistent and avoids an Irix 6.2 bug.
47341
47342 2008-10-05  Bruno Haible  <bruno@clisp.org>
47343             Jim Meyering  <jim@meyering.net>
47344
47345         Add an option for ignoring EPIPE during close_stdout.
47346         * lib/closeout.h: Include <stdbool.h>.
47347         (close_stdout_set_ignore_EPIPE): New declaration.
47348         * lib/closeout.c: Include <stdbool.h>.
47349         (ignore_EPIPE): New variable.
47350         (close_stdout_set_ignore_EPIPE): New function.
47351         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47352         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47353         failure.
47354         * modules/closeout (Depends-on): Add stdbool.
47355
47356 2008-10-05  Bruno Haible  <bruno@clisp.org>
47357
47358         * modules/accept: New file.
47359         * modules/bind: New file.
47360         * modules/connect: New file.
47361         * modules/getpeername: New file.
47362         * modules/getsockname: New file.
47363         * modules/getsockopt: New file.
47364         * modules/listen: New file.
47365         * modules/recv: New file.
47366         * modules/recvfrom: New file.
47367         * modules/send: New file.
47368         * modules/sendto: New file.
47369         * modules/setsockopt: New file.
47370         * modules/socket: New file.
47371         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47372         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47373         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47374         the particular module is requested. Add a link warning when the
47375         particular module is not requested.
47376         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47377         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47378         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47379         the particular module is requested.
47380         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47381         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47382         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47383         * modules/sys_socket (Depends-on): Add link-warning.
47384         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47385         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47386         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47387         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47388         GL_LINK_WARNING.
47389         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47390         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47391         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47392         * doc/posix-functions/getpeername.texi: Mention the new module
47393         'getpeername'.
47394         * doc/posix-functions/getsockname.texi: Mention the new module
47395         'getsockname'.
47396         * doc/posix-functions/getsockopt.texi: Mention the new module
47397         'getsockopt'.
47398         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47399         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47400         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47401         * doc/posix-functions/send.texi: Mention the new module 'send'.
47402         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47403         * doc/posix-functions/setsockopt.texi: Mention the new module
47404         'setsockopt'.
47405         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47406         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47407         listen, connect, accept.
47408         * modules/select-tests (Depends-on): Likewise.
47409
47410 2008-10-05  Bruno Haible  <bruno@clisp.org>
47411
47412         * lib/winsock.c (strerror): Remove unused #undef.
47413         (rpl_close): Remove unused local variable.
47414
47415         * modules/sys_socket (Depends-on); Add errno.
47416
47417 2008-10-05  Bruno Haible  <bruno@clisp.org>
47418
47419         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47420         (select): Add a link warning when the 'select' module is not used.
47421         * modules/sys_select (Depends-on): Add link-warning.
47422         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47423         Suggested by Paolo Bonzini.
47424
47425 2008-10-05  Jim Meyering  <meyering@redhat.com>
47426
47427         bootstrap: check for LT_INIT more portably
47428         * build-aux/bootstrap: Avoid using grep -E, since it's not
47429         portable enough.  Suggestion from Bruno Haible.
47430
47431 2008-10-05  Bruno Haible  <bruno@clisp.org>
47432
47433         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47434         as being fixed by gnulib.
47435
47436 2008-10-05  Bruno Haible  <bruno@clisp.org>
47437
47438         * modules/select-tests: New file, mostly copied from
47439         modules/sys_select-tests.
47440         * tests/test-select.c: New file, mostly copied from
47441         tests/test-sys_select.c.
47442         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47443         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47444         (Makefile.am): Remove test_sys_select_LDADD.
47445
47446         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47447         to an undefined symbol, for an error message.
47448         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47449         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47450         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47451         winsock-select.c here.
47452         * modules/sys_select (Files): Remove lib/winsock-select.c.
47453         (Depends-on): Remove alloca.
47454         (Makefile.am): Substitute GNULIB_SELECT.
47455         * modules/select: New file.
47456         * doc/posix-functions/select.texi: Update.
47457
47458 2008-10-05  Bruno Haible  <bruno@clisp.org>
47459
47460         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47461         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47462         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47463         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47464         getdtablesize.
47465         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47466         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47467
47468 2008-10-05  Bruno Haible  <bruno@clisp.org>
47469
47470         * modules/getdtablesize-tests: New file.
47471         * tests/test-getdtablesize.c: New file.
47472
47473         New module 'getdtablesize'.
47474         * lib/unistd.in.h (getdtablesize): New declaration.
47475         * lib/getdtablesize.c: New file.
47476         * m4/getdtablesize.m4: New file.
47477         * modules/getdtablesize: New file.
47478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47479         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47480         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47481         HAVE_GETDTABLESIZE.
47482         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47483
47484 2008-10-05  Bruno Haible  <bruno@clisp.org>
47485
47486         * modules/sched (Makefile.am): Fix typo.
47487         Reported by Simon Josefsson.
47488
47489 2008-10-05  Jim Meyering  <meyering@redhat.com>
47490
47491         bootstrap: check for LT_INIT, too
47492         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47493         are deprecated.  Suggestion from Ralf Wildenhues.
47494
47495 2008-10-05  Bruno Haible  <bruno@clisp.org>
47496
47497         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47498         overriding them by ours.
47499         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47500
47501 2008-10-05  Jim Meyering  <meyering@redhat.com>
47502
47503         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47504         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47505         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47506
47507 2008-10-04  Bruno Haible  <bruno@clisp.org>
47508
47509         * modules/dup2 (License): Change to LGPLv2+.
47510         * modules/sleep (License): Likewise.
47511         * modules/perror (License): Likewise.
47512         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47513         Blake.
47514         * modules/signal (License): Likewise.
47515         * modules/sigprocmask (License): Likewise.
47516         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47517         Meyering.
47518
47519 2008-10-04  Bruno Haible  <bruno@clisp.org>
47520
47521         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47522         Reported by Rainer Tammer <tammer@tammer.net>.
47523
47524 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47525             Bruno Haible  <bruno@clisp.org>
47526
47527         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47528         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47529         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47530
47531 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47532
47533         filevercmp: new module
47534         * lib/filevercmp.h: New function filevercmp comparing version strings.
47535         * lib/filevercmp.c: Implementation of filevercmp function.
47536         * modules/filevercmp: Module metadata.
47537         * tests/test-filevercmp.c: Unit test for new module.
47538         * modules/filevercmp-tests: Unit test metadata.
47539         * MODULES.html.sh: Add filevercmp module.
47540
47541 2008-10-03  Bruno Haible  <bruno@clisp.org>
47542
47543         * lib/c-ctype.h: Add comment.
47544         Reported by Jim Meyering.
47545
47546 2008-10-02  Bruno Haible  <bruno@clisp.org>
47547
47548         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47549
47550 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47551
47552         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47553         name of bootstrap.conf accordingly.
47554
47555 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47556
47557         * build-aux/bootstrap: Install git-merge-changelog configuration
47558         items into .gitconfig if needed.
47559
47560 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47561
47562         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47563         git repository, and initialize/update it accordingly.
47564
47565 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47566
47567         * modules/fsync-tests: New file.
47568         * tests/test-fsync.c: New file.
47569
47570         New module 'fsync'.
47571         * lib/fsync.c: New file.
47572         * m4/fsync.m4: New file.
47573         * modules/fsync: New file.
47574         * lib/unistd.in.h (fsync): New declaration.
47575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47576         GNULIB_FSYNC and HAVE_FSYNC.
47577         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47578         * MODULES.html.sh (posix_functions): Add fsync.
47579         * doc/posix-functions/fsync.texi: Mention the new module.
47580
47581 2008-10-02  Jim Meyering  <meyering@redhat.com>
47582
47583         fts.c: sync with similar code from coreutils' remove.c
47584         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47585         Guard also with "#if defined __linux__", since for now at least,
47586         this code is Linux-kernel-specific.
47587
47588 2008-10-02  Jim Meyering  <meyering@redhat.com>
47589
47590         fts: bug fixes
47591         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47592         Include <sys/vfs.h>, not <sys/statfs.h>.
47593
47594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47595         Include <sys/vfs.h>, not <sys/statfs.h>.
47596
47597 2008-10-01  Bruno Haible  <bruno@clisp.org>
47598
47599         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47600         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47601         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47602         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47603         * doc/posix-functions/posix_spawnp.texi: Likewise.
47604         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47605         whether posix_spawn actually works.
47606         * m4/pipe.m4 (gl_PIPE): Likewise.
47607         * modules/execute (Files): Add m4/posix_spawn.m4.
47608         * modules/pipe (Files): Add m4/posix_spawn.m4.
47609         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47610
47611 2008-10-01  Jim Meyering  <meyering@redhat.com>
47612
47613         remove trailing spaces
47614         * NEWS: Likewise.
47615         * lib/poll.c (poll): Likewise.
47616         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47617         * lib/winsock.c (rpl_close): Likewise.
47618         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47619         * modules/yield: Likewise.
47620         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47621         * tests/test-sys_select.c (connect_to_socket): Likewise.
47622
47623         fts.c: adjust a new interface to be more generally useful
47624         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47625         (fts_build): Adjust caller.
47626
47627 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47628
47629         * modules/cond-tests: New file.
47630         * tests/test-cond.c: New file.
47631
47632 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47633             Bruno Haible  <bruno@clisp.org>
47634
47635         * modules/cond (Dependencies): Add errno, time.
47636         * lib/glthread/cond.h: Include <time.h>.
47637         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47638         across platforms.
47639
47640 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47641             Bruno Haible  <bruno@clisp.org>
47642
47643         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47644
47645 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47646             Bruno Haible  <bruno@clisp.org>
47647
47648         * modules/tls-tests (Depends-on): Add thread, yield.
47649         (configure.ac): Remove all checks.
47650         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47651         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47652         gl_thread_self): Remove definitions. Include glthread/thread.h and
47653         glthread/yield.h instead.
47654         (test_tls): Pass an additional NULL argument to gl_thread_join.
47655
47656 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47657             Bruno Haible  <bruno@clisp.org>
47658
47659         * modules/lock-tests (Depends-on): Add thread, yield.
47660         (configure.ac): Remove all checks.
47661         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47662         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47663         gl_thread_self): Remove definitions. Include glthread/thread.h and
47664         glthread/yield.h instead.
47665         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47666         additional NULL argument to gl_thread_join.
47667
47668 2008-09-30  Bruno Haible  <bruno@clisp.org>
47669
47670         Fix the Win32 implementation of the 'thread' module.
47671         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47672         pointer type.
47673         (gl_thread_self): Invoke gl_thread_self_func.
47674         (gl_thread_self_func): New declaration.
47675         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47676         (do_init_self_key, init_self_key): New functions.
47677         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47678         Remove some fields.
47679         (running_threads, running_lock): Remove variables.
47680         (get_current_thread_handle): New function.
47681         (gl_thread_self_func, wrapper_func, glthread_create_func,
47682         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47683         simplified.
47684
47685 2008-09-30  Bruno Haible  <bruno@clisp.org>
47686
47687         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47688         files.
47689
47690 2008-09-30  Jim Meyering  <meyering@redhat.com>
47691
47692         fts.m4: correct the test for statfs.f_type
47693         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47694         when checking for statfs.f_type.
47695
47696 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47697
47698         tests: avoid some compiler warnings
47699         * tests/test-memchr.c (main): Pass NULL indirectly.
47700         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47701
47702 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
47703
47704         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47705         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47706         exactly specified dayshifts.
47707         (dayshift): New rule.
47708         (rel): Add dayshift.
47709         (relative_time_table) [tomorrow, yesterday, today, now]:
47710         Use tDAY_SHIFT in place of tDAY_UNIT.
47711         * tests/test-getdate.c: Add tests for now-disallowed countable
47712         dayshifts, e.g., "4 yesterday ago".
47713
47714 2008-09-29  Bruno Haible  <bruno@clisp.org>
47715
47716         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47717         * tests/test-posix_spawn1.in.sh: Renamed from
47718         tests/test-posix_spawn.in.sh.
47719         * tests/test-posix_spawn2.c: New file.
47720         * tests/test-posix_spawn2.in.sh: New file.
47721         * modules/posix_spawnp-tests (Files): Update.
47722         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47723
47724 2008-09-29  Bruno Haible  <bruno@clisp.org>
47725
47726         Propagate effects of putenv/setenv/unsetenv to child processes.
47727         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47728         * lib/pipe.c (create_pipe): Likewise.
47729
47730 2008-09-29  Bruno Haible  <bruno@clisp.org>
47731
47732         Enable use of shell scripts as executables in mingw.
47733         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47734         run the program as a shell script.
47735         * lib/pipe.c (create_pipe): Likewise.
47736         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47737         resulting array.
47738
47739 2008-09-29  Eric Blake  <ebb9@byu.net>
47740
47741         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47742
47743 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47744
47745         * doc/posix-functions/accept.texi: Update mingw problems.
47746         * doc/posix-functions/bind.texi: Update mingw problems.
47747         * doc/posix-functions/close.texi: Update mingw problems.
47748         * doc/posix-functions/connect.texi: Update mingw problems.
47749         * doc/posix-functions/getpeername.texi: Update mingw problems.
47750         * doc/posix-functions/getsockname.texi: Update mingw problems.
47751         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47752         * doc/posix-functions/ioctl.texi: Update mingw problems.
47753         * doc/posix-functions/listen.texi: Update mingw problems.
47754         * doc/posix-functions/recv.texi: Update mingw problems.
47755         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47756         * doc/posix-functions/select.texi: Update mingw problems.
47757         * doc/posix-functions/send.texi: Update mingw problems.
47758         * doc/posix-functions/sendto.texi: Update mingw problems.
47759         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47760         * doc/posix-functions/socket.texi: Update mingw problems.
47761
47762 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47763             Bruno Haible  <bruno@clisp.org>
47764
47765         * lib/sys_select.in.h: Include sys/time.h.
47766         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47767         * modules/sys_select: Depend on sys_time.
47768         * tests/test-sys_select.c: Test that sys/select.h defines struct
47769         timeval fully.
47770
47771 2008-09-29  Bruno Haible  <bruno@clisp.org>
47772
47773         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47774         * lib/sys_select.in.h: Likewise.
47775
47776 2008-09-29  Bruno Haible  <bruno@clisp.org>
47777
47778         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47779
47780 2008-09-29  Bruno Haible  <bruno@clisp.org>
47781
47782         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47783         Set LIBSOCKET instead of augmenting LIBS.
47784         * modules/sockets (Link): New section.
47785         * modules/sockets-tests (test_sockets_LDADD): New variable.
47786         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47787         * modules/poll-tests (test_poll_LDADD): New variable.
47788         * NEWS: Document the change.
47789
47790 2008-09-29  Bruno Haible  <bruno@clisp.org>
47791
47792         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47793         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47794         ARPA_INET_H directly.
47795         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47796
47797 2008-09-28  Bruno Haible  <bruno@clisp.org>
47798
47799         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47800         from gl_HEADER_SYS_SOCKET.
47801         (gl_HEADER_SYS_SOCKET): Invoke it.
47802         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47803
47804 2008-09-28  Bruno Haible  <bruno@clisp.org>
47805
47806         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47807         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47808         Needed on OSF/1 4.0.
47809
47810 2008-09-28  Bruno Haible  <bruno@clisp.org>
47811
47812         Override open more carefully.
47813         * lib/open.c (orig_open): New function.
47814         (rpl_open): Use orig_open instead of open.
47815         * lib/fcntl.in.h: Add special invocation convention.
47816         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47817         (gl_FUNC_OPEN): Invoke it.
47818
47819         Override freopen more carefully.
47820         * lib/freopen.c (orig_freopen): New function.
47821         (rpl_freopen): Use orig_freopen instead of freopen.
47822         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47823         (gl_FUNC_FREOPEN): Invoke it.
47824
47825         Override fopen more carefully.
47826         * lib/fopen.c (orig_fopen): New function.
47827         (rpl_fopen): Use orig_fopen instead of fopen.
47828         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47829         (gl_FUNC_FOPEN): Invoke it.
47830         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47831
47832 2008-09-28  Bruno Haible  <bruno@clisp.org>
47833
47834         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47835         SIGPIPE.
47836
47837 2008-09-28  Bruno Haible  <bruno@clisp.org>
47838
47839         * tests/test-sigaction.c (handler, main): Disable the check whether
47840         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47841         glibc systems with LinuxThreads.
47842
47843 2008-09-28  Bruno Haible  <bruno@clisp.org>
47844
47845         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47846
47847         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47848         with AIX xlc.
47849         * lib/fcntl.in.h (open): Likewise.
47850         Reported by Rainer Tammer <tammer@tammer.net>.
47851
47852 2008-09-28  Bruno Haible  <bruno@clisp.org>
47853
47854         * modules/posix_spawnp-tests: New file.
47855         * tests/test-posix_spawn.c: New file.
47856         * tests/test-posix_spawn.in.sh: New file.
47857
47858         New module 'posix_spawnp'.
47859         * modules/posix_spawnp: New file.
47860         * lib/spawnp.c: New file, from GNU libc with modifications.
47861         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47862
47863         New module 'posix_spawn'.
47864         * modules/posix_spawn: New file.
47865         * lib/spawn.c: New file, from GNU libc with modifications.
47866         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47867
47868         New module 'posix_spawnattr_destroy'.
47869         * modules/posix_spawnattr_destroy: New file.
47870         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47871         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47872         module.
47873
47874         New module 'posix_spawnattr_setsigmask'.
47875         * modules/posix_spawnattr_setsigmask: New file.
47876         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47877         modifications.
47878         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47879         new module.
47880
47881         New module 'posix_spawnattr_getsigmask'.
47882         * modules/posix_spawnattr_getsigmask: New file.
47883         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47884         modifications.
47885         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47886         new module.
47887
47888         New module 'posix_spawnattr_setsigdefault'.
47889         * modules/posix_spawnattr_setsigdefault: New file.
47890         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47891         modifications.
47892         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47893         new module.
47894
47895         New module 'posix_spawnattr_getsigdefault'.
47896         * modules/posix_spawnattr_getsigdefault: New file.
47897         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47898         modifications.
47899         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47900         new module.
47901
47902         New module 'posix_spawnattr_setschedpolicy'.
47903         * modules/posix_spawnattr_setschedpolicy: New file.
47904         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47905         modifications.
47906         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47907         new module.
47908
47909         New module 'posix_spawnattr_getschedpolicy'.
47910         * modules/posix_spawnattr_getschedpolicy: New file.
47911         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47912         modifications.
47913         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47914         new module.
47915
47916         New module 'posix_spawnattr_setschedparam'.
47917         * modules/posix_spawnattr_setschedparam: New file.
47918         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47919         modifications.
47920         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47921         new module.
47922
47923         New module 'posix_spawnattr_getschedparam'.
47924         * modules/posix_spawnattr_getschedparam: New file.
47925         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47926         modifications.
47927         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47928         new module.
47929
47930         New module 'posix_spawnattr_setpgroup'.
47931         * modules/posix_spawnattr_setpgroup: New file.
47932         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47933         modifications.
47934         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47935         module.
47936
47937         New module 'posix_spawnattr_getpgroup'.
47938         * modules/posix_spawnattr_getpgroup: New file.
47939         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47940         modifications.
47941         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47942         module.
47943
47944         New module 'posix_spawnattr_setflags'.
47945         * modules/posix_spawnattr_setflags: New file.
47946         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47947         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47948         module.
47949
47950         New module 'posix_spawnattr_getflags'.
47951         * modules/posix_spawnattr_getflags: New file.
47952         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47953         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47954         module.
47955
47956         New module 'posix_spawnattr_init'.
47957         * modules/posix_spawnattr_init: New file.
47958         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47959         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47960         module.
47961
47962         New module 'posix_spawn_file_actions_destroy'.
47963         * modules/posix_spawn_file_actions_destroy: New file.
47964         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47965         modifications.
47966         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47967         the new module.
47968
47969         New module 'posix_spawn_file_actions_addopen'.
47970         * modules/posix_spawn_file_actions_addopen: New file.
47971         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47972         modifications.
47973         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47974         the new module.
47975
47976         New module 'posix_spawn_file_actions_adddup2'.
47977         * modules/posix_spawn_file_actions_adddup2: New file.
47978         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47979         modifications.
47980         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47981         the new module.
47982
47983         New module 'posix_spawn_file_actions_addclose'.
47984         * modules/posix_spawn_file_actions_addclose: New file.
47985         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47986         modifications.
47987         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47988         the new module.
47989
47990         New module 'posix_spawn_file_actions_init'.
47991         * modules/posix_spawn_file_actions_init: New file.
47992         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47993         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47994         new module.
47995
47996         New module 'posix_spawn-internal'.
47997         * modules/posix_spawn-internal: New file.
47998         * lib/spawn_int.h: New file, from GNU libc with modifications.
47999         * lib/spawni.c: New file, from GNU libc with modifications.
48000         * m4/posix_spawn.m4: New file.
48001
48002         New module 'spawn'.
48003         * modules/spawn: New file.
48004         * lib/spawn.in.h: New file, from GNU libc with modifications.
48005         * m4/spawn_h.m4: New file.
48006         * doc/posix-headers/spawn.texi: Mention the new module.
48007
48008 2008-09-28  Bruno Haible  <bruno@clisp.org>
48009
48010         * modules/sched-tests: New file.
48011         * tests/test-sched.c: New file.
48012
48013         New module 'sched'.
48014         * modules/sched: New file.
48015         * lib/sched.in.h: New file.
48016         * m4/sched_h.m4: New file.
48017         * doc/posix-headers/sched.texi: Mention the new module.
48018
48019 2008-09-27  Eric Blake  <ebb9@byu.net>
48020
48021         Fix previous patch, and tweak references to $0.
48022         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
48023         (func_version, func_gnulib_dir): Don't call this program
48024         gnulib-tool.
48025         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
48026         with using $0 in function.
48027         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
48028         (func_fatal_error): Reuse the name the user invoked us with.
48029
48030 2008-09-27  Bruno Haible  <bruno@clisp.org>
48031
48032         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
48033         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
48034         (gl_ICONV_H): Not here.
48035         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48036         instead of assigning ICONV_H directly.
48037
48038         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
48039         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48040         WCHAR_H directly.
48041
48042 2008-09-27  Bruno Haible  <bruno@clisp.org>
48043
48044         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48045         * modules/arpa_inet (Depends-on): Add link-warning.
48046         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48047         * modules/unistd (Makefile.am): Likewise.
48048
48049 2008-09-26  Bruno Haible  <bruno@clisp.org>
48050
48051         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48052         variables.
48053         (func_version): Essentially copied from gnulib-tool.
48054         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48055         func_readlink): Copied from gnulib-tool.
48056
48057 2008-09-26  Bruno Haible  <bruno@clisp.org>
48058
48059         * gnulib-tool (func_version): Change directory to $gnulib_dir before
48060         invoking git-version-gen.
48061
48062 2008-09-26  Bruno Haible  <bruno@clisp.org>
48063
48064         * posix-modules: Update to directory names changed on 2008-01-19.
48065         Remove commas in output before splitting into words. No more need to
48066         avoid 'ftruncate' since 2007-02-19.
48067
48068 2008-09-26  Bruno Haible  <bruno@clisp.org>
48069
48070         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48071
48072 2008-09-26  Bruno Haible  <bruno@clisp.org>
48073
48074         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48075         * modules/fwriteerror (Depends-on): Add errno.
48076
48077 2008-09-26  Bruno Haible  <bruno@clisp.org>
48078
48079         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48080         * tests/test-vc-list-files-cvs.sh: Likewise.
48081
48082 2008-09-26  Bruno Haible  <bruno@clisp.org>
48083
48084         * doc/posix-headers/sys_resource.texi: Reorder items.
48085
48086 2008-09-26  Jim Meyering  <meyering@redhat.com>
48087
48088         fts: tweak inode comparison function
48089         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48090         inode numbers, as documented.
48091
48092         fts: sort dirent entries on inode number before traversing
48093         This avoids a quadratic, seek-related performance penalty when
48094         operating on a directory containing many entries (measurable at 10k;
48095         3.5 hours at 2 million entries with a cold cache) on certain types
48096         of file systems, including ext3 and ext4, but not tmpfs.
48097         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48098         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48099         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48100         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48101         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48102         (fts_build): Set the stat.st_ino member from D_INO.
48103         If it is likely to be useful, sort dirent entries on inode number.
48104
48105         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48106         and the struct statfs.f_type member.
48107         * modules/fts (Depends-on): Add d-ino.
48108
48109 2008-09-26  Bruno Haible  <bruno@clisp.org>
48110
48111         * modules/sigpipe-die (Depends-on): Add sigpipe.
48112
48113         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48114         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48115         and GNULIB_STDIO_H_SIGPIPE are set.
48116         * lib/stdio-write.c: New file.
48117         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48118         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48119         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48120         REPLACE_STDIO_WRITE_FUNCS.
48121         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48122         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48123         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48124         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48125         * modules/stdio (Files): Add lib/stdio-write.c.
48126         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48127         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48128         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48129         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48130         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48131         REPLACE_FPRINTF_POSIX.
48132         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48133         REPLACE_PRINTF_POSIX.
48134         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48135         REPLACE_VFPRINTF_POSIX.
48136         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48137         REPLACE_VPRINTF_POSIX.
48138         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48139         SIGPIPE issue.
48140         * doc/posix-functions/fputc.texi: Likewise.
48141         * doc/posix-functions/fputs.texi: Likewise.
48142         * doc/posix-functions/fwrite.texi: Likewise.
48143         * doc/posix-functions/printf.texi: Likewise.
48144         * doc/posix-functions/putc.texi: Likewise.
48145         * doc/posix-functions/putchar.texi: Likewise.
48146         * doc/posix-functions/puts.texi: Likewise.
48147         * doc/posix-functions/vfprintf.texi: Likewise.
48148         * doc/posix-functions/vprintf.texi: Likewise.
48149
48150         * modules/safe-write (Depends-on): Add write.
48151
48152         * modules/sigpipe-tests: New file.
48153         * tests/test-sigpipe.c: New file.
48154         * tests/test-sigpipe.sh: New file.
48155
48156         * modules/write: New file.
48157         * lib/unistd.in.h: Include <sys/types.h>.
48158         (write): New declaration.
48159         * lib/write.c: New file.
48160         * m4/write.m4: New file.
48161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48162         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48163         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48164         GNULIB_WRITE, REPLACE_WRITE.
48165         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48166         and the SIGPIPE issue.
48167
48168         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48169         (raise): New declaration.
48170         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48171         (ext_signal): New function.
48172         (rpl_raise): New function.
48173         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48174         GNULIB_SIGNAL_H_SIGPIPE.
48175         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48176         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48177
48178         * modules/sigpipe: New file.
48179         * m4/sigpipe.m4: New file.
48180
48181 2008-09-25  Derek Price  <derek@ximbiot.com>
48182             Bruno Haible  <bruno@clisp.org>
48183
48184         * gnulib-tool (func_import): Report all license incompatibilities, not
48185         just the first one.
48186
48187 2008-09-25  Bruno Haible  <bruno@clisp.org>
48188
48189         * gnulib-tool (func_import): When computing the edits, consider not
48190         only the Makefile.ams that exist but also those that will be generated.
48191
48192 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48193
48194         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48195         fixes gnulib-tool --test warning about duplicate dependency.
48196
48197 2008-09-25  Bruno Haible  <bruno@clisp.org>
48198
48199         * gnulib-tool: Don't ask the user to perform edits in the generated
48200         Makefile.ams.
48201         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48202         apply to the Makefile.am being generated.
48203         (func_emit_tests_Makefile_am): Execute edits that apply to the
48204         Makefile.am being generated.
48205         (func_import): Setup list of Makefile.am edits before emitting the
48206         Makefile.ams, not at the end.
48207         (func_create_testdir): Update.
48208         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48209
48210 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48211
48212         * gnulib-tool (func_import): Store the --tests-base option in the
48213         comment in gnulib-cache.m4.
48214
48215 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48216
48217         * NEWS: Document increased portability that sys_select now provides.
48218
48219         * lib/sys_select.in.h: Install select wrapper.
48220         * lib/sys_socket.in.h: Use more descriptive name when there is no
48221         select wrapper.
48222         * lib/winsock-select.c: New.
48223         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48224         Require gl_HEADER_SYS_SOCKET.
48225         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48226         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48227         * tests/test-sys_select.c: Add functional tests.
48228
48229 2008-09-24  Eric Blake  <ebb9@byu.net>
48230
48231         open, fopen: close fd leak in last patch
48232         * lib/open.c (rpl_open): Close fd before returning error.
48233         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48234         * doc/posix-functions/open.texi (open): Document that Irix also
48235         has the bug.
48236         * doc/posix-functions/fopen.texi (fopen): Likewise.
48237         Reported by Paolo Bonzini.
48238
48239 2008-09-24  Bruno Haible  <bruno@clisp.org>
48240
48241         Ensure that a filename ending in a slash cannot be used to access a
48242         non-directory.
48243         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48244         to check whether it's really a directory.
48245         * lib/fopen.c: Include fcntl.h, unistd.h.
48246         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48247         and fdopen().
48248         * modules/fopen (Depends-on): Add unistd.
48249         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48250         * tests/test-fopen.c (main): Likewise.
48251         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48252         * doc/posix-functions/fopen.texi: Likewise.
48253         Reported by Eric Blake.
48254
48255 2008-09-23  Eric Blake  <ebb9@byu.net>
48256
48257         c-stack: avoid compiler optimizations when provoking overflow
48258         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48259         recursion harder to optimize, to ensure a stack overflow occurs.
48260         * tests/test-c-stack.c (recurse): Likewise.
48261         Borrowed from libsigsegv.
48262
48263         c-stack: work around Irix sigaltstack bug
48264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48265         whether sigaltstack uses wrong end of stack_t (copied in part from
48266         libsigsegv).
48267         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48268         Irix bug, without requiring an over-allocation.
48269         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48270         bug.
48271
48272         fopen: document mingw bug on directories
48273         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48274         not allowing a stream visiting a directory, even though reading
48275         from such a stream is not portable.
48276
48277 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48278
48279         * lib/poll.c: Rewrite.
48280         * modules/poll: Depend on alloca.
48281
48282 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48283
48284         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48285         instead define prototypes for a full set of wrappers.  Ensure
48286         that Cygwin does not use the compatibility code, which is only
48287         for MinGW.
48288         * lib/winsock.c: New.
48289         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48290         * modules/sys_socket: Add lib/winsock.c.
48291
48292         * modules/poll-tests: Add errno and perror.
48293         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48294
48295 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48296
48297         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48298
48299 2008-09-23  Bruno Haible  <bruno@clisp.org>
48300
48301         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48302         * doc/glibc-functions/*: Likewise.
48303
48304 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48305
48306         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48307         success.
48308
48309 2008-09-22  Eric Blake  <ebb9@byu.net>
48310             Bruno Haible  <bruno@clisp.org>
48311
48312         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48313         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48314         supply %A but mishandle pseudo-NaN.
48315         Reported by Simon Josefsson.
48316
48317 2008-09-21  Bruno Haible  <bruno@clisp.org>
48318
48319         * tests/test-lock.c (main): Tweak skip message.
48320         * tests/test-tls.c (main): Likewise.
48321
48322 2008-09-21  Bruno Haible  <bruno@clisp.org>
48323
48324         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48325         whether 'struct sigaction' has sa_sigaction here...
48326         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48327         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48328
48329 2008-09-21  Bruno Haible  <bruno@clisp.org>
48330
48331         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48332         section.
48333         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48334         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48335         the new section.
48336         (Support for obsolete systems lacking POSIX:2001): New section.
48337         (String handling <string.h>): Move strdup to the new section.
48338         Suggested by Simon Josefsson and Paolo Bonzini.
48339
48340 2008-09-21  Bruno Haible  <bruno@clisp.org>
48341
48342         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48343         exponents in %e and %g results on 'long double'. Needed for mingw's
48344         improved *printf functions.
48345         * tests/test-vasprintf-posix.c (test_function): Likewise.
48346         * tests/test-snprintf-posix.h (test_function): Likewise.
48347         * tests/test-sprintf-posix.h (test_function): Likewise.
48348         Reported by Eric Blake.
48349
48350 2008-09-21  Bruno Haible  <bruno@clisp.org>
48351
48352         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48353         * tests/test-sprintf-posix.h (test_function): Likewise.
48354
48355 2008-09-21  Bruno Haible  <bruno@clisp.org>
48356
48357         * modules/getpass (Depends-on): Add strdup-posix.
48358
48359         New module 'strdup-posix'.
48360         * modules/strdup-posix: New file.
48361         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48362         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48364         REPLACE_STRDUP.
48365         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48366         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48368         strdup-posix.
48369
48370         * modules/strdup (Depends-on): Remove malloc-posix.
48371
48372 2008-09-20  Bruno Haible  <bruno@clisp.org>
48373
48374         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48375         Wildenhues.
48376
48377 2008-09-20  Bruno Haible  <bruno@clisp.org>
48378
48379         Ensure that wint_t gets defined on IRIX 5.3.
48380         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48381         * lib/wctype.in.h (wint_t): Likewise.
48382         (__wctype_wint_t): Remove type.
48383         (isw*): Use wint_t instead of __wctype_wint_t.
48384         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48385         * modules/wchar (Files): Add m4/wint_t.m4.
48386         (Makefile.am): Substitute HAVE_WINT_T.
48387         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48388         * tests/test-wctype.c: Check that wint_t is defined.
48389         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48390         * doc/posix-headers/wctype.texi: Likewise.
48391         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48392
48393 2008-09-18  Bruno Haible  <bruno@clisp.org>
48394
48395         * gnulib-tool (func_exit): Update comment.
48396
48397 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48398
48399         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48400         assumes strdup exists and does not depend on strdup to return
48401         ENOMEM on out of memory conditions.
48402
48403 2008-09-18  Bruno Haible  <bruno@clisp.org>
48404
48405         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48406         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48407         digits for the exponent.
48408
48409 2008-09-18  Jim Meyering  <meyering@redhat.com>
48410             Bruno Haible  <bruno@clisp.org>
48411
48412         * lib/vasnprintf.c (decimal_point_char): Define also if
48413         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48414
48415 2008-09-16  Bruno Haible  <bruno@clisp.org>
48416         and Eric Blake  <ebb9@byu.net>
48417
48418         vasnprintf: support Irix 5.3
48419         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48420         that mishandle long double infinity.
48421         Reported by Tom G. Christensen.
48422
48423 2008-09-16  Bruno Haible  <bruno@clisp.org>
48424
48425         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48426         Solaris 9.
48427         * doc/glibc-functions/alphasort.texi: Likewise.
48428         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48429
48430 2008-09-16  Jim Meyering  <meyering@redhat.com>
48431
48432         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48433         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48434         a umask modification leak out of a subshell.  Otherwise, the
48435         opensolaris /bin/sh would be accepted and thus cause unwarranted
48436         failures in the coreutils test suite.
48437
48438 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48439
48440         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48441         to succeed.
48442
48443 2008-09-16  Jim Meyering  <meyering@redhat.com>
48444
48445         avoid spurious test failure when library is built without ACL support
48446         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48447         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48448         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48449         * tests/test-copy-acl.sh: Likewise.
48450
48451 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48452
48453         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48454         based on character occurrence counts.
48455
48456 2008-09-15  Eric Blake  <ebb9@byu.net>
48457
48458         tests: avoid some compiler warnings
48459         * tests/test-memchr.c (main): Pass NULL indirectly.
48460         * tests/test-closein.c (main): Avoid unused variable.
48461
48462 2008-09-15  Bruno Haible  <bruno@clisp.org>
48463
48464         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48465         are missing on OpenBSD 4.0 individually.
48466         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48467
48468 2008-09-15  Bruno Haible  <bruno@clisp.org>
48469
48470         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48471         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48472         * doc/posix-functions/perror.texi: Likewise.
48473         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48474         is missing.
48475         Reported by Eric Blake.
48476
48477         * lib/errno.in.h: Use replacement values >= 2000.
48478         Reported by Eric Blake.
48479
48480 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48481
48482         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48483         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48484         limit.
48485         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48486         compareseq was aborted.
48487
48488 2008-09-14  Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48491         yvec_edit_count.
48492         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48493         (fstrcmp_bounded): Simplify result computation accordingly.
48494
48495 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48496
48497         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48498         (fstrcmp): Define in terms of fstrcmp_bounded.
48499         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48500         lower_bound argument.
48501         Return quickly if the result is certainly < lower_bound.
48502         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48503
48504 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48505
48506         * lib/diffseq.h (EARLY_ABORT): New macro.
48507         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48508         evaluates to true.
48509
48510 2008-09-14  Bruno Haible  <bruno@clisp.org>
48511
48512         * modules/perror-tests: New file.
48513         * tests/test-perror.sh: New file.
48514         * tests/test-perror.c: New file.
48515
48516         New module 'perror'.
48517         * lib/stdio.in.h (perror): New declaration.
48518         * lib/perror.c: New file.
48519         * m4/perror.m4: New file.
48520         * modules/perror: New file.
48521         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48522         * doc/posix-functions/perror.texi: Mention the perror module.
48523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48524         REPLACE_PERROR.
48525         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48526         REPLACE_PERROR.
48527
48528 2008-09-14  Bruno Haible  <bruno@clisp.org>
48529
48530         * modules/stdio (Makefile.am): Reorder to match the order in
48531         lib/stdio.in.h.
48532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48533
48534 2008-09-13  Bruno Haible  <bruno@clisp.org>
48535
48536         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48537
48538 2008-09-13  Bruno Haible  <bruno@clisp.org>
48539
48540         Extend strerror to cover the added errno values.
48541         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48542         (rpl_strerror): Provide error messages for the added errno values and
48543         for the WSA* values.
48544         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48545         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48546         strerror.
48547         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48548         * modules/strerror (Depends-on): Add errno.
48549         * doc/posix-functions/strerror.texi: Document the change.
48550         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48551         and EOVERFLOW.
48552
48553 2008-09-13  Bruno Haible  <bruno@clisp.org>
48554
48555         * modules/EOVERFLOW: Remove file.
48556         * m4/eoverflow.m4: Remove file.
48557         * modules/EOVERFLOW-tests: Remove file.
48558         * tests/test-EOVERFLOW.c: Remove file.
48559         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48560         * modules/ftell (Depends-on): Likewise.
48561         * modules/getdelim (Depends-on): Likewise.
48562         * modules/getugroups (Depends-on): Likewise.
48563         * modules/poll (Depends-on): Likewise.
48564         * modules/snprintf (Depends-on): Likewise.
48565         * modules/sprintf-posix (Depends-on): Likewise.
48566         * modules/vasnprintf (Depends-on): Likewise.
48567         * modules/vasprintf (Depends-on): Likewise.
48568         * modules/vfprintf-posix (Depends-on): Likewise.
48569         * modules/vsnprintf (Depends-on): Likewise.
48570         * modules/vsprintf-posix (Depends-on): Likewise.
48571         * modules/xvasprintf (Depends-on): Likewise.
48572         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48573         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48574         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48575         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48576         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48577         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48578         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48579         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48580         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48581         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48582         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48583         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48584         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48585         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48586         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48587         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48588         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48589         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48590         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48591         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48592         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48593         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48594         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48595         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48596         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48597         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48598         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48599         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48600         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48601         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48602         * MODULES.html.sh: Remove EOVERFLOW.
48603         * NEWS: Mention the change.
48604
48605 2008-09-13  Bruno Haible  <bruno@clisp.org>
48606
48607         * modules/errno-tests: New file.
48608         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48609
48610         * lib/errno.in.h: New file.
48611         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48612         * modules/errno: New file.
48613         * doc/posix-headers/errno.texi: Update documentation.
48614         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48615
48616 2008-09-13  Bruno Haible  <bruno@clisp.org>
48617
48618         * tests/test-poll.c: Use #if for native Windows, rather than testing
48619         __MSVCRT__.
48620
48621 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48622             Bruno Haible  <bruno@clisp.org>
48623
48624         * lib/glob.c: Don't include <pwd.h> on native Windows.
48625         (WINDOWS32): New macro.
48626         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48627
48628 2008-09-13  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48631         (ETIMEDOUT): Remove macro.
48632         (glthread_cond_timedwait_multithreaded): New declaration.
48633         (glthread_cond_timedwait): Use it.
48634         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48635         (glthread_cond_timedwait_multithreaded): New function.
48636
48637 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48638
48639         * modules/poll-tests: Do not check for io.h.
48640         * tests/test-poll.c: Check for __MSVCRT__ instead.
48641
48642 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48643
48644         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48645         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48646         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48647
48648 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48649
48650         * modules/poll-tests: New.
48651         * tests/test-poll.c: New.
48652
48653 2008-09-12  Eric Blake  <ebb9@byu.net>
48654
48655         frexp: test for NetBSD failure on -0.0
48656         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48657         not all, bugs from NetBSD 3.0 have been fixed.
48658         * doc/posix-functions/frexp.texi (frexp): Document bug.
48659         Reported by Thomas Klausner.
48660
48661         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48662         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48663         literal -0.0.
48664         Reported by Jonathan C. Patschke <jp@centtech.com>.
48665
48666 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48667
48668         * lib/glthread/cond.h: Use dummy implementation also if
48669         USE_WIN32_THREADS.
48670
48671 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48672
48673         * modules/fnmatch-posix (License): Change to LGPLv2+.
48674         * modules/fnmatch-gnu (License): Likewise.
48675
48676 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48677
48678         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48679
48680 2008-09-11  Jim Meyering  <meyering@redhat.com>
48681
48682         * users.txt: Add gtk-vnc.
48683
48684 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48685
48686         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48687         rotate amounts.
48688
48689         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48690         required for 16-bit and 8-bit rotates.
48691         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48692         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48693         UINT8_MAX instead of hard-coded constants.
48694         Suggested by Paul Eggert.
48695
48696 2008-09-07  Bruno Haible  <bruno@clisp.org>
48697
48698         * tests/test-striconveh.c (main): Check behaviour when converting from
48699         UTF-7.
48700
48701         Make striconveh work better with stateful encodings.
48702         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48703         that iconv does not increment the inptr when returning -1/EINVAL.
48704
48705 2008-09-07  Bruno Haible  <bruno@clisp.org>
48706
48707         * build-aux/config.rpath: Update according to libtool-2.2.6.
48708         * build-aux/config.libpath: Likewise.
48709
48710 2008-09-06  Bruno Haible  <bruno@clisp.org>
48711
48712         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48713         * lib/freadptr.c (freadptr): Likewise.
48714         * lib/freadseek.c (freadptrinc): Likewise.
48715         Reported by Simon Josefsson.
48716
48717 2008-09-06  Bruno Haible  <bruno@clisp.org>
48718
48719         * modules/freadptr (License): Change to LGPLv2+.
48720         * modules/freadseek (License): Likewise.
48721         Suggested by Eric Blake.
48722
48723         * modules/memchr2 (License): Change to LGPLv2+.
48724         Approved by Eric Blake.
48725
48726 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48727             Bruno Haible  <bruno@clisp.org>
48728
48729         Make gnulib-tool work with native 'sed' on AIX.
48730         * gnulib-tool (sed_noop): New variable.
48731         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48732         func_add_or_update, func_create_testdir): Use it to initialize sed
48733         script variables.
48734         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48735
48736 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48737             Bruno Haible  <bruno@clisp.org>
48738
48739         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48740         also works after #include directives.
48741
48742 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
48743
48744         getdate.y: reject an out-of-range timezone value
48745         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48746         the range [-24...+24].  When specified with only one or two digits,
48747         * tests/test-getdate.c: Tests for the fix.
48748         * doc/getdate.texi: Document this change.
48749
48750 2008-09-03  Bruno Haible  <bruno@clisp.org>
48751
48752         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48753
48754 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48755
48756         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48757         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48758         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48759         Blake <ebb9@byu.net>.
48760
48761         * tests/test-bitrotate.c: Add more test vectors.
48762
48763 2008-09-02  Eric Blake  <ebb9@byu.net>
48764
48765         vasnprintf-posix: handle large precision via %.*d
48766         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48767         when handling it ourselves.
48768         * tests/test-vasnprintf-posix.c (test_function): Add test.
48769         * tests/test-snprintf-posix.h (test_function): Likewise.
48770         * tests/test-sprintf-posix.h (test_function): Likewise.
48771         * tests/test-vasprintf-posix.c (test_function): Likewise.
48772         Reported by Alain Guibert.
48773
48774 2008-09-01  Eric Blake  <ebb9@byu.net>
48775
48776         c-stack: make configure-time check more robust
48777         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48778         successful sigaction call.
48779         Reported by Tom G. Christensen.
48780
48781 2008-09-01  Bruno Haible  <bruno@clisp.org>
48782
48783         New module 'findprog-lgpl'.
48784         * modules/findprog-lgpl: New file.
48785         * lib/findprog-lgpl.c: New file.
48786         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48787         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48788         to decide whether to use strdup or xstrdup, concatenated_filename or
48789         xconcatenated_filename.
48790
48791 2008-09-01  Bruno Haible  <bruno@clisp.org>
48792
48793         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48794         'xconcat-filename' (GPL).
48795         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48796         (License): Change to LGPLv2+.
48797         * modules/xconcat-filename: New file.
48798         * lib/concat-filename.h (concatenated_filename): Change specification.
48799         (xconcatenated_filename): New declaration.
48800         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48801         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48802         memory situations.
48803         * lib/xconcat-filename.c: New file.
48804         * NEWS: Mention the change.
48805         * lib/findprog.c: Include concat-filename.h, not filename.h.
48806         (find_in_path): Use xconcatenated_filename instead of
48807         concatenated_filename.
48808         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48809         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48810         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48811         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48812         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48813         instead of concatenated_filename.
48814         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48815         (execute_java_class): Use xconcatenated_filename instead of
48816         concatenated_filename.
48817         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48818         * modules/javacomp (Depends-on): Likewise.
48819         * modules/javaexec (Depends-on): Likewise.
48820
48821 2008-09-01  Bruno Haible  <bruno@clisp.org>
48822
48823         Split module 'filename' into 'filename' and 'concat-filename'.
48824         * modules/filename: Keep only lib/filename.h.
48825         (License): Change to LGPLv2+.
48826         * modules/concat-filename: New file, extracted from modules/filename.
48827         * lib/filename.h (concatenated_filename): Remove declaration.
48828         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48829         * lib/concat-filename.c: Include concat-filename.h.
48830         * NEWS: Mention the change.
48831
48832 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48833
48834         * lib/bitrotate.h (rotl8, rotr8): Add.
48835
48836         * modules/bitrotate (configure.ac): Need
48837         AC_REQUIRE([AC_C_INLINE]).
48838         (Description): Mention stdint.h.  Reported by Bruno Haible
48839         <bruno@clisp.org>.
48840
48841         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48842         Paolo Bonzini <bonzini@gnu.org>.
48843
48844 2008-08-31  Bruno Haible  <bruno@clisp.org>
48845
48846         Assume Solaris specific bi-arch conventions on Solaris systems.
48847         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48848         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48849         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48850         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48851         like acl_libdirstem.
48852         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48853         acl_libdirstem.
48854         * NEWS: Mention the change.
48855         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48856
48857 2008-08-31  Jim Meyering  <meyering@redhat.com>
48858
48859         * lib/strftime.h: Add comments describing the two added arguments.
48860
48861         remove duplicate #include directives
48862         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48863         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48864
48865 2008-08-31  Bruno Haible  <bruno@clisp.org>
48866
48867         New module 'sigpipe-die'.
48868         * modules/sigpipe-die: New file.
48869         * lib/sigpipe-die.h: New file.
48870         * lib/sigpipe-die.c: New file.
48871         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48872
48873 2008-08-31  Bruno Haible  <bruno@clisp.org>
48874
48875         Don't override previously installed signal handlers.
48876         * lib/fatal-signal.c (saved_sigactions): New variable.
48877         (uninstall_handlers): Reset the signal to the saved handler, not
48878         to SIG_DFL (except when ignored).
48879         (install_handlers): Save the previous handlers.
48880
48881 2008-08-30  Bruno Haible  <bruno@clisp.org>
48882
48883         * gnulib-tool (func_reset_sigpipe): New function.
48884         (func_get_automake_snippet, func_modules_transitive_closure,
48885         func_import): Invoke it before a join command that reads from stdin,
48886         to avoid "echo: write error: Broken pipe" error messages on stderr.
48887         Reported by Sam Steingold <sds@gnu.org>.
48888
48889 2008-08-30  Bruno Haible  <bruno@clisp.org>
48890
48891         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48892         Code copied from m4/open.m4.
48893         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48894         access and the filename ends in a slash. Code copied from lib/open.c.
48895         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48896         * tests/test-fopen.c (main): Check against bug with trailing slash.
48897
48898 2008-08-29  Bruno Haible  <bruno@clisp.org>
48899
48900         Avoid some "gcc -pedantic" warnings.
48901         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48902         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48903         * lib/dirent.in.h: Likewise.
48904         * lib/fcntl.in.h: Likewise.
48905         * lib/float.in.h: Likewise.
48906         * lib/iconv.in.h: Likewise.
48907         * lib/inttypes.in.h: Likewise.
48908         * lib/locale.in.h: Likewise.
48909         * lib/math.in.h: Likewise.
48910         * lib/netinet_in.in.h: Likewise.
48911         * lib/search.in.h: Likewise.
48912         * lib/signal.in.h: Likewise.
48913         * lib/stdarg.in.h: Likewise.
48914         * lib/stdint.in.h: Likewise.
48915         * lib/stdio.in.h: Likewise.
48916         * lib/stdlib.in.h: Likewise.
48917         * lib/string.in.h: Likewise.
48918         * lib/strings.in.h: Likewise.
48919         * lib/sys_select.in.h: Likewise.
48920         * lib/sys_socket.in.h: Likewise.
48921         * lib/sys_stat.in.h: Likewise.
48922         * lib/sys_time.in.h: Likewise.
48923         * lib/sysexits.in.h: Likewise.
48924         * lib/time.in.h: Likewise.
48925         * lib/unistd.in.h: Likewise.
48926         * lib/wchar.in.h: Likewise.
48927         * lib/wctype.in.h: Likewise.
48928         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48929         * modules/fchdir (Makefile.am): Likewise.
48930         * modules/fcntl (Makefile.am): Likewise.
48931         * modules/float (Makefile.am): Likewise.
48932         * modules/iconv_open (Makefile.am): Likewise.
48933         * modules/inttypes (Makefile.am): Likewise.
48934         * modules/locale (Makefile.am): Likewise.
48935         * modules/math (Makefile.am): Likewise.
48936         * modules/netinet_in (Makefile.am): Likewise.
48937         * modules/search (Makefile.am): Likewise.
48938         * modules/signal (Makefile.am): Likewise.
48939         * modules/stdarg (Makefile.am): Likewise.
48940         * modules/stdint (Makefile.am): Likewise.
48941         * modules/stdio (Makefile.am): Likewise.
48942         * modules/stdlib (Makefile.am): Likewise.
48943         * modules/string (Makefile.am): Likewise.
48944         * modules/strings (Makefile.am): Likewise.
48945         * modules/sys_select (Makefile.am): Likewise.
48946         * modules/sys_socket (Makefile.am): Likewise.
48947         * modules/sys_stat (Makefile.am): Likewise.
48948         * modules/sys_time (Makefile.am): Likewise.
48949         * modules/sysexits (Makefile.am): Likewise.
48950         * modules/time (Makefile.am): Likewise.
48951         * modules/unistd (Makefile.am): Likewise.
48952         * modules/wchar (Makefile.am): Likewise.
48953         * modules/wctype (Makefile.am): Likewise.
48954         Reported by Reuben Thomas <rrt@sc3d.org>.
48955
48956 2008-08-29  Bruno Haible  <bruno@clisp.org>
48957
48958         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48959         any more.
48960
48961 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48962
48963         * MODULES.html.sh (Misc): Add bitrotate.
48964
48965         * modules/bitrotate: New file.
48966
48967         * lib/bitrotate.h: New file.
48968
48969         * modules/bitrotate-tests: New file.
48970
48971         * tests/test-bitrotate.c: New file.
48972
48973         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48974         on the bitrotate module.
48975
48976         * lib/arctwo.c: Use new bitrotate module.
48977
48978 2008-08-29  Jim Meyering  <meyering@redhat.com>
48979
48980         bootstrap: merge changes from coreutils
48981         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48982         of copied files.  Remove a kludge, now that this is fixed.
48983         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48984         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48985         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48986
48987 2008-08-29  Bruno Haible  <bruno@clisp.org>
48988
48989         * MODULES.html.sh: Remove --cvs-urls option.
48990
48991 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48992
48993         maint.mk: adjust to file name change
48994         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48995
48996 2008-08-28  Jim Meyering  <meyering@redhat.com>
48997
48998         * modules/getndelim2 (License): Relicense to LGPLv2+.
48999         Approved by Richard Stallman for the version of 1995, and by
49000         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
49001
49002 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
49003
49004         * lib/getdelim.c (flockfile, funlockfile): Make all of them
49005         dummy if one is not available.  Do not touch them if
49006         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
49007         (getc_maybe_unlocked): New.
49008         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
49009
49010 2008-08-26  Eric Blake  <ebb9@byu.net>
49011
49012         doc/INSTALL: resync from autoconf
49013         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
49014         (INSTALL_PRELUDE): Delete; this is done more efficiently by
49015         moving...
49016         * install.texi [!autoconf]: ...here.  Resync from autoconf.
49017         * INSTALL: Regenerate.
49018         * INSTALL.ISO: New file.
49019         * INSTALL.UTF-8: Likewise.
49020
49021 2008-08-26  Jim Meyering  <meyering@redhat.com>
49022
49023         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
49024         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
49025         these definitions conditional, so that they may be overridden, too.
49026
49027 2008-08-26  Bruno Haible  <bruno@clisp.org>
49028
49029         Generate INSTALL file variants with prettier quotes.
49030         * doc/Makefile (INSTALL_PRELUDE): New macro.
49031         (INSTALL): Use it.
49032         (INSTALL.ISO, INSTALL.UTF-8): New rules.
49033
49034 2008-08-26  Bruno Haible  <bruno@clisp.org>
49035
49036         Run makeinfo in an English locale.
49037         * doc/Makefile (MAKEINFO): New variable.
49038
49039 2008-08-26  Bruno Haible  <bruno@clisp.org>
49040
49041         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49042         Suggested by Eric Blake.
49043
49044 2008-08-25  Bruno Haible  <bruno@clisp.org>
49045
49046         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49047
49048 2008-08-25  Eric Blake  <ebb9@byu.net>
49049
49050         c-stack: test that stack overflow can be caught
49051         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49052         that platform allows handling stack overflow; at least OS/2 EMX
49053         has sigaltstack, but crashes before transferring control to
49054         handler on stack overflow.
49055         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49056         check for HAVE_STACK_OVERFLOW_HANDLING.
49057         Reported by Elbert Pol.
49058
49059 2008-08-25  Bruno Haible  <bruno@clisp.org>
49060
49061         * doc/posix-functions/strftime.texi: Fix description of strftime
49062         module.
49063
49064 2008-08-24  Bruno Haible  <bruno@clisp.org>
49065
49066         * tests/uniwidth/test-uc_width2.c: New file.
49067         * tests/uniwidth/test-uc_width2.sh: New file.
49068         * modules/uniwidth/width-tests (Files): Add the new files.
49069         (TESTS): Add uniwidth/test-uc_width2.sh.
49070         (TESTS_ENVIRONMENT): New variable.
49071         (check_PROGRAMS): Add test-uc_width2.
49072         (test_uc_width2_SOURCES): New variable.
49073
49074         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49075         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49076         not 0x00AB.
49077         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49078
49079 2008-08-22  Eric Blake  <ebb9@byu.net>
49080
49081         test-lock, test-tls: mention why a test is skipped
49082         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49083         skipped.
49084         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49085
49086         count-one-bits: relax license
49087         * modules/count-one-bits (License): Relicense to LGPLv2+.
49088         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49089
49090 2008-08-22  Andreas Schwab  <schwab@suse.de>
49091
49092         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49093         Remove spurious space in assignment.
49094
49095 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49096
49097         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49098         Paul Eggert <eggert@CS.UCLA.EDU>.
49099
49100 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49101
49102         * modules/gettext: Add m4/threadlib.m4.
49103
49104 2008-08-19  Eric Blake  <ebb9@byu.net>
49105
49106         test-c-stack: fix compilation failure on FreeBSD 5.0
49107         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49108         headers before <sys/resource.h>.
49109         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49110         the bug.
49111         Reported by Nelson H. F. Beebe.
49112
49113         strverscmp: migrate from "strverscmp.h" to <string.h>
49114         * modules/string (Makefile.am): Add new hooks.
49115         * modules/strverscmp (Files): Remove strverscmp.h.
49116         (Depends-on): Add string.
49117         (configure.ac): Add indicator.
49118         (Include): Mention new header.
49119         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49120         defaults.
49121         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49122         results.
49123         * lib/strverscmp.h: Delete.
49124         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49125         * tests/test-strverscmp.c (includes): Adjust client.
49126         * lib/check-version.c (includes): Likewise.
49127         * NEWS: Document the change.
49128
49129         strverscmp: add unit test
49130         * modules/strverscmp-tests: New file.
49131         * tests/test-strverscmp.c: Likewise.
49132
49133 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49134
49135         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49136         regarding Windows crypto stuff, from Mono.
49137
49138 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49139
49140         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49141         if present, for intel RND.  Return error on failures.
49142
49143 2008-08-18  Ben Pfaff  <blp@gnu.org>
49144
49145         gitlog-to-changelog: give better diagnostic for failed pipe-open
49146         * build-aux/gitlog-to-changelog: Improve error message: suggest
49147         that the version of Git may be too old.
49148
49149 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49150
49151         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49152         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49153
49154 2008-08-18  Bruno Haible  <bruno@clisp.org>
49155
49156         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49157         pthread_in_use().
49158
49159 2008-08-18  Bruno Haible  <bruno@clisp.org>
49160
49161         * lib/glthread/threadlib.c: Include <pthread.h>.
49162
49163 2008-08-18  Bruno Haible  <bruno@clisp.org>
49164
49165         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49166         glthread_recursive_lock_* macros.
49167         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49168         Fix syntax error.
49169
49170 2008-08-18  Bruno Haible  <bruno@clisp.org>
49171
49172         * lib/glthread/thread.c: Avoid forcing a context switch right after
49173         thread creation.
49174
49175 2008-08-17  Bruno Haible  <bruno@clisp.org>
49176
49177         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49178         * lib/glthread/thread.h: Provide Win32 specific implementation.
49179         * modules/thread (Files): Add lib/glthread/thread.c.
49180         (Depends-on): Add lock.
49181         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49182
49183 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49184
49185         New module 'yield'.
49186         * modules/yield: New file.
49187         * lib/glthread/yield.h: New file.
49188         * m4/yield.m4: New file.
49189         * MODULES.html.sh (Multithreading): Add yield.
49190
49191 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49192
49193         New module 'thread'.
49194         * modules/thread: New file.
49195         * lib/glthread/thread.h: New file.
49196         * m4/thread.m4: New file.
49197         * MODULES.html.sh (Multithreading): Add thread.
49198
49199 2008-08-17  Bruno Haible  <bruno@clisp.org>
49200
49201         * lib/glthread/lock.h: Include <stdlib.h> always.
49202         * lib/glthread/tls.h: Likewise.
49203         * lib/glthread/cond.h: Likewise.
49204
49205 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49206
49207         New module 'cond'.
49208         * modules/cond: New file.
49209         * lib/glthread/cond.h: New file.
49210         * lib/glthread/cond.c: New file.
49211         * m4/cond.m4: New file.
49212         * MODULES.html.sh (Multithreading): Add cond.
49213
49214 2008-08-16  Eric Blake  <ebb9@byu.net>
49215
49216         c-stack: fix regression on Irix 5.3 from 2008-06-21
49217         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49218         sa_sigaction...
49219         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49220         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49221         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49222         * modules/signal (Makefile.am): Use the value.
49223         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49224         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49225         * doc/posix-headers/signal.texi (signal.h): Document this
49226         portability issue.
49227         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49228         Reported by Tom G. Christensen.
49229
49230 2008-08-17  Bruno Haible  <bruno@clisp.org>
49231
49232         New module 'threadlib'.
49233         * modules/threadlib: New file.
49234         * lib/glthread/threadlib.c: New file, extracted from
49235         lib/glthread/lock.c.
49236         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49237         functions.
49238         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49239         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49240         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49241         macros.
49242         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49243         (gl_DISABLE_THREADS): Remove macro.
49244         * modules/lock (Files): Remove build-aux/config.rpath.
49245         (Depends-on): Remove havelib. Add threadlib.
49246         (configure.ac-early): Remove section.
49247         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49248         * modules/tls (Depends-on): Remove lock. Add threadlib.
49249         (Link): New section, copied from threadlib.
49250         * MODULES.html.sh (Multithreading): Add threadlib.
49251
49252 2008-08-14  Bruno Haible  <bruno@clisp.org>
49253
49254         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49255         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49256         glthread_rwlock_unlock, glthread_rwlock_destroy,
49257         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49258         glthread_recursive_lock_destroy): Define as macros always.
49259         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49260         glthread_lock_lock.
49261         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49262         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49263         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49264         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49265         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49266         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49267         (glthread_recursive_lock_lock_func): Renamed from
49268         glthread_recursive_lock_lock.
49269         (glthread_recursive_lock_unlock_func): Renamed from
49270         glthread_recursive_lock_unlock.
49271         (glthread_recursive_lock_destroy_func): Renamed from
49272         glthread_recursive_lock_destroy.
49273
49274 2008-08-14  Bruno Haible  <bruno@clisp.org>
49275
49276         * lib/glthread/lock.h: Renamed from lib/lock.h.
49277         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49278         * lib/glthread/tls.h: Renamed from lib/tls.h.
49279         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49280         * lib/fstrcmp.c: Update includes.
49281         * lib/strsignal.c: Update includes.
49282         * modules/lock (Files, Makefile.am): Update.
49283         (Include): Change to "glthread/lock.h".
49284         * modules/tls (Files, Makefile.am): Update.
49285         (Include): Change to "glthread/tls.h".
49286         * tests/test-lock.c: Update includes.
49287         * tests/test-tls.c: Update includes.
49288         * NEWS: Mention the renamed header files.
49289
49290 2008-08-11  Jim Meyering  <meyering@redhat.com>
49291
49292         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49293
49294 2008-08-11  Eric Blake  <ebb9@byu.net>
49295
49296         test-c-stack: avoid C99-ism
49297         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49298         before statement.
49299         Reported by Alain Guibert.
49300
49301 2008-08-10  Jim Meyering  <meyering@redhat.com>
49302
49303         ensure that return value of uinttostr et al are not ignored
49304         * lib/inttostr.h (__GNUC_PREREQ): Define.
49305         (__attribute_warn_unused_result__): Define.
49306         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49307
49308 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49309
49310         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49311         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49312
49313 2008-08-07  Jim Meyering  <meyering@redhat.com>
49314
49315         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49316
49317         * modules/mkstemp (License): Relicense under LGPLv2+.
49318         * modules/tempname (License): Likewise.
49319
49320 2008-08-06  Bruno Haible  <bruno@clisp.org>
49321
49322         * lib/poll.c (poll): Further micro-optimization.
49323
49324 2008-08-06  Jim Meyering  <meyering@redhat.com>
49325
49326         inet_pton.c: use locale-independent tolower
49327         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49328         (inet_pton6): Use c_tolower rather than tolower.
49329         * modules/inet_pton (Depends-on): Add c-ctype.
49330
49331 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49332
49333         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49334         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49335
49336 2008-08-06  Jim Meyering  <meyering@redhat.com>
49337
49338         * modules/inet_pton (License): Relicense under LGPLv2+.
49339
49340 2008-08-03  Bruno Haible  <bruno@clisp.org>
49341
49342         Additional non-aborting API for lock and tls.
49343         * lib/lock.h: Include <errno.h>.
49344         (glthread_lock_init): New macro/function.
49345         (gl_lock_init): Define as wrapper around glthread_lock_init.
49346         (glthread_lock_lock): New macro/function.
49347         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49348         (glthread_lock_unlock): New macro/function.
49349         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49350         (glthread_lock_destroy): New macro/function.
49351         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49352         (glthread_rwlock_init): New macro/function.
49353         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49354         (glthread_rwlock_rdlock): New macro/function.
49355         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49356         (glthread_rwlock_wrlock): New macro/function.
49357         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49358         (glthread_rwlock_unlock): New macro/function.
49359         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49360         (glthread_rwlock_destroy): New macro/function.
49361         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49362         (glthread_recursive_lock_init): New macro/function.
49363         (gl_recursive_lock_init): Define as wrapper around
49364         glthread_recursive_lock_init.
49365         (glthread_recursive_lock_lock): New macro/function.
49366         (gl_recursive_lock_lock): Define as wrapper around
49367         glthread_recursive_lock_lock.
49368         (glthread_recursive_lock_unlock): New macro/function.
49369         (gl_recursive_lock_unlock): Define as wrapper around
49370         glthread_recursive_lock_unlock.
49371         (glthread_recursive_lock_destroy): New macro/function.
49372         (gl_recursive_lock_destroy): Define as wrapper around
49373         glthread_recursive_lock_destroy.
49374         (glthread_once): New macro/function.
49375         (gl_once): Define as wrapper around glthread_once.
49376         Update function declarations.
49377         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49378         glthread_rwlock_init. Return error code.
49379         (glthread_rwlock_rdlock_multithreaded): Renamed from
49380         glthread_rwlock_rdlock. Return error code.
49381         (glthread_rwlock_wrlock_multithreaded): Renamed from
49382         glthread_rwlock_wrlock. Return error code.
49383         (glthread_rwlock_unlock_multithreaded): Renamed from
49384         glthread_rwlock_unlock. Return error code.
49385         (glthread_rwlock_destroy_multithreaded): Renamed from
49386         glthread_rwlock_destroy. Return error code.
49387         (glthread_recursive_lock_init_multithreaded): Renamed from
49388         glthread_recursive_lock_init. Return error code.
49389         (glthread_recursive_lock_lock_multithreaded): Renamed from
49390         glthread_recursive_lock_lock. Return error code.
49391         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49392         glthread_recursive_lock_unlock. Return error code.
49393         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49394         glthread_recursive_lock_destroy. Return error code.
49395         (glthread_once_call): Make static.
49396         (glthread_once_multithreaded): Renamed from glthread_once.
49397         * lib/tls.h: Include <errno.h>.
49398         (glthread_tls_key_init): New macro/function.
49399         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49400         (glthread_tls_set): New macro/function.
49401         (gl_tls_set): Define as wrapper around glthread_tls_set.
49402         (glthread_tls_key_destroy): New macro/function.
49403         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49404         Update function declarations.
49405         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49406         glthread_tls_get.
49407         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49408
49409 2008-08-04  Eric Blake  <ebb9@byu.net>
49410
49411         gnumakefile: use space, not TAB, outside of targets
49412         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49413
49414 2008-08-02  Jim Meyering  <meyering@redhat.com>
49415
49416         getdate.y: avoid locale-dependent date parsing failure
49417         In Turkish locales, getdate would fail to recognize keywords
49418         containing a lowercase "i".  The solution is not to rely on
49419         locale-sensitive case-conversion.
49420         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49421         (lookup_word): Use c_toupper in place of toupper.
49422         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49423         Reported by Vefa Bicakci <bicave@superonline.com> in
49424         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49425         * modules/getdate (Depends-on): Add c-ctype.
49426
49427 2008-08-02  Bruno Haible  <bruno@clisp.org>
49428
49429         * gnulib-tool (func_import): When updating or creating a .gitignore
49430         file, prepend each added line with a slash, and ignore leading slashes
49431         from the existing lines.
49432         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49433
49434 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49435
49436         Portability fix for GNU make 3.79.1.
49437         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49438         versions do not understand.
49439
49440 2008-08-01  Bruno Haible  <bruno@clisp.org>
49441
49442         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49443         * tests/test-isnanf.h (zero): New variable.
49444         (main): Avoid literal -0.0f.
49445         * tests/test-isnand.h (zero): New variable.
49446         (main): Avoid literal -0.0.
49447         * tests/test-isnanl.h (zero): New variable.
49448         (main): Avoid literal -0.0L.
49449         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49450         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49451         -0.0, -0.0L.
49452         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49453         (test_signbitd): Avoid literal -0.0.
49454         (test_signbitl): Avoid literal -0.0L.
49455         * tests/test-ceilf1.c (zero): New variable.
49456         (main): Avoid literal -0.0f.
49457         * tests/test-ceill.c (zero): New variable.
49458         (main): Avoid literal -0.0L.
49459         * tests/test-floorf1.c (zero): New variable.
49460         (main): Avoid literal -0.0f.
49461         * tests/test-floorl.c (zero): New variable.
49462         (main): Avoid literal -0.0L.
49463         * tests/test-roundf1.c (zero): New variable.
49464         (main): Avoid literal -0.0f.
49465         * tests/test-round1.c (zero): New variable.
49466         (main): Avoid literal -0.0.
49467         * tests/test-roundl.c (zero): New variable.
49468         (main): Avoid literal -0.0L.
49469         * tests/test-truncf1.c (zero): New variable.
49470         (main): Avoid literal -0.0f.
49471         * tests/test-trunc1.c (zero): New variable.
49472         (main): Avoid literal -0.0.
49473         * tests/test-truncl.c (zero): New variable.
49474         (main): Avoid literal -0.0L.
49475         * tests/test-frexp.c (zero): New variable.
49476         (main): Avoid literal -0.0.
49477         * tests/test-frexpl.c (zero): New variable.
49478         (main): Avoid literal -0.0L.
49479         * tests/test-ldexpl.c (zero): New variable.
49480         (main): Avoid literal -0.0L.
49481         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49482         (zerod, zerol): New variables.
49483         (test_function): Avoid literals -0.0, -0.0L.
49484         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49485         (zerod, zerol): New variables.
49486         (test_function): Avoid literals -0.0, -0.0L.
49487         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49488         (zerod, zerol): New variables.
49489         (test_function): Avoid literals -0.0, -0.0L.
49490         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49491         (zerod, zerol): New variables.
49492         (test_function): Avoid literals -0.0, -0.0L.
49493         * tests/test-strtod.c (zero): New variable.
49494         (main): Avoid literal -0.0.
49495         Reported by Jonathan C. Patschke <jp@centtech.com>.
49496
49497 2008-07-31  Jim Meyering  <meyering@redhat.com>
49498
49499         sha256.h: correct definition of SHA224_DIGEST_SIZE
49500         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49501         Reported by Paulie Pena IV <paulie4@gmail.com>.
49502         Define as 224 / 8, rather than as a literal.
49503         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49504         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49505         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49506
49507 2008-07-31  Bruno Haible  <bruno@clisp.org>
49508
49509         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49510         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49511         Reported by Jonathan Patschke <jp@centtech.com>.
49512
49513 2008-07-31  Bruno Haible  <bruno@clisp.org>
49514
49515         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49516         Reported by Paolo Bonzini <bonzini@gnu.org>.
49517
49518 2008-07-30  Eric Blake  <ebb9@byu.net>
49519
49520         test-strtod: allow compilation without -lm
49521         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49522         Reported by Dennis Clarke <blastwave@gmail.com>.
49523
49524 2008-07-28  Jim Meyering  <meyering@redhat.com>
49525
49526         bootstrap: work also when there are no .po files in po/
49527         * build-aux/bootstrap (update_po_files): Complete the change
49528         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49529
49530 2008-07-27  Jim Meyering  <meyering@redhat.com>
49531
49532         * users.txt: Add zile.
49533
49534 2008-07-26  Ben Pfaff  <blp@gnu.org>
49535
49536         Add missing dependencies on new m4/exponent[fdl].m4 files.
49537         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49538         * modules/isnand-nolibm: Add m4/exponentd.m4.
49539         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49540         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49541         m4/isnan[fdl].m4, because the macros actually used moved.
49542         Reported by Jim Meyering.
49543
49544 2008-07-14  Ben Pfaff  <blp@gnu.org>
49545
49546         Add isinf module.
49547         * lib/isinf.c: New file.
49548         * lib/math.in.h: Define isinf macro if we have decided to replace
49549         it.
49550         * m4/isinf.m4: New file.
49551         * m4/math_h.m4: Initialize and substitute variables for isinf
49552         module.
49553         * modules/isinf: New file.
49554         * modules/isinf-tests: New file.
49555         * modules/math: Add substitutions for new module.
49556         * tests/test-isinf.c: New file.
49557         * doc/posix-functions/isinf.texi: Mention new module.
49558         * MODULES.html.sh: Mention new module.
49559
49560 2008-07-14  Ben Pfaff  <blp@gnu.org>
49561
49562         Factor out some macros for use by additional modules.
49563         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49564         exponentf.m4.
49565         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49566         exponentd.m4.
49567         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49568         file exponentl.m4.
49569         * m4/exponentf.m4: New file.
49570         * m4/exponentd.m4: New file.
49571         * m4/exponentl.m4: New file.
49572         * modules/isnanf: Use new file m4/exponentf.m4.
49573         * modules/isnand: Use new file m4/exponentd.m4.
49574         * modules/isnanl: Use new file m4/exponentl.m4.
49575
49576 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49577
49578         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49579         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49580         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49581         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49582
49583         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49584         readlink on platforms without PATH_MAX.
49585
49586 2008-07-21  Eric Blake  <ebb9@byu.net>
49587
49588         Warn, not fail, on stale version.
49589         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49590
49591         Don't allow installation with stale devel version number.
49592         * top/GNUmakefile (_is-install-target): New macro.
49593         (_curr-ver): Forbid installation with stale version number.
49594
49595 2008-07-20  Bruno Haible  <bruno@clisp.org>
49596
49597         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49598         TESTS_ENVIRONMENT.
49599         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49600
49601 2008-07-20  Bruno Haible  <bruno@clisp.org>
49602
49603         * lib/c-stack.h (c_stack_action): Add documentation.
49604         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49605
49606 2008-07-20  Bruno Haible  <bruno@clisp.org>
49607
49608         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49609         * modules/readlink (License): Likewise.
49610
49611 2008-07-17  Eric Blake  <ebb9@byu.net>
49612
49613         * modules/c-stack (Link): Fix typo.
49614
49615         Make c-stack use libsigsegv, when available.
49616         * modules/c-stack (Depends-on): Add libsigsegv.
49617         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49618         needed.
49619         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49620         (segv_handler, overflow_handler, c_stack_action)
49621         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49622         implementation when libsigsegv is available, but only when using
49623         the library is necessary.
49624         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49625         comment, explaining why XSI check fails on Linux.
49626         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49627         * tests/test-c-stack2.sh: Tweak skip message.
49628         * NEWS: Document new link-time requirements.
49629
49630 2008-07-16  Eric Blake  <ebb9@byu.net>
49631
49632         c-stack: Expose false positives when not using libsigsegv.
49633         * modules/c-stack-tests (Files): Expand test.
49634         * tests/test-c-stack.c (main): Add means to conditionally trigger
49635         non-overflow SIGSEGV.
49636         * tests/test-c-stack2.sh: New file.
49637
49638 2008-07-14  Bruno Haible  <bruno@clisp.org>
49639
49640         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49641         Reported by Eric Blake.
49642
49643 2008-07-14  Sam Steingold  <sds@gnu.org>
49644             Bruno Haible  <bruno@clisp.org>
49645
49646         New module libsigsegv.
49647         * modules/libsigsegv: New file.
49648         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49649         modifications.
49650         * MODULES.html.sh (Signal handling): New section.
49651
49652 2008-07-14  Bruno Haible  <bruno@clisp.org>
49653
49654         * modules/unictype/ctype-* (Description): Add the word "function".
49655         Improves the resulting doc in MODULES.html.
49656
49657 2008-07-12  Ben Pfaff  <blp@gnu.org>
49658
49659         Add longlong module.
49660         * modules/longlong: New file.
49661
49662 2008-07-12  Bruno Haible  <bruno@clisp.org>
49663
49664         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49665         to empty.
49666
49667 2008-07-10  Ben Pfaff  <blp@gnu.org>
49668
49669         Add isnan module.
49670         * doc/posix-functions/isnan.texi: Mention new module.
49671         * lib/math.in.h: Define isnan macro if we have decided to replace
49672         it.
49673         * m4/isnan.m4: New file.
49674         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49675         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49676         also.
49677         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49678         redundancy.
49679         * m4/math_h.m4: Initialize and substitute variables for isnan
49680         module.
49681         * modules/isnan: New file.
49682         * modules/isnan-tests: New file.
49683         * modules/math: Add substitutions for new module.
49684         * tests/test-isnan.c: New file.
49685         * MODULES.html.sh: Mention new module.
49686
49687 2008-07-10  Ben Pfaff  <blp@gnu.org>
49688
49689         Add isnanf module.
49690         * lib/isnanf.m4: New file.
49691         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49692         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49693         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49694         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49695         * modules/isnanf: New file.
49696         * modules/isnanf-tests: New file.
49697         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49698         files.
49699         * tests/test-isnanf-nolibm.c: factored most of its contents into
49700         new file tests/test-isnanf.h.
49701         * tests/test-isnanf.h: New file.
49702         * tests/test-isnanf.c: New file.
49703         * MODULES.html.sh: Mention new module.
49704         * doc/glibc-functions/isnanf.texi: Mention new module.
49705
49706 2008-07-10  Ben Pfaff  <blp@gnu.org>
49707
49708         Add isnand module.
49709         * lib/isnand.h: New file.
49710         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49711         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49712         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49713         functionality also.
49714         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49715         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49716         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49717         * modules/isnand: New file.
49718         * modules/isnand-tests: New file.
49719         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49720         files.
49721         * tests/test-isnand-nolibm.c: factored most of its contents into
49722         new file tests/test-isnand.h.
49723         * tests/test-isnand.h: New file.
49724         * tests/test-isnand.c: New file.
49725         * MODULES.html.sh: Mention new module.
49726
49727 2008-07-10  Ben Pfaff  <blp@gnu.org>
49728
49729         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49730         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49731         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49732         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49733         * modules/isnanf-nolibm: Update references to renamed files.
49734         * modules/isnand-nolibm: Likewise.
49735         * modules/isnanf-nolibm-tests: Likewise.
49736         * modules/isnand-nolibm-tests: Likewise.
49737         * lib/frexp.c: Likewise.
49738         * lib/isfinite.c: Likewise.
49739         * lib/signbitd.c: Likewise.
49740         * lib/signbitf.c: Likewise.
49741         * lib/vasnprintf.c: Likewise.
49742         * tests/test-ceilf1.c: Likewise.
49743         * tests/test-ceilf2.c: Likewise.
49744         * tests/test-floorf1.c: Likewise.
49745         * tests/test-floorf2.c: Likewise.
49746         * tests/test-frexp.c: Likewise.
49747         * tests/test-round1.c: Likewise.
49748         * tests/test-round2.c: Likewise.
49749         * tests/test-roundf1.c: Likewise.
49750         * tests/test-strtod.c: Likewise.
49751         * tests/test-trunc1.c: Likewise.
49752         * tests/test-trunc2.c: Likewise.
49753         * tests/test-truncf1.c: Likewise.
49754         * tests/test-truncf2.c: Likewise.
49755         * NEWS: Mention the renamed header files.
49756
49757 2008-07-11  Jim Meyering  <meyering@redhat.com>
49758
49759         vc-list-files: make the last-resort awk code more portable
49760         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49761         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49762         does not support it.
49763
49764 2008-07-10  Eric Blake  <ebb9@byu.net>
49765
49766         Work with tar's bootstrap.
49767         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49768         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49769         an m4 comment.
49770
49771 2008-07-09  Jim Meyering  <meyering@redhat.com>
49772
49773         posix-shell.m4: fix typo that made this test malfunction
49774         * m4/posix-shell.m4: Remove capitalization in variable name.
49775
49776 2008-07-08  Bruno Haible  <bruno@clisp.org>
49777
49778         * m4/onceonly.m4: Update comments.
49779         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49780
49781 2008-07-04  Jim Meyering  <meyering@redhat.com>
49782
49783         * users.txt: Add vc-dwim.
49784         (bison, coreutils): Use the gitweb URL.
49785
49786 2008-07-03  Jim Meyering  <meyering@redhat.com>
49787
49788         * users.txt: Add libffcall.  From Sam Steingold.
49789
49790 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
49791
49792         getdate.y: do not ignore TZ with relative day, month or year offset
49793         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49794         relative-date-handling, since otherwise, the latter would clobber the
49795         sole output (an updated Start value) of the tz-handling block.
49796         * tests/test-getdate.c: Tests for the fix
49797
49798 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49799
49800         Recognize 'foo_LIBRARIES += libgnu.a'.
49801         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49802         makefile snippet has already specified an installation location,
49803         also using '+='.
49804
49805 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
49806
49807         getdate.y: factor out common actions
49808         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49809         Use them in place of open-coded actions.
49810
49811 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49812
49813         Add self-test for getdate module.
49814         * modules/getdate-tests: New file.
49815         * tests/test-getdate.c: New file.
49816
49817 2008-06-29  Bruno Haible  <bruno@clisp.org>
49818
49819         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49820         .gitignore.
49821         Reported by Sylvain Beucler <beuc@beuc.net>.
49822
49823 2008-06-29  Bruno Haible  <bruno@clisp.org>
49824
49825         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49826         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49827
49828 2008-06-29  Bruno Haible  <bruno@clisp.org>
49829
49830         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49831         EXTRA_DIST.
49832         Reported by Sylvain Beucler <beuc@beuc.net>.
49833
49834 2008-06-26  Jim Meyering  <meyering@redhat.com>
49835
49836         make several modules depend on the "open" module
49837         This provides slightly increased consistency when opening-for-write
49838         the name of a non-directory spelled with a trailing slash.
49839         * modules/chdir-safer: Likewise.
49840         * modules/chown: Likewise.
49841         * modules/clean-temp: Likewise.
49842         * modules/copy-file: Likewise.
49843         * modules/fchdir: Likewise.
49844         * modules/fcntl-safer: Likewise.
49845         * modules/pipe: Likewise.
49846         * modules/utime: Likewise.
49847         Prompted by Eric Blake and Bruno Haible.
49848
49849 2008-06-24  Andreas Schwab  <schwab@suse.de>
49850
49851         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49852         literals can be used as initializers for global variables.
49853
49854 2008-06-23  Eric Blake  <ebb9@byu.net>
49855
49856         Make gnulib-cache.m4 easier to diff.
49857         * gnulib-tool (func_import): Allow newlines when reading cached
49858         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49859
49860 2008-06-23  Bruno Haible  <bruno@clisp.org>
49861
49862         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49863         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49864         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49865         m4/signalblocking.m4.
49866         (gl_PREREQ_SIGACTION): Don't invoke it.
49867         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49868         gl_PREREQ_SIG_HANDLER_H.
49869         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49870         Don't check for sigaction here.
49871
49872 2008-06-23  Bruno Haible  <bruno@clisp.org>
49873
49874         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49875         (install_handlers): Don't set the SA_RESETHAND flag.
49876
49877 2008-06-23  Bruno Haible  <bruno@clisp.org>
49878
49879         * m4/sigaction.m4: Comment fixes.
49880         * lib/signal.in.h: Likewise.
49881
49882 2008-06-23  Eric Blake  <ebb9@byu.net>
49883
49884         Fix typo.
49885         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49886
49887         Avoid SA_ namespace.
49888         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49889         Reported by Ralf Wildenhues.
49890
49891         Avoid test failure due to SA_RESTORER.
49892         * tests/test-sigaction.c (SA_MASK): New macro.
49893         (main): Avoid failing due to extension flags being set.
49894         Reported by Jim Meyering.
49895
49896         Revert use of sig-handler.h in sigprocmask.c.
49897         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49898         it requires the existence of struct sigaction.
49899         * lib/sigprocmask.c (handler_t): Restore typedef.
49900         (rpl_signal, old_handlers): Use local type.
49901
49902 2008-06-22  Bruno Haible  <bruno@clisp.org>
49903
49904         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49905         conditionally.
49906         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49907
49908 2008-06-22  Bruno Haible  <bruno@clisp.org>
49909
49910         * doc/posix-functions/siginterrupt.texi: Move note.
49911
49912         * lib/signal.in.h (SA_RESTART): New macro.
49913         * lib/sigaction.c: Update comment.
49914
49915         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49916
49917         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49918         (gl_PREREQ_SIGPROCMASK): Invoke it.
49919         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49920
49921         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49922
49923         * lib/sigprocmask.c: Update a comment.
49924
49925 2008-06-21  Eric Blake  <ebb9@byu.net>
49926
49927         Use sigaction module rather than signal().
49928         * modules/c-stack (Depends-on): Add sigaction.
49929         * modules/fatal-signal (Depends-on): Likewise.
49930         * modules/nanosleep (Depends-on): Likewise.
49931         * modules/sigprocmask (Files): Add sig-handler.h.
49932         * modules/sigaction (Files): Likewise.
49933         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49934         Eggert.
49935         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49936         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49937         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49938         (init_fatal_signals): Likewise.
49939         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49940         (siginterrupt): Delete fallback.
49941         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49942         instead.
49943         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49944         siginterrupt.
49945
49946         New module sigaction, for mingw.
49947         * modules/sigaction: New module...
49948         * modules/sigaction-tests: ...and its test.
49949         * m4/sigaction.m4: New file.
49950         * lib/sigaction.c: Likewise.
49951         * tests/test-sigaction.c: Likewise.
49952         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49953         * modules/signal (Makefile.am): Likewise.
49954         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49955         needed.
49956         * doc/posix-headers/signal.texi (signal.h): Mention provided
49957         types.
49958         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49959         that sigaction is preferable.
49960         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49961         module.
49962         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49963         sigaction.
49964
49965         Improve robustness of sigprocmask by overriding signal.
49966         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49967         is in use.
49968         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49969         (SIGKILL, SIGSTOP): Provide fallbacks.
49970         (rpl_signal): Implement.
49971         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49972         signal can be called inside handlers.
49973
49974         Fix nanosleep module on mingw.
49975         * modules/nanosleep (Depends-on): Add sys_select.
49976         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49977
49978         Fix licensing of sigprocmask.
49979         * modules/raise (License): Relicense as LGPL.
49980
49981 2008-06-21  Bruno Haible  <bruno@clisp.org>
49982
49983         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49984         result if it contains question marks.
49985         Reported by Michael Geng <linux@michaelgeng.de>.
49986
49987 2008-06-19  Bruno Haible  <bruno@clisp.org>
49988
49989         Fix CVS-ism.
49990         * doc/gnulib.texi: Include updated-stamp.texi.
49991         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49992         (updated-stamp.texi): New rule.
49993         (gnulib.info): Depend on it.
49994         * doc/.gitignore: Add updated-stamp.texi.
49995         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49996
49997 2008-06-19  Bruno Haible  <bruno@clisp.org>
49998
49999         * doc/Makefile (gnulib.info): Update and simplify dependencies.
50000         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50001
50002 2008-06-19  Eric Blake  <ebb9@byu.net>
50003
50004         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
50005         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
50006         Reported by Stepan Kasal.
50007
50008 2008-06-18  Bruno Haible  <bruno@clisp.org>
50009
50010         * lib/fatal-signal.c (init_fatal_signals): Add comment.
50011         Reported by Eric Blake.
50012
50013 2008-06-18  Eric Blake  <ebb9@byu.net>
50014
50015         Work around cygwin 1.5.25 strsignal bug.
50016         * tests/test-strsignal.c: Allow for const char *.
50017         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
50018
50019 2008-06-18  Simon Josefsson  <simon@josefsson.org>
50020
50021         * users.txt: Update URL to article and add author/date
50022         information.
50023
50024 2008-06-17  Bruno Haible  <bruno@clisp.org>
50025
50026         New macro gl_DISABLE_THREADS.
50027         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
50028         if the user did not pass --enable-threads or --disable-threads option.
50029         (gl_DISABLE_THREADS): New macro.
50030         Reported by Eric Blake <ebb9@byu.net>.
50031
50032 2008-06-17  Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
50035         when the macro ignores it.
50036         Based on a patch by Eric Blake <ebb9@byu.net>.
50037
50038 2008-06-17  Bruno Haible  <bruno@clisp.org>
50039
50040         * modules/tls (License): Change to LGPLv2+.
50041         Reported by Eric Blake.
50042
50043 2008-06-17  Eric Blake  <ebb9@byu.net>
50044
50045         Simplify c-stack prerequisites.
50046         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50047         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50048         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50049         check.
50050         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50051         <sys/resource.h>.
50052
50053         Move c-stack test into testsuite.
50054         * modules/c-stack-tests: New file.
50055         * lib/c-stack.c [DEBUG]: Move test program...
50056         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50057         fail test if sigaltstack is lacking.
50058         * tests/test-c-stack.sh: New driver file.
50059
50060 2008-06-16  Eric Blake  <ebb9@byu.net>
50061
50062         Use raise module consistently.
50063         * modules/fatal-signal (Depends-on): Add raise.
50064         * modules/sigprocmask (Depends-on): Likewise.
50065         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50066         * lib/sigprocmask.c (sigprocmask): Likewise.
50067         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50068         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50069
50070         Fix compliance bug in sigpending.
50071         * lib/sigprocmask.c (sigpending): Return pending array via
50072         parameter, not return value.
50073
50074 2008-06-14  Eric Blake  <ebb9@byu.net>
50075
50076         Improve obstack-printf test code.
50077         * tests/test-obstack-printf.c (test_function): Fix comment, and
50078         simplify usage of obstack_* in macros.  Add a test for coverage.
50079         Reported by Bruno Haible.
50080
50081 2008-06-14  Bruno Haible  <bruno@clisp.org>
50082
50083         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50084         array size as a constant, not as a const variable.
50085         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50086         AC_USE_SYSTEM_EXTENSIONS.
50087         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50088         Test whether the obstack_printf function actually exists.
50089         * modules/obstack-printf (Depends-on): Add extensions.
50090         (Include): Remove obstack.h.
50091         * modules/obstack-printf-posix (Depends-on): Add extensions.
50092         (Include): Remove obstack.h.
50093
50094 2008-06-13  Eric Blake  <ebb9@byu.net>
50095
50096         Add obstack-printf and obstack-printf-posix modules.
50097         * modules/obstack-printf: New file.
50098         * modules/obstack-printf-posix: Likewise.
50099         * MODULES.html.sh (Misc): Mention them.
50100         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50101         Likewise.
50102         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50103         Likewise.
50104         * modules/stdio (Makefile.am): Accomodate new modules.
50105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50106         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50107         Declare.
50108         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50109         functions.
50110         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50111         (gl_REPLACE_OBSTACK_PRINTF): New macros
50112         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50113         * tests/test-obstack-printf.c: New file.
50114         * modules/obstack-printf-tests: Likewise.
50115         * modules/obstack-printf-posix-tests: Likewise.
50116
50117 2008-06-11  Bruno Haible  <bruno@clisp.org>
50118
50119         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50120         * lib/open.c: Include errno.h.
50121         (open): Fail when attempting to write to a file that has a trailing
50122         slash.
50123         * tests/test-open.c (main): Test against trailing slash bug.
50124         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50125
50126 2008-06-10  Bruno Haible  <bruno@clisp.org>
50127
50128         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50129         for $? to work inside the trap command, with various /bin/sh-s.
50130         * tests/test-vc-list-files-cvs.sh: Likewise.
50131
50132 2008-06-10  Bruno Haible  <bruno@clisp.org>
50133
50134         * lib/acl-internal.h: Don't include gettext.h here.
50135         * lib/set-mode-acl.c: Include gettext.h here.
50136         * lib/copy-acl.c: Likewise.
50137
50138 2008-06-10  Bruno Haible  <bruno@clisp.org>
50139
50140         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50141         * lib/wait-process.c (wait_subprocess): Likewise.
50142         * lib/execute.h (execute): Add termsigp argument.
50143         * lib/execute.c (execute): Likewise.
50144         * lib/csharpcomp.c (compile_csharp_using_pnet,
50145         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50146         * lib/csharpexec.c (execute_csharp_using_pnet,
50147         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50148         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50149         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50150         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50151         is_jikes_present): Update.
50152         * lib/javaexec.c (execute_java_class): Update.
50153         * lib/javaversion.c (execute_and_read_line): Update.
50154         * NEWS: Document the changes.
50155         Reported by Eric Blake.
50156
50157 2008-06-10  Eric Blake  <ebb9@byu.net>
50158
50159         Add missing include.
50160         * tests/test-strstr.c (includes): Add <signal.h>.
50161         * tests/test-strcasestr.c (includes): Likewise.
50162         * tests/test-memmem.c (includes): Likewise.
50163
50164 2008-06-10  Bruno Haible  <bruno@clisp.org>
50165
50166         * lib/wait-process.c (wait_subprocess): Add an assertion.
50167
50168 2008-06-10  Bruno Haible  <bruno@clisp.org>
50169
50170         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50171
50172 2008-06-10  Bruno Haible  <bruno@clisp.org>
50173
50174         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50175         using alarm().
50176         * tests/test-strcasestr.c (main): Likewise.
50177         * tests/test-strstr.c (main): Likewise.
50178
50179 2008-06-09  Bruno Haible  <bruno@clisp.org>
50180
50181         Work around the Solaris 10 ACE ACLs ABI change.
50182         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50183         declare if ACL_NO_TRIVIAL is present.
50184         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50185         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50186         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50187         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50188         define if ACL_NO_TRIVIAL is present.
50189         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50190         and use the current ABI.
50191         (file_has_acl): Use same #if condition as elsewhere.
50192         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50193         in use, and use the current ABI.
50194         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50195         Reported by Jim Meyering.
50196
50197 2008-06-09  Eric Blake  <ebb9@byu.net>
50198
50199         Work around environments that (stupidly) ignore SIGALRM.
50200         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50201         before using alarm().
50202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50203         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50204         Reported by Ian Beckwith <ianb@erislabs.net>.
50205
50206         Produce autobuild blurb earlier in log.
50207         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50208
50209 2008-06-09  Jim Meyering  <meyering@redhat.com>
50210         and OndÅ™ej Vašík  <ovasik@redhat.com>
50211
50212         utimens.c: correct kernel bug work-around
50213         OndÅ™ej Vašík found that the invalid return value of 280 indicates
50214         failure, not success, and the kernel bug we're trying to work
50215         around affects not just the utimensat call, but also the fallback
50216         futimens call.
50217         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50218         not success.
50219         [HAVE_FUTIMENS]: Use the same work-around, here.
50220
50221 2008-06-09  Jim Meyering  <meyering@redhat.com>
50222
50223         add more guards around definition of ACE_-related code
50224         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50225         ALLOW and ACE_OWNER are also defined.
50226
50227 2008-06-08  Bruno Haible  <bruno@clisp.org>
50228
50229         * lib/acl-internal.h: Add me as co-author.
50230         * lib/file-has-acl.c: Likewise.
50231         * lib/set-mode-acl.c: Likewise.
50232         * lib/copy-acl.c: Likewise.
50233
50234 2008-06-08  Bruno Haible  <bruno@clisp.org>
50235
50236         Add support for AIX ACLs.
50237         * lib/acl-internal.h (acl_nontrivial): New declaration.
50238         * lib/file-has-acl.c (acl_nontrivial): New function.
50239         (file_has_acl): Add implementation using AIX 4 ACL API.
50240         * lib/set-mode-acl.c (qset_acl): Likewise.
50241         * lib/copy-acl.c (qcopy_acl): Likewise.
50242
50243 2008-06-08  Bruno Haible  <bruno@clisp.org>
50244
50245         Add support for HP-UX ACLs.
50246         * lib/acl-internal.h (acl_nontrivial): New declaration.
50247         * lib/file-has-acl.c (acl_nontrivial): New function.
50248         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50249         * lib/set-mode-acl.c (qset_acl): Likewise.
50250         * lib/copy-acl.c (qcopy_acl): Likewise.
50251
50252 2008-06-08  Bruno Haible  <bruno@clisp.org>
50253
50254         Add support for Cygwin ACLs.
50255         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50256         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50257         the chmod_or_fchmod call.
50258         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50259
50260 2008-06-08  Bruno Haible  <bruno@clisp.org>
50261
50262         Fix bug with setuid modes in Solaris 10+ code.
50263         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50264         succeeded, when the mode contains some special bits.
50265
50266 2008-06-08  Bruno Haible  <bruno@clisp.org>
50267
50268         Add support for Solaris 7..10 ACLs.
50269         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50270         declarations.
50271         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50272         functions.
50273         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50274         * lib/set-mode-acl.c (qset_acl): Likewise.
50275         * lib/copy-acl.c (qcopy_acl): Likewise.
50276
50277 2008-06-08  Bruno Haible  <bruno@clisp.org>
50278
50279         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50280         declaration.
50281         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50282         (acl_access_nontrivial): Remove MacOS X case.
50283         (file_has_acl): Use acl_extended_nontrivial.
50284         * lib/copy-acl.c (qcopy_acl): Likewise.
50285
50286 2008-06-08  Bruno Haible  <bruno@clisp.org>
50287
50288         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50289
50290 2008-06-08  Jim Meyering  <meyering@redhat.com>
50291
50292         * modules/acl (Maintainer): Add Bruno Haible.
50293
50294 2008-06-07  Bruno Haible  <bruno@clisp.org>
50295
50296         Improve support for Tru64 ACLs.
50297         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50298         ACL on OSF/1.
50299
50300 2008-06-07  Bruno Haible  <bruno@clisp.org>
50301
50302         Add support for MacOS X ACLs.
50303         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50304         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50305         * lib/set-mode-acl.c (qset_acl): Likewise.
50306         * lib/copy-acl.c (qcopy_acl): Likewise.
50307
50308 2008-06-07  Bruno Haible  <bruno@clisp.org>
50309
50310         Fix memory leak introduced on 2008-05-22.
50311         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50312         use.
50313
50314 2008-06-07  Bruno Haible  <bruno@clisp.org>
50315
50316         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50317         to construct an empty ACL.
50318
50319 2008-06-07  Bruno Haible  <bruno@clisp.org>
50320
50321         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50322         precisely.
50323         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50324
50325 2008-06-07  Bruno Haible  <bruno@clisp.org>
50326
50327         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50328         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50329
50330 2008-06-07  Bruno Haible  <bruno@clisp.org>
50331
50332         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50333         regardless of POSIX.
50334         * doc/posix-functions/_longjmp.texi: Likewise.
50335         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50336         SystemV platform in this case.
50337
50338 2008-06-06  Eric Blake  <ebb9@byu.net>
50339
50340         Document abort() bugs.
50341         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50342
50343         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50344         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50345         sigsetjmp.
50346         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50347         siglongjmp, but only as a macro.
50348         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50349         is obsolete.
50350         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50351
50352         Tweak documentation to cover cygwin argz bugs.
50353         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50354         argz bug fix; no code change needed since no cygwin releases
50355         occurred between the last fix and the bug being tested.
50356         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50357         module and recently fixed cygwin bugs.
50358         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50359         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50360         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50361         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50362         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50363         Likewise.
50364         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50365         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50366         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50367         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50368         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50369         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50370         Likewise.
50371
50372         Avoid gcc warning on cygwin.
50373         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50374         !ACL_NO_TRIVIAL]: Avoid unused variable.
50375
50376 2008-06-05  Eric Blake  <ebb9@byu.net>
50377
50378         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50379         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50380         git-version-gen fails to come up with a version.
50381         Reported by Simon Josefsson.
50382
50383 2008-06-05  Jim Meyering  <meyering@redhat.com>
50384             Paul Eggert  <eggert@cs.ucla.edu>
50385
50386         utimens.c: work around a probable Linux kernel bug
50387         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50388         appears to be a kernel bug that causes utimensat to return 280
50389         instead of 0, indicating success.
50390
50391 2008-06-04  Bruno Haible  <bruno@clisp.org>
50392
50393         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50394         2008-06-01 commit.
50395
50396 2008-06-04  Bruno Haible  <bruno@clisp.org>
50397
50398         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50399         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50400         (file_has_acl): Use it. Save errno afterwards.
50401         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50402
50403 2008-06-03  Bruno Haible  <bruno@clisp.org>
50404
50405         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50406         draft code. Simplify #ifs.
50407         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50408         Put Solaris code after POSIX-draft code. Fix comments regarding
50409         Solaris 10, HP-UX. Mention Cygwin.
50410         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50411
50412 2008-06-03  Eric Blake  <ebb9@byu.net>
50413
50414         Provide fallback for older kernels.
50415         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50416         Provide runtime fallback if kernel lacks support.
50417         Reported by Mike Frysinger.
50418
50419 2008-06-02  Bruno Haible  <bruno@clisp.org>
50420
50421         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50422         it exists.
50423
50424 2008-06-02  Bruno Haible  <bruno@clisp.org>
50425
50426         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50427         * lib/copy-acl.c (qcopy_acl): Update comment.
50428
50429 2008-06-02  Bruno Haible  <bruno@clisp.org>
50430
50431         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50432         like ACL APIs.
50433
50434 2008-06-02  Bruno Haible  <bruno@clisp.org>
50435
50436         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50437         * tests/test-set-mode-acl.sh: Likewise.
50438         * tests/test-copy-acl.sh: Likewise.
50439         * tests/test-copy-file.sh: Likewise.
50440
50441 2008-06-02  Bruno Haible  <bruno@clisp.org>
50442
50443         * tests/test-file-has-acl.sh: Remove unused code.
50444
50445 2008-06-01  Bruno Haible  <bruno@clisp.org>
50446
50447         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50448         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50449         messages.
50450         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50451
50452 2008-06-01  Bruno Haible  <bruno@clisp.org>
50453
50454         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50455         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50456         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50457         APIs.
50458         * modules/acl-tests (configure.ac): Remove tests now contained in
50459         m4/acl.m4.
50460
50461 2008-06-02  Jim Meyering  <meyering@redhat.com>
50462
50463         announce-gen: use a better key-server host name
50464         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50465         it may be more consistently reliable.  Suggested by Werner Koch
50466         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50467
50468 2008-06-01  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50471         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50472
50473 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50474
50475         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50476
50477 2008-06-01  Bruno Haible  <bruno@clisp.org>
50478
50479         New ACL tests.
50480         * tests/test-file-has-acl.sh: New file.
50481         * tests/test-file-has-acl.c: New file.
50482         * tests/test-set-mode-acl.sh: New file.
50483         * tests/test-set-mode-acl.c: New file.
50484         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50485         * tests/test-copy-acl.c: New file.
50486         * modules/acl-tests: New file, based on modules/copy-file-tests.
50487         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50488         (Depends-on): Add acl-tests.
50489         (configure.ac): Remove checks.
50490         (Makefile.am): Don't create test-sameacls program here any more.
50491
50492 2008-06-01  Bruno Haible  <bruno@clisp.org>
50493
50494         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50495         * tests/test-sameacls.c: Include progname.h.
50496         (main): Invoke set_program_name. Portability fixes for MacOS X,
50497         Solaris, HP-UX.
50498
50499 2008-06-01  Bruno Haible  <bruno@clisp.org>
50500
50501         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50502         function.
50503         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50504
50505 2008-06-01  Bruno Haible  <bruno@clisp.org>
50506
50507         * modules/rpmatch (Depends-on): Add strdup.
50508
50509 2008-06-01  Bruno Haible  <bruno@clisp.org>
50510
50511         * lib/pipe.c: Include unistd-safer.h.
50512         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50513         * modules/pipe (Depends-on): Add unistd-safer.
50514
50515 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50516
50517         * modules/autobuild (configure.ac): Call AB_INIT.
50518
50519 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50520
50521         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50522         Suggested by Bruno Haible <bruno@clisp.org>.
50523
50524 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50525
50526         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50527         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50528         <bruno@clisp.org>.
50529
50530 2008-05-29  Eric Blake  <ebb9@byu.net>
50531
50532         Prefer new POSIX 200x interfaces over futimesat.
50533         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50534         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50535         when available.
50536         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50537
50538 2008-05-28  Bruno Haible  <bruno@clisp.org>
50539
50540         * modules/stpcpy (License): Change to LGPLv2+.
50541         Requested by David Lutterkort <dlutter@redhat.com>.
50542
50543 2008-05-27  Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50546         current mingw.
50547         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50548
50549 2008-05-27  Bruno Haible  <bruno@clisp.org>
50550
50551         * modules/iconv_open (Link): New section, from module 'iconv'.
50552         * modules/striconv (Link): Likewise.
50553         * modules/striconveh (Link): Likewise.
50554         * modules/xstriconv (Link): Likewise.
50555         * modules/unicodeio (Link): Likewise.
50556         * modules/propername (Link): Likewise.
50557         Reported by Jim Meyering.
50558
50559 2008-05-26  Jim Meyering  <meyering@redhat.com>
50560
50561         sha256: do not artificially restrict buffer length to be < 2^32
50562         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50563         uint32_t to size_t.
50564         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50565         to match.
50566
50567         avoid unaligned access errors, e.g., on sparc
50568         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50569         direct access through a possibly-unaligned uint64* pointer.
50570         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50571         direct access through a possibly-unaligned uint32* pointer.
50572         Prompted by this patch from Tom "spot" Callaway:
50573         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50574
50575         sha512.c: fix typo in comment
50576         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50577
50578 2008-05-25  Bruno Haible  <bruno@clisp.org>
50579
50580         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50581         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50582         (Makefile.am): Update lib_SOURCES.
50583
50584 2008-05-25  Bruno Haible  <bruno@clisp.org>
50585
50586         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50587
50588 2008-05-25  Jim Meyering  <meyering@redhat.com>
50589
50590         useless-if-before-free: freed expr may have white-space differences
50591         * build-aux/useless-if-before-free: Recognize cases in which the
50592         freed expression differs from the tested one in embedded white
50593         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50594         $1 was used, so we can't make any regexp shy.  Improved tests now
50595         detect this.
50596
50597         useless-if-before-free: accept white space in the expression.
50598         * build-aux/useless-if-before-free: For now, any white space
50599         in the expression must be identical in the free argument.
50600
50601         useless-if-before-free: efficiency tweak
50602         * build-aux/useless-if-before-free: Make the expression-matching
50603         regexp "shy".
50604         Make the *outer* regexp shy, not the expr-matching one.
50605
50606         update code-in-comment to accept cast of free arg
50607         * build-aux/useless-if-before-free: Update regexp.
50608
50609 2008-05-25  Bruno Haible  <bruno@clisp.org>
50610
50611         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50612         * modules/copy-file-tests (Files, Makefile.am): Update.
50613         * tests/test-copy-file.c (func_test_copy): Update.
50614
50615 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50616
50617         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50618
50619 2008-05-23  Bruno Haible  <bruno@clisp.org>
50620
50621         Improve support for ACLs on OSF/1.
50622         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50623         Remove fallback for unknown flavors of ACLs.
50624
50625 2008-05-22  Bruno Haible  <bruno@clisp.org>
50626
50627         Add support for ACLs on OSF/1.
50628         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50629         replacements.
50630         (acl_free_text): New macro fallback.
50631         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50632         acl_free.
50633         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50634         acl_free_text function. Require AC_C_INLINE.
50635
50636 2008-05-22  Bruno Haible  <bruno@clisp.org>
50637
50638         Make copy_acl work on MacOS X 10.5.
50639         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50640         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50641         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50642         If MODE_INSIDE_ACL, don't assume that every system has the same text
50643         representation for ACLs as FreeBSD.
50644         * lib/copy-acl.c (copy_acl): Add support for platforms with
50645         !MODE_INSIDE_ACL.
50646         * lib/file-has-acl.c (file_has_acl): Likewise.
50647         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50648         FreeBSD, MacOS X, or IRIX, respectively.
50649
50650 2008-05-22  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/acl.h: Don't include <sys/acl.h>.
50653         (GETACLCNT): Move fallback to lib/acl-internal.h.
50654         * lib/acl-internal.h: Include <sys/acl.h> here.
50655         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50656
50657 2008-05-22  Bruno Haible  <bruno@clisp.org>
50658
50659         Split off copy_acl function to separate file.
50660         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50661         * lib/acl.c (copy_acl): Moved function to separate file.
50662         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50663         * modules/acl (Files): Add lib/copy-acl.c.
50664         (Makefiles.am): Augment lib_SOURCES.
50665
50666 2008-05-22  Bruno Haible  <bruno@clisp.org>
50667
50668         * modules/copy-file-tests: New file.
50669         * tests/test-copy-file.sh: New file.
50670         * tests/test-copy-file.c: New file.
50671         * tests/test-copy-file-sameacls.c: New file.
50672
50673 2008-05-22  Eric Blake  <ebb9@byu.net>
50674
50675         Avoid gcc warning.
50676         * tests/test-memcmp.c (main): Pass NULL indirectly.
50677
50678 2008-05-21  Bruno Haible  <bruno@clisp.org>
50679
50680         Add reference doc about ACLs.
50681         * doc/acl-resources.txt: New file.
50682         * doc/acl-cygwin.txt: New file.
50683
50684 2008-05-21  Bruno Haible  <bruno@clisp.org>
50685
50686         Avoid one more warning from gcc.
50687         * lib/vasnprintf.c (IF_LINT): Update comments.
50688         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50689
50690 2008-05-21  Jim Meyering  <meyering@redhat.com>
50691
50692         avoid a warning from gcc
50693         * lib/vasnprintf.c (IF_LINT): Define.
50694         (scale10_round_decimal_long_double):
50695         Use it to avoid a "may be used uninitialized" warning.
50696         (scale10_round_decimal_double): Likewise.
50697
50698 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50699
50700         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50701         declared.
50702
50703 2008-05-20  Bruno Haible  <bruno@clisp.org>
50704
50705         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50706         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50707
50708 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50709
50710         * modules/memcmp-tests: New file.
50711         * tests/test-memcmp.c: New file.
50712
50713 2008-05-19  Bruno Haible  <bruno@clisp.org>
50714
50715         * modules/propername (Notice, configure.ac): Put quoted "..." into
50716         --keyword option.
50717         * lib/propername.h: Update comments accordingly.
50718         Reported by Eric Blake.
50719
50720 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50721
50722         * modules/getpass-gnu (Depends-on): Add fseeko.
50723
50724 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50725
50726         * modules/base64-tests: New file.
50727
50728 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50729
50730         * lib/base64.c (base64_decode_ctx): If a decode context structure
50731         was passed in use it to ignore newlines.  If a context structure
50732         was _not_ passed in, continue to treat newlines as garbage (this
50733         is the historical behavior).  Formerly base64_decode.
50734         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50735         takes a decode context structure.
50736         * lib/base64.h (base64_decode): Macro for four-argument calls.
50737         (base64_decode_alloc): Likewise.
50738         * lib/base64.c (base64_decode_ctx): If a decode context structure
50739         was passed in use it to ignore newlines.  If a context structure
50740         was _not_ passed in, continue to treat newlines as garbage (this
50741         is the historical behavior).  Formerly base64_decode.
50742         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50743         takes a decode context structure.
50744         * lib/base64.h (base64_decode): Macro for four-argument calls.
50745         (base64_decode_alloc): Likewise.
50746
50747 2008-05-19  Jim Meyering  <meyering@redhat.com>
50748
50749         avoid a warning from gcc
50750         * lib/trim.c (IF_LINT): Define.
50751         (trim2): Use it to avoid a "may be used uninitialized" warning.
50752
50753         Fix doc typo.
50754         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50755
50756 2008-05-19  Bruno Haible  <bruno@clisp.org>
50757
50758         * doc/glibc-functions/getpass.texi: Document limits of other
50759         implementations.
50760
50761 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50762             Bruno Haible <bruno@clisp.org>
50763
50764         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50765
50766 2008-05-18  Bruno Haible  <bruno@clisp.org>
50767
50768         * modules/propername: New file, from GNU gettext.
50769         * lib/propername.h: New file, from GNU gettext.
50770         * lib/propername.c: New file, from GNU gettext.
50771         * MODULES.html.sh (Internationalization functions): Add propername.
50772
50773 2008-05-16  Jim Meyering  <meyering@redhat.com>
50774             Bruno Haible  <bruno@clisp.org>
50775
50776         Avoid some warnings from "gcc -Wshadow".
50777         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50778
50779 2008-05-15  Eric Blake  <ebb9@byu.net>
50780
50781         Extend previous patch to cygwin 1.7.0.
50782         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50783         fast implementation in cygwin >= 1.7.0.
50784         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50785         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50786
50787 2008-05-15  Bruno Haible  <bruno@clisp.org>
50788
50789         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50790         implementation in glibc >= 2.9.
50791         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50792         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50793
50794 2008-05-15  Bruno Haible  <bruno@clisp.org>
50795
50796         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50797         (Unicode string functions): Add unilbrk/*.
50798         Reported by Karl Berry.
50799
50800 2008-05-15  Eric Blake  <ebb9@byu.net>
50801
50802         Fix violation of <stdbool.h> replacement in regex.
50803         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50804         * lib/regexec.c (re_search_internal): Likewise.
50805         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50806
50807 2008-05-15  Jim Meyering  <meyering@redhat.com>
50808
50809         avoid distracting test output when git or cvs is not found
50810         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50811         * tests/test-vc-list-files-git.sh: Likewise.
50812
50813 2008-05-15  Eric Blake  <ebb9@byu.net>
50814
50815         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50816         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50817         glibc version.
50818         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50819         * doc/posix-functions/strstr.texi (strstr): Likewise.
50820         * lib/str-two-way.h (MAX): Sychronize with glibc.
50821
50822 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50823
50824         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50825         opr.ctx_type.
50826         (calc_first): Initialize constraint field.
50827         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50828         Fix grammar.
50829         (duplicate_node): Merge constraint field for all node types.
50830         (calc_eclosure_iter): Look at constraint field for all node types.
50831         * lib/regex_internal.c (create_cd_newstate): Don't look at
50832         opr.ctx_type.
50833
50834 2008-05-14  Bruno Haible  <bruno@clisp.org>
50835
50836         Help GCC to do better code generation.
50837         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50838         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50839         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50840         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50841         Declare with attribute 'malloc' if supported.
50842
50843 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50844
50845         use "echo STR|wc -c" rather than unportable "expr length STR"
50846         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50847         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50848
50849 2008-05-14  Jim Meyering  <meyering@redhat.com>
50850
50851         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50852         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50853         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50854         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50855         via Collin Lasse.
50856
50857 2008-05-14  Eric Blake  <ebb9@byu.net>
50858
50859         Avoid quadratic growth in gl_LIBSOURCES.
50860         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50861         Suggested by Bruno Haible.
50862
50863         Test xmemdup0.
50864         * modules/xmemdup0-tests: New file.
50865         * tests/test-xmemdup0.c: Likewise.
50866
50867 2008-05-13  Eric Blake  <ebb9@byu.net>
50868
50869         Split xmemdup0 into its own module.
50870         * modules/xmemdup0: New file.
50871         * lib/xmemdup0.h: Likewise.
50872         * lib/xmemdup0.c: Likewise.
50873         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50874         * lib/xalloc.h (xmemdup0): Remove.
50875         * lib/xmalloc.c (xmemdup0): Likewise.
50876
50877 2008-05-13  Eric Blake  <ebb9@byu.net>
50878             Bruno Haible  <bruno@clisp.org>
50879
50880         Reduce number of forks required during autoconf.
50881         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50882         and gl_LIBSOURCES_DIR.
50883         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50884         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50885         m4_syscmd per file.
50886         <m4_foreach_w>: Move...
50887         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50888
50889 2008-05-13  Eric Blake  <ebb9@byu.net>
50890
50891         * gnulib-tool: Fix various comment typos.
50892
50893 2008-05-12  Bruno Haible  <bruno@clisp.org>
50894
50895         Tailor the linebreaking algorithm.
50896         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50897
50898 2008-05-12  Bruno Haible  <bruno@clisp.org>
50899
50900         Update to Unicode 5.0.0.
50901         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50902         LBP_JV, LBP_JT. Redistribute values.
50903         (unilbrk_table): Change size.
50904         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50905         Unicode TR#14 rev. 22.
50906         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50907         LBP_JV, LBP_JT. Redistribute values.
50908         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50909         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50910         Update.
50911         * lib/unilbrk/lbrkprop1.h: Regenerated.
50912         * lib/unilbrk/lbrkprop2.h: Regenerated.
50913         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50914         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50915         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50916         Likewise.
50917         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50918         Likewise.
50919         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50920         result.
50921         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50922         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50923         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50924         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50925         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50926         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50927
50928 2008-05-11  Bruno Haible  <bruno@clisp.org>
50929
50930         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50931
50932 2008-05-11  Bruno Haible  <bruno@clisp.org>
50933
50934         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50935         * modules/unilbrk/gen-lbrk: New file.
50936
50937 2008-05-11  Bruno Haible  <bruno@clisp.org>
50938
50939         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50940         * m4/sha512.m4 (gl_SHA512): Likewise.
50941
50942 2008-05-11  Jim Meyering  <meyering@redhat.com>
50943
50944         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50945         * modules/crypto/sha256: New file.
50946         * modules/crypto/sha512: Likewise.
50947         * lib/sha256.c: Likewise.
50948         * lib/sha256.h: Likewise.
50949         * lib/sha512.c: Likewise.
50950         * lib/sha512.h: Likewise.
50951         * lib/u64.h: Likewise.
50952         * m4/sha256.m4: Likewise.
50953         * m4/sha512.m4: Likewise.
50954         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50955
50956 2008-05-10  Bruno Haible  <bruno@clisp.org>
50957
50958         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50959         (Input/Output <stdio.h>): Add xprintf.
50960         (Signal handling <signal.h>): Add strsignal.
50961         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50962         (Core language properties): Add func.
50963         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50964         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50965         strings.
50966         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50967         (Input/output): New section.
50968         (File system functions): Add openat-die, stat-macros.
50969         (Networking functions): Add sockets.
50970         (Unicode string functions): Add unictype/*.
50971         (Support for building libraries and executables): Add gperf.
50972         (Support for building documentation): Add agpl-3.0.
50973         (Misc): Add nocrash.
50974
50975 2008-05-10  Bruno Haible  <bruno@clisp.org>
50976
50977         * modules/unictype/gen-ctype: New file.
50978
50979 2008-05-10  Jim Meyering  <meyering@redhat.com>
50980
50981         Make chdir-safer.c more efficient on a system with no symlinks.
50982         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50983         also if ELOOP is zero.  Suggested by Bruno Haible.
50984
50985         Make chdir-safer.c slightly safer.
50986         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50987         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50988
50989         Avoid compile failure on systems without ELOOP (like mingw).
50990         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50991         Reported by Bruno Haible.
50992
50993 2008-05-10  Bruno Haible  <bruno@clisp.org>
50994
50995         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50996         (is_utf8_encoding): Use a case-insensitive comparison.
50997         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50998         streq.
50999
51000 2008-05-10  Bruno Haible  <bruno@clisp.org>
51001
51002         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
51003         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
51004         * lib/unilbrk/ulc-common.h (iconv_string_length,
51005         iconv_string_keeping_offsets): Remove declarations.
51006         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
51007         Don't include <iconv.h>, streq.h, xsize.h.
51008         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
51009         conversion.
51010         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
51011         <iconv.h>, streq.h, xsize.h.
51012         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
51013         conversion.
51014         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
51015         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
51016         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
51017         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
51018
51019 2008-05-10  Bruno Haible  <bruno@clisp.org>
51020
51021         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
51022         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
51023
51024         * modules/unilbrk/u32-width-linebreaks-tests: New file.
51025         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
51026
51027         * modules/unilbrk/u16-width-linebreaks-tests: New file.
51028         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
51029
51030         * modules/unilbrk/u8-width-linebreaks-tests: New file.
51031         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
51032
51033         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
51034         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
51035
51036         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
51037         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
51038
51039         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51040         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51041
51042         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51043         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51044
51045 2008-05-10  Bruno Haible  <bruno@clisp.org>
51046
51047         Split up 'linebreak' module.
51048         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51049         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51050         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51051         modifications.
51052         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51053         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51054         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51055         lib/linebreak.c.
51056         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51057         lib/linebreak.c.
51058         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
51059         lib/linebreak.c.
51060         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
51061         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51062         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51063         lib/linebreak.c.
51064         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51065         lib/linebreak.c.
51066         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51067         lib/linebreak.c.
51068         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51069         lib/linebreak.c.
51070         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51071         lib/linebreak.c.
51072         * modules/unilbrk/base: New file.
51073         * modules/unilbrk/tables: New file.
51074         * modules/unilbrk/u8-possible-linebreaks: New file.
51075         * modules/unilbrk/u16-possible-linebreaks: New file.
51076         * modules/unilbrk/u32-possible-linebreaks: New file.
51077         * modules/unilbrk/ulc-common: New file.
51078         * modules/unilbrk/ulc-possible-linebreaks: New file.
51079         * modules/unilbrk/u8-width-linebreaks: New file.
51080         * modules/unilbrk/u16-width-linebreaks: New file.
51081         * modules/unilbrk/u32-width-linebreaks: New file.
51082         * modules/unilbrk/ulc-width-linebreaks: New file.
51083         * lib/linebreak.h: Remove file.
51084         * lib/linebreak.c: Remove file.
51085         * m4/linebreak.m4: Remove file.
51086         * modules/linebreak: Remove file.
51087         * NEWS: Mention the changes.
51088
51089 2008-05-09  Eric Blake  <ebb9@byu.net>
51090
51091         Add xmemdup0.
51092         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51093         implementation.
51094         * lib/xmalloc.c (xmemdup0): New C implementation.
51095
51096 2008-05-08  Bruno Haible  <bruno@clisp.org>
51097
51098         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51099
51100 2008-05-07  Eric Blake  <ebb9@byu.net>
51101
51102         Support cross-compilation of <wctype.h>.
51103         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51104         AC_CACHE_CHECK.
51105
51106 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51107
51108         * build-aux/vc-list-files: Add support for bzr.
51109
51110 2008-05-03  Jim Meyering  <meyering@redhat.com>
51111
51112         avoid failed assertion with tight malloc
51113         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51114
51115 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51116
51117         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51118         are needed from arpa/inet.h.
51119         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51120         Reported by Bruno Haible.
51121
51122 2008-05-02  Jim Meyering  <meyering@redhat.com>
51123
51124         avoid compilation error on FreeBSD 6
51125         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51126
51127 2008-05-01  Jim Meyering  <meyering@redhat.com>
51128
51129         useless-if-before-free: correct --help's exit status description
51130         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51131         for one or more matches, etc.  Reported by Bruno Haible.
51132
51133         vc-list-files: make the stand-alone gnulib test work
51134         * modules/vc-list-files-tests (configure.ac):
51135         Define and AC_SUBST abs_aux_dir.
51136         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51137         $(abs_top_srcdir) to each script and having each of them
51138         duplicate the work of setting PATH, set PATH here, using
51139         the new variable, abs_aux_dir instead.
51140         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51141         * tests/test-vc-list-files-git.sh: Likewise.
51142         Reported by Bruno Haible.
51143
51144 2008-05-01  Bruno Haible  <bruno@clisp.org>
51145
51146         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51147         reallocation. Rename 'done' to 'found_delimiter'.
51148
51149 2008-05-01  Jim Meyering  <meyering@redhat.com>
51150
51151         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51152         * build-aux/vc-list-files: Use `...`, not $(...).
51153
51154 2008-04-30  Jim Meyering  <meyering@redhat.com>
51155
51156         add tests for vc-list-files
51157         * modules/vc-list-files-tests: New module.
51158         * tests/test-vc-list-files-cvs.sh: New file.
51159         * tests/test-vc-list-files-git.sh: New file.
51160
51161         avoid a warning from gcc
51162         * lib/getndelim2.c (IF_LINT): Define.
51163         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51164
51165         vc-list-files: work properly with build-aux/cvsu, too
51166         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51167         to all cvs-based clauses.
51168
51169         vc-list-files: work properly in the CVS+awk case, too
51170         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51171
51172         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51173         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51174         take more than one file argument, so .  Add quotes, just in case $dir
51175         ever contains a shell meta-character.  Prompted by Soren Hansen in
51176         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51177
51178 2008-04-29  Eric Blake  <ebb9@byu.net>
51179
51180         Optimize getndelim2 to use block operations when possible.
51181         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51182         freadseek, and memchr2.
51183         * lib/getndelim2.c (getndelim2): Use them for block reads.
51184
51185 2008-04-29  Bruno Haible  <bruno@clisp.org>
51186
51187         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51188         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51189         * modules/inet_ntop (Depends-on): Add extensions.
51190         * modules/inet_pton (Depends-on): Likewise.
51191         Reported by Simon Josefsson.
51192
51193 2008-04-29  Jim Meyering  <meyering@redhat.com>
51194
51195         When the is more than one match in a block, match all of them.
51196         * build-aux/useless-if-before-free: Iterate through each block
51197         until there are no more matches.
51198
51199         Fix broken useless-if-before-free script.
51200         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51201         the expression to match cast of argument to free-like function.
51202
51203 2008-04-29  Eric Blake  <ebb9@byu.net>
51204
51205         Use new header.
51206         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51207
51208 2008-04-29  Jim Meyering  <meyering@redhat.com>
51209
51210         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51211         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51212         by gnulib to exist and to declare e.g., inet_ntop.
51213         Don't include "inet_ntop.h", now removed.
51214
51215         * m4/arpa_inet_h.m4: Remove trailing blanks.
51216
51217 2008-04-29  Eric Blake  <ebb9@byu.net>
51218
51219         Silence valgrind on safe reads beyond potential array bounds.
51220         * lib/rawmemchr.valgrind: New file.
51221         * lib/strchrnul.valgrind: Likewise.
51222         * modules/rawmemchr (Files): Distribute new file.
51223         * modules/strchrnul (Files): Likewise.
51224         Suggested by Bruno Haible.
51225
51226 2008-04-29  Bruno Haible  <bruno@clisp.org>
51227
51228         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51229         (inet_ntop, inet_pton): Change portability warning's wording.
51230         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51231         Invoke gl_CHECK_NEXT_HEADERS.
51232         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51233         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51234         set ARPA_INET_H.
51235         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51236         * modules/arpa_inet (Description): No longer only for systems that
51237         lack it.
51238         (Depends-on): Add include_next.
51239         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51240         HAVE_ARPA_INET_H.
51241
51242 2008-04-29  Jim Meyering  <meyering@redhat.com>
51243
51244         * modules/mkdir (License): Re-license as LGPLv2+.
51245
51246 2008-04-29  Bruno Haible  <bruno@clisp.org>
51247
51248         * modules/rawmemchr (Maintainer): Set to Eric.
51249         * modules/strchrnul (Maintainer): Likewise.
51250
51251 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51252
51253         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51254         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51255
51256         * modules/arpa_inet (arpa/inet.h): Use them.
51257
51258 2008-04-28  Eric Blake  <ebb9@byu.net>
51259
51260         Test getndelim2.
51261         * modules/getndelim2-tests: New file.
51262         * tests/test-getndelim2.c: Likewise.
51263         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51264         stream.
51265         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51266
51267         * MODULES.html.sh: Document new module.
51268
51269 2008-04-20  Bruno Haible  <bruno@clisp.org>
51270
51271         * lib/c-stack.c (die): Use raise.
51272         * modules/c-stack (Depends-on): Add raise.
51273
51274 2008-04-28  Bruno Haible  <bruno@clisp.org>
51275
51276         Expect rpmatch to be declared.
51277         * lib/yesno.c (rpmatch): Remove declaration.
51278
51279         Declare rpmatch.
51280         * lib/stdlib.in.h (rpmatch): New declaration.
51281         * lib/rpmatch.c: Include <stdlib.h> first.
51282         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51283         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51285         HAVE_RPMATCH.
51286         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51287         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51288         (Include): Set to <stdlib.h>.
51289         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51290         HAVE_RPMATCH.
51291         * NEWS: Document the change.
51292
51293 2008-04-28  Bruno Haible  <bruno@clisp.org>
51294
51295         Change rpmatch to use nl_langinfo when appropriate.
51296         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51297         (N_): New macro.
51298         (localized_pattern): New function/macro.
51299         (try): Remove match, nomatch arguments. Copy the pattern into safe
51300         memory before caching it.
51301         (rpmatch): Use localized_pattern. Add translator comments.
51302         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51303         Suggested by Eric Blake.
51304         * modules/rpmatch (Depends-on): Add stdbool.
51305
51306 2008-04-28  Eric Blake  <ebb9@byu.net>
51307
51308         Add rawmemchr module, matching glibc.
51309         * modules/string (Makefile.am): New indicator.
51310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51311         * lib/string.in.h (rawmemchr): Declare when appropriate.
51312         * modules/rawmemchr: New file.
51313         * m4/rawmemchr.m4: Likewise.
51314         * lib/rawmemchr.c: Likewise.
51315         * modules/rawmemchr-tests: Likewise.
51316         * tests/test-rawmemchr.c: Likewise.
51317         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51318         module.
51319         * modules/strchrnul (Depends-on): Add rawmemchr.
51320         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51321
51322         Whitespace cleanup.
51323         * tests/test-strchrnul.c: Reindent.
51324         * lib/strchrnul.c: Likewise.
51325
51326         Optimize and test strchrnul.
51327         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51328         * modules/strchrnul-tests: New file.
51329         * tests/test-strchrnul.c: Likewise.
51330
51331         Remove intprops dependency.
51332         * modules/memchr (Depends-on): Remove intprops.
51333         * modules/memrchr (Depends-on): Likewise.
51334         * modules/memchr2 (Depends-on): Likewise.
51335         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51336         * lib/memrchr.c (__memrchr): Likewise.
51337         * lib/memrchr2.c (memchr2): Likewise.
51338         Reported by Simon Josefsson.
51339
51340 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51341
51342         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51343         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51344
51345 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51346
51347         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51348
51349         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51350
51351         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51352
51353         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51354         declarations.
51355         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51356
51357         * m4/inet_pton.m4: Don't check for header files.
51358
51359         * m4/inet_ntop.m4: Don't check for header files.
51360
51361 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51362
51363         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51364         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51365         trigger for cygwin).
51366         Reported by Bruno Haible  <bruno@clisp.org>.
51367
51368 2008-04-28  Bruno Haible  <bruno@clisp.org>
51369
51370         * doc/posix-functions/strdup.texi: Mention mingw problem.
51371
51372 2008-04-27  Bruno Haible  <bruno@clisp.org>
51373
51374         * modules/stat-time-tests (Depends-on): Add sleep.
51375         * tests/test-stat-time.c (force_unlink): New function.
51376         (cleanup): Use it.
51377         (test_mtime): Remove the ctime related tests.
51378         (test_ctime): New function, containing the ctime related tests.
51379         (main): Call test_ctime, except on native Windows platforms.
51380
51381 2008-04-27  Bruno Haible  <bruno@clisp.org>
51382
51383         * lib/rpmatch.c (rpmatch): Add some comments.
51384         Reported by James Youngman <jay@gnu.org>.
51385
51386 2008-04-27  Bruno Haible  <bruno@clisp.org>
51387
51388         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51389         quiet NaNs.
51390
51391 2008-04-27  Bruno Haible  <bruno@clisp.org>
51392
51393         Make test-yesno.sh work on mingw.
51394         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51395         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51396         (main): Set stdin to binary mode.
51397         * modules/yesno-tests (Depends-on): Add binary-io.
51398
51399 2008-04-27  Bruno Haible  <bruno@clisp.org>
51400
51401         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51402         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51403         argument that lie outside the IEEE 854 domain.
51404         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51405         (gl_ISFINITE): Use it.
51406         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51407
51408 2008-04-27  Bruno Haible  <bruno@clisp.org>
51409
51410         Allow local renaming in config.h.
51411         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51412
51413 2008-04-27  Bruno Haible  <bruno@clisp.org>
51414
51415         * lib/memchr.c (__memchr): Change type of 'i'.
51416         * lib/memchr2.c (memchr2): Likewise.
51417
51418 2008-04-26  Eric Blake  <ebb9@byu.net>
51419         and Bruno Haible  <bruno@clisp.org>
51420
51421         Optimize and test memrchr.
51422         * modules/memrchr (Depends-on): Add intprops.
51423         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51424         * modules/memrchr-tests: New file.
51425         * tests/test-memrchr.c: New file.
51426
51427 2008-04-26  Bruno Haible  <bruno@clisp.org>
51428
51429         Add tentative support for DragonFly BSD.
51430         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51431         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51432         fp.
51433         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51434         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51435         * lib/fpurge.c (fpurge): Likewise.
51436         * lib/freadable.c (freaadable): Likewise.
51437         * lib/freadahead.c (freadahead): Likewise.
51438         * lib/freading.c (freading): Likewise.
51439         * lib/freadptr.c (freadptr): Likewise.
51440         * lib/freadseek.c (freadptrinc): Likewise.
51441         * lib/fseeko.c (fseeko): Likewise.
51442         * lib/fseterr.c (fseterr): Likewise.
51443         * lib/fwritable.c (fwritable): Likewise.
51444         * lib/fwriting.c (fwriting): Likewise.
51445
51446 2008-04-26  Bruno Haible  <bruno@clisp.org>
51447
51448         * lib/stdio-impl.h: New file.
51449         * lib/fbufmode.c: Include stdio-impl.h.
51450         (fbufmode): Use fp_, remove redundant #defines.
51451         * lib/fflush.c: Include stdio-impl.h.
51452         (clear_ungetc_buffer): Remove redundant #defines.
51453         * lib/fpurge.c: Include stdio-impl.h.
51454         (fpurge): Remove redundant #defines.
51455         * lib/freadable.c: Include stdio-impl.h.
51456         (freadable): Remove redundant #defines.
51457         * lib/freadahead.c: Include stdio-impl.h.
51458         (freadahead): Remove redundant #defines.
51459         * lib/freading.c: Include stdio-impl.h.
51460         (freading): Remove redundant #defines.
51461         * lib/freadptr.c: Include stdio-impl.h.
51462         (freadptr): Remove redundant #defines.
51463         * lib/freadseek.c: Include stdio-impl.h.
51464         (freadptrinc): Remove redundant #defines.
51465         * lib/fseeko.c: Include stdio-impl.h.
51466         (rpl_fseeko): Remove redundant #defines.
51467         * lib/fseterr.c: Include stdio-impl.h.
51468         (fseterr): Remove redundant #defines.
51469         * lib/fwritable.c: Include stdio-impl.h.
51470         (fwritable: Remove redundant #defines.
51471         * lib/fwriting.c: Include stdio-impl.h.
51472         (fwriting): Remove redundant #defines.
51473         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51474         * modules/fflush (Files): Likewise.
51475         * modules/fpurge (Files): Likewise.
51476         * modules/freadable (Files): Likewise.
51477         * modules/freadahead (Files): Likewise.
51478         * modules/freading (Files): Likewise.
51479         * modules/freadptr (Files): Likewise.
51480         * modules/freadseek (Files): Likewise.
51481         * modules/fseeko (Files): Likewise.
51482         * modules/fseterr (Files): Likewise.
51483         * modules/fwritable (Files): Likewise.
51484         * modules/fwriting (Files): Likewise.
51485
51486 2008-04-26  Bruno Haible  <bruno@clisp.org>
51487
51488         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51489         restore_seek_optimization, update_fpos_cache): New functions, extracted
51490         from rpl_fflush.
51491         (rpl_fflush): Use them.
51492         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51493         (gl_REPLACE_FFLUSH): Use it.
51494
51495 2008-04-26  Bruno Haible  <bruno@clisp.org>
51496
51497         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51498         on Solaris.
51499         * tests/test-xstrtoimax.sh: Likewise.
51500         * tests/test-xstrtoumax.sh: Likewise.
51501         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51502
51503 2008-04-26  Bruno Haible  <bruno@clisp.org>
51504
51505         * modules/memchr-tests: New file.
51506         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51507
51508 2008-04-26  Eric Blake  <ebb9@byu.net>
51509             Bruno Haible  <bruno@clisp.org>
51510
51511         * lib/memchr.c: Include intprops.h.
51512         (__memchr): Optimize parallel detection of matching bytes. Rename local
51513         variables. Add explanatory comments.
51514
51515 2008-04-26  Bruno Haible  <bruno@clisp.org>
51516
51517         Fix module 'memchr', broken since 2000-10-28.
51518         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51519
51520 2008-04-26  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51523         comments.
51524
51525 2008-04-25  Eric Blake  <ebb9@byu.net>
51526
51527         Use native fstatat on cygwin 1.7.0.
51528         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51529         first.
51530
51531 2008-04-23  Eric Blake  <ebb9@byu.net>
51532
51533         Improve memchr2 performance.
51534         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51535         NUL bytes.
51536         * modules/memchr2 (Depends-on): Use intprops.h.
51537
51538 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51539
51540         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51541         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51542         <blp@cs.stanford.edu>.
51543
51544 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51545
51546         * lib/arpa_inet.in.h: New file.
51547
51548         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51549         (Makefile.am): Sed in substitute header file.
51550
51551         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51552         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51553
51554         * modules/inet_ntop (configure.ac): Use
51555         gl_ARPA_INET_MODULE_INDICATOR.
51556
51557         * modules/inet_pton (configure.ac): Use
51558         gl_ARPA_INET_MODULE_INDICATOR.
51559
51560 2008-04-22  Jim Meyering  <meyering@redhat.com>
51561
51562         * modules/verify (License): Re-license as LGPLv2+.
51563
51564 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51565
51566         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51567         parameter to void* as per POSIX standard (MinGW uses char*).
51568
51569 2008-04-21  Bruno Haible  <bruno@clisp.org>
51570
51571         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51572         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51573         Define to replacements if REPLACE_ISWCNTRL is 1.
51574         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51575         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51576         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51577         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51578         what it fixes.
51579         * doc/posix-functions/iswalpha.texi: Likewise.
51580         * doc/posix-functions/iswblank.texi: Likewise.
51581         * doc/posix-functions/iswcntrl.texi: Likewise.
51582         * doc/posix-functions/iswdigit.texi: Likewise.
51583         * doc/posix-functions/iswgraph.texi: Likewise.
51584         * doc/posix-functions/iswlower.texi: Likewise.
51585         * doc/posix-functions/iswprint.texi: Likewise.
51586         * doc/posix-functions/iswpunct.texi: Likewise.
51587         * doc/posix-functions/iswspace.texi: Likewise.
51588         * doc/posix-functions/iswupper.texi: Likewise.
51589         * doc/posix-functions/iswxdigit.texi: Likewise.
51590         Reported by Alain Guibert.
51591
51592 2008-04-21  Bruno Haible  <bruno@clisp.org>
51593
51594         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51595         Patch by Alain Guibert.
51596
51597 2008-04-21  Bruno Haible  <bruno@clisp.org>
51598
51599         Fix test failures on mingw.
51600         * tests/test-xstrtol.c (print_no_progname): New function.
51601         (main): Install it in error_print_progname hook.
51602         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51603         * tests/test-xstrtoimax.sh: Likewise.
51604         * tests/test-xstrtoumax.sh: Likewise.
51605
51606 2008-04-21  Bruno Haible  <bruno@clisp.org>
51607
51608         Fix test failure on mingw.
51609         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51610
51611 2008-04-21  Bruno Haible  <bruno@clisp.org>
51612
51613         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51614         Actually assign a value.
51615
51616 2008-04-20  Bruno Haible  <bruno@clisp.org>
51617
51618         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51619         take 2.
51620         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51621         'canonicalize-lgpl' module is also used.
51622         * lib/canonicalize-lgpl.c: Undo last change.
51623         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51624
51625 2008-04-20  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51628         config.h. Provide _mkdir based fallback for mingw.
51629         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51630         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51631         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51632         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51633         rather than defining mkdir in config.h.
51634         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51635         (gl_SYS_STAT_H_DEFAULTS): New macro.
51636         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51637         HAVE_IO_H any more.
51638         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51639         HAVE_DECL_MKDIR and HAVE_IO_H.
51640
51641 2008-04-20  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/isapipe.c: Port to native Windows platforms.
51644
51645 2008-04-20  Bruno Haible  <bruno@clisp.org>
51646
51647         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51648
51649 2008-04-21  Eric Blake  <ebb9@byu.net>
51650
51651         Work around preprocessors that don't handle UINTMAX_MAX.
51652         * lib/memchr2.c (memchr2): Avoid embedded #if.
51653         Reported by Alain Guibert, fix suggested by Bruno Haible.
51654
51655 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51656
51657         * doc/posix-functions/strftime.texi (strftime): Explain better
51658         Windows incompatibility.  Suggested by Micah Cowan
51659         <micah@cowan.name>.
51660
51661 2008-04-20  Bruno Haible  <bruno@clisp.org>
51662
51663         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51664         unistr/u8-mblen.
51665
51666 2008-04-20  Bruno Haible  <bruno@clisp.org>
51667
51668         Fix test failure on platforms with non-GNU iconv.
51669         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51670         (U_TO_U8): Use it, rather than u16_to_u8.
51671         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51672         units at the end of the input string.
51673         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51674
51675 2008-04-20  Bruno Haible  <bruno@clisp.org>
51676
51677         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51678         when the resulting length is 0.
51679         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51680
51681 2008-04-20  Bruno Haible  <bruno@clisp.org>
51682
51683         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51684         works.
51685         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51686
51687 2008-04-20  Bruno Haible  <bruno@clisp.org>
51688
51689         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51690         * modules/tsearch-tests (configure.ac): Test for initstate function.
51691
51692 2008-04-20  Bruno Haible  <bruno@clisp.org>
51693
51694         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51695         for nlink_t if missing.
51696         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51697
51698 2008-04-19  Bruno Haible  <bruno@clisp.org>
51699
51700         Work around snprintf bug on Linux libc5.
51701         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51702         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51703         gl_SNPRINTF_SIZE1.
51704         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51705         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51706         that test failed.
51707         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51708         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51709         * modules/snprintf (Files): Add m4/printf.m4.
51710         * modules/vsnprintf (Files): Likewise.
51711         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51712         * doc/posix-functions/vsnprintf.texi: Likewise.
51713
51714 2008-04-19  Bruno Haible  <bruno@clisp.org>
51715
51716         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51717         from 0.0058 to less than 10^-7.
51718
51719 2008-04-19  Bruno Haible  <bruno@clisp.org>
51720
51721         Fix rounding when a precision is given.
51722         * lib/vasnprintf.c (is_borderline): New function.
51723         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51724         9...9x.
51725         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51726         %e, %g.
51727         * tests/test-vasprintf-posix.c (test_function): Likewise.
51728         * tests/test-snprintf-posix.h (test_function): Likewise.
51729         * tests/test-sprintf-posix.h (test_function): Likewise.
51730         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51731         * tests/test-printf-posix.h (test_function): Likewise.
51732         * tests/test-printf-posix.output: Update.
51733         Reported by John Darrington <john@darrington.wattle.id.au> via
51734         Ben Pfaff <blp@cs.stanford.edu>.
51735
51736 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51737
51738         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51739         Suggested by Bruno Haible <bruno@clisp.org>.
51740
51741 2008-04-17  Bruno Haible  <bruno@clisp.org>
51742
51743         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51744         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51745         implementation.
51746         Patch by Bruce Merry <bmerry@gmail.com>.
51747
51748 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51749
51750         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51751         doesn't work under Windows.
51752
51753 2008-04-16  Bruno Haible  <bruno@clisp.org>
51754
51755         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51756         New macros.
51757         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51758         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51759         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51760         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51761         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51762         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51763         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51764         macros.
51765         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51766         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51767         Northern Sotho, Uighur.
51768
51769 2008-04-16  Bruno Haible  <bruno@clisp.org>
51770
51771         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51772         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51773         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51774         Reported by Daniel Bergström <daniel@octocode.com>.
51775
51776 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51777             Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51780         function.
51781         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51782         New functions, mostly extracted from gl_locale_name_default.
51783         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51784
51785 2008-04-16  Eric Blake  <ebb9@byu.net>
51786
51787         Adjust strtod detection to catch glibc 2.7 bug.
51788         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51789         Reported by John Gatewood Ham.
51790
51791 2008-04-16  Bruno Haible  <bruno@clisp.org>
51792
51793         Add tentative support for Linux libc5.
51794         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51795         * lib/fpurge.c (fpurge): Likewise.
51796         * lib/freadable.c (freadable): Likewise.
51797         * lib/freadahead.c (freadahead): Likewise.
51798         * lib/freading.c (freading): Likewise.
51799         * lib/freadptr.c (freadptr): Likewise.
51800         * lib/freadseek.c (freadptrinc): Likewise.
51801         * lib/fseeko.c (rpl_fseeko): Likewise.
51802         * lib/fseterr.c (fseterr): Likewise.
51803         * lib/fwritable.c (fwritable): Likewise.
51804         * lib/fwriting.c (fwriting): Likewise.
51805         Reported by Alain Guibert <alguibert+bts@free.fr>.
51806
51807 2008-04-15  Bruno Haible  <bruno@clisp.org>
51808
51809         * modules/mathl (configure.ac): Define module indicator.
51810
51811 2008-04-15  Bruno Haible  <bruno@clisp.org>
51812
51813         * lib/logl.c (logl): Remove unused variables.
51814
51815 2008-04-15  Bruno Haible  <bruno@clisp.org>
51816
51817         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51818         fails.
51819
51820 2008-04-15  Bruno Haible  <bruno@clisp.org>
51821
51822         * lib/trim.c (trim2): Fix argument of isspace() macro.
51823
51824 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51825
51826         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51827         to 0.
51828         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51829
51830 2008-04-14  Bruno Haible  <bruno@clisp.org>
51831
51832         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51833         AC_LANG_PROGRAM argument.
51834         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51835         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51836         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51837         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51838         * m4/math_h.m4 (gl_MATH_H): Likewise.
51839         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51840         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51841         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51842         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51843         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51844         * m4/regex.m4 (gl_REGEX): Likewise.
51845         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51846         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51848         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51849         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51850         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51851         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51852         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51853
51854 2008-04-14  Jim Meyering  <meyering@redhat.com>
51855
51856         test-strtod: fix typos: s/abs/fabs/
51857         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51858
51859 2008-04-13  Bruno Haible  <bruno@clisp.org>
51860
51861         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51862         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51863         module is also used and while not building the reloc-wrapper.
51864
51865 2008-04-13  Bruno Haible  <bruno@clisp.org>
51866
51867         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51868
51869 2008-04-13  Bruno Haible  <bruno@clisp.org>
51870
51871         Fix AIX compilation failure introduced on 2008-04-02.
51872         * tests/test-frexp.c (exp): Undefine before redefining.
51873         * tests/test-frexpl.c (exp): Likewise.
51874
51875 2008-04-13  Bruno Haible  <bruno@clisp.org>
51876
51877         Work around a HP-UX stdio bug.
51878         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51879         * tests/test-ftello.c (main): Likewise.
51880         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51881         * doc/posix-functions/ftello.texi: Likewise.
51882
51883 2008-04-13  Bruno Haible  <bruno@clisp.org>
51884
51885         Make test-signbit pass on HP-UX/hppa.
51886         * tests/test-signbit.c (minus_zerol): New variable.
51887         (test_signbitl): Use it.
51888
51889 2008-04-13  Bruno Haible  <bruno@clisp.org>
51890
51891         Make truncl work on OSF/1 4.0.
51892         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51893         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51894         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51896         HAVE_DECL_TRUNCL.
51897         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51898         HAVE_DECL_TRUNCL.
51899         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51900
51901 2008-04-13  Bruno Haible  <bruno@clisp.org>
51902
51903         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51904
51905 2008-04-13  Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51908         expression, so as to avoid HP-UX 11 cc compiler bug.
51909
51910 2008-04-13  Bruno Haible  <bruno@clisp.org>
51911
51912         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51913
51914 2008-04-13  Bruno Haible  <bruno@clisp.org>
51915
51916         * lib/git-merge-changelog.c: Remove empty declaration outside of
51917         functions.
51918
51919 2008-04-13  Bruno Haible  <bruno@clisp.org>
51920
51921         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51922
51923 2008-04-13  Bruno Haible  <bruno@clisp.org>
51924
51925         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51926         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51927         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51928         also if it exists but lacks definitions of the SHUT_* macros.
51929         * modules/sys_socket (Description): Update.
51930         Reported by Elbert Pol <e.pol@chello.nl>.
51931
51932 2008-04-13  Bruno Haible  <bruno@clisp.org>
51933
51934         * lib/localcharset.c (OS2): Don't redefine if already defined.
51935         Reported by Elbert Pol <e.pol@chello.nl>.
51936
51937 2008-04-13  Bruno Haible  <bruno@clisp.org>
51938
51939         * lib/binary-io.h [__EMX__]: Include <io.h>.
51940         Reported by Elbert Pol <e.pol@chello.nl>.
51941
51942 2008-04-12  Bruno Haible  <bruno@clisp.org>
51943
51944         * lib/fpucw.h: Enable the definitions also for x86_64.
51945         Needed for NetBSD/x86_64.
51946         Reported by Thomas Klausner <tk@giga.or.at>.
51947
51948 2008-04-12  Bruno Haible  <bruno@clisp.org>
51949
51950         * tests/test-strtod.c: Include isnand.h.
51951         (main): Use isnand instead of isnan.
51952         Reported by Jim Meyering.
51953
51954 2008-04-12  Bruno Haible  <bruno@clisp.org>
51955
51956         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51957         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51958
51959 2008-04-12  Jim Meyering  <meyering@redhat.com>
51960
51961         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51962
51963 2008-04-12  Bruno Haible  <bruno@clisp.org>
51964
51965         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51966         Reported by Elbert Pol <e.pol@chello.nl>.
51967
51968 2008-04-12  Eric Blake  <ebb9@byu.net>
51969
51970         Work around Solaris 10 math.h bug.
51971         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51972         (gl_MATH_H_DEFAULTS): Set up default.
51973         * modules/math (Makefile.am): Replace new indicators.
51974         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51975         * tests/test-math.c (main): Test this.
51976         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51977         * doc/posix-headers/math.texi (math.h): Mention bug.
51978         Reported by Nelson H. F. Beebe and Jim Meyering.
51979
51980 2008-04-11  Bruno Haible  <bruno@clisp.org>
51981
51982         Adapt to future versions of Apple GCC.
51983         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51984         Reported by Peter O'Gorman <peter@pogma.com>.
51985
51986 2008-04-11  Bruno Haible  <bruno@clisp.org>
51987
51988         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51989
51990 2008-04-11  Bruno Haible  <bruno@clisp.org>
51991
51992         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51993
51994         * modules/getaddrinfo-tests (Makefile.am): Define
51995         test_getaddrinfo_LDADD.
51996
51997 2008-04-11  Bruno Haible  <bruno@clisp.org>
51998
51999         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
52000         (init): Fix syntax error.
52001         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
52002         is declared.
52003
52004 2008-04-11  Bruno Haible  <bruno@clisp.org>
52005
52006         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
52007         * modules/glob (Depends-on): Add stdbool.
52008
52009 2008-04-11  Bruno Haible  <bruno@clisp.org>
52010
52011         * lib/trim.c: Include <string.h>.
52012
52013 2008-04-11  Eric Blake  <ebb9@byu.net>
52014
52015         Avoid compile failure on OS/2.
52016         * lib/regex_internal.h (internal_function): Disable optimization
52017         on OS/2 (__EMX__), where it caused compiler error.
52018         Reported by Elbert Pol.
52019
52020 2008-04-11  Bruno Haible  <bruno@clisp.org>
52021
52022         Flush the standard error stream before aborting. Needed on mingw.
52023         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
52024         * tests/test-array_list.c (ASSERT): Likewise.
52025         * tests/test-array_oset.c (ASSERT): Likewise.
52026         * tests/test-avltree_list.c (ASSERT): Likewise.
52027         * tests/test-avltree_oset.c (ASSERT): Likewise.
52028         * tests/test-avltreehash_list.c (ASSERT): Likewise.
52029         * tests/test-binary-io.c (ASSERT): Likewise.
52030         * tests/test-byteswap.c (ASSERT): Likewise.
52031         * tests/test-c-ctype.c (ASSERT): Likewise.
52032         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
52033         * tests/test-c-strcasestr.c (ASSERT): Likewise.
52034         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
52035         * tests/test-c-strstr.c (ASSERT): Likewise.
52036         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
52037         * tests/test-canonicalize.c (ASSERT): Likewise.
52038         * tests/test-carray_list.c (ASSERT): Likewise.
52039         * tests/test-ceilf1.c (ASSERT): Likewise.
52040         * tests/test-ceilf2.c (ASSERT): Likewise.
52041         * tests/test-ceill.c (ASSERT): Likewise.
52042         * tests/test-count-one-bits.c (ASSERT): Likewise.
52043         * tests/test-fbufmode.c (ASSERT): Likewise.
52044         * tests/test-fflush2.c (ASSERT): Likewise.
52045         * tests/test-floorf1.c (ASSERT): Likewise.
52046         * tests/test-floorf2.c (ASSERT): Likewise.
52047         * tests/test-floorl.c (ASSERT): Likewise.
52048         * tests/test-fopen.c (ASSERT): Likewise.
52049         * tests/test-fpending.c (ASSERT): Likewise.
52050         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52051         * tests/test-fpurge.c (ASSERT): Likewise.
52052         * tests/test-freadable.c (ASSERT): Likewise.
52053         * tests/test-freadahead.c (ASSERT): Likewise.
52054         * tests/test-freading.c (ASSERT): Likewise.
52055         * tests/test-freadptr.c (ASSERT): Likewise.
52056         * tests/test-freadptr2.c (ASSERT): Likewise.
52057         * tests/test-freadseek.c (ASSERT): Likewise.
52058         * tests/test-freopen.c (ASSERT): Likewise.
52059         * tests/test-frexp.c (ASSERT): Likewise.
52060         * tests/test-frexpl.c (ASSERT): Likewise.
52061         * tests/test-fseek.c (ASSERT): Likewise.
52062         * tests/test-fseeko.c (ASSERT): Likewise.
52063         * tests/test-fstrcmp.c (ASSERT): Likewise.
52064         * tests/test-ftell.c (ASSERT): Likewise.
52065         * tests/test-ftello.c (ASSERT): Likewise.
52066         * tests/test-func.c (ASSERT): Likewise.
52067         * tests/test-fwritable.c (ASSERT): Likewise.
52068         * tests/test-fwriting.c (ASSERT): Likewise.
52069         * tests/test-getdelim.c (ASSERT): Likewise.
52070         * tests/test-getline.c (ASSERT): Likewise.
52071         * tests/test-i-ring.c (ASSERT): Likewise.
52072         * tests/test-iconv-utf.c (ASSERT): Likewise.
52073         * tests/test-iconv.c (ASSERT): Likewise.
52074         * tests/test-isfinite.c (ASSERT): Likewise.
52075         * tests/test-isnand.c (ASSERT): Likewise.
52076         * tests/test-isnanf.c (ASSERT): Likewise.
52077         * tests/test-isnanl.h (ASSERT): Likewise.
52078         * tests/test-ldexpl.c (ASSERT): Likewise.
52079         * tests/test-linked_list.c (ASSERT): Likewise.
52080         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52081         * tests/test-localename.c (ASSERT): Likewise.
52082         * tests/test-lseek.c (ASSERT): Likewise.
52083         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52084         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52085         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52086         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52087         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52088         * tests/test-mbschr.c (ASSERT): Likewise.
52089         * tests/test-mbscspn.c (ASSERT): Likewise.
52090         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52091         * tests/test-mbspbrk.c (ASSERT): Likewise.
52092         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52093         * tests/test-mbsrchr.c (ASSERT): Likewise.
52094         * tests/test-mbsspn.c (ASSERT): Likewise.
52095         * tests/test-mbsstr1.c (ASSERT): Likewise.
52096         * tests/test-mbsstr2.c (ASSERT): Likewise.
52097         * tests/test-mbsstr3.c (ASSERT): Likewise.
52098         * tests/test-memchr2.c (ASSERT): Likewise.
52099         * tests/test-memmem.c (ASSERT): Likewise.
52100         * tests/test-open.c (ASSERT): Likewise.
52101         * tests/test-printf-frexp.c (ASSERT): Likewise.
52102         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52103         * tests/test-printf-posix.c (ASSERT): Likewise.
52104         * tests/test-quotearg.c (ASSERT): Likewise.
52105         * tests/test-rbtree_list.c (ASSERT): Likewise.
52106         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52107         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52108         * tests/test-round1.c (ASSERT): Likewise.
52109         * tests/test-roundf1.c (ASSERT): Likewise.
52110         * tests/test-roundl.c (ASSERT): Likewise.
52111         * tests/test-signbit.c (ASSERT): Likewise.
52112         * tests/test-sleep.c (ASSERT): Likewise.
52113         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52114         * tests/test-snprintf.c (ASSERT): Likewise.
52115         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52116         * tests/test-stat-time.c (ASSERT): Likewise.
52117         * tests/test-strcasestr.c (ASSERT): Likewise.
52118         * tests/test-strerror.c (ASSERT): Likewise.
52119         * tests/test-striconv.c (ASSERT): Likewise.
52120         * tests/test-striconveh.c (ASSERT): Likewise.
52121         * tests/test-striconveha.c (ASSERT): Likewise.
52122         * tests/test-strsignal.c (ASSERT): Likewise.
52123         * tests/test-strstr.c (ASSERT): Likewise.
52124         * tests/test-strtod.c (ASSERT): Likewise.
52125         * tests/test-trunc1.c (ASSERT): Likewise.
52126         * tests/test-trunc2.c (ASSERT): Likewise.
52127         * tests/test-truncf1.c (ASSERT): Likewise.
52128         * tests/test-truncf2.c (ASSERT): Likewise.
52129         * tests/test-truncl.c (ASSERT): Likewise.
52130         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52131         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52132         * tests/test-vasnprintf.c (ASSERT): Likewise.
52133         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52134         * tests/test-vasprintf.c (ASSERT): Likewise.
52135         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52136         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52137         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52138         * tests/test-vsnprintf.c (ASSERT): Likewise.
52139         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52140         * tests/test-wcwidth.c (ASSERT): Likewise.
52141         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52142         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52143         * tests/test-xvasprintf.c (ASSERT): Likewise.
52144         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52145         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52146         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52147         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52148         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52149         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52150         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52151         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52152         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52153         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52154         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52155         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52156         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52157         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52158         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52159         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52160         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52161         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52162         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52163         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52164         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52165         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52166         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52167         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52168         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52169         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52170         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52171         * tests/unictype/test-combining.c (ASSERT): Likewise.
52172         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52173         * tests/unictype/test-digit.c (ASSERT): Likewise.
52174         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52175         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52176         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52177         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52178         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52179         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52180         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52181         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52182         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52183         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52184         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52185         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52186         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52187         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52188         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52189         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52190         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52191         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52192         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52193         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52194         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52195         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52196         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52197         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52198         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52199         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52200         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52201         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52202         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52203         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52204         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52205         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52206         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52207         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52208         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52209         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52210         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52211         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52212         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52213         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52214         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52215         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52216         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52217         Reported by Eric Blake.
52218
52219 2008-04-11  Bruno Haible  <bruno@clisp.org>
52220
52221         * lib/wchar.in.h: Tweak comment.
52222
52223 2008-04-11  Bruno Haible  <bruno@clisp.org>
52224
52225         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52226         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52227         gl_COMMON.
52228         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52229
52230 2008-04-11  Bruno Haible  <bruno@clisp.org>
52231
52232         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52233
52234 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52235
52236         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52237         of attempting to use non-existing /dev/*random.  Based on patch
52238         from Adam Strzelecki <ono@java.pl> in
52239         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52240
52241 2008-04-08  Bruno Haible  <bruno@clisp.org>
52242
52243         Add tentative support for emx+gcc.
52244         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52245         * lib/fpurge.c (fpurge): Likewise.
52246         * lib/freadable.c (freadable): Likewise.
52247         * lib/freadahead.c (freadahead): Likewise.
52248         * lib/freading.c (freading): Likewise.
52249         * lib/freadptr.c (freadptr): Likewise.
52250         * lib/freadseek.c (freadptrinc): Likewise.
52251         * lib/fseeko.c (rpl_fseeko): Likewise.
52252         * lib/fseterr.c (fseterr): Likewise.
52253         * lib/fwritable.c (fwritable): Likewise.
52254         * lib/fwriting.c (fwriting): Likewise.
52255         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52256
52257 2008-04-09  Eric Blake  <ebb9@byu.net>
52258
52259         Avoid some autoconf warnings.
52260         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52261         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52262         * m4/afs.m4 (gl_AFS): Likewise.
52263         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52264         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52265         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52266         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52267         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52268         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52269         (AC_CHECK_DECLS_ONCE): Likewise.
52270         Rename file...
52271         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52272         gnulib-tool requires autoconf 2.59 or better.
52273         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52274
52275 2008-04-08  Eric Blake  <ebb9@byu.net>
52276
52277         Use 'git describe --match' if present (added in git 1.5.5).
52278         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52279         if possible.
52280
52281 2008-04-08  Bruno Haible  <bruno@clisp.org>
52282
52283         Add tentative support for OpenServer.
52284         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52285         _ptr, _cnt.
52286         * lib/fpurge.c (fpurge): Likewise.
52287         * lib/freadable.c (freadable): Likewise.
52288         * lib/freadahead.c (freadahead): Likewise.
52289         * lib/freading.c (freading): Likewise.
52290         * lib/freadptr.c (freadptr): Likewise.
52291         * lib/freadseek.c (freadptrinc): Likewise.
52292         * lib/fseeko.c (rpl_fseeko): Likewise.
52293         * lib/fseterr.c (fseterr): Likewise.
52294         * lib/fwritable.c (fwritable): Likewise.
52295         * lib/fwriting.c (fwriting): Likewise.
52296         Reported by Roger Cornelius <rac@tenzing.org> and
52297         Brian K. White <brian@aljex.com>.
52298
52299 2008-04-06  Jim Meyering  <meyering@redhat.com>
52300
52301         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52302
52303 2008-04-06  Bruno Haible  <bruno@clisp.org>
52304
52305         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52306         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52307         * tests/test-printf-posix.sh: Likewise.
52308         * tests/test-vfprintf-posix.sh: Likewise.
52309         * tests/test-vprintf-posix.sh: Likewise.
52310         * tests/test-xprintf-posix.sh: Likewise.
52311
52312 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52313
52314         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52315         hide error from 'ls', needed on OS/2.
52316         Report by Elbert Pol <elbert.pol@gmail.com>.
52317
52318 2008-04-04  Eric Blake  <ebb9@byu.net>
52319
52320         Make test-fseeko.c failures meaningful.
52321         * tests/test-fseeko.c: Print line number on failure.
52322         * tests/test-fseek.c: Likewise.
52323         Reported by Nelson H. F. Beebe.
52324
52325         Improve strtod bug detection check.
52326         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52327         required for Solaris 10.
52328         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52329
52330 2008-04-04  Bruno Haible  <bruno@clisp.org>
52331
52332         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52333         by m4/setenv.m4.
52334
52335 2008-04-03  Eric Blake  <ebb9@byu.net>
52336
52337         Ensure sane .version contents.
52338         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52339         version string.
52340         * build-aux/git-version-gen: Improve documentation.
52341
52342         Make GNU make output nicer.
52343         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52344         MAKECMDGOALS to enforce message for all command line targets.  Set
52345         srcdir for use in maint.mk.
52346
52347         Another maintainer tweak.
52348         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52349         a target that regenerates version.
52350
52351 2008-04-03  Jim Meyering  <meyering@redhat.com>
52352
52353         vc-list-files: don't cause coreutils "make po-check" failure
52354         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52355
52356 2008-04-03  Eric Blake  <ebb9@byu.net>
52357
52358         Allow VPATH usage of vc-list-files.
52359         * build-aux/vc-list-files (scriptversion): Add timestamp.
52360         (options): Add --help, --version, -C.
52361         (CVS): Support installed cvsu.
52362
52363 2008-04-02  Bruno Haible  <bruno@clisp.org>
52364
52365         Avoid some "statement with no effect" warnings from gcc.
52366         * tests/test-wctype.c (main): Explicitly ignore unused values.
52367         Reported by Jim Meyering.
52368
52369 2008-04-02  Jim Meyering  <meyering@redhat.com>
52370
52371         Avoid some warnings from "gcc -Wshadow".
52372         * tests/test-frexp.c (exp): Define to a different identifier.
52373         * tests/test-frexpl.c (exp): Likewise.
52374
52375 2008-04-03  Jim Meyering  <meyering@redhat.com>
52376
52377         bootstrap: remove dangling *.[ch] symlinks from lib
52378         * build-aux/bootstrap [dangling symlink removal]: Move find's
52379         -depth option to precede all others, to avoid a warning.
52380         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52381
52382 2008-04-02  Bruno Haible  <bruno@clisp.org>
52383
52384         Avoid some warnings from "gcc -Wshadow".
52385         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52386         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52387         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52388         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52389         Reported by Jim Meyering.
52390
52391 2008-04-01  Bruno Haible  <bruno@clisp.org>
52392
52393         Fix test to work on IRIX 6.5 with cc.
52394         * tests/test-math.c (numeric_equal): New function.
52395         (main): Use it.
52396
52397 2008-04-01  Bruno Haible  <bruno@clisp.org>
52398
52399         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52400
52401 2008-04-01  Bruno Haible  <bruno@clisp.org>
52402
52403         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52404         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52405         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52406         (Depends-on): Remove math.
52407
52408         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52409         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52410         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52411         (Depends-on): Remove math.
52412
52413         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52414         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52415         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52416         (Depends-on): Remove math.
52417         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52418         (Depends-on): Remove math.
52419
52420         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52421         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52422         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52423         (Depends-on): Remove math.
52424         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52425         (Depends-on): Remove math.
52426
52427         * tests/test-round1.c: Include nan.h.
52428         (main): Use NaNd instead of NAN.
52429         * modules/round-tests (Files): Add tests/nan.h.
52430
52431         * tests/test-trunc1.c: Include nan.h.
52432         (main): Use NaNd instead of NAN.
52433         * modules/trunc-tests (Files): Add tests/nan.h.
52434
52435         * tests/test-roundf1.c: Include nan.h.
52436         (main): Use NaNf instead of NAN.
52437         * modules/roundf-tests (Files): Add tests/nan.h.
52438
52439         * tests/test-truncf1.c: Include nan.h.
52440         (main): Use NaNf instead of NAN.
52441         * modules/truncf-tests (Files): Add tests/nan.h.
52442
52443         * tests/test-ceilf1.c: Include nan.h.
52444         (main): Use NaNf instead of NAN.
52445         * modules/ceilf-tests (Files): Add tests/nan.h.
52446
52447         * tests/test-floorf1.c: Include nan.h.
52448         (main): Use NaNf instead of NAN.
52449         * modules/floorf-tests (Files): Add tests/nan.h.
52450
52451         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52452         (main): Use NaNf instead of NAN.
52453         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52454
52455         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52456         (main): Use NaNd instead of NAN.
52457         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52458
52459         * tests/test-frexp.c: Include nan.h.
52460         (main): Use NaNd instead of NAN.
52461         * modules/frexp-tests (Files): Add tests/nan.h.
52462
52463         * lib/isnan.c: Don't include <math.h>.
52464         (FUNC): Don't use NAN macro.
52465         * modules/isnand-nolibm (Depends-on): Remove math.
52466         * modules/isnanf-nolibm (Depends-on): Remove math.
52467         * modules/isnanl (Depends-on): Remove math.
52468         * modules/isnanl-nolibm (Depends-on): Remove math.
52469
52470         * tests/nan.h: New file.
52471
52472 2008-04-01  Eric Blake  <ebb9@byu.net>
52473
52474         Fix typos.
52475         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52476         values to be the right type.
52477
52478         For now, cater to gnulib strtod inaccuracies.
52479         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52480         fractional results.  While not as nice from a QoI perspective, it
52481         is a quicker patch than correctly implementing decimal to binary
52482         rounding.
52483
52484 2008-03-31  Eric Blake  <ebb9@byu.net>
52485
52486         Guarantee a definition of NAN.
52487         * lib/math.in.h (NAN): Define if missing.
52488         * tests/test-math.c (main): Test it.
52489         * doc/posix-headers/math.texi (math.h): Document this.
52490         * lib/isnan.c (rpl_isnand): Use it.
52491         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52492         * tests/test-floorf1.c (NaN): Likewise.
52493         * tests/test-frexp.c (NaN): Likewise.
52494         * tests/test-isnand.c (NaN): Likewise.
52495         * tests/test-isnanf.c (NaN): Likewise.
52496         * tests/test-round1.c (NaN): Likewise.
52497         * tests/test-roundf1.c (NaN): Likewise.
52498         * tests/test-snprintf-posix.h (NaN): Likewise.
52499         * tests/test-sprintf-posix.h (NaN): Likewise.
52500         * tests/test-trunc1.c (NaN): Likewise.
52501         * tests/test-truncf1.c (NaN): Likewise.
52502         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52503         * tests/test-vasprintf-posix.c (NaN): Likewise.
52504         * modules/isnand-nolibm (Depends-on): Add math.
52505         * modules/isnanf-nolibm (Depends-on): Likewise.
52506         * modules/isnanl (Depends-on): Likewise.
52507         * modules/isnanl-nolibm (Depends-on): Likewise.
52508         * modules/snprintf-posix-tests (Depends-on): Likewise.
52509         * modules/sprintf-posix-tests (Depends-on): Likewise.
52510         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52511         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52512         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52513         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52514
52515 2008-03-31  Bruno Haible  <bruno@clisp.org>
52516
52517         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52518         * doc/posix-functions/strtod.texi: Likewise.
52519
52520 2008-03-31  Bruno Haible  <bruno@clisp.org>
52521
52522         * tests/test-strtod.c (main): Don't use C99 syntax.
52523
52524 2008-03-31  Bruno Haible  <bruno@clisp.org>
52525
52526         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52527         Reported by Eric Blake.
52528
52529 2008-03-31  Jim Meyering  <meyering@redhat.com>
52530
52531         Don't compare actual signbit return values.
52532         * tests/test-strtod.c (main): Rather, compare only their
52533         zero/non-zero nature.
52534
52535 2008-03-31  Eric Blake  <ebb9@byu.net>
52536
52537         More strtod documentation.
52538         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52539         failures as distinct bugs.
52540
52541 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52542
52543         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52544         Problem reported by Erik Benada in
52545         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52546
52547 2008-03-30  Bruno Haible  <bruno@clisp.org>
52548
52549         * tests/test-strtod.c: Add comments about which assertion fails on which
52550         platform.
52551         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52552
52553 2008-03-30  Eric Blake  <ebb9@byu.net>
52554
52555         Test signbit behavior on zeros.
52556         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52557         (test_signbitd, test_signbitl): Likewise.
52558
52559         More strtod touchups.
52560         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52561         sign of negative underflow, for now.  Use .5, not .1.
52562         * doc/posix-functions/strtod.texi (strtod): Mention these
52563         limitations.
52564         Reported by Jim Meyering.
52565
52566 2008-03-30  Bruno Haible  <bruno@clisp.org>
52567
52568         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52569         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52570
52571 2008-03-30  Bruno Haible  <bruno@clisp.org>
52572
52573         Avoid failure when attempting to return empty iconv results on some
52574         platforms.
52575         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52576         allocation, don't report ENOMEM when the resulting string is empty.
52577
52578 2008-03-30  Bruno Haible  <bruno@clisp.org>
52579
52580         Fix buffer overrun.
52581         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52582         Don't consider the width for tmp_length. Check count against tmp_length
52583         before doing the padding. Ensure enough allocation during padding.
52584
52585 2008-03-30  Eric Blake  <ebb9@byu.net>
52586
52587         strtod touchups.
52588         * lib/strtod.c (strtod): Avoid compiler warnings.
52589         Reported by Jim Meyering.
52590
52591 2008-03-30  Bruno Haible  <bruno@clisp.org>
52592
52593         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52594         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52595         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52596         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52597         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52598         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52599         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52600         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52601
52602         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52603         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52604         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52605         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52606         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52607         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52608         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52609         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52610
52611         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52612         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52613         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52614         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52615         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52616         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52617         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52618         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52619
52620         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52621         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52622
52623         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52624         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52625
52626         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52627         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52628
52629         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52630         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52631         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52632
52633         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52635         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52636
52637         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52639         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52640
52641         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52642         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52643         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52644
52645         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52646         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52647         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52648         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52649         (Depends-on): Add EOVERFLOW.
52650         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52651         (Depends-on): Add EOVERFLOW.
52652         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52653         (Depends-on): Add EOVERFLOW.
52654         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52655         (Depends-on): Add EOVERFLOW.
52656         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52657         (Depends-on): Add EOVERFLOW.
52658         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52659         (Depends-on): Add EOVERFLOW.
52660         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52661         (Depends-on): Add EOVERFLOW.
52662         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52663         (Depends-on): Add EOVERFLOW.
52664
52665         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52666         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52667         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52668
52669         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52671         * modules/snprintf (Depends-on): Add EOVERFLOW.
52672
52673         * lib/poll.c (EOVERFLOW): Remove fallback.
52674         * modules/poll (Depends-on): Add EOVERFLOW.
52675
52676         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52677         * modules/getugroups (Depends-on): Add EOVERFLOW.
52678
52679         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52680         * modules/getdelim (Depends-on): Add EOVERFLOW.
52681
52682         * lib/ftell.c (EOVERFLOW): Remove fallback.
52683         * modules/ftell (Depends-on): Add EOVERFLOW.
52684
52685         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52686         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52687         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52688
52689         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52690
52691         * modules/EOVERFLOW-tests: New file.
52692         * tests/test-EOVERFLOW.c: New file.
52693
52694         * modules/EOVERFLOW: New file.
52695         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52696
52697 2008-03-30  Bruno Haible  <bruno@clisp.org>
52698
52699         Fix bug introduced on 2007-06-10.
52700         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52701         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52702
52703 2008-03-30  Bruno Haible  <bruno@clisp.org>
52704
52705         Improve freadseek's efficiency after ungetc.
52706         * lib/freadseek.c: Include freadahead.h.
52707         (freadptrinc): New function, extracted from freadseek.
52708         (freadseek): Use it in a loop. Use freadahead to determine the number
52709         of loop iterations.
52710         * modules/freadseek (Depends-on): Add freadahead.
52711         (configure.ac): Require AC_C_INLINE.
52712
52713 2008-03-30  Bruno Haible  <bruno@clisp.org>
52714
52715         * lib/freadseek.c (freadseek): Don't ignore the return value of
52716         freadptr.
52717
52718 2008-03-29  Eric Blake  <ebb9@byu.net>
52719
52720         Add hex float support.
52721         * modules/strtod (Depends-on): Add c-ctype.
52722         (Link): Mention POW_LIB.
52723         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52724         whitespace between 'e' and exponent.
52725         * tests/test-strtod.c (main): Enable hex float tests.
52726         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52727         now provides.
52728
52729         Document various strtod bugs, with some fixes.
52730         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52731         "-0x", "inf", "nan", and hex constants.
52732         * doc/posix-functions/atof.texi (atof): Likewise.
52733         * modules/stdlib (Makefile.am): Support strtod.
52734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52735         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52736         detect additional strtod bugs.
52737         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52738         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52739         bool where appropriate.  Parse 'inf' and 'nan'.
52740         * tests/test-strtod.c: New file.
52741         * modules/strtod (Depends-on): Add stdbool, stdlib.
52742         (configure.ac): Turn on module indicator.
52743         * modules/strtod-tests: New module.
52744
52745 2008-03-29  Eric Blake  <ebb9@byu.net>
52746
52747         Fix ftell on mingw.
52748         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52749         * modules/ftell-tests (Depends-on): Add binary-io.
52750         * modules/ftello-tests (Depends-on): Likewise.
52751         * tests/test-ftell.c (main): Enhance test to cover behavior after
52752         ungetc.  Enforce binary mode.
52753         * tests/test-ftello.c (main): Likewise.
52754
52755         Pass test-freadseek on cygwin.
52756         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52757         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52758         ungetc buffer.
52759
52760         * tests/test-fflush2.c (main): Fix typo.
52761
52762 2008-03-29  Bruno Haible  <bruno@clisp.org>
52763
52764         * tests/test-fflush2.c (main): Temporarily disable the contents of
52765         this test.
52766         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52767         Reported by Eric Blake.
52768
52769 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52770
52771         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52772         (GC_SHA224_DIGEST_SIZE): Add.
52773
52774         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52775         (gc_hash_digest_length): Likewise.
52776         (gc_hash_buffer): Likewise.
52777
52778 2008-03-25  Bruno Haible  <bruno@clisp.org>
52779
52780         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52781         detail which gettext release to use.
52782         Reported by Simon Josefsson.
52783
52784 2008-03-26  Jim Meyering  <meyering@redhat.com>
52785
52786         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52787         * modules/gnumakefile (clean-GNUmakefile): Also, use
52788         test ... && ... || : syntax rather than if-then ... fi.
52789
52790         gnumakefile: Don't double-quote-expand $(VPATH) value.
52791         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52792
52793 2008-03-24  Eric Blake  <ebb9@byu.net>
52794
52795         Alter GNUmakefile to install into top directory.
52796         * modules/maintainer-makefile: Split, and add dependency...
52797         * modules/gnumakefile: to this new module.
52798         * build-aux/GNUmakefile: Move...
52799         * top/GNUmakefile: ...here.
52800         * build-aux/maint.mk: Move...
52801         * top/maint.mk: ...here.
52802         * MODULES.html.sh (Support for maintaining...): Document new
52803         module.
52804
52805 2008-03-23  Bruno Haible  <bruno@clisp.org>
52806
52807         * gnulib-tool: New options --vc-files, --no-vc-files.
52808         (func_usage): Document them.
52809         (vc_files): New variable.
52810         (func_import): Consider vc_files.
52811         (func_create_testdir): Set vc_files to empty.
52812         Suggested by Jim Meyering and Karl Berry.
52813
52814 2008-03-23  Bruno Haible  <bruno@clisp.org>
52815
52816         Fix regex compilation error on HP-UX 11.
52817         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52818         * modules/regex (Files): Add m4/mbstate_t.m4.
52819         Reported by Ton Voon <ton.voon@altinity.com>.
52820
52821 2008-03-23  Bruno Haible  <bruno@clisp.org>
52822
52823         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52824
52825 2008-03-23  Eric Blake  <ebb9@byu.net>
52826             Bruno Haible  <bruno@clisp.org>
52827
52828         Install files from top/ in the destination directory.
52829         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52830         augmentation also for the files from top/.
52831         (func_import, func_create_testdir): Rewrite file names:
52832         top/filename -> filename.
52833
52834 2008-03-23  Bruno Haible  <bruno@clisp.org>
52835
52836         Tweak "gnulib --version" output.
52837         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52838
52839 2008-03-23  Bruno Haible  <bruno@clisp.org>
52840
52841         Tweak "gnulib --version" output.
52842         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52843         rather than contents of ChangeLog, when possible.
52844
52845 2008-03-21  Eric Blake  <ebb9@byu.net>
52846
52847         More --version tweaks.
52848         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52849         date of last ChangeLog entry.
52850
52851 2008-03-21  Jim Meyering  <meyering@redhat.com>
52852
52853         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52854
52855 2008-03-20  Eric Blake  <ebb9@byu.net>
52856
52857         VPATH fix.
52858         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52859
52860 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52861
52862         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52863         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52864
52865 2008-03-20  Eric Blake  <ebb9@byu.net>
52866
52867         Sync GNUmakefile with coreutils.
52868         * build-aux/GNUmakefile (have-Makefile): Rename...
52869         (_have-Makefile): ...to this, for namespace consideration.
52870         (GNUmakefile.cfg): Include, if present.
52871         (_autoreconf): Define a default.
52872         (_is-dist-target): New rule for rebuilds to pick up intra-release
52873         version.
52874         (maint-cfg.mk): Rename...
52875         (cfg.mk): ...to this.
52876
52877 2008-03-18  Jim Meyering  <meyering@redhat.com>
52878
52879         New script and module: mktempd
52880         * MODULES.html.sh (maint+release support): Add mktempd.
52881         * build-aux/mktempd: New file.
52882         * modules/mktempd: New file.
52883
52884 2008-03-15  Jim Meyering  <meyering@redhat.com>
52885
52886         Undo last change.
52887         * lib/sha1.c, lib/md5.c: 63 != ~63.
52888         Reported by Andreas Schwab.
52889
52890         sha1.c, md5.c: Hoist a redundant expression.
52891         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52892         "ctx->buflen" only once, before calling *_process_block.
52893         * lib/md5.c (md5_process_bytes): Likewise.
52894
52895 2008-03-14  Eric Blake  <ebb9@byu.net>
52896
52897         Bump copyright year in files generated by gnulib-tool.
52898         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52899         gnulib-tool, rather than hard-coding it.
52900
52901         Fix 'gnulib-tool --version' output to work with git.
52902         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52903         (startup): ...here.
52904         (func_version): Use it to invoke git-version-gen, rather than
52905         relying on CVS keyword expansion.  Modernize wording.
52906         (cvsdatestamp, last_checkin_date, version): Kill unused
52907         variables.
52908
52909 2008-03-12  Jim Meyering  <meyering@redhat.com>
52910
52911         Recognize optional cast of the argument to free.
52912         * build-aux/useless-if-before-free: Update regexps.
52913
52914         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52915
52916 2008-03-11  Bruno Haible  <bruno@clisp.org>
52917
52918         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52919         by a single package.
52920         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52921         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52922         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52923         Reported by Sam Steingold <sds@gnu.org>.
52924
52925 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52926
52927         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52928         repositories.
52929
52930 2008-03-11  Bruno Haible  <bruno@clisp.org>
52931
52932         Avoid conflicts between local macro definitions.
52933         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52934         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52935
52936 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52937             Bruno Haible  <bruno@clisp.org>
52938
52939         Make va_copy work with some version of xlc on AIX 5.1.
52940         * lib/stdarg.in.h: New file.
52941         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52942         On AIX, use a <stdarg.h> file substitute.
52943         * modules/stdarg (Files): Add lib/stdarg.in.h.
52944         (Depends-on): Add include_next.
52945         (Makefile.am): Build a stdarg.h substitute if requested.
52946         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52947
52948 2008-03-10  Bruno Haible  <bruno@clisp.org>
52949
52950         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52951         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52952         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52953
52954 2008-03-10  Bruno Haible  <bruno@clisp.org>
52955
52956         * modules/stdlib (Depends-on): Add include_next, remove
52957         absolute-header.
52958
52959 2008-03-09  Bruno Haible  <bruno@clisp.org>
52960
52961         * lib/freadahead.h (freadahead): Document more precisely.
52962         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52963         the sum of both buffer sizes.
52964         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52965         * NEWS: Document the change.
52966
52967 2008-03-09  Bruno Haible  <bruno@clisp.org>
52968
52969         Extend freadptr to return also the buffer size.
52970         * lib/freadptr.h (freadptr): Add sizep argument.
52971         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52972         (freadptr): Add sizep argument. Determine buffer size like freadahead
52973         does.
52974         * tests/test-freadptr.c: Don't include freadahead.h.
52975         (main): Adapt for new calling convention of freadptr.
52976         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52977         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52978         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52979         tests/test-freadptr2.sh.
52980         (Depends): Remove freadahead.
52981         (TESTS): Add test-freadptr2.sh.
52982         (check_PROGRAMS): Add test-freadptr2.
52983
52984 2008-03-09  Bruno Haible  <bruno@clisp.org>
52985
52986         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52987         Report and solution by Simon Josefsson.
52988
52989 2008-03-06  Bruno Haible  <bruno@clisp.org>
52990
52991         Make fflush after ungetc work on BSD platforms.
52992         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52993         * tests/test-fflush2.c: New file.
52994         * tests/test-fflush2.sh: New file.
52995         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52996         tests/test-fflush2.c.
52997         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52998         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52999
53000 2008-03-06  Eric Blake  <ebb9@byu.net>
53001
53002         Likewise for ftello.
53003         * modules/ftello (Dependencies): Add extensions.
53004         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
53005
53006 2008-03-06  Bruno Haible  <bruno@clisp.org>
53007
53008         * modules/fseeko (Dependencies): Add extensions.
53009         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
53010         Needed on glibc systems.
53011
53012 2008-03-06  Bruno Haible  <bruno@clisp.org>
53013
53014         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
53015         email address.
53016         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53017
53018 2008-03-06  Bruno Haible  <bruno@clisp.org>
53019
53020         * users.txt: Add libgnupdf.
53021
53022 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53023
53024         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
53025         (Header File Substitutes, Function Substitutes,
53026         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
53027         (Build robot for gnulib): Fix typo.
53028
53029 2008-03-06  Bruno Haible  <bruno@clisp.org>
53030
53031         * doc/gnulib-tool.texi (VCS Issues): Small updates.
53032         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53033
53034 2008-03-06  Bruno Haible  <bruno@clisp.org>
53035
53036         * doc/func.texi: New file, extracted from doc/gnulib.texi.
53037         * doc/gnulib.texi: Include it.
53038
53039 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53040
53041         * modules/func (License): Change license to unlimited; there was
53042         no LGPL parts in the module anyway.
53043
53044 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53045
53046         * modules/__func__: Renamed to modules/func.
53047         * modules/__func__-tests: Renamed to modules/func-tests.
53048         * tests/test-__func__.c: Renamed to tests/test-func.c.
53049         * m4/__func__.m4: Renamed to m4/func.m4.
53050         * doc/gnulib.texi (__func__): Section renamed to func.
53051         Suggested by Eric Blake <ebb9@byu.net>.
53052
53053 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53054
53055         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53056         about __func__.  Make example self-contained.  Suggested by Eric
53057         Blake <ebb9@byu.net>.
53058
53059         * tests/test-__func__.c (main): Avoid extraneous () around __func.
53060         Suggested by Eric Blake <ebb9@byu.net>.
53061
53062 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53063
53064         * modules/__func__: New file.
53065         * modules/__func__-tests: New file.
53066         * tests/test-__func__.c: New file.
53067         * m4/__func__.m4: New file.
53068         * doc/gnulib.texi (__func__): Document __func__ module.
53069
53070 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53071
53072         * modules/byteswap (License): Re-license as LGPLv2+.
53073
53074 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53075
53076         * doc/Makefile: Add pdf target.
53077
53078 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53079
53080         * modules/inline (License): Use 'unlimited', since there are only
53081         *.m4 files in this module.
53082
53083 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53084             Bruno Haible  <bruno@clisp.org>
53085
53086         Add support for HP C 7.1 on OpenVMS 8.3.
53087         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53088
53089 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53090
53091         Update VMS specifics.
53092         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53093
53094 2008-03-02  Jim Meyering  <meyering@redhat.com>
53095
53096         Remove the last dependency on the "free" module.
53097         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53098         Reported by Bob Proulx.
53099
53100         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53101
53102         Remove useless "if" tests before free.  Deprecate "free" module.
53103         * doc/posix-functions/free.texi: Mention that this
53104         module is no longer useful.
53105         * modules/free (Notice): Say this module is obsolete.
53106         * modules/readutmp (Depends-on): Remove free.
53107         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53108         * lib/putenv.c (putenv): Likewise.
53109         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53110         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53111         * tests/test-c-strcasestr.c (main): Likewise.
53112         * tests/test-c-strstr.c (main): Likewise.
53113         * tests/test-mbscasestr1.c (main): Likewise.
53114         * tests/test-mbscasestr2.c (main): Likewise.
53115         * tests/test-mbsstr1.c (main): Likewise.
53116         * tests/test-mbsstr2.c (main): Likewise.
53117         * tests/test-memmem.c (main): Likewise.
53118         * tests/test-strcasestr.c (main): Likewise.
53119         * tests/test-striconv.c (main): Likewise.
53120         * tests/test-striconveh.c (main): Likewise.
53121         * tests/test-striconveha.c (main): Likewise.
53122         * tests/test-strstr.c (main): Likewise.
53123
53124         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53125
53126         bootstrap: sync from coreutils again
53127         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53128
53129 2008-03-01  Jim Meyering  <meyering@redhat.com>
53130
53131         bootstrap: sync from coreutils
53132         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53133         also when the target doesn't exist.
53134
53135 2008-03-01  Eric Blake  <ebb9@byu.net>
53136
53137         Fix bugs in last patch.
53138         * lib/memchr2.c (memchr2): Fix typo.
53139         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53140         extension.
53141         Reported by Bruce Korb.
53142
53143         New module 'memchr2'.
53144         * modules/memchr2: New file.
53145         * modules/memchr2-tests: Likewise.
53146         * lib/memchr2.h: Likewise.
53147         * lib/memchr2.c: Likewise, based on memchr.c.
53148         * tests/test-memchr2.c: New test.
53149         * MODULES.html.sh (String handling): Add memchr2.
53150
53151 2008-02-29  Bruno Haible  <bruno@clisp.org>
53152
53153         * modules/freadseek-tests: New file.
53154         * tests/test-freadseek.sh: New file.
53155         * tests/test-freadseek.c: New file.
53156
53157         New module 'freadseek'.
53158         * modules/freadseek: New file.
53159         * lib/freadseek.h: New file.
53160         * lib/freadseek.c: New file.
53161         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53162
53163 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53164
53165         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53166         wydawca.
53167
53168         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53169         program_invocation_name and program_invocation_short_name are
53170         present.
53171
53172 2008-02-28  Bruno Haible  <bruno@clisp.org>
53173
53174         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53175         * tests/test-freadptr.sh: Also test non-seekable stdin.
53176
53177 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53178
53179         * build-aux/bootstrap (source_base, m4_base)
53180         (doc_base, tests_base): New variables.
53181         (gnulib_tool_options): Do not hardcode base directories, use
53182         the above variables instead.
53183
53184 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53185
53186         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53187
53188 2008-02-28  Bruno Haible  <bruno@clisp.org>
53189
53190         * modules/freadptr-tests: New file.
53191         * tests/test-freadptr.sh: New file.
53192         * tests/test-freadptr.c: New file.
53193
53194         New module 'freadptr'.
53195         * modules/freadptr: New file.
53196         * lib/freadptr.h: New file.
53197         * lib/freadptr.c: New file.
53198         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53199
53200 2008-02-26  Karl Berry  <karl@freefriends.org>
53201
53202         Sync from Libtool:
53203         * libltdl/argz.c (argz_add, argz_count): New functions.
53204         * libltdl/argz.in.h: Declare them.
53205         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53206
53207 2008-02-22  Bruno Haible  <bruno@clisp.org>
53208
53209         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53210         is a pointer type.  Needed for HP-UX 10.
53211         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53212         * doc/posix-functions/gmtime_r.texi: Likewise.
53213         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53214
53215 2008-02-24  Bruno Haible  <bruno@clisp.org>
53216
53217         * modules/environ-tests: New file.
53218         * tests/test-environ.c: New file.
53219
53220         New module 'environ'.
53221         * modules/environ: New file.
53222         * lib/unistd.in.h (environ): New declaration.
53223         * m4/environ.m4: New file.
53224         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53225         after use.
53226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53227         HAVE_DECL_ENVIRON.
53228         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53229         HAVE_DECL_ENVIRON.
53230         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53231         wrong claim that 'environ' is missing on some systems.
53232         * modules/execute (Depends-on): Add environ.
53233         * lib/execute.c (environ): Remove fallback declaration.
53234         * modules/pipe (Depends-on): Add environ.
53235         * lib/pipe.c (environ): Remove fallback declaration.
53236         * modules/setenv (Depends-on): Add environ.
53237         * lib/setenv.c (environ): Remove fallback declaration.
53238         * modules/unsetenv (Depends-on): Add environ.
53239         * lib/unsetenv.c (environ): Remove fallback declaration.
53240         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53241         m4/environ.m4.
53242         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53243         (gl_PREREQ_UNSETENV): Likewise.
53244
53245 2008-02-24  Bruno Haible  <bruno@clisp.org>
53246
53247         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53248
53249 2008-02-20  Bob Proulx  <bob@proulx.com>
53250
53251         Enable use of older two part flavor 'git describe'.
53252         * build-aux/git-version-gen: If using the older two part flavor of
53253         git version then recreate the third part now present in the
53254         newer three part flavor of git describe.
53255
53256 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53257
53258         * lib/fts.c (fts_build): Typo correction to comment.
53259
53260 2008-02-17  Bruno Haible  <bruno@clisp.org>
53261
53262         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53263         generating no-op conflicts.
53264
53265 2008-02-17  Bruno Haible  <bruno@clisp.org>
53266
53267         Speed up by 10%.
53268         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53269         result_entries, rather than an index-based loop.
53270
53271 2008-02-17  Bruno Haible  <bruno@clisp.org>
53272
53273         Speed up by 25%.
53274         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53275         'hashcode_cached'.
53276         (entry_create): New function.
53277         (entry_hashcode): Use the cached hashcode if possible.
53278         (read_changelog_file, try_split_merged_entry): Use entry_create.
53279
53280 2008-02-17  Bruno Haible  <bruno@clisp.org>
53281
53282         Speed up from O(n^2) to O(n) for long ChangeLog files.
53283         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53284         (read_changelog_file): Change implementation of entries_reversed list
53285         to rbtreehash.
53286         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53287
53288 2008-02-17  Bruno Haible  <bruno@clisp.org>
53289
53290         New option --split-merged-entry.
53291         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53292         (find_paragraph_end, try_split_merged_entry): New functions.
53293         (long_options): Add option --split-merged-entry.
53294         (usage): Document option --split-merged-entry.
53295         (main): Implement option --split-merged-entry.
53296         Reported by Eric Blake.
53297
53298 2008-02-17  Bruno Haible  <bruno@clisp.org>
53299
53300         * lib/git-merge-changelog.c: Include c-strstr.h.
53301         (main): Support the "git pull --rebase" situation.
53302         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53303         Reported by Eric Blake.
53304
53305 2008-02-16  Eric Blake  <ebb9@byu.net>
53306
53307         Avoid doubling \ in common case of "c-maybe" quoting style.
53308         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53309         eliding outer quotes.
53310         * lib/quotearg.h: Document this.
53311         * tests/test-quotearg.c (result_strings, inputs, results_g)
53312         (flag_results, locale_results): Test it by adding a new string to
53313         each test group.
53314         (compare_strings): Test new string.
53315
53316 2008-02-13  Eric Blake  <ebb9@byu.net>
53317
53318         Avoid trigraph quoting in default output.
53319         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53320         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53321         unless explicitly requested.
53322         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53323
53324 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53325
53326         Don't rely on signed integer overflowing to negative value.
53327         * lib/getugroups.c (getugroups): Include <limits.h>.
53328         Instead, compare against INT_MAX, and increment only if the test passes.
53329
53330 2008-02-13  Jim Meyering  <meyering@redhat.com>
53331         and Eric Blake  <ebb9@byu.net>
53332
53333         Avoid shadowing warning and compile errors on Linux.
53334         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53335         forwarding macros on Linux.
53336         (dcgettext): Define a stub, for Linux.
53337         (results_g, main): Avoid warnings.
53338
53339 2008-02-12  Eric Blake  <ebb9@byu.net>
53340
53341         Silence warning in last patch.
53342         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53343
53344         Quotearg part 4: add tests, fix c-maybe colon quoting.
53345         * lib/quotearg.h: Improve documentation.
53346         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53347         escapes when adding outer quotes.  When quoting trigraphs, use
53348         valid C notation.  When quoting NUL, omit extra characters if next
53349         character is not digit.  Alter prototype.
53350         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53351         callers.
53352         * modules/quotearg-tests: New module.
53353         * tests/test-quotearg.c: New test.
53354
53355 2008-02-07  Eric Blake  <ebb9@byu.net>
53356
53357         Quotearg part 3: add flag to control outer quote elision.
53358         * lib/quotearg.h (c_maybe_quoting_style): New style.
53359         (enum quoting_flags): Better documentation of flags.
53360         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53361         c-maybe style.
53362         (quotearg_buffer_restyled): Handle new flag to elide outer
53363         quotes.
53364
53365         Quotearg part 2: add flag that can control NUL elision.
53366         * lib/quotearg.h (set_quoting_flags): New prototype.
53367         * lib/quotearg.c (struct quoting_options): Add flag field.
53368         (set_quoting_flags): New function.
53369         (quotearg_buffer_restyled): Add flags parameter.
53370         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53371         (quotearg_n_options): Set the flag, since length cannot be
53372         returned.
53373         (quoting_options_from_style): Default flags correctly.
53374
53375         Quotearg part 1: more wrappers, restore quotearg_char state.
53376         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53377         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53378         (quotearg_colon_mem): New wrappers.
53379         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53380         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53381         functions.
53382         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53383         (quotearg_colon_mem): New functions.
53384
53385 2008-02-11  Bruno Haible  <bruno@clisp.org>
53386
53387         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53388         library in the current directory: it does not work with parallel make.
53389         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53390
53391 2008-02-11  Bruno Haible  <bruno@clisp.org>
53392
53393         * .gitattributes: New file.
53394
53395 2008-02-11  Jim Meyering  <meyering@redhat.com>
53396
53397         useless-if-before-free: Fix reversed exit values.
53398         * build-aux/useless-if-before-free: Use correct values
53399         for EXIT_MATCH and EXIT_NO_MATCH.
53400
53401         * build-aux/useless-if-before-free: Close stdout carefully.
53402
53403 2008-02-10  Bruno Haible  <bruno@clisp.org>
53404
53405         New module 'git-merge-changelog'.
53406         * modules/git-merge-changelog: New file.
53407         * lib/git-merge-changelog.c: New file.
53408
53409 2008-02-10  Jim Meyering  <meyering@redhat.com>
53410
53411         useless-if-before-free: New option: --list (-l).
53412
53413         useless-if-before-free: Don't exit immediately upon open failure.
53414         * build-aux/useless-if-before-free: Exit 2 for errors.
53415         Upon failure to open a file, don't exit immediately.
53416         Rather, just warn and continue with any remaining files.
53417
53418 2008-02-10  Bruno Haible  <bruno@clisp.org>
53419
53420         New abstract list operation 'node_set_value'.
53421         * lib/gl_list.h (gl_list_node_set_value): New function.
53422         (struct gl_list_implementation): New field node_set_value.
53423         * lib/gl_list.c (gl_list_node_set_value): New function.
53424         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53425         (gl_array_list_implementation): Update.
53426         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53427         (gl_carray_list_implementation): Update.
53428         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53429         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53430         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53431         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53432         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53433         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53434         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53435         Update.
53436         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53437         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53438         (gl_sublist_list_implementation): Update.
53439
53440 2008-02-10  Bruno Haible  <bruno@clisp.org>
53441
53442         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53443         Needed when ELEMENT is #defined to 'some_type *'.
53444
53445 2008-02-10  Jim Meyering  <meyering@redhat.com>
53446
53447         New script and module: useless-if-before-free
53448         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53449         * build-aux/useless-if-before-free: New file.
53450         * modules/useless-if-before-free: New file.
53451
53452         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53453
53454         xstrtol_error: Fix typo.
53455         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53456         s/exit_failure/exit_status/.
53457
53458 2008-02-09  Jim Meyering  <meyering@redhat.com>
53459
53460         New script and module: gitlog-to-changelog
53461         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53462         * modules/gitlog-to-changelog: New file.
53463         * build-aux/gitlog-to-changelog: New file.
53464
53465 2008-02-08  Jim Meyering  <meyering@redhat.com>
53466
53467         Avoid two "parameter unused" warnings.
53468         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53469         Mark "st" as used.
53470
53471         Use "git COMMAND", not "git-COMMAND".
53472         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53473         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53474         * build-aux/git-version-gen: Use "git status", not "git-status".
53475
53476 2008-02-07  Bruno Haible  <bruno@clisp.org>
53477
53478         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53479         Avoids a crash on Windows Vista.
53480         Reported by Adam Strzelecki <ono@java.pl> via
53481         Simon Josefsson <simon@josefsson.org>.
53482
53483 2008-02-06  Bruno Haible  <bruno@clisp.org>
53484
53485         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53486         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53487         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53489         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53490         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53491         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53492         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53493         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53494         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53495         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53496         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53497         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53498         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53499         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53500         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53501         left-adjust flag.
53502         * tests/test-snprintf-posix.h (test_function): Likewise.
53503         * tests/test-sprintf-posix.h (test_function): Likewise.
53504         * tests/test-vasprintf-posix.c (test_function): Likewise.
53505         * doc/posix-functions/fprintf.texi: Update.
53506         * doc/posix-functions/printf.texi: Update.
53507         * doc/posix-functions/snprintf.texi: Update.
53508         * doc/posix-functions/sprintf.texi: Update.
53509         * doc/posix-functions/vfprintf.texi: Update.
53510         * doc/posix-functions/vprintf.texi: Update.
53511         * doc/posix-functions/vsnprintf.texi: Update.
53512         * doc/posix-functions/vsprintf.texi: Update.
53513         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53514
53515 2008-02-06  Bruno Haible  <bruno@clisp.org>
53516
53517         Fix bug introduced on 2008-01-26.
53518         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53519
53520 2008-02-06  Bruno Haible  <bruno@clisp.org>
53521
53522         Fix bug introduced on 2007-06-10.
53523         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53524         !NEED_PRINTF_FLAG_ZERO.
53525
53526 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53527
53528         getloadavg: use libperfstat on AIX5
53529         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53530
53531 2008-02-03  Bruno Haible  <bruno@clisp.org>
53532
53533         * lib/diffseq.h: Add comments about required #includes.
53534         Reported by Michael Biggs <gnulib@doubleplum.net>.
53535
53536 2008-02-01  Bruno Haible  <bruno@clisp.org>
53537
53538         * users.txt: Add gnuit.
53539
53540 2008-01-31  Bruno Haible  <bruno@clisp.org>
53541
53542         * lib/md4.c (set_uint32): Mark as inline.
53543         * lib/md5.c (set_uint32): Likewise.
53544         * lib/sha1.c (set_uint32): Likewise.
53545         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53546         * m4/md5.m4 (gl_MD5): Likewise.
53547         * m4/sha1.m4 (gl_SHA1): Likewise.
53548
53549 2008-01-31  Jim Meyering  <meyering@redhat.com>
53550
53551         Use "sizeof VAR", rather than a literal "4".
53552         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53553         * lib/md4.c (md4_read_ctx): Likewise.
53554         * lib/sha1.c (sha1_read_ctx): Likewise.
53555
53556 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53557
53558         * tests/test-sha1.c: New file, based on test-md5.c.
53559
53560         * modules/crypto/sha1-tests: New file.
53561
53562 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53563
53564         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53565
53566 2008-01-31  Jim Meyering  <meyering@redhat.com>
53567
53568         Prefer "sizeof v" over the equivalent "4".
53569         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53570         * lib/md5.c (set_uint32): Likewise.
53571         * lib/sha1.c (set_uint32): Likewise.
53572
53573 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53574
53575         * lib/sha1.c (set_uint32): Mark function as static.
53576
53577 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53578
53579         md2: clarify comments to say that alignment is not required.
53580         * lib/md2.h: Remove warning about alignment in comment.
53581         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53582         never been required.
53583
53584 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53585
53586         md4: adapt alignment constraint fix from sha1.
53587         * lib/md4.c (set_uint32): New function, from sha1.c
53588         (md4_read_ctx): Use it.
53589         (md4_finish_ctx): Doc fix.
53590         * lib/md4.h: Doc fix.
53591
53592 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53593
53594         md5: adapt alignment constraint fix from sha1.
53595         * lib/md5.c (set_uint32): New function, from sha1.c
53596         (md5_read_ctx): Use it.
53597         (md5_finish_ctx): Doc fix.
53598         * lib/md5.h: Doc fix.
53599
53600 2008-01-30  Peter Palfrader  <weasel@debian.org>
53601
53602         sha1: remove the result buffer alignment constraint
53603         * lib/sha1.c (set_uint32): New function.
53604         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53605         constraint.
53606         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53607         * lib/sha1.h: Likewise.
53608
53609 2008-01-30  Andreas Schwab  <schwab@suse.de>
53610             Bruno Haible  <bruno@clisp.org>
53611
53612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53613         correct definition of LDBL_MIN_EXP.
53614
53615 2008-01-30  Karl Berry  <karl@gnu.org>
53616
53617         * config/srclist-update: try to preserve x bit on updates.
53618         * config/srclistvars.sh: update for karl.
53619
53620 2008-01-29  Jim Meyering  <meyering@redhat.com>
53621
53622         vasnprintf.c: Avoid warning about unused label
53623         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53624         "overflow" label definition and associated code with the
53625         same cpp condition that guards the sole use of that label.
53626
53627 2008-01-26  Bruno Haible  <bruno@clisp.org>
53628
53629         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53630         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53631         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53632         * lib/isnanl-nolibm.h (isnanl): Likewise.
53633         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53634
53635 2008-01-26  Bruno Haible  <bruno@clisp.org>
53636
53637         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53638         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53639
53640 2008-01-26  Bruno Haible  <bruno@clisp.org>
53641
53642         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53643         GCC >= 4.0 built-in.
53644         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53645
53646 2008-01-26  Bruno Haible  <bruno@clisp.org>
53647
53648         Rename isnan, applicable to 'double' only, to isnand.
53649         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53650         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53651         (configure.ac): Update.
53652         (Include): Replace "isnan.h" with "isnand.h".
53653         * m4/isnand.m4: Renamed from m4/isnan.m4.
53654         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53655         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53656         instead of isnan.c.
53657         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53658         instead of HAVE_ISNAN_IN_LIBC.
53659         (isnand): Renamed from isnan.
53660         * lib/isnand.c: New file.
53661         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53662         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53663         (Makefile.am): Update.
53664         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53665         Include isnand.h instead of isnan.h.
53666         (main): Test isnand instead of isnan.
53667         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53668         isnan-nolibm.
53669         * modules/frexp (Depends-on): Likewise.
53670         * modules/frexp-tests (Depends-on): Likewise.
53671         * modules/frexp-nolibm (Depends-on): Likewise.
53672         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53673         * modules/isfinite (Depends-on): Likewise.
53674         * modules/round-tests (Depends-on): Likewise.
53675         * modules/signbit (Depends-on): Likewise.
53676         * modules/signbit-tests (Depends-on): Likewise.
53677         * modules/snprintf-posix (Depends-on): Likewise.
53678         * modules/sprintf-posix (Depends-on): Likewise.
53679         * modules/trunc-tests (Depends-on): Likewise.
53680         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53681         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53682         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53683         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53684         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53685         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53686         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53687         * modules/vasnprintf-posix (Depends-on): Likewise.
53688         * modules/vasprintf-posix (Depends-on): Likewise.
53689         * modules/vfprintf-posix (Depends-on): Likewise.
53690         * modules/vsnprintf-posix (Depends-on): Likewise.
53691         * modules/vsprintf-posix (Depends-on): Likewise.
53692         * lib/frexp.c: Include isnand.h instead of isnan.h.
53693         (ISNAN): Set to isnand instead of isnan.
53694         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53695         (gl_isfinited): Use isnand instead of isnan.
53696         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53697         (gl_signbitd): Use isnand instead of isnan.
53698         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53699         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53700         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53701         (main): Use isnand instead of isnan.
53702         * tests/test-round1.c: Include isnand.h.
53703         (main): Use isnand instead of isnan.
53704         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53705         (ISNAN): Set to isnand instead of isnan.
53706         * tests/test-trunc1.c: Include isnand.h.
53707         (main): Use isnand instead of isnan.
53708         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53709         (equal): Use isnand instead of isnan.
53710         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53711         isnand-nolibm.
53712         * NEWS: Mention the change.
53713
53714 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53715             Bruno Haible  <bruno@clisp.org>
53716
53717         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53718         the GCC builtins for signbits are present and set
53719         REPLACE_SIGNBIT_USING_GCC if so.
53720         * lib/math.in.h (signbit): Define using GCC builtins if
53721         REPLACE_SIGNBIT_USING_GCC is set.
53722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53723         REPLACE_SIGNBIT_USING_GCC.
53724         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53725
53726 2008-01-25  Jim Meyering  <meyering@redhat.com>
53727
53728         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53729         * lib/poll.c: Include <config.h>, not "config.h".
53730         * tests/test-getaddrinfo.c: Likewise.
53731
53732 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53733
53734         * modules/sockets-tests: New file.
53735
53736 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53737
53738         * modules/sockets: New module, can be used to call WSA_Startup and
53739         WSA_Cleanup when needed.
53740
53741         * lib/sockets.h, lib/sockets.c: New files.
53742
53743         * m4/sockets.m4: New file.
53744
53745         * tests/test-sockets.c: New file.
53746
53747 2008-01-19  Bruno Haible  <bruno@clisp.org>
53748
53749         * doc/posix-headers: Renamed from doc/headers.
53750         * doc/posix-functions: Renamed from doc/functions.
53751         * doc/gnulib.texi: Update.
53752
53753 2008-01-19  Bruno Haible  <bruno@clisp.org>
53754
53755         * doc/glibc-functions/strcasestr.texi: Include contents of
53756         doc/functions/strcasestr.texi, fixing the list of platforms.
53757         * doc/functions/strcasestr.texi: Remove file.
53758
53759 2008-01-19  Bruno Haible  <bruno@clisp.org>
53760
53761         * doc/glibc-functions/memmem.texi: Include contents of
53762         doc/functions/memmem.texi.
53763         * doc/functions/memmem.texi: Remove file.
53764
53765 2008-01-18  Bruno Haible  <bruno@clisp.org>
53766
53767         * doc/glibc-functions/*.texi: New files.
53768         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53769         to use the new files.
53770
53771 2008-01-17  Bruno Haible  <bruno@clisp.org>
53772
53773         * tests/test-gethostname.c (main): Fix printf statement.
53774
53775 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53776
53777         * modules/gethostname-tests: New file.
53778
53779         * tests/test-gethostname.c: New file.
53780
53781 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53782
53783         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53784         used by the UNAME case.  Reported by Bruno Haible
53785         <bruno@clisp.org>.
53786
53787 2008-01-17  Eric Blake  <ebb9@byu.net>
53788
53789         Convert c-strcasestr to be more efficient.
53790         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53791         (Depends-on): Add c-strcase, remove malloca, strnlen.
53792         * tests/test-c-strcasestr.c (main): Enhance test.
53793         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53794
53795 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53796
53797         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53798         Use it in creating po/Makevars.
53799
53800 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53801
53802         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53803         Applications that requires it should initialize libgcrypt
53804         manually.
53805
53806 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53807
53808         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53809
53810 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53811
53812         Fix problem with getdate on mingw32 reported by Simon Josefsson
53813         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53814         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53815         tzname", when deciding whether to declare tzname.
53816         * lib/strftime.c (tzname): Likewise.
53817
53818 2008-01-15  Bruno Haible  <bruno@clisp.org>
53819
53820         Work around a MacOS X 10.5 bug in frexpl().
53821         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53822         * doc/functions/frexpl.texi: Document the bug.
53823         Reported by Elias Pipping <pipping@gentoo.org>.
53824
53825 2008-01-14  Eric Blake  <ebb9@byu.net>
53826
53827         Touch up previous patch.
53828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53829         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53830
53831         Convert strcasestr module to use Two-Way algorithm.
53832         * modules/strcasestr-simple: New module, based on the old
53833         strcasestr, but with Two-Way rather than KMP.
53834         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53835         * lib/string.in.h (rpl_strcasestr): Declare.
53836         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53837         performance.
53838         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53839         * modules/string (Makefile.am): Support strcasestr.
53840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53841         * modules/strcasestr-tests (Depends-on): Check for alarm.
53842         * tests/test-strcasestr.c: Augment test.
53843         * lib/str-two-way.h: Clean up stray macro.
53844         * NEWS: Document new module.
53845         * MODULES.html.sh (string handling): Likewise.
53846         * doc/functions/strcasestr.texi: New file.
53847         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53848         here, since it is not a POSIX function.
53849
53850 2008-01-14  Colin Watson  <cjwatson@debian.org>
53851             Bruno Haible  <bruno@clisp.org>
53852
53853         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53854         works fine; if not, set REPLACE_STRSIGNAL.
53855         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53856         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53857         REPLACE_STRSIGNAL.
53858         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53859         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53860         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53861
53862 2008-01-14  Bruno Haible  <bruno@clisp.org>
53863
53864         * modules/strsignal (Include): Change to <string.h>.
53865
53866 2008-01-14  Colin Watson  <cjwatson@debian.org>
53867
53868         * modules/argp (Notice): Add a notice recommending to change
53869         XGETTEXT_OPTIONS.
53870         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53871
53872 2008-01-13  Colin Watson  <cjwatson@debian.org>
53873
53874         * modules/strsignal-tests: New file.
53875         * tests/test-strsignal.c: New file.
53876
53877         * lib/strsignal.c: New file, from glibc with modifications.
53878         * lib/siglist.h: New file, from glibc with modifications.
53879         * lib/string.in.h (strsignal): New declaration.
53880         * m4/strsignal.m4: New file.
53881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53882         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53883         * modules/strsignal: New file.
53884         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53885         HAVE_DECL_STRSIGNAL.
53886
53887 2008-01-13  Bruno Haible  <bruno@clisp.org>
53888
53889         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53890         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53891         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53892         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53893
53894 2008-01-13  Bruno Haible  <bruno@clisp.org>
53895
53896         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53897         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53898         * lib/argp.h (__attribute__): Likewise.
53899         * lib/c-stack.c (__attribute__): Likewise.
53900         * lib/error.h (__attribute__): Likewise.
53901         * lib/fts.c (__attribute__): Likewise.
53902         * lib/openat.h (__attribute__): Likewise.
53903         * lib/stdio.in.h (__attribute__): Likewise.
53904         * lib/string.in.h (__attribute__): Likewise.
53905         * lib/utimens.c (__attribute__): Likewise.
53906         * lib/vasnprintf.h (__attribute__): Likewise.
53907         * lib/xalloc.h (__attribute__): Likewise.
53908         * lib/xprintf.h (__attribute__): Likewise.
53909         * lib/xstrtol.h (__attribute__): Likewise.
53910         * lib/xvasprintf.h (__attribute__): Likewise.
53911
53912 2008-01-12  Bruno Haible  <bruno@clisp.org>
53913
53914         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53915         * doc/glibc-headers/a.out.texi: New file.
53916         * doc/glibc-headers/aliases.texi: New file.
53917         * doc/glibc-headers/alloca.texi: New file.
53918         * doc/glibc-headers/ar.texi: New file.
53919         * doc/glibc-headers/argp.texi: New file.
53920         * doc/glibc-headers/argz.texi: New file.
53921         * doc/glibc-headers/byteswap.texi: New file.
53922         * doc/glibc-headers/crypt.texi: New file.
53923         * doc/glibc-headers/endian.texi: New file.
53924         * doc/glibc-headers/envz.texi: New file.
53925         * doc/glibc-headers/err.texi: New file.
53926         * doc/glibc-headers/error.texi: New file.
53927         * doc/glibc-headers/execinfo.texi: New file.
53928         * doc/glibc-headers/fpu_control.texi: New file.
53929         * doc/glibc-headers/fstab.texi: New file.
53930         * doc/glibc-headers/fts.texi: New file.
53931         * doc/glibc-headers/getopt.texi: New file.
53932         * doc/glibc-headers/ieee754.texi: New file.
53933         * doc/glibc-headers/ifaddrs.texi: New file.
53934         * doc/glibc-headers/libintl.texi: New file.
53935         * doc/glibc-headers/mcheck.texi: New file.
53936         * doc/glibc-headers/mntent.texi: New file.
53937         * doc/glibc-headers/obstack.texi: New file.
53938         * doc/glibc-headers/paths.texi: New file.
53939         * doc/glibc-headers/printf.texi: New file.
53940         * doc/glibc-headers/pty.texi: New file.
53941         * doc/glibc-headers/resolv.texi: New file.
53942         * doc/glibc-headers/shadow.texi: New file.
53943         * doc/glibc-headers/sysexits.texi: New file.
53944         * doc/glibc-headers/ttyent.texi: New file.
53945
53946 2008-01-12  Jim Meyering  <meyering@redhat.com>
53947
53948         announce-gen: emit Gnulib's git-based version string.
53949         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53950         New option --gnulib-version=V, where V is expected to be
53951         the output of running git describe in the gnulib directory.
53952         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53953         not useful, and plan to stop publishing an xdelta file with each
53954         coreutils release.
53955
53956         * build-aux/announce-gen: Also check for lzma-compressed files.
53957
53958 2008-01-11  Bruno Haible  <bruno@clisp.org>
53959
53960         * tests/test-memmem.c (main): Increase maximum allowed time.
53961         * tests/test-strstr.c (main): Likewise.
53962
53963 2008-01-11  Bruno Haible  <bruno@clisp.org>
53964
53965         * doc/functions/memmem.texi: Add more precisions about platforms.
53966         * doc/functions/strstr.texi: Likewise.
53967
53968 2008-01-10  Eric Blake  <ebb9@byu.net>
53969
53970         * m4/strstr.m4: Delete cruft from copy-n-paste.
53971         Reported by Bruno Haible.
53972
53973 2008-01-10  Bruno Haible  <bruno@clisp.org>
53974
53975         Make c-strstr rely on strstr.
53976         * lib/c-strstr.c: Don't include str-kmp.h.
53977         (c_strstr): Define in terms of strstr.
53978         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53979         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53980
53981 2008-01-10  Bruno Haible  <bruno@clisp.org>
53982
53983         * doc/gnulib.texi (String Functions in C Locale): New section.
53984         * doc/c-ctype.texi: New file.
53985         * doc/c-strcase.texi: New file.
53986         * doc/c-strcaseeq.texi: New file.
53987         * doc/c-strcasestr.texi: New file.
53988         * doc/c-strstr.texi: New file.
53989         * doc/c-strtod.texi: New file.
53990         * doc/c-strtold.texi: New file.
53991
53992 2008-01-10  Eric Blake  <ebb9@byu.net>
53993
53994         * lib/relocatable.h: Fix a comment.
53995
53996 2008-01-10  Eric Blake  <ebb9@byu.net>
53997
53998         Share two-way algorithm.
53999         * lib/str-two-way.h: New file, merged from...
54000         * lib/memmem.c: ...here...
54001         * lib/strstr.c: ...and here.
54002         * modules/memmem (Files): Use it.
54003         * modules/strstr (Files): Likewise.
54004
54005         Avoid quadratic strstr implementations.
54006         * lib/strstr.c: New file.
54007         * m4/strstr.m4: Likewise.
54008         * modules/strstr: Likewise.
54009         * modules/strstr-tests: Likewise.
54010         * tests/test-strstr.c: Likewise.
54011         * lib/string.in.h (rpl_strstr): Declare.
54012         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
54013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
54014         * modules/string (Makefile.am): Likewise.
54015         * MODULES.html.sh (string handling): Mention new module.
54016         * doc/functions/strstr.texi (strstr): Document the bug.
54017
54018 2008-01-10  Bruno Haible  <bruno@clisp.org>
54019
54020         * lib/relocatable.h (relocate): State whether result is freshly
54021         allocated or not.
54022         * lib/relocatable.c (relocate): Return a freshly allocated string
54023         instead of a pointer to a privately held string.
54024         Reported by Sylvain Beucler <beuc@gnu.org>.
54025
54026 2008-01-10  Colin Watson  <cjwatson@debian.org>
54027
54028         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
54029         s/S_ISNLK/S_ISLNK/.
54030
54031 2008-01-09  Bruno Haible  <bruno@clisp.org>
54032
54033         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
54034         and other files.
54035         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
54036         if it's only a guess.
54037         * modules/memmem: Simplify by depending on memmem-simple.
54038
54039 2008-01-09  Bruno Haible  <bruno@clisp.org>
54040
54041         Work around OpenBSD 4.0 tdelete() bug.
54042         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54043         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54044         macros and don't redefine the enum values.
54045         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54046         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54047         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54048
54049 2008-01-09  Bruno Haible  <bruno@clisp.org>
54050
54051         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54052         (main): Don't perform the tests if setlocale did not install a UTF-8
54053         locale. Needed on OpenBSD 4.0.
54054         * modules/wcwidth-tests (Depends-on): Add localcharset.
54055
54056 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54057
54058         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
54059         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
54060         * NEWS: announce this.
54061         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54062
54063 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54064         and Eric Blake  <ebb9@byu.net>
54065
54066         Add memmem-simple module.
54067         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54068         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54069         * modules/memmem-simple: New file.
54070         * modules/memmem (Description): Tweak.
54071         * MODULES.html.sh (string handling): Mention new module.
54072         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54073         addressed by memmem-simple.
54074         * NEWS: Document the difference.
54075
54076 2008-01-09  Eric Blake  <ebb9@byu.net>
54077
54078         Give gcc some memmem optimization hints.
54079         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54080         (strcasestr): Declare as pure.
54081         * modules/memmem (Maintainer): Claim my implementation.
54082
54083 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54084
54085         Support AIX 6.1 and higher.
54086         * build-aux/config.libpath: Likewise.
54087         * build-aux/config.rpath: Likewise.
54088
54089 2008-01-08  Jim Meyering  <meyering@redhat.com>
54090             Bruno Haible  <bruno@clisp.org>
54091
54092         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54093         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54094         Reported by Peter Fales in
54095         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54096
54097 2008-01-08  Bruno Haible  <bruno@clisp.org>
54098
54099         * modules/unictype/category-of (Depends-on): Add
54100         unictype/category-none.
54101         * modules/unictype/category-and-tests (Depends-on): Add
54102         unictype/category-{L,N,Lu,Nd}.
54103         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54104         * modules/unictype/category-or-tests (Depends-on): Add
54105         unictype/category-{L,N}.
54106         * modules/unictype/category-name-tests (Depends-on): Add
54107         unictype/category-{Z,Nl}.
54108         Reported by Simon Josefsson.
54109
54110 2008-01-08  Bruno Haible  <bruno@clisp.org>
54111
54112         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54113         convention better.
54114         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54115         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54116         Reported by Peter Miller <millerp@canb.auug.org.au>.
54117
54118 2008-01-08  Eric Blake  <ebb9@byu.net>
54119
54120         Rewrite memmem to guarantee linear complexity without malloc.
54121         * lib/memmem.c (memmem): Use Two-Way rather than
54122         Knuth-Morris-Pratt, to allow O(1) space usage.
54123         (critical_factorization, two_way_short_needle)
54124         (two_way_long_needle): New functions.
54125         (knuth_morris_pratt): Delete.
54126         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54127         Add stdint.
54128         * tests/test-memmem.c (main): Add tests for periodic needle and
54129         sublinear performance.
54130         * doc/functions/memmem.texi (memmem): Document other deficiencies
54131         in cygwin and older glibc.
54132
54133 2008-01-08  Bruno Haible  <bruno@clisp.org>
54134
54135         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54136         augmentation.
54137
54138 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54139
54140         Add a configure time option: --disable-acl.
54141         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54142         AC_ARG_ENABLE(acl).
54143
54144 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54145
54146         * tests/test-localename.c: Don't include obsolete "setenv.h".
54147
54148         * modules/localename-tests (Depends-on): Need unsetenv.
54149
54150 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54151
54152         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54153
54154 2008-01-06  Colin Watson  <cjwatson@debian.org>
54155
54156         * users.txt: Add man-db.
54157
54158 2008-01-07  Bruno Haible  <bruno@clisp.org>
54159
54160         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54161         previous section name.
54162
54163 2008-01-07  Bruno Haible  <bruno@clisp.org>
54164
54165         * lib/progname.c (set_program_name): Don't strip off a leading
54166         "lt-" prefix outside a .libs directory.
54167         Suggested by Paul Eggert.
54168
54169 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54170             Bruno Haible  <bruno@clisp.org>
54171
54172         Improve memory cleanup in 'relocatable' module.
54173         * lib/relocatable.h (compute_curr_prefix): Change return type to
54174         'char *'.
54175         * lib/relocatable.c (compute_curr_prefix): Change return type to
54176         'char *'. Free curr_installdir after use.
54177         (relocate): Free curr_prefix_better after use.
54178         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54179
54180 2008-01-01  Bruno Haible  <bruno@clisp.org>
54181
54182         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54183         failure on older glibc systems.
54184         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54185
54186 2008-01-05  Eric Blake  <ebb9@byu.net>
54187
54188         Avoid quadratic system memmem.
54189         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54190         Reported by Ralf Wildenhues.
54191
54192         Fix memmem test for mingw.
54193         * modules/memmem-tests (configure.ac): Check for alarm.
54194         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54195         it.
54196         * doc/functions/memmem.texi: New file.
54197         * doc/gnulib.texi (Function Substitutes): Add memmem.
54198         Reported by Bruno Haible.
54199
54200 2008-01-04  Bruno Haible  <bruno@clisp.org>
54201
54202         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54203         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54204         gl_HEADER_STRING_H_DEFAULTS.
54205
54206 2008-01-04  Eric Blake  <ebb9@byu.net>
54207
54208         Shorten duration of memmem test.
54209         * tests/test-memmem.c (main): Use alarm to declare failure if test
54210         is taking too long.
54211         Reported by Ralf Wildenhues.
54212
54213 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54214
54215         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54216         string, needed by strerror.
54217
54218 2008-01-03  Colin Watson  <cjwatson@debian.org>
54219             Bruno Haible  <bruno@clisp.org>
54220
54221         * doc/gnulib-tool.texi (Localization): New section.
54222
54223 2008-01-02  Bruno Haible  <bruno@clisp.org>
54224
54225         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54226         variables to 'unsigned char *' type.
54227         Reported by Paul Eggert.
54228
54229 2008-01-02  Jim Meyering  <jim@meyering.net>
54230
54231         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54232
54233 2007-12-31  Jim Meyering  <jim@meyering.net>
54234
54235         Avoid use of private FTS type name.
54236         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54237
54238 2007-12-30  Karl Berry  <karl@gnu.org>
54239
54240         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54241         work around defect in Texinfo and/or the standalone Info browser.
54242
54243 2007-12-30  Bruno Haible  <bruno@clisp.org>
54244
54245         Unify 5 copies of the KMP code.
54246         * lib/str-kmp.h: New file.
54247         * lib/c-strcasestr.c: Include str-kmp.h.
54248         (knuth_morris_pratt): Remove function.
54249         (c_strcasestr): Update.
54250         * lib/c-strstr.c: Include str-kmp.h.
54251         (knuth_morris_pratt): Remove function.
54252         (c_strcasestr): Update.
54253         * lib/mbscasestr.c: Include str-kmp.h.
54254         (knuth_morris_pratt_unibyte): Remove function.
54255         * lib/mbsstr.c: Include str-kmp.h.
54256         (knuth_morris_pratt_unibyte): Remove function.
54257         * lib/strcasestr.c: Include str-kmp.h.
54258         (knuth_morris_pratt): Remove function.
54259         (strcasestr): Update.
54260         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54261         * modules/c-strstr (Files): Likewise.
54262         * modules/mbscasestr (Files): Likewise.
54263         * modules/mbsstr (Files): Likewise.
54264         * modules/strcasestr (Files): Likewise.
54265         Suggested by Paul Eggert.
54266
54267 2007-12-30  Bruno Haible  <bruno@clisp.org>
54268
54269         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54270         defined.
54271
54272 2007-12-30  Bruno Haible  <bruno@clisp.org>
54273
54274         * lib/xmalloca.h: Include xalloc.h.
54275         (xnmalloca): New macro.
54276
54277 2007-12-30  Bruno Haible  <bruno@clisp.org>
54278
54279         * lib/malloca.h (nmalloca): New macro.
54280         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54281         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54282         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54283         knuth_morris_pratt_multibyte): Likewise.
54284         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54285         knuth_morris_pratt_multibyte): Likewise.
54286         * lib/memmem.c (knuth_morris_pratt): Likewise.
54287         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54288
54289 2007-12-25  Bruno Haible  <bruno@clisp.org>
54290
54291         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54292         * lib/glob.c: Don't include openat.h.
54293         (link_exists2_p): Add back the code that deals with the
54294         !GLOB_ALTDIRFUNC case.
54295         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54296         let it do the filename concatenation.
54297         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54298         * modules/glob (Depends-on): Remove openat.
54299
54300 2007-12-31  Bruno Haible  <bruno@clisp.org>
54301
54302         * modules/dirfd (License): Change to LGPLv2+.
54303         Approved by Jim Meyering.
54304
54305 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54306
54307         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54308         when multiplying M by sizeof (size_t).
54309
54310 2007-12-10  Martin Lambers  <marlam@marlam.de>
54311
54312         Override getpagesize on mingw.
54313         * lib/getpagesize.c: New file.
54314         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54315         * modules/getpagesize (Files): Add lib/getpagesize.c.
54316         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54318         REPLACE_GETPAGESIZE.
54319         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54320
54321 2007-12-25  Bruno Haible  <bruno@clisp.org>
54322
54323         * modules/localcharset (Notice): New field.
54324         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54325         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54326
54327 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54328             Bruno Haible  <bruno@clisp.org>
54329
54330         Avoid using the syntax symbol() in formatted documentation.
54331         * MODULES.html.sh (func_module): When replacing symbol() with a
54332         hyperlink, remove the parentheses. Show an error if some remain.
54333         Recognize and render the '...' syntax.
54334         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54335         Rework. Add paragraph about GCC's inlining.
54336         * doc/alloca.texi: Likewise.
54337         * doc/error.texi: Remove parentheses from symbol reference.
54338         * doc/gnulib-intro.texi: Likewise.
54339         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54340         * modules/fnmatch (Description): Reword to say "the ... function".
54341         * modules/full-read (Description): Likewise.
54342         * modules/full-write (Description): Likewise.
54343         * modules/safe-read (Description): Likewise.
54344         * modules/safe-write (Description): Likewise.
54345         * modules/strchrnul (Description): Likewise.
54346         * modules/trim (Description): Likewise.
54347         * modules/error (Description): Remove parentheses from symbol
54348         references.
54349         * modules/verror (Description): Likewise.
54350         Reported by Karl Berry.
54351
54352 2007-12-25  Bruno Haible  <bruno@clisp.org>
54353
54354         Fixup after 2007-10-16 commit.
54355         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54356
54357 2007-12-24  Bruno Haible  <bruno@clisp.org>
54358
54359         Make --enable-relocatable work with DESTDIR.
54360         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54361         to compute installdir from destprog.
54362         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54363         also set the RELOC_DESTDIR variable.
54364         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54365
54366 2007-12-24  Bruno Haible  <bruno@clisp.org>
54367
54368         Fix link error due to xalloc_die().
54369         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54370         of xreadlink.
54371         * lib/relocwrapper.c: Update comments.
54372         * build-aux/install-reloc: Remove xreadlink.c from file list.
54373         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54374         xreadlink.c.
54375         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54376
54377 2007-12-24  Bruno Haible  <bruno@clisp.org>
54378
54379         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54380         * lib/setenv.h: Remove file.
54381         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54382         lib/setenv.h.
54383         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54384         (Depends-on): Add stdlib.
54385         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54386         gl_FUNC_UNSETENV.
54387         (Include): Replace setenv.h with <stdlib.h>.
54388         * modules/unsetenv: New file.
54389         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54390         * lib/unsetenv.c: Include <stdlib.h> first.
54391         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54392         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54393         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54394         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54395         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54396         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54398         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54399         * doc/functions/unsetenv.texi: Update.
54400         * modules/xsetenv (Depends-on): Add unsetenv.
54401         * modules/getdate (Depends-on): Likewise.
54402         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54403         * lib/xsetenv.c: Don't include setenv.h.
54404         * lib/getdate.y: Likewise.
54405         * lib/relocwrapper.c: Likewise.
54406         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54407         (Depends-on): Add stdlib.
54408         * NEWS: Mention the changes.
54409         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54410
54411 2007-12-23  Bruno Haible  <bruno@clisp.org>
54412
54413         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54414         indentation.
54415
54416 2007-12-23  Bruno Haible  <bruno@clisp.org>
54417
54418         * lib/c-strcasestr.c: Add more comments.
54419         * lib/c-strstr.c: Likewise.
54420         * lib/mbscasestr.c: Likewise.
54421         * lib/mbsstr.c: Likewise.
54422         * lib/strcasestr.c: Likewise.
54423         * lib/memmem.c: Likewise.
54424
54425 2007-12-23  Bruno Haible  <bruno@clisp.org>
54426
54427         * tests/test-memmem.c: Include <string.h> first.
54428
54429 2007-12-22  Bruno Haible  <bruno@clisp.org>
54430
54431         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54432         the contents of $testsbase.
54433         Reported by Ralf Wildenhues.
54434
54435 2007-12-22  Bruno Haible  <bruno@clisp.org>
54436
54437         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54438         two variables local_ldadd_before, local_ldadd_last.
54439
54440 2007-12-20  Eric Blake  <ebb9@byu.net>
54441
54442         Work around circular library issue when cross-compiling.
54443         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54444         that progname.o does not need to pull in rpl_memcmp.
54445
54446 2007-12-19  Eric Blake  <ebb9@byu.net>
54447
54448         Fix memmem to avoid O(n^2) worst-case complexity.
54449         * lib/memmem.c (knuth_morris_pratt): New function.
54450         (memmem): Use it if first few naive iterations fail.
54451         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54452         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54453         * modules/memchr (License): Likewise.
54454         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54455         malloca.
54456         * tests/test-memmem.c: Rewrite, borrowing ideas from
54457         test-mbsstr1.c; the old version wouldn't even compile!
54458         * modules/memmem-tests: New file.
54459         * lib/string.in.h (rpl_memmem): Add declaration.
54460         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54462         REPLACE_MEMMEM.
54463
54464 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54465
54466         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54467         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54468         before any system include files, and undef after them all.  This
54469         should fix a problem on VMS reported by John E. Malmberg in
54470         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54471
54472 2007-12-17  Eric Blake  <ebb9@byu.net>
54473
54474         Revert addition of verify, for BSD/OS.
54475         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54476         can't handle large files, for the sake of obsolete platforms.
54477         * modules/fseeko (Depends-on): Remove verify.
54478         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54479         * doc/functions/ftello.texi (ftello): Likewise.
54480         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54481         Reported by Larry Jones.
54482
54483 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54484
54485         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54486         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54487
54488 2007-12-17  Jim Meyering  <meyering@redhat.com>
54489
54490         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54491         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54492         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54493         * modules/getcwd (Depends-on): Add openat.
54494         Reported by Petr Salinger.
54495
54496 2007-12-17  Bruno Haible  <bruno@clisp.org>
54497
54498         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54499         avoid a segmentation fault of the configure test on x86_64 systems.
54500
54501 2007-12-15  Jim Meyering  <meyering@redhat.com>
54502
54503         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54504
54505 2007-12-13  Eric Blake  <ebb9@byu.net>
54506
54507         Another fseek test.
54508         * tests/test-fseek.c (main): Also test ungetc handling.
54509         * tests/test-fseeko.c (main): Likewise.
54510         * modules/fseeko (Depends-on): Add verify.
54511         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54512         large.
54513         Reported by Larry Jones.
54514
54515         Fix fseeko on mingw.
54516         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54517         seek.
54518
54519         Beef up fseek tests.
54520         * tests/test-fseek.c (main): Also test eof handling.
54521         * tests/test-fseeko.c (main): Likewise.
54522         Reported by Larry Jones.
54523
54524 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54525
54526         Fix fseeko on BSD-based platforms.
54527         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54528         successful seek.
54529
54530 2007-12-12  Eric Blake  <ebb9@byu.net>
54531
54532         Allow circular dependency of separate libtests.a
54533         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54534         when use_libtests.
54535
54536 2007-12-11  Eric Blake  <ebb9@byu.net>
54537
54538         Fix bug with -0.0L in previous patch.
54539         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54540         * tests/test-isnan.c (main): Also test on zeroes.
54541         * tests/test-isnanf.c (main): Likewise.
54542         * tests/test-isnanl.h (main): Likewise.
54543
54544         Detect pseudo-denormals on x86 even when cross-compiling.
54545         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54546         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54547         invalid bit patterns that happen to satisfy ==.
54548
54549         Avoid link failures with separate libtests.a.
54550         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54551         last, to satisfy circular dependencies.
54552
54553 2007-12-11  Eric Blake  <ebb9@byu.net>
54554         and Bruno Haible  <bruno@clisp.org>
54555
54556         Fix OpenBSD 4.0 <float.h> handling of long double.
54557         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54558         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54559         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54560
54561 2007-12-11  Jim Meyering  <meyering@redhat.com>
54562
54563         * users.txt: Add libvirt.
54564
54565         Support versions of autoconf prior to 2.59c.
54566         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54567         if it is not already defined.
54568
54569 2007-12-09  Bruno Haible  <bruno@clisp.org>
54570
54571         Let 'gnulib-tool --import' collect sources needed for the tests in
54572         tests/ rather than in lib/.
54573         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54574         argument. If true, add rules to generate libtests.a, and put libtests.a
54575         into $(LDADD). Consider source files in subdirectories and set
54576         uses_subdirs.
54577         (func_emit_initmacro_start, func_emit_initmacro_end,
54578         func_emit_initmacro_done): Pass all arguments explicitly.
54579         (func_import): Determine two module lists main_modules,
54580         testsrelated_modules. Determine use_libtests. Determine two variables
54581         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54582         instead of just sed_transform_lib_file. Determine two variables
54583         main_files and testsrelated_files. Compute 'files' as the union of
54584         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54585         func_add_or_update. In the generated gnulib-comp.m4, collect the
54586         object files for tests/ in different variables than those for lib/.
54587         Substitute LIBTESTS_LIBDEPS.
54588         (func_create_testdir): Combine the uses_subdirs results from
54589         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54590
54591 2007-12-09  Bruno Haible  <bruno@clisp.org>
54592
54593         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54594         the build-aux directory.
54595
54596 2007-12-09  Bruno Haible  <bruno@clisp.org>
54597
54598         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54599         introduced on 2006-09-09.
54600
54601 2007-12-07  Jim Meyering  <meyering@redhat.com>
54602
54603         Let these macros work also with autoconf-2.59.
54604         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54605         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54606         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54607
54608 2007-12-06  Jim Meyering  <meyering@redhat.com>
54609
54610         Avoid a configure-time syntax error in gl_FUNC_ACL.
54611         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54612         function in each branch, before testing the cache variable.
54613
54614 2007-12-04  Eric Blake  <ebb9@byu.net>
54615
54616         Make scripts executable.
54617         * build-aux/config.guess: Add execute permissions.
54618         * build-aux/config.sub: Likewise.
54619         * build-aux/gendocs.sh: Likewise.
54620
54621         Fix frexp on mingw.
54622         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54623         cross-compiling.
54624         * doc/functions/frexp.texi (frexp): Document the bug.
54625
54626         Make cygwin fseeko check more reliable.
54627         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54628         version numbers, rather than unrelated feature check.
54629         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54630         * doc/functions/ftello.texi (ftello): Likewise.
54631         Reported by Bruno Haible.
54632
54633         * m4/strerror.m4: Bump version number.
54634
54635 2007-12-03  Bruno Haible  <bruno@clisp.org>
54636
54637         * doc/functions/mprotect.texi: Mention the mingw problem.
54638
54639 2007-12-03  Eric Blake  <ebb9@byu.net>
54640
54641         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54642         REPLACE_STRERROR is initialized before this macro.
54643
54644 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54645
54646         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54647         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54648         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54649         put -lsec in even for programs other than 'ls'.  This fixes a problem
54650         for gettext reported by Bruno Haible in
54651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54652         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54653         Add support for Solaris 10.  This isn't efficient, but should get the
54654         job done for now.
54655
54656 2007-12-03  James Youngman  <jay@gnu.org>
54657
54658         * doc/regexprops-generic.texi: change "an close-group" to "a
54659         close-group" and "illegal" to "not allowed".
54660
54661 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54662
54663         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54664         pr_byname.h. Needed for the rare case when the maintainer has done
54665         "make maintainer-clean" in the source directory and then attempts a
54666         build outside the source directory.
54667         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54668         scripts_byname.h.
54669
54670 2007-12-02  Martin Lambers <marlam@marlam.de>
54671             Bruno Haible  <bruno@clisp.org>
54672
54673         * lib/getpagesize.h: Remove file.
54674         * lib/unistd.in.h: Include declaration of getpagesize here.
54675         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54676         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54677         HAVE_SYS_PARAM_H.
54678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54679         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54680         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54681         (Depends-on): Add unistd.
54682         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54683         (Include): Use <unistd.h> instead of getpagesize.h.
54684         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54685         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54686         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54687         gl_GETPAGESIZE invocation, already handled by module dependency.
54688         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54689
54690 2007-12-02  Bruno Haible  <bruno@clisp.org>
54691
54692         * modules/strings-tests: New file.
54693         * tests/test-strings.c: New file.
54694
54695         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54696         * lib/strings.in.h: New file.
54697         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54698         * m4/strings_h.m4: New file.
54699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54700         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54701         * modules/strings: New file.
54702         * modules/string (Makefile.am): Update.
54703         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54704         Reported by Karl Berry.
54705
54706 2007-12-01  Eric Blake  <ebb9@byu.net>
54707
54708         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54709         accomodate fix in cygwin 1.5.25.
54710
54711 2007-12-01  Jim Meyering  <meyering@redhat.com>
54712
54713         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54714         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54715         that would inhibit utf8-optimization of a regexp containing line-
54716         or buffer-anchors, e.g., `^', `$'.
54717
54718 2007-11-30  Bruno Haible  <bruno@clisp.org>
54719
54720         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54721         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54722         glthread_recursive_lock_init.
54723         * lib/lock.c (glthread_recursive_lock_init)
54724         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54725         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54726
54727 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54728
54729         New function qset_acl, like set_acl but with syscall semantics.
54730         * lib/acl.h (qset_acl): New decl.
54731         * lib/acl.c (qset_acl): New function.
54732         (set_acl): Use new function.  Use more-consistent diagnostics.
54733
54734 2007-11-28  Jim Meyering  <meyering@redhat.com>
54735
54736         * modules/physmem (License): Change from GPL to LGPLv2+.
54737
54738 2007-11-26  Bruno Haible  <bruno@clisp.org>
54739
54740         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54741         'long double' type has excess precision.
54742         Reported by Jim Meyering in
54743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54744
54745 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54746
54747         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54748         Sync from <http://gnu.org/licenses>.
54749         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54750         with license text from same location.
54751         * doc/maintain.texi, doc/standards.texi:  Sync from
54752         <http://savannah.gnu.org/projects/gnustandards>.
54753
54754 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
54755         and Jim Meyering  <meyering@redhat.com>
54756
54757         Adjust getdate' grammar to accept a slightly more regular language.
54758         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54759         Before, the former was rejected.
54760         * lib/getdate.y (digits_to_date_time): New function, factored
54761         out of ...
54762         (number): ...here.  Just call digits_to_date_time.
54763         (hybrid): New non-terminal to handle an <unsigned number,
54764         signed relative offset> sequence consistently.
54765
54766 2007-11-18  Jim Meyering  <meyering@redhat.com>
54767
54768         Pull my changes from coreutils:
54769         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54770         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54771         use of $gnulib_tool_option_extras, so that it's separated from the
54772         preceding argument.
54773
54774         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54775         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54776         parent destination directories before copying a file into place.
54777
54778 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54779
54780         bootstrap: work also with 4-argument variant of AC_INIT
54781         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54782
54783 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54784
54785         Port test-getaddrinfo to Solaris.
54786         Problem reported by Bruno Haible in
54787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54788         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54789         explanation of setting 'hints'.
54790         Don't reject an implementation merely because it returns EAI_SERVICE.
54791         (EAI_SERVICE): Define to 0 if not defined.
54792
54793 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54794
54795         The license of gnu-make and posix-shell is now "GPLed build tool".
54796         * modules/gnu-make (License): Likewise.
54797         * modules/posix-shell (License): Likewise.
54798
54799         New module posix-shell, for determining a POSIX shell
54800         or perhaps something that is close enough to a POSIX shell.
54801         * m4/posix-shell.m4: New file.
54802         * modules/posix-shell: New file.
54803
54804         * MODULES.html.sh: Mention new module.
54805
54806         New module gnu-make, for determining whether we're using GNU Make.
54807         * m4/gnu-make.m4: New file.
54808         * modules/gnu-make: New file.
54809         * MODULES.html.sh: Mention new module.
54810
54811 2007-11-14  Jim Meyering  <meyering@redhat.com>
54812
54813         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54814         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54815         use this macro to create a function _definition_.
54816         Remove useless "#undef ARGMATCH_DIE".
54817
54818 2007-11-14  Bruno Haible  <bruno@clisp.org>
54819
54820         * lib/config.charset: Update for OpenBSD 4.1.
54821         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54822
54823 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54824
54825         Document 64-bit #if problems in stdint.texi.
54826         * doc/headers/stdint.texi (stdint.h): Mention problems with
54827         64-bit-#if, and how to work around them.
54828
54829         Don't insist on 'long long int' support in the preprocessor.  It
54830         breaks too many things.  For example, PRIdMAX still uses a 'long
54831         long int' format with the latest Sun compiler, even though
54832         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54833         preprocessor problem.  This causes the latest coreutils to dump
54834         core on Solaris 10 sparc with the Sun C compiler.
54835         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54836         the troublesome expressions at configure-time, not at #if-time.
54837         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54838         preprocessor.
54839         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54840         compile-time C checks, done at 'configure'-time.
54841         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54842         * modules/inttypes (Makefile): Substitute the new symbols that
54843         gl_INTTYPES_H now generates.
54844         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54845
54846 2007-11-12  Bruno Haible  <bruno@clisp.org>
54847
54848         Tests for Unicode character classification functions.
54849
54850         * modules/unictype/bidicategory-byname-tests: New file.
54851         * modules/unictype/bidicategory-name-tests: New file.
54852         * modules/unictype/bidicategory-of-tests: New file.
54853         * modules/unictype/bidicategory-test-tests: New file.
54854         * modules/unictype/block-list-tests: New file.
54855         * modules/unictype/block-of-tests: New file.
54856         * modules/unictype/block-test-tests: New file.
54857         * modules/unictype/category-C-tests: New file.
54858         * modules/unictype/category-Cc-tests: New file.
54859         * modules/unictype/category-Cf-tests: New file.
54860         * modules/unictype/category-Cn-tests: New file.
54861         * modules/unictype/category-Co-tests: New file.
54862         * modules/unictype/category-Cs-tests: New file.
54863         * modules/unictype/category-L-tests: New file.
54864         * modules/unictype/category-Ll-tests: New file.
54865         * modules/unictype/category-Lm-tests: New file.
54866         * modules/unictype/category-Lo-tests: New file.
54867         * modules/unictype/category-Lt-tests: New file.
54868         * modules/unictype/category-Lu-tests: New file.
54869         * modules/unictype/category-M-tests: New file.
54870         * modules/unictype/category-Mc-tests: New file.
54871         * modules/unictype/category-Me-tests: New file.
54872         * modules/unictype/category-Mn-tests: New file.
54873         * modules/unictype/category-N-tests: New file.
54874         * modules/unictype/category-Nd-tests: New file.
54875         * modules/unictype/category-Nl-tests: New file.
54876         * modules/unictype/category-No-tests: New file.
54877         * modules/unictype/category-P-tests: New file.
54878         * modules/unictype/category-Pc-tests: New file.
54879         * modules/unictype/category-Pd-tests: New file.
54880         * modules/unictype/category-Pe-tests: New file.
54881         * modules/unictype/category-Pf-tests: New file.
54882         * modules/unictype/category-Pi-tests: New file.
54883         * modules/unictype/category-Po-tests: New file.
54884         * modules/unictype/category-Ps-tests: New file.
54885         * modules/unictype/category-S-tests: New file.
54886         * modules/unictype/category-Sc-tests: New file.
54887         * modules/unictype/category-Sk-tests: New file.
54888         * modules/unictype/category-Sm-tests: New file.
54889         * modules/unictype/category-So-tests: New file.
54890         * modules/unictype/category-Z-tests: New file.
54891         * modules/unictype/category-Zl-tests: New file.
54892         * modules/unictype/category-Zp-tests: New file.
54893         * modules/unictype/category-Zs-tests: New file.
54894         * modules/unictype/category-and-not-tests: New file.
54895         * modules/unictype/category-and-tests: New file.
54896         * modules/unictype/category-byname-tests: New file.
54897         * modules/unictype/category-name-tests: New file.
54898         * modules/unictype/category-none-tests: New file.
54899         * modules/unictype/category-of-tests: New file.
54900         * modules/unictype/category-or-tests: New file.
54901         * modules/unictype/category-test-withtable-tests: New file.
54902         * modules/unictype/combining-class-tests: New file.
54903         * modules/unictype/ctype-alnum-tests: New file.
54904         * modules/unictype/ctype-alpha-tests: New file.
54905         * modules/unictype/ctype-blank-tests: New file.
54906         * modules/unictype/ctype-cntrl-tests: New file.
54907         * modules/unictype/ctype-digit-tests: New file.
54908         * modules/unictype/ctype-graph-tests: New file.
54909         * modules/unictype/ctype-lower-tests: New file.
54910         * modules/unictype/ctype-print-tests: New file.
54911         * modules/unictype/ctype-punct-tests: New file.
54912         * modules/unictype/ctype-space-tests: New file.
54913         * modules/unictype/ctype-upper-tests: New file.
54914         * modules/unictype/ctype-xdigit-tests: New file.
54915         * modules/unictype/decimal-digit-tests: New file.
54916         * modules/unictype/digit-tests: New file.
54917         * modules/unictype/mirror-tests: New file.
54918         * modules/unictype/numeric-tests: New file.
54919         * modules/unictype/property-alphabetic-tests: New file.
54920         * modules/unictype/property-ascii-hex-digit-tests: New file.
54921         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54922         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54923         * modules/unictype/property-bidi-block-separator-tests: New file.
54924         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54925         * modules/unictype/property-bidi-common-separator-tests: New file.
54926         * modules/unictype/property-bidi-control-tests: New file.
54927         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54928         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54929         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54930         * modules/unictype/property-bidi-european-digit-tests: New file.
54931         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54932         * modules/unictype/property-bidi-left-to-right-tests: New file.
54933         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54934         * modules/unictype/property-bidi-other-neutral-tests: New file.
54935         * modules/unictype/property-bidi-pdf-tests: New file.
54936         * modules/unictype/property-bidi-segment-separator-tests: New file.
54937         * modules/unictype/property-bidi-whitespace-tests: New file.
54938         * modules/unictype/property-byname-tests: New file.
54939         * modules/unictype/property-combining-tests: New file.
54940         * modules/unictype/property-composite-tests: New file.
54941         * modules/unictype/property-currency-symbol-tests: New file.
54942         * modules/unictype/property-dash-tests: New file.
54943         * modules/unictype/property-decimal-digit-tests: New file.
54944         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54945         * modules/unictype/property-deprecated-tests: New file.
54946         * modules/unictype/property-diacritic-tests: New file.
54947         * modules/unictype/property-extender-tests: New file.
54948         * modules/unictype/property-format-control-tests: New file.
54949         * modules/unictype/property-grapheme-base-tests: New file.
54950         * modules/unictype/property-grapheme-extend-tests: New file.
54951         * modules/unictype/property-grapheme-link-tests: New file.
54952         * modules/unictype/property-hex-digit-tests: New file.
54953         * modules/unictype/property-hyphen-tests: New file.
54954         * modules/unictype/property-id-continue-tests: New file.
54955         * modules/unictype/property-id-start-tests: New file.
54956         * modules/unictype/property-ideographic-tests: New file.
54957         * modules/unictype/property-ids-binary-operator-tests: New file.
54958         * modules/unictype/property-ids-trinary-operator-tests: New file.
54959         * modules/unictype/property-ignorable-control-tests: New file.
54960         * modules/unictype/property-iso-control-tests: New file.
54961         * modules/unictype/property-join-control-tests: New file.
54962         * modules/unictype/property-left-of-pair-tests: New file.
54963         * modules/unictype/property-line-separator-tests: New file.
54964         * modules/unictype/property-logical-order-exception-tests: New file.
54965         * modules/unictype/property-lowercase-tests: New file.
54966         * modules/unictype/property-math-tests: New file.
54967         * modules/unictype/property-non-break-tests: New file.
54968         * modules/unictype/property-not-a-character-tests: New file.
54969         * modules/unictype/property-numeric-tests: New file.
54970         * modules/unictype/property-other-alphabetic-tests: New file.
54971         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54972         * modules/unictype/property-other-grapheme-extend-tests: New file.
54973         * modules/unictype/property-other-id-continue-tests: New file.
54974         * modules/unictype/property-other-id-start-tests: New file.
54975         * modules/unictype/property-other-lowercase-tests: New file.
54976         * modules/unictype/property-other-math-tests: New file.
54977         * modules/unictype/property-other-uppercase-tests: New file.
54978         * modules/unictype/property-paired-punctuation-tests: New file.
54979         * modules/unictype/property-paragraph-separator-tests: New file.
54980         * modules/unictype/property-pattern-syntax-tests: New file.
54981         * modules/unictype/property-pattern-white-space-tests: New file.
54982         * modules/unictype/property-private-use-tests: New file.
54983         * modules/unictype/property-punctuation-tests: New file.
54984         * modules/unictype/property-quotation-mark-tests: New file.
54985         * modules/unictype/property-radical-tests: New file.
54986         * modules/unictype/property-sentence-terminal-tests: New file.
54987         * modules/unictype/property-soft-dotted-tests: New file.
54988         * modules/unictype/property-space-tests: New file.
54989         * modules/unictype/property-terminal-punctuation-tests: New file.
54990         * modules/unictype/property-test-tests: New file.
54991         * modules/unictype/property-titlecase-tests: New file.
54992         * modules/unictype/property-unassigned-code-value-tests: New file.
54993         * modules/unictype/property-unified-ideograph-tests: New file.
54994         * modules/unictype/property-uppercase-tests: New file.
54995         * modules/unictype/property-variation-selector-tests: New file.
54996         * modules/unictype/property-white-space-tests: New file.
54997         * modules/unictype/property-xid-continue-tests: New file.
54998         * modules/unictype/property-xid-start-tests: New file.
54999         * modules/unictype/property-zero-width-tests: New file.
55000         * modules/unictype/scripts-tests: New file.
55001         * modules/unictype/syntax-c-ident-tests: New file.
55002         * modules/unictype/syntax-c-whitespace-tests: New file.
55003         * modules/unictype/syntax-java-ident-tests: New file.
55004         * modules/unictype/syntax-java-whitespace-tests: New file.
55005         * tests/unictype/test-bidi_byname.c: New file.
55006         * tests/unictype/test-bidi_name.c: New file.
55007         * tests/unictype/test-bidi_of.c: New file.
55008         * tests/unictype/test-bidi_test.c: New file.
55009         * tests/unictype/test-block_list.c: New file.
55010         * tests/unictype/test-block_of.c: New file.
55011         * tests/unictype/test-block_test.c: New file.
55012         * tests/unictype/test-categ_and.c: New file.
55013         * tests/unictype/test-categ_and_not.c: New file.
55014         * tests/unictype/test-categ_byname.c: New file.
55015         * tests/unictype/test-categ_name.c: New file.
55016         * tests/unictype/test-categ_none.c: New file.
55017         * tests/unictype/test-categ_of.c: New file.
55018         * tests/unictype/test-categ_or.c: New file.
55019         * tests/unictype/test-categ_test_withtable.c: New file.
55020         * tests/unictype/test-combining.c: New file.
55021         * tests/unictype/test-decdigit.c: New file.
55022         * tests/unictype/test-digit.c: New file.
55023         * tests/unictype/test-mirror.c: New file.
55024         * tests/unictype/test-numeric.c: New file.
55025         * tests/unictype/test-pr_byname.c: New file.
55026         * tests/unictype/test-pr_test.c: New file.
55027         * tests/unictype/test-predicate-part1.h: New file.
55028         * tests/unictype/test-predicate-part2.h: New file.
55029         * tests/unictype/test-scripts.c: New file.
55030         * tests/unictype/test-sy_c_ident.c: New file.
55031         * tests/unictype/test-sy_java_ident.c: New file.
55032
55033         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
55034         for Unicode 5.0.0.
55035         * tests/unictype/test-categ_Cc.c: Likewise.
55036         * tests/unictype/test-categ_Cf.c: Likewise.
55037         * tests/unictype/test-categ_Cn.c: Likewise.
55038         * tests/unictype/test-categ_Co.c: Likewise.
55039         * tests/unictype/test-categ_Cs.c: Likewise.
55040         * tests/unictype/test-categ_L.c: Likewise.
55041         * tests/unictype/test-categ_Ll.c: Likewise.
55042         * tests/unictype/test-categ_Lm.c: Likewise.
55043         * tests/unictype/test-categ_Lo.c: Likewise.
55044         * tests/unictype/test-categ_Lt.c: Likewise.
55045         * tests/unictype/test-categ_Lu.c: Likewise.
55046         * tests/unictype/test-categ_M.c: Likewise.
55047         * tests/unictype/test-categ_Mc.c: Likewise.
55048         * tests/unictype/test-categ_Me.c: Likewise.
55049         * tests/unictype/test-categ_Mn.c: Likewise.
55050         * tests/unictype/test-categ_N.c: Likewise.
55051         * tests/unictype/test-categ_Nd.c: Likewise.
55052         * tests/unictype/test-categ_Nl.c: Likewise.
55053         * tests/unictype/test-categ_No.c: Likewise.
55054         * tests/unictype/test-categ_P.c: Likewise.
55055         * tests/unictype/test-categ_Pc.c: Likewise.
55056         * tests/unictype/test-categ_Pd.c: Likewise.
55057         * tests/unictype/test-categ_Pe.c: Likewise.
55058         * tests/unictype/test-categ_Pf.c: Likewise.
55059         * tests/unictype/test-categ_Pi.c: Likewise.
55060         * tests/unictype/test-categ_Po.c: Likewise.
55061         * tests/unictype/test-categ_Ps.c: Likewise.
55062         * tests/unictype/test-categ_S.c: Likewise.
55063         * tests/unictype/test-categ_Sc.c: Likewise.
55064         * tests/unictype/test-categ_Sk.c: Likewise.
55065         * tests/unictype/test-categ_Sm.c: Likewise.
55066         * tests/unictype/test-categ_So.c: Likewise.
55067         * tests/unictype/test-categ_Z.c: Likewise.
55068         * tests/unictype/test-categ_Zl.c: Likewise.
55069         * tests/unictype/test-categ_Zp.c: Likewise.
55070         * tests/unictype/test-categ_Zs.c: Likewise.
55071         * tests/unictype/test-ctype_alnum.c: Likewise.
55072         * tests/unictype/test-ctype_alpha.c: Likewise.
55073         * tests/unictype/test-ctype_blank.c: Likewise.
55074         * tests/unictype/test-ctype_cntrl.c: Likewise.
55075         * tests/unictype/test-ctype_digit.c: Likewise.
55076         * tests/unictype/test-ctype_graph.c: Likewise.
55077         * tests/unictype/test-ctype_lower.c: Likewise.
55078         * tests/unictype/test-ctype_print.c: Likewise.
55079         * tests/unictype/test-ctype_punct.c: Likewise.
55080         * tests/unictype/test-ctype_space.c: Likewise.
55081         * tests/unictype/test-ctype_upper.c: Likewise.
55082         * tests/unictype/test-ctype_xdigit.c: Likewise.
55083         * tests/unictype/test-decdigit.h: Likewise.
55084         * tests/unictype/test-digit.h: Likewise.
55085         * tests/unictype/test-numeric.h: Likewise.
55086         * tests/unictype/test-pr_alphabetic.c: Likewise.
55087         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55088         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55089         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55090         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55091         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55092         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55093         * tests/unictype/test-pr_bidi_control.c: Likewise.
55094         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55095         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55096         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55097         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55098         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55099         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55100         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55101         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55102         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55103         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55104         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55105         * tests/unictype/test-pr_combining.c: Likewise.
55106         * tests/unictype/test-pr_composite.c: Likewise.
55107         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55108         * tests/unictype/test-pr_dash.c: Likewise.
55109         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55110         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55111         * tests/unictype/test-pr_deprecated.c: Likewise.
55112         * tests/unictype/test-pr_diacritic.c: Likewise.
55113         * tests/unictype/test-pr_extender.c: Likewise.
55114         * tests/unictype/test-pr_format_control.c: Likewise.
55115         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55116         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55117         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55118         * tests/unictype/test-pr_hex_digit.c: Likewise.
55119         * tests/unictype/test-pr_hyphen.c: Likewise.
55120         * tests/unictype/test-pr_id_continue.c: Likewise.
55121         * tests/unictype/test-pr_id_start.c: Likewise.
55122         * tests/unictype/test-pr_ideographic.c: Likewise.
55123         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55124         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55125         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55126         * tests/unictype/test-pr_iso_control.c: Likewise.
55127         * tests/unictype/test-pr_join_control.c: Likewise.
55128         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55129         * tests/unictype/test-pr_line_separator.c: Likewise.
55130         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55131         * tests/unictype/test-pr_lowercase.c: Likewise.
55132         * tests/unictype/test-pr_math.c: Likewise.
55133         * tests/unictype/test-pr_non_break.c: Likewise.
55134         * tests/unictype/test-pr_not_a_character.c: Likewise.
55135         * tests/unictype/test-pr_numeric.c: Likewise.
55136         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55137         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55138         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55139         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55140         * tests/unictype/test-pr_other_id_start.c: Likewise.
55141         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55142         * tests/unictype/test-pr_other_math.c: Likewise.
55143         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55144         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55145         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55146         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55147         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55148         * tests/unictype/test-pr_private_use.c: Likewise.
55149         * tests/unictype/test-pr_punctuation.c: Likewise.
55150         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55151         * tests/unictype/test-pr_radical.c: Likewise.
55152         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55153         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55154         * tests/unictype/test-pr_space.c: Likewise.
55155         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55156         * tests/unictype/test-pr_titlecase.c: Likewise.
55157         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55158         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55159         * tests/unictype/test-pr_uppercase.c: Likewise.
55160         * tests/unictype/test-pr_variation_selector.c: Likewise.
55161         * tests/unictype/test-pr_white_space.c: Likewise.
55162         * tests/unictype/test-pr_xid_continue.c: Likewise.
55163         * tests/unictype/test-pr_xid_start.c: Likewise.
55164         * tests/unictype/test-pr_zero_width.c: Likewise.
55165         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55166         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55167
55168 2007-11-12  Bruno Haible  <bruno@clisp.org>
55169
55170         Unicode character classification functions.
55171         * lib/unictype.h: New file.
55172         * modules/unictype/base: New file.
55173         * modules/unictype/category-L: New file.
55174         * modules/unictype/category-Lu: New file.
55175         * modules/unictype/category-Ll: New file.
55176         * modules/unictype/category-Lt: New file.
55177         * modules/unictype/category-Lm: New file.
55178         * modules/unictype/category-Lo: New file.
55179         * modules/unictype/category-M: New file.
55180         * modules/unictype/category-Mn: New file.
55181         * modules/unictype/category-Mc: New file.
55182         * modules/unictype/category-Me: New file.
55183         * modules/unictype/category-N: New file.
55184         * modules/unictype/category-Nd: New file.
55185         * modules/unictype/category-Nl: New file.
55186         * modules/unictype/category-No: New file.
55187         * modules/unictype/category-P: New file.
55188         * modules/unictype/category-Pc: New file.
55189         * modules/unictype/category-Pd: New file.
55190         * modules/unictype/category-Ps: New file.
55191         * modules/unictype/category-Pe: New file.
55192         * modules/unictype/category-Pi: New file.
55193         * modules/unictype/category-Pf: New file.
55194         * modules/unictype/category-Po: New file.
55195         * modules/unictype/category-S: New file.
55196         * modules/unictype/category-Sm: New file.
55197         * modules/unictype/category-Sc: New file.
55198         * modules/unictype/category-Sk: New file.
55199         * modules/unictype/category-So: New file.
55200         * modules/unictype/category-Z: New file.
55201         * modules/unictype/category-Zs: New file.
55202         * modules/unictype/category-Zl: New file.
55203         * modules/unictype/category-Zp: New file.
55204         * modules/unictype/category-C: New file.
55205         * modules/unictype/category-Cc: New file.
55206         * modules/unictype/category-Cf: New file.
55207         * modules/unictype/category-Cs: New file.
55208         * modules/unictype/category-Co: New file.
55209         * modules/unictype/category-Cn: New file.
55210         * modules/unictype/category-or: New file.
55211         * modules/unictype/category-of: New file.
55212         * modules/unictype/category-test: New file.
55213         * modules/unictype/category-test-withtable: New file.
55214         * modules/unictype/category-byname: New file.
55215         * modules/unictype/category-none: New file.
55216         * modules/unictype/category-and: New file.
55217         * modules/unictype/category-and-not: New file.
55218         * modules/unictype/category-name: New file.
55219         * modules/unictype/combining-class: New file.
55220         * modules/unictype/category-all: New file.
55221         * modules/unictype/bidicategory-all: New file.
55222         * modules/unictype/bidicategory-byname: New file.
55223         * modules/unictype/bidicategory-name: New file.
55224         * modules/unictype/bidicategory-of: New file.
55225         * modules/unictype/bidicategory-test: New file.
55226         * modules/unictype/decimal-digit: New file.
55227         * modules/unictype/digit: New file.
55228         * modules/unictype/numeric: New file.
55229         * modules/unictype/mirror: New file.
55230         * modules/unictype/property-white-space: New file.
55231         * modules/unictype/property-alphabetic: New file.
55232         * modules/unictype/property-other-alphabetic: New file.
55233         * modules/unictype/property-not-a-character: New file.
55234         * modules/unictype/property-default-ignorable-code-point: New file.
55235         * modules/unictype/property-other-default-ignorable-code-point: New
55236         file.
55237         * modules/unictype/property-deprecated: New file.
55238         * modules/unictype/property-logical-order-exception: New file.
55239         * modules/unictype/property-variation-selector: New file.
55240         * modules/unictype/property-private-use: New file.
55241         * modules/unictype/property-unassigned-code-value: New file.
55242         * modules/unictype/property-uppercase: New file.
55243         * modules/unictype/property-other-uppercase: New file.
55244         * modules/unictype/property-lowercase: New file.
55245         * modules/unictype/property-other-lowercase: New file.
55246         * modules/unictype/property-titlecase: New file.
55247         * modules/unictype/property-soft-dotted: New file.
55248         * modules/unictype/property-id-start: New file.
55249         * modules/unictype/property-other-id-start: New file.
55250         * modules/unictype/property-id-continue: New file.
55251         * modules/unictype/property-other-id-continue: New file.
55252         * modules/unictype/property-xid-start: New file.
55253         * modules/unictype/property-xid-continue: New file.
55254         * modules/unictype/property-pattern-white-space: New file.
55255         * modules/unictype/property-pattern-syntax: New file.
55256         * modules/unictype/property-join-control: New file.
55257         * modules/unictype/property-grapheme-base: New file.
55258         * modules/unictype/property-grapheme-extend: New file.
55259         * modules/unictype/property-other-grapheme-extend: New file.
55260         * modules/unictype/property-grapheme-link: New file.
55261         * modules/unictype/property-bidi-control: New file.
55262         * modules/unictype/property-bidi-left-to-right: New file.
55263         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55264         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55265         * modules/unictype/property-bidi-european-digit: New file.
55266         * modules/unictype/property-bidi-eur-num-separator: New file.
55267         * modules/unictype/property-bidi-eur-num-terminator: New file.
55268         * modules/unictype/property-bidi-arabic-digit: New file.
55269         * modules/unictype/property-bidi-common-separator: New file.
55270         * modules/unictype/property-bidi-block-separator: New file.
55271         * modules/unictype/property-bidi-segment-separator: New file.
55272         * modules/unictype/property-bidi-whitespace: New file.
55273         * modules/unictype/property-bidi-non-spacing-mark: New file.
55274         * modules/unictype/property-bidi-boundary-neutral: New file.
55275         * modules/unictype/property-bidi-pdf: New file.
55276         * modules/unictype/property-bidi-embedding-or-override: New file.
55277         * modules/unictype/property-bidi-other-neutral: New file.
55278         * modules/unictype/property-hex-digit: New file.
55279         * modules/unictype/property-ascii-hex-digit: New file.
55280         * modules/unictype/property-ideographic: New file.
55281         * modules/unictype/property-unified-ideograph: New file.
55282         * modules/unictype/property-radical: New file.
55283         * modules/unictype/property-ids-binary-operator: New file.
55284         * modules/unictype/property-ids-trinary-operator: New file.
55285         * modules/unictype/property-zero-width: New file.
55286         * modules/unictype/property-space: New file.
55287         * modules/unictype/property-non-break: New file.
55288         * modules/unictype/property-iso-control: New file.
55289         * modules/unictype/property-format-control: New file.
55290         * modules/unictype/property-dash: New file.
55291         * modules/unictype/property-hyphen: New file.
55292         * modules/unictype/property-punctuation: New file.
55293         * modules/unictype/property-line-separator: New file.
55294         * modules/unictype/property-paragraph-separator: New file.
55295         * modules/unictype/property-quotation-mark: New file.
55296         * modules/unictype/property-sentence-terminal: New file.
55297         * modules/unictype/property-terminal-punctuation: New file.
55298         * modules/unictype/property-currency-symbol: New file.
55299         * modules/unictype/property-math: New file.
55300         * modules/unictype/property-other-math: New file.
55301         * modules/unictype/property-paired-punctuation: New file.
55302         * modules/unictype/property-left-of-pair: New file.
55303         * modules/unictype/property-combining: New file.
55304         * modules/unictype/property-composite: New file.
55305         * modules/unictype/property-decimal-digit: New file.
55306         * modules/unictype/property-numeric: New file.
55307         * modules/unictype/property-diacritic: New file.
55308         * modules/unictype/property-extender: New file.
55309         * modules/unictype/property-ignorable-control: New file.
55310         * modules/unictype/property-test: New file.
55311         * modules/unictype/property-byname: New file.
55312         * modules/unictype/property-all: New file.
55313         * modules/unictype/scripts: New file.
55314         * modules/unictype/scripts-all: New file.
55315         * modules/unictype/block-of: New file.
55316         * modules/unictype/block-test: New file.
55317         * modules/unictype/block-list: New file.
55318         * modules/unictype/block-all: New file.
55319         * modules/unictype/syntax-c-whitespace: New file.
55320         * modules/unictype/syntax-java-whitespace: New file.
55321         * modules/unictype/syntax-c-ident: New file.
55322         * modules/unictype/syntax-java-ident: New file.
55323         * modules/unictype/ctype-alnum: New file.
55324         * modules/unictype/ctype-alpha: New file.
55325         * modules/unictype/ctype-cntrl: New file.
55326         * modules/unictype/ctype-digit: New file.
55327         * modules/unictype/ctype-graph: New file.
55328         * modules/unictype/ctype-lower: New file.
55329         * modules/unictype/ctype-print: New file.
55330         * modules/unictype/ctype-punct: New file.
55331         * modules/unictype/ctype-space: New file.
55332         * modules/unictype/ctype-upper: New file.
55333         * modules/unictype/ctype-xdigit: New file.
55334         * modules/unictype/ctype-blank: New file.
55335         * lib/unictype/bidi_byname.c: New file.
55336         * lib/unictype/bidi_name.c: New file.
55337         * lib/unictype/bidi_of.c: New file.
55338         * lib/unictype/bidi_test.c: New file.
55339         * lib/unictype/bitmap.h: New file.
55340         * lib/unictype/block_test.c: New file.
55341         * lib/unictype/blocks.c: New file.
55342         * lib/unictype/categ_C.c: New file.
55343         * lib/unictype/categ_Cc.c: New file.
55344         * lib/unictype/categ_Cf.c: New file.
55345         * lib/unictype/categ_Cn.c: New file.
55346         * lib/unictype/categ_Co.c: New file.
55347         * lib/unictype/categ_Cs.c: New file.
55348         * lib/unictype/categ_L.c: New file.
55349         * lib/unictype/categ_Ll.c: New file.
55350         * lib/unictype/categ_Lm.c: New file.
55351         * lib/unictype/categ_Lo.c: New file.
55352         * lib/unictype/categ_Lt.c: New file.
55353         * lib/unictype/categ_Lu.c: New file.
55354         * lib/unictype/categ_M.c: New file.
55355         * lib/unictype/categ_Mc.c: New file.
55356         * lib/unictype/categ_Me.c: New file.
55357         * lib/unictype/categ_Mn.c: New file.
55358         * lib/unictype/categ_N.c: New file.
55359         * lib/unictype/categ_Nd.c: New file.
55360         * lib/unictype/categ_Nl.c: New file.
55361         * lib/unictype/categ_No.c: New file.
55362         * lib/unictype/categ_P.c: New file.
55363         * lib/unictype/categ_Pc.c: New file.
55364         * lib/unictype/categ_Pd.c: New file.
55365         * lib/unictype/categ_Pe.c: New file.
55366         * lib/unictype/categ_Pf.c: New file.
55367         * lib/unictype/categ_Pi.c: New file.
55368         * lib/unictype/categ_Po.c: New file.
55369         * lib/unictype/categ_Ps.c: New file.
55370         * lib/unictype/categ_S.c: New file.
55371         * lib/unictype/categ_Sc.c: New file.
55372         * lib/unictype/categ_Sk.c: New file.
55373         * lib/unictype/categ_Sm.c: New file.
55374         * lib/unictype/categ_So.c: New file.
55375         * lib/unictype/categ_Z.c: New file.
55376         * lib/unictype/categ_Zl.c: New file.
55377         * lib/unictype/categ_Zp.c: New file.
55378         * lib/unictype/categ_Zs.c: New file.
55379         * lib/unictype/categ_and.c: New file.
55380         * lib/unictype/categ_and_not.c: New file.
55381         * lib/unictype/categ_byname.c: New file.
55382         * lib/unictype/categ_name.c: New file.
55383         * lib/unictype/categ_none.c: New file.
55384         * lib/unictype/categ_of.c: New file.
55385         * lib/unictype/categ_or.c: New file.
55386         * lib/unictype/categ_test.c: New file.
55387         * lib/unictype/combining.c: New file.
55388         * lib/unictype/ctype_alnum.c: New file.
55389         * lib/unictype/ctype_alpha.c: New file.
55390         * lib/unictype/ctype_blank.c: New file.
55391         * lib/unictype/ctype_cntrl.c: New file.
55392         * lib/unictype/ctype_digit.c: New file.
55393         * lib/unictype/ctype_graph.c: New file.
55394         * lib/unictype/ctype_lower.c: New file.
55395         * lib/unictype/ctype_print.c: New file.
55396         * lib/unictype/ctype_punct.c: New file.
55397         * lib/unictype/ctype_space.c: New file.
55398         * lib/unictype/ctype_upper.c: New file.
55399         * lib/unictype/ctype_xdigit.c: New file.
55400         * lib/unictype/decdigit.c: New file.
55401         * lib/unictype/digit.c: New file.
55402         * lib/unictype/identsyntaxmap.h: New file.
55403         * lib/unictype/mirror.c: New file.
55404         * lib/unictype/numeric.c: New file.
55405         * lib/unictype/pr_alphabetic.c: New file.
55406         * lib/unictype/pr_ascii_hex_digit.c: New file.
55407         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55408         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55409         * lib/unictype/pr_bidi_block_separator.c: New file.
55410         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55411         * lib/unictype/pr_bidi_common_separator.c: New file.
55412         * lib/unictype/pr_bidi_control.c: New file.
55413         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55414         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55415         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55416         * lib/unictype/pr_bidi_european_digit.c: New file.
55417         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55418         * lib/unictype/pr_bidi_left_to_right.c: New file.
55419         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55420         * lib/unictype/pr_bidi_other_neutral.c: New file.
55421         * lib/unictype/pr_bidi_pdf.c: New file.
55422         * lib/unictype/pr_bidi_segment_separator.c: New file.
55423         * lib/unictype/pr_bidi_whitespace.c: New file.
55424         * lib/unictype/pr_byname.c: New file.
55425         * lib/unictype/pr_byname.gperf: New file.
55426         * lib/unictype/pr_combining.c: New file.
55427         * lib/unictype/pr_composite.c: New file.
55428         * lib/unictype/pr_currency_symbol.c: New file.
55429         * lib/unictype/pr_dash.c: New file.
55430         * lib/unictype/pr_decimal_digit.c: New file.
55431         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55432         * lib/unictype/pr_deprecated.c: New file.
55433         * lib/unictype/pr_diacritic.c: New file.
55434         * lib/unictype/pr_extender.c: New file.
55435         * lib/unictype/pr_format_control.c: New file.
55436         * lib/unictype/pr_grapheme_base.c: New file.
55437         * lib/unictype/pr_grapheme_extend.c: New file.
55438         * lib/unictype/pr_grapheme_link.c: New file.
55439         * lib/unictype/pr_hex_digit.c: New file.
55440         * lib/unictype/pr_hyphen.c: New file.
55441         * lib/unictype/pr_id_continue.c: New file.
55442         * lib/unictype/pr_id_start.c: New file.
55443         * lib/unictype/pr_ideographic.c: New file.
55444         * lib/unictype/pr_ids_binary_operator.c: New file.
55445         * lib/unictype/pr_ids_trinary_operator.c: New file.
55446         * lib/unictype/pr_ignorable_control.c: New file.
55447         * lib/unictype/pr_iso_control.c: New file.
55448         * lib/unictype/pr_join_control.c: New file.
55449         * lib/unictype/pr_left_of_pair.c: New file.
55450         * lib/unictype/pr_line_separator.c: New file.
55451         * lib/unictype/pr_logical_order_exception.c: New file.
55452         * lib/unictype/pr_lowercase.c: New file.
55453         * lib/unictype/pr_math.c: New file.
55454         * lib/unictype/pr_non_break.c: New file.
55455         * lib/unictype/pr_not_a_character.c: New file.
55456         * lib/unictype/pr_numeric.c: New file.
55457         * lib/unictype/pr_other_alphabetic.c: New file.
55458         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55459         * lib/unictype/pr_other_grapheme_extend.c: New file.
55460         * lib/unictype/pr_other_id_continue.c: New file.
55461         * lib/unictype/pr_other_id_start.c: New file.
55462         * lib/unictype/pr_other_lowercase.c: New file.
55463         * lib/unictype/pr_other_math.c: New file.
55464         * lib/unictype/pr_other_uppercase.c: New file.
55465         * lib/unictype/pr_paired_punctuation.c: New file.
55466         * lib/unictype/pr_paragraph_separator.c: New file.
55467         * lib/unictype/pr_pattern_syntax.c: New file.
55468         * lib/unictype/pr_pattern_white_space.c: New file.
55469         * lib/unictype/pr_private_use.c: New file.
55470         * lib/unictype/pr_punctuation.c: New file.
55471         * lib/unictype/pr_quotation_mark.c: New file.
55472         * lib/unictype/pr_radical.c: New file.
55473         * lib/unictype/pr_sentence_terminal.c: New file.
55474         * lib/unictype/pr_soft_dotted.c: New file.
55475         * lib/unictype/pr_space.c: New file.
55476         * lib/unictype/pr_terminal_punctuation.c: New file.
55477         * lib/unictype/pr_test.c: New file.
55478         * lib/unictype/pr_titlecase.c: New file.
55479         * lib/unictype/pr_unassigned_code_value.c: New file.
55480         * lib/unictype/pr_unified_ideograph.c: New file.
55481         * lib/unictype/pr_uppercase.c: New file.
55482         * lib/unictype/pr_variation_selector.c: New file.
55483         * lib/unictype/pr_white_space.c: New file.
55484         * lib/unictype/pr_xid_continue.c: New file.
55485         * lib/unictype/pr_xid_start.c: New file.
55486         * lib/unictype/pr_zero_width.c: New file.
55487         * lib/unictype/scripts.c: New file.
55488         * lib/unictype/sy_c_ident.c: New file.
55489         * lib/unictype/sy_c_whitespace.c: New file.
55490         * lib/unictype/sy_java_ident.c: New file.
55491         * lib/unictype/sy_java_whitespace.c: New file.
55492
55493         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55494         Unicode 5.0.0.
55495         * lib/unictype/blocks.h: Likewise.
55496         * lib/unictype/categ_C.h: Likewise.
55497         * lib/unictype/categ_Cc.h: Likewise.
55498         * lib/unictype/categ_Cf.h: Likewise.
55499         * lib/unictype/categ_Cn.h: Likewise.
55500         * lib/unictype/categ_Co.h: Likewise.
55501         * lib/unictype/categ_Cs.h: Likewise.
55502         * lib/unictype/categ_L.h: Likewise.
55503         * lib/unictype/categ_Ll.h: Likewise.
55504         * lib/unictype/categ_Lm.h: Likewise.
55505         * lib/unictype/categ_Lo.h: Likewise.
55506         * lib/unictype/categ_Lt.h: Likewise.
55507         * lib/unictype/categ_Lu.h: Likewise.
55508         * lib/unictype/categ_M.h: Likewise.
55509         * lib/unictype/categ_Mc.h: Likewise.
55510         * lib/unictype/categ_Me.h: Likewise.
55511         * lib/unictype/categ_Mn.h: Likewise.
55512         * lib/unictype/categ_N.h: Likewise.
55513         * lib/unictype/categ_Nd.h: Likewise.
55514         * lib/unictype/categ_Nl.h: Likewise.
55515         * lib/unictype/categ_No.h: Likewise.
55516         * lib/unictype/categ_P.h: Likewise.
55517         * lib/unictype/categ_Pc.h: Likewise.
55518         * lib/unictype/categ_Pd.h: Likewise.
55519         * lib/unictype/categ_Pe.h: Likewise.
55520         * lib/unictype/categ_Pf.h: Likewise.
55521         * lib/unictype/categ_Pi.h: Likewise.
55522         * lib/unictype/categ_Po.h: Likewise.
55523         * lib/unictype/categ_Ps.h: Likewise.
55524         * lib/unictype/categ_S.h: Likewise.
55525         * lib/unictype/categ_Sc.h: Likewise.
55526         * lib/unictype/categ_Sk.h: Likewise.
55527         * lib/unictype/categ_Sm.h: Likewise.
55528         * lib/unictype/categ_So.h: Likewise.
55529         * lib/unictype/categ_Z.h: Likewise.
55530         * lib/unictype/categ_Zl.h: Likewise.
55531         * lib/unictype/categ_Zp.h: Likewise.
55532         * lib/unictype/categ_Zs.h: Likewise.
55533         * lib/unictype/categ_of.h: Likewise.
55534         * lib/unictype/combining.h: Likewise.
55535         * lib/unictype/ctype_alnum.h: Likewise.
55536         * lib/unictype/ctype_alpha.h: Likewise.
55537         * lib/unictype/ctype_blank.h: Likewise.
55538         * lib/unictype/ctype_cntrl.h: Likewise.
55539         * lib/unictype/ctype_digit.h: Likewise.
55540         * lib/unictype/ctype_graph.h: Likewise.
55541         * lib/unictype/ctype_lower.h: Likewise.
55542         * lib/unictype/ctype_print.h: Likewise.
55543         * lib/unictype/ctype_punct.h: Likewise.
55544         * lib/unictype/ctype_space.h: Likewise.
55545         * lib/unictype/ctype_upper.h: Likewise.
55546         * lib/unictype/ctype_xdigit.h: Likewise.
55547         * lib/unictype/decdigit.h: Likewise.
55548         * lib/unictype/digit.h: Likewise.
55549         * lib/unictype/mirror.h: Likewise.
55550         * lib/unictype/numeric.h: Likewise.
55551         * lib/unictype/pr_alphabetic.h: Likewise.
55552         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55553         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55554         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55555         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55556         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55557         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55558         * lib/unictype/pr_bidi_control.h: Likewise.
55559         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55560         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55561         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55562         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55563         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55564         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55565         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55566         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55567         * lib/unictype/pr_bidi_pdf.h: Likewise.
55568         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55569         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55570         * lib/unictype/pr_combining.h: Likewise.
55571         * lib/unictype/pr_composite.h: Likewise.
55572         * lib/unictype/pr_currency_symbol.h: Likewise.
55573         * lib/unictype/pr_dash.h: Likewise.
55574         * lib/unictype/pr_decimal_digit.h: Likewise.
55575         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55576         * lib/unictype/pr_deprecated.h: Likewise.
55577         * lib/unictype/pr_diacritic.h: Likewise.
55578         * lib/unictype/pr_extender.h: Likewise.
55579         * lib/unictype/pr_format_control.h: Likewise.
55580         * lib/unictype/pr_grapheme_base.h: Likewise.
55581         * lib/unictype/pr_grapheme_extend.h: Likewise.
55582         * lib/unictype/pr_grapheme_link.h: Likewise.
55583         * lib/unictype/pr_hex_digit.h: Likewise.
55584         * lib/unictype/pr_hyphen.h: Likewise.
55585         * lib/unictype/pr_id_continue.h: Likewise.
55586         * lib/unictype/pr_id_start.h: Likewise.
55587         * lib/unictype/pr_ideographic.h: Likewise.
55588         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55589         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55590         * lib/unictype/pr_ignorable_control.h: Likewise.
55591         * lib/unictype/pr_iso_control.h: Likewise.
55592         * lib/unictype/pr_join_control.h: Likewise.
55593         * lib/unictype/pr_left_of_pair.h: Likewise.
55594         * lib/unictype/pr_line_separator.h: Likewise.
55595         * lib/unictype/pr_logical_order_exception.h: Likewise.
55596         * lib/unictype/pr_lowercase.h: Likewise.
55597         * lib/unictype/pr_math.h: Likewise.
55598         * lib/unictype/pr_non_break.h: Likewise.
55599         * lib/unictype/pr_not_a_character.h: Likewise.
55600         * lib/unictype/pr_numeric.h: Likewise.
55601         * lib/unictype/pr_other_alphabetic.h: Likewise.
55602         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55603         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55604         * lib/unictype/pr_other_id_continue.h: Likewise.
55605         * lib/unictype/pr_other_id_start.h: Likewise.
55606         * lib/unictype/pr_other_lowercase.h: Likewise.
55607         * lib/unictype/pr_other_math.h: Likewise.
55608         * lib/unictype/pr_other_uppercase.h: Likewise.
55609         * lib/unictype/pr_paired_punctuation.h: Likewise.
55610         * lib/unictype/pr_paragraph_separator.h: Likewise.
55611         * lib/unictype/pr_pattern_syntax.h: Likewise.
55612         * lib/unictype/pr_pattern_white_space.h: Likewise.
55613         * lib/unictype/pr_private_use.h: Likewise.
55614         * lib/unictype/pr_punctuation.h: Likewise.
55615         * lib/unictype/pr_quotation_mark.h: Likewise.
55616         * lib/unictype/pr_radical.h: Likewise.
55617         * lib/unictype/pr_sentence_terminal.h: Likewise.
55618         * lib/unictype/pr_soft_dotted.h: Likewise.
55619         * lib/unictype/pr_space.h: Likewise.
55620         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55621         * lib/unictype/pr_titlecase.h: Likewise.
55622         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55623         * lib/unictype/pr_unified_ideograph.h: Likewise.
55624         * lib/unictype/pr_uppercase.h: Likewise.
55625         * lib/unictype/pr_variation_selector.h: Likewise.
55626         * lib/unictype/pr_white_space.h: Likewise.
55627         * lib/unictype/pr_xid_continue.h: Likewise.
55628         * lib/unictype/pr_xid_start.h: Likewise.
55629         * lib/unictype/pr_zero_width.h: Likewise.
55630         * lib/unictype/scripts.h: Likewise.
55631         * lib/unictype/scripts_byname.gperf: Likewise.
55632         * lib/unictype/sy_c_ident.h: Likewise.
55633         * lib/unictype/sy_c_whitespace.h: Likewise.
55634         * lib/unictype/sy_java_ident.h: Likewise.
55635         * lib/unictype/sy_java_whitespace.h: Likewise.
55636
55637         * lib/unictype/Makefile: New file.
55638         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55639         glibc.
55640         * lib/unictype/3level.h: New file, copied from glibc.
55641         * lib/unictype/3levelbit.h: New file.
55642
55643 2007-11-11  Bruno Haible  <bruno@clisp.org>
55644
55645         * modules/gperf: New file.
55646         * modules/iconv_open (Depends-on): Add it.
55647         (Makefile.am): Remove the GPERF definition.
55648
55649 2007-11-11  Bruno Haible  <bruno@clisp.org>
55650
55651         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55652         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55653
55654 2007-11-11  Bruno Haible  <bruno@clisp.org>
55655
55656         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55657         (usage): Remove function.
55658
55659 2007-11-11  Bruno Haible  <bruno@clisp.org>
55660
55661         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55662         gl_FUNC_CEILF_LIBS.
55663         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55664         gl_FUNC_CEIL_LIBS.
55665         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55666         gl_FUNC_CEILL_LIBS.
55667         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55668         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55669         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55670
55671 2007-11-11  Bruno Haible  <bruno@clisp.org>
55672
55673         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55674         roundf were declared but do not exist on functions.
55675         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55676         roundl were declared but do not exist on functions.
55677         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55678         HAVE_FLOORL_AND_CEILL, respectively.
55679         Needed for Sun C on Solaris 10.
55680
55681 2007-11-11  Bruno Haible  <bruno@clisp.org>
55682
55683         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55684         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55685         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55686         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55687         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55688         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55689         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55690         HAVE_DECL_ROUNDF.
55691         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55692         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55694         of HAVE_DECL_ROUND*.
55695         * modules/math (Makefile.am): Update.
55696
55697 2007-11-10  Bruno Haible  <bruno@clisp.org>
55698
55699         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55700         ptrdiff_t as m4/intl.m4.
55701
55702 2007-11-10  Jim Meyering  <meyering@redhat.com>
55703
55704         Avoid link failure for the argmatch test.
55705         * tests/test-argmatch.c (usage): Define function to avoid a link
55706         failure: argmatch_die requires a usage function.
55707
55708 2007-11-09  Bruno Haible  <bruno@clisp.org>
55709
55710         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55711         * doc/functions/vsnprintf.texi: Likewise.
55712         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55713         with a size argument < 2.
55714
55715 2007-11-09  Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55718         buffer. Fixes an inefficiency introduced on 2007-11-03.
55719
55720 2007-11-09  Bruno Haible  <bruno@clisp.org>
55721
55722         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55723         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55724
55725 2007-11-08  Jim Meyering  <meyering@redhat.com>
55726
55727         Change cache variable name prefix "jm_" to "gl_" everywhere.
55728         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55729         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55730         * m4/uptime.m4: s/gl_/jm_/
55731
55732 2007-11-07  Bruno Haible  <bruno@clisp.org>
55733
55734         Update to GNU gettext 0.17.
55735         * m4/intl.m4: Update to GNU gettext 0.17.
55736         * m4/po.m4: Likewise.
55737         * modules/gettext (Files): Remove m4/ulonglong.m4.
55738         (configure.ac): Require gettext infrastructure from version 0.17.
55739
55740 2007-11-06  Bruno Haible  <bruno@clisp.org>
55741
55742         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55743         symbolic values are not defined in a public header.
55744         * lib/freadable.c (freadable) [QNX]: Likewise.
55745         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55746         * lib/freading.c (freading) [QNX]: Likewise.
55747         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55748         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55749         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55750         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55751         Reported by Alain Magloire.
55752
55753         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55754
55755 2007-11-05  Bruno Haible  <bruno@clisp.org>
55756
55757         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55758         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55759         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55760         Reported by Eric Blake.
55761
55762 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55763             Bruno Haible  <bruno@clisp.org>
55764
55765         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55766         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55767         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55768         (malloc): Undefine also before including <stdlib.h>.
55769         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55770         Needed on OSF/1 4.0.
55771
55772 2007-11-05  Jim Meyering  <meyering@redhat.com>
55773
55774         git-version-gen: sync from coreutils.
55775         * build-aux/git-version-gen: Add comments.
55776         Change the first '-' to '.' in the snapshot version string,
55777         e.g., 6.9-377-08144 -> 6.9.377-08144
55778         Remove first parameter.
55779         Don't declare a version "-dirty" merely because a time
55780         stamp has changed.
55781
55782 2007-11-04  Bruno Haible  <bruno@clisp.org>
55783
55784         * lib/lock.h: Protect all macro definitions containing an 'if'
55785         statement through a "do { ... } while (0)".
55786         * lib/tls.h: Likewise.
55787
55788 2007-11-04  Bruno Haible  <bruno@clisp.org>
55789
55790         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55791
55792 2007-11-04  Bruno Haible  <bruno@clisp.org>
55793
55794         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55795         * modules/fprintf-posix (Depends-on): Add nocrash.
55796         * modules/snprintf-posix (Depends-on): Likewise.
55797         * modules/sprintf-posix (Depends-on): Likewise.
55798         * modules/vasnprintf-posix (Depends-on): Likewise.
55799         * modules/vasprintf-posix (Depends-on): Likewise.
55800         * modules/vfprintf-posix (Depends-on): Likewise.
55801         * modules/vsnprintf-posix (Depends-on): Likewise.
55802         * modules/vsprintf-posix (Depends-on): Likewise.
55803         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55804         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55805         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55806         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55807         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55808         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55809         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55810
55811 2007-11-04  Bruno Haible  <bruno@clisp.org>
55812
55813         * modules/nocrash: New file.
55814         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55815         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55816
55817 2007-11-04  Bruno Haible  <bruno@clisp.org>
55818
55819         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55820         precision handling.
55821         * tests/test-vasprintf-posix.c (test_function): Likewise.
55822         * tests/test-snprintf-posix.h (test_function): Likewise.
55823         * tests/test-sprintf-posix.h (test_function): Likewise.
55824
55825         Fix *printf behaviour for large precisions on mingw and BeOS.
55826         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55827         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55829         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55830         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55831         gl_PRINTF_PRECISION and test its result. Invoke
55832         gl_PREREQ_VASNPRINTF_PRECISION.
55833         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55834         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55835         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55836         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55837         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55838         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55839         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55840         * doc/functions/fprintf.texi: Update.
55841         * doc/functions/printf.texi: Update.
55842         * doc/functions/snprintf.texi: Update.
55843         * doc/functions/sprintf.texi: Update.
55844         * doc/functions/vfprintf.texi: Update.
55845         * doc/functions/vprintf.texi: Update.
55846         * doc/functions/vsnprintf.texi: Update.
55847         * doc/functions/vsprintf.texi: Update.
55848
55849 2007-11-04  Bruno Haible  <bruno@clisp.org>
55850
55851         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55852
55853 2007-11-04  Bruno Haible  <bruno@clisp.org>
55854
55855         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55856         Reported by Sylvain Beucler <beuc@gnu.org>.
55857
55858 2007-11-03  Bruno Haible  <bruno@clisp.org>
55859
55860         * tests/test-fprintf-posix2.sh: New file.
55861         * tests/test-fprintf-posix2.c: New file.
55862         * modules/fprintf-posix-tests (Files): Add them.
55863         (TESTS): Add test-fprintf-posix2.sh.
55864         (configure.ac): Check for getrlimit and setrlimit.
55865         (check_PROGRAMS): Add test-fprintf-posix2.
55866
55867         * tests/test-printf-posix2.sh: New file.
55868         * tests/test-printf-posix2.c: New file.
55869         * modules/printf-posix-tests (Files): Add them.
55870         (TESTS): Add test-printf-posix2.sh.
55871         (configure.ac): Check for getrlimit and setrlimit.
55872         (check_PROGRAMS): Add test-printf-posix2.
55873
55874         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55875         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55876         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55877         (decode_double): New function, copied from decode_long_double.
55878         (scale10_round_decimal_decoded): New function, extracted from
55879         scale10_round_decimal_long_double.
55880         (scale10_round_decimal_long_double): Use it.
55881         (scale10_round_decimal_double): New function.
55882         (floorlog10): New function.
55883         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55885         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55886         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55887         gl_PRINTF_ENOMEM and test its result. Invoke
55888         gl_PREREQ_VASNPRINTF_ENOMEM.
55889         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55890         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55891         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55892         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55893         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55895         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55896         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55897         * modules/snprintf-posix (Depends-on): Likewise.
55898         * modules/sprintf-posix (Depends-on): Likewise.
55899         * modules/vasnprintf-posix (Depends-on): Likewise.
55900         * modules/vasprintf-posix (Depends-on): Likewise.
55901         * modules/vfprintf-posix (Depends-on): Likewise.
55902         * modules/vsnprintf-posix (Depends-on): Likewise.
55903         * modules/vsprintf-posix (Depends-on): Likewise.
55904         * doc/functions/fprintf.texi: Update.
55905         * doc/functions/printf.texi: Update.
55906         * doc/functions/snprintf.texi: Update.
55907         * doc/functions/sprintf.texi: Update.
55908         * doc/functions/vfprintf.texi: Update.
55909         * doc/functions/vprintf.texi: Update.
55910         * doc/functions/vsnprintf.texi: Update.
55911         * doc/functions/vsprintf.texi: Update.
55912
55913 2007-11-03  Bruno Haible  <bruno@clisp.org>
55914
55915         * modules/frexp-nolibm-tests: New file.
55916
55917         * modules/frexp-nolibm: New file.
55918         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55919
55920 2007-11-03  Bruno Haible  <bruno@clisp.org>
55921
55922         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55923         value is C99 compliant.
55924         Needed for OSF/1 5.1.
55925
55926 2007-11-03  Bruno Haible  <bruno@clisp.org>
55927
55928         Fix out-of-memory handling of vasnprintf.
55929         * lib/printf-parse.c: Include <errno.h>.
55930         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55931         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55932         is already set.
55933
55934 2007-11-02  Eric Blake  <ebb9@byu.net>
55935
55936         Fix tests on cygwin.
55937         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55938
55939 2007-11-01  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55942         warning.
55943         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55944         needed for POSIX compatibility.
55945
55946 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55947
55948         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55949         for compatibility with GNU.
55950
55951 2007-11-01  Bruno Haible  <bruno@clisp.org>
55952
55953         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55954         (putenv): Renamed from rpl_putenv. Change argument type from
55955         'const char *' to 'char *'.
55956         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55957         of defining putenv in config.h, just set REPLACE_PUTENV.
55958         * modules/putenv (Depends-on): Add stdlib.
55959         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55960         (Include): Use <stdlib.h>.
55961         * lib/stdlib.in.h (putenv): New declaration.
55962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55963         REPLACE_PUTENV.
55964         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55965         REPLACE_PUTENV.
55966         Needed for MacOS X 10.5.0.
55967         Reported by Peter O'Gorman <peter@pogma.com>.
55968
55969 2007-11-01  Jim Meyering  <meyering@redhat.com>
55970
55971         Treat an empty date string exactly like "0".
55972         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55973         if the remaining date string (to be parsed) is empty, use "0".
55974         Reported by Mischa Molhoek and discussed in this thread:
55975         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55976
55977 2007-10-31  Bruno Haible  <bruno@clisp.org>
55978
55979         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55980         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55981         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55982         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55983         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55984         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55985
55986 2007-10-31  Bruno Haible  <bruno@clisp.org>
55987
55988         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55989         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55990         (AC_TYPE_LONG_LONG_INT): Use it.
55991         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55992         it as well.
55993         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55994         to m4/longlong.m4.
55995         * modules/stdint (Files): Remove m4/ulonglong.m4.
55996         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55997         m4/ulonglong.m4.
55998         * modules/strtoumax (Files): Likewise.
55999
56000 2007-10-30  Bruno Haible  <bruno@clisp.org>
56001
56002         * modules/xvasprintf-posix: New file.
56003         Suggested by Eric Blake.
56004
56005 2007-10-30  Bruno Haible  <bruno@clisp.org>
56006
56007         * modules/xprintf-posix-tests: New file.
56008         * tests/test-xprintf-posix.sh: New file.
56009         * tests/test-xprintf-posix.c: New file.
56010         * tests/test-xfprintf-posix.c: New file.
56011
56012         * modules/xprintf-posix: New file.
56013
56014 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56015
56016         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
56017         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
56018         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
56019
56020 2007-10-29  Bruno Haible  <bruno@clisp.org>
56021
56022         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
56023         contain the special marker '_cv_'.
56024         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
56025         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
56026         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
56027         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
56028         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
56029         Reported by Ralf Wildenhues.
56030
56031 2007-10-29  Bruno Haible  <bruno@clisp.org>
56032
56033         * gnulib-tool (func_import): When --lgpl is not specified, set
56034         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
56035         GPLv3.
56036         Reported by Simon Josefsson.
56037
56038 2007-10-28  Bruno Haible  <bruno@clisp.org>
56039
56040         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56041         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56042         HAVE_DECL_ISFINITE.
56043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56044         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56045         HAVE_DECL_ISFINITE.
56046
56047 2007-10-28  Bruno Haible  <bruno@clisp.org>
56048
56049         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56050         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56051
56052 2007-10-28  Bruno Haible  <bruno@clisp.org>
56053
56054         Fix link errors with Sun C 5.0 on Solaris 10.
56055         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56056         function is declared but not present in the compiler's libm.
56057         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
56058         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
56059         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
56060         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
56061         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56062         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56063         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56065         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56066         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56067         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56068         HAVE_DECL_FLOORL.
56069
56070 2007-10-28  Bruno Haible  <bruno@clisp.org>
56071
56072         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56073         gl_FUNC_FLOORL. Cache the result.
56074         (gl_FUNC_FLOORL): Use it.
56075         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56076         gl_FUNC_CEILL. Cache the result.
56077         (gl_FUNC_CEILL): Use it.
56078
56079         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56080         gl_FUNC_FLOOR. Cache the result.
56081         (gl_FUNC_FLOOR): Use it.
56082         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56083         gl_FUNC_CEIL. Cache the result.
56084         (gl_FUNC_CEIL): Use it.
56085
56086         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56087         gl_FUNC_FLOORF. Cache the result.
56088         (gl_FUNC_FLOORF): Use it.
56089         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56090         gl_FUNC_CEILF. Cache the result.
56091         (gl_FUNC_CEILF): Use it.
56092
56093 2007-10-28  Bruno Haible  <bruno@clisp.org>
56094
56095         * gnulib-tool: Allow specifying the LGPL version number through
56096         --lgpl=2 or --lgpl=3.
56097         (func_usage): Document --lgpl with argument.
56098         Handle --lgpl=... arguments.
56099         (func_import): Recognize also gl_LGPL calls with an argument. When
56100         --lgpl=2 is used and the module's license is just LGPL, report an
56101         error. Set sed_transform_lib_file according to the lgpl variable. In
56102         the generated files, use --lgpl or gl_LGPL invocations with argument,
56103         if necessary.
56104         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56105         an LGPv2+ license.
56106         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56107         gl_LGPL macro.
56108
56109 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56110             Bruno Haible  <bruno@clisp.org>
56111
56112         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56113         (u16_uctomb_aux): Likewise.
56114         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56115         !HAVE_INLINE.
56116         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56117
56118 2007-10-28  Bruno Haible  <bruno@clisp.org>
56119
56120         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56121         Invoke AM_GETTEXT_OPTION if it exists.
56122         * modules/vasprintf: Likewise.
56123         * modules/verror: Likewise.
56124         * modules/xprintf: Likewise.
56125         * modules/xvasprintf: Likewise.
56126
56127 2007-10-27  Ben Pfaff  <blp@gnu.org>
56128
56129         * lib/math.in.h: Define isfinite macro and prototypes for
56130         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56131         implementations.
56132         * m4/math_h.m4: New substitutions for isfinite module.
56133         * lib/isfinite.c: New file.
56134         * m4/isfinite.m4: New file.
56135         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56136         * modules/isfinite: New file.
56137         * modules/isfinite-tests: New file.
56138         * tests/tests-isfinite.c: New file.
56139         * doc/functions/isfinite.texi: Mention isfinite module.
56140         * MODULES.html.sh: Mention new module.
56141
56142 2007-10-27  Ben Pfaff  <blp@gnu.org>
56143
56144         Ralf Wildenhues reported that Tru64 4.0D declares the round
56145         functions but does not have definitions.
56146         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56147         cannot be found in any library, set the output variable to
56148         "missing" instead of "".
56149         * m4/round.m4: Also use our substitute if we cannot find round in
56150         any library, even if it is declared.
56151         * m4/roundf.m4: Likewise for roundf.
56152         * m4/roundl.m4: Likewise for roundl.
56153         * lib/math.in.h: Undefine roundf, round, roundl before defining
56154         their replacements, to allow for hypothetical systems where these
56155         may be defined as macros but not available in libraries.
56156
56157 2007-10-27  Bruno Haible  <bruno@clisp.org>
56158
56159         * doc/gnulib.texi: Invoke @firstparagraphindent.
56160         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56161         changes in gnulib.
56162         (Source changes): New section.
56163
56164 2007-10-26  Bruno Haible  <bruno@clisp.org>
56165
56166         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56167         borrowed from autoconf.
56168
56169 2007-10-26  Bruno Haible  <bruno@clisp.org>
56170
56171         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56172         strerror returned the empty string. Needed on HP-UX 11.00.
56173
56174 2007-10-24  Micah Cowan  <micah@cowan.name>
56175
56176         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56177         * build-aux/bootstrap: Remove support for now-unnecessary option,
56178         --cvs-user, and envvars CVS_USER, CVS_RSH.
56179
56180 2007-10-24  Jim Meyering  <meyering@redhat.com>
56181
56182         Avoid diagnostics from sha1sum when there is no cached checksum.
56183         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56184         if the po.s1 file hasn't been created yet.
56185
56186         * build-aux/bootstrap: Sync from coreutils:
56187         2007-10-24  Jim Meyering  <meyering@redhat.com>
56188         Get gnulib from the git repository, not from an obsolete cvs one.
56189         * build-aux/bootstrap: Suggestion from Micah Cowan.
56190         2007-10-04  Jim Meyering  <jim@meyering.net>
56191         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56192         (update_po_files): Work also when there are no .po files in po/.
56193
56194 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56195
56196         * README: Append ".git" to git and cg examples.
56197         Problem reported by Benoit Sigoure.
56198
56199 2007-10-23  Micah Cowan  <micah@cowan.name>
56200
56201         * users.txt: Add wget.
56202
56203 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56204
56205         Fix linking of some unistdio tests on FreeBSD.
56206         * modules/unistdio/u16-vsnprintf-tests
56207         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56208         * modules/unistdio/u16-vsprintf-tests
56209         (test_u16_vsnprintf1_LDADD): Likewise.
56210         * modules/unistdio/u32-vsnprintf-tests
56211         (test_u32_vsnprintf1_LDADD): Likewise.
56212         * modules/unistdio/u32-vsprintf-tests
56213         (test_u32_vsprintf1_LDADD): Likewise.
56214         * modules/unistdio/u8-vsnprintf-tests
56215         (test_u8_vsnprintf1_LDADD): Likewise.
56216         * modules/unistdio/u8-vsprintf-tests
56217         (test_u8_vsprintf1_LDADD): Likewise.
56218         * modules/unistdio/ulc-vsnprintf-tests
56219         (test_ulc_vsnprintf1_LDADD): Likewise.
56220         * modules/unistdio/ulc-vsprintf-tests
56221         (test_ulc_vsprintf1_LDADD): Likewise.
56222
56223         Fix linking of some uniconv tests on FreeBSD.
56224         * modules/uniconv/u16-conv-from-enc-tests
56225         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56226         * modules/uniconv/u16-conv-to-enc-tests
56227         (test_u16_conv_to_enc_LDADD): Likewise.
56228         * modules/uniconv/u16-strconv-from-enc-tests
56229         (test_u16_strconv_from_enc_LDADD): Likewise.
56230         * modules/uniconv/u16-strconv-to-enc-tests
56231         (test_u16_strconv_to_enc_LDADD): Likewise.
56232         * modules/uniconv/u32-conv-from-enc-tests
56233         (test_u32_conv_from_enc_LDADD): Likewise.
56234         * modules/uniconv/u32-conv-to-enc-tests
56235         (test_u32_conv_to_enc_LDADD): Likewise.
56236         * modules/uniconv/u32-strconv-from-enc-tests
56237         (test_u32_strconv_from_enc_LDADD): Likewise.
56238         * modules/uniconv/u32-strconv-to-enc-tests
56239         (test_u32_strconv_to_enc_LDADD): Likewise.
56240         * modules/uniconv/u8-conv-from-enc-tests
56241         (test_u8_conv_from_enc_LDADD): Likewise.
56242         * modules/uniconv/u8-conv-to-enc-tests
56243         (test_u8_conv_to_enc_LDADD): Likewise.
56244         * modules/uniconv/u8-strconv-from-enc-tests
56245         (test_u8_strconv_from_enc_LDADD): Likewise.
56246         * modules/uniconv/u8-strconv-to-enc-tests
56247         (test_u8_strconv_to_enc_LDADD): Likewise.
56248
56249 2007-10-22  Bruno Haible  <bruno@clisp.org>
56250
56251         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56252         size.
56253
56254 2007-10-22  Eric Blake  <ebb9@byu.net>
56255
56256         Tweak x*printf documentation.
56257         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56258         variable name and comments.
56259         Suggested by Bruno Haible.
56260
56261 2007-10-22  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/acl.c (copy_acl): Fix file name in comment.
56264
56265 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56266
56267         Fix Tru64 problem with stdbool.h.
56268         * lib/stdbool.in.h (false, true):
56269         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56270         Don't declare as an enum in this situation; it runs afoul of Tru64.
56271         Problem reported by Steven M. Schweda in
56272         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56273
56274 2007-10-22  Eric Blake  <ebb9@byu.net>
56275
56276         Also wrap vf?printf.
56277         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56278         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56279         (xvprintf, xvfprintf): New functions.
56280
56281 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56282
56283         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56284         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56285
56286         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56287         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56288
56289 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56290
56291         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56292         by Bruno Haible.
56293
56294 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56295
56296         * lib/getloadavg.c
56297         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56298         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56299
56300         * tests/test-i-ring.c: Work for C89.
56301
56302 2007-10-22  Bruno Haible  <bruno@clisp.org>
56303
56304         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56305         -1u, in preprocessor expression, so that we don't test for the bug
56306         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56308
56309 2007-10-22  Eric Blake  <ebb9@byu.net>
56310
56311         * tests/test-yesno.sh: Silence stderr during test.
56312
56313 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56314
56315         * modules/crypto/gc-camellia: New file.
56316
56317         * m4/gc-camellia.m4: New file.
56318
56319         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56320
56321         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56322
56323 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56324
56325         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56326         --help to stdout.  Reported by sms@antinode.org (Steven
56327         M. Schweda).
56328
56329 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56330
56331         * users.txt: Fix link to libksba.
56332
56333 2007-10-21  Ben Pfaff  <blp@gnu.org>
56334
56335         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56336         round.c roundf implementation that depends on floorf and ceilf to
56337         be tested unconditionally.
56338
56339 2007-10-21  Ben Pfaff  <blp@gnu.org>
56340
56341         * m4/check-libm-func.m4: Removed.
56342         * m4/check-math-lib.m4: New file.
56343         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56344         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56345         definition and lack of AC_LIBOBJ([roundf]).
56346         * m4/roundl.m4: Ditto, and similarly for roundl.
56347         * modules/round: Reference new m4 file.
56348         * modules/roundf: Ditto.
56349         * modules/roundl: Ditto.
56350         * tests/test-round2.c (main): Use ROUND instead of round.
56351         Bug report from Bruno Haible.
56352
56353 2007-10-21  Bruno Haible  <bruno@clisp.org>
56354
56355         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56356         context.
56357
56358 2007-10-21  Bruno Haible  <bruno@clisp.org>
56359
56360         * tests/test-wcwidth.c (main): Allow negative result for some control
56361         characters.
56362
56363         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56364         Needed on OSF/1 5.1.
56365
56366 2007-10-21  Bruno Haible  <bruno@clisp.org>
56367
56368         * tests/test-floorf1.c: Include isnanf.h.
56369         (main): Use isnanf() instead of isnan().
56370         * tests/test-ceilf1.c: Include isnanf.h.
56371         (main): Use isnanf() instead of isnan().
56372         * tests/test-truncf1.c: Include isnanf.h.
56373         (main): Use isnanf() instead of isnan().
56374         * tests/test-roundf1.c: Include isnanf.h.
56375         (main): Use isnanf() instead of isnan().
56376
56377 2007-10-21  Eric Blake  <ebb9@byu.net>
56378
56379         * users.txt: Update URL for m4.
56380
56381 2007-10-21  Bruno Haible  <bruno@clisp.org>
56382
56383         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56384
56385 2007-10-21  Bruno Haible  <bruno@clisp.org>
56386
56387         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56388         Git's management files if the CVS files are not present.
56389
56390 2007-10-20  Bruno Haible  <bruno@clisp.org>
56391
56392         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56393         gcc-3.4.x.
56394
56395 2007-10-20  Ben Pfaff  <blp@gnu.org>
56396
56397         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56398         implementations.
56399         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56400         * lib/round.c: New file.
56401         * lib/roundf.c: New file.
56402         * lib/roundl.c: New file.
56403         * m4/round.m4: New file.
56404         * m4/roundf.m4: New file.
56405         * m4/roundl.m4: New file.
56406         * m4/check-libm-func-m4: New file.
56407         * modules/math: Replace round, roundf, roundl related @VARS@ in
56408         math.in.h.
56409         * modules/round: New file.
56410         * modules/round-tests: New file.
56411         * modules/roundf: New file.
56412         * modules/roundf-tests: New file.
56413         * modules/roundl: New file.
56414         * modules/roundl-tests: New file.
56415         * tests/test-round1.c: New file.
56416         * tests/test-round2.c: New file.
56417         * tests/test-roundf1.c: New file.
56418         * tests/test-roundf2.c: New file.
56419         * tests/test-roundl.c: New file.
56420         * doc/functions/round.texi: Mention round module.
56421         * doc/functions/roundf.texi: Mention roundf module.
56422         * doc/functions/roundl.texi: Mention roundl module.
56423         * MODULES.html.sh: Mention new modules.
56424         Thanks to Bruno Haible for suggestions.
56425
56426 2007-10-20  Jim Meyering  <meyering@redhat.com>
56427
56428         * lib/xprintf.c: Include <config.h> unconditionally.
56429
56430         Change xprintf's license to GPL.
56431         * modules/xprintf (License): s/LGPL/GPL/, since this module
56432         depends on modules (exit and exitfail) which are GPL.
56433         Suggestion from Bruno Haible.
56434
56435         xprintf fixes.
56436         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56437         Use a clearer diagnostic.
56438         Patch from Bruno Haible.
56439
56440 2007-10-20  Bruno Haible  <bruno@clisp.org>
56441
56442         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56443         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56445
56446 2007-10-20  Bruno Haible  <bruno@clisp.org>
56447
56448         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56449         precision in the comparison result > x - 1 or similar.
56450         * tests/test-ceilf2.c (correct_result_p): Likewise.
56451         * tests/test-truncf2.c (correct_result_p): Likewise.
56452         * tests/test-trunc2.c (correct_result_p): Likewise.
56453         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56454
56455 2007-10-20  Bruno Haible  <bruno@clisp.org>
56456
56457         * modules/ceil: New file.
56458         * m4/ceil.m4: New file.
56459         * doc/functions/ceil.texi: Mention the 'ceil' module.
56460
56461 2007-10-20  Bruno Haible  <bruno@clisp.org>
56462
56463         * modules/floor: New file.
56464         * m4/floor.m4: New file.
56465         * doc/functions/floor.texi: Mention the 'floor' module.
56466
56467 2007-10-20  Bruno Haible  <bruno@clisp.org>
56468
56469         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56470         of %a.
56471         * modules/floorf-tests (Depends-on): Likewise.
56472         * modules/truncf-tests (Depends-on): Likewise.
56473         * modules/trunc-tests (Depends-on): Likewise.
56474         Reported by Ben Pfaff.
56475
56476 2007-10-19  Jim Meyering  <meyering@redhat.com>
56477
56478         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56479         Don't bother testing specific errno values.  Just test ferror.
56480
56481         New module: xprintf
56482         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56483
56484 2007-10-19  Bruno Haible  <bruno@clisp.org>
56485
56486         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56487         syntax.
56488         * modules/javaexec (Makefile.am): Likewise.
56489         * modules/relocatable-prog (Makefile.am): Likewise.
56490         Suggested by Jim Meyering.
56491
56492 2007-10-18  Bruno Haible  <bruno@clisp.org>
56493
56494         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56495         Reported by Jim Meyering.
56496
56497 2007-10-18  Eric Blake  <ebb9@byu.net>
56498
56499         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56500
56501 2007-10-18  Bruno Haible  <bruno@clisp.org>
56502
56503         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56504         the format string into writable memory. Needed in Fortify conditions.
56505
56506 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56507             Bruno Haible  <bruno@clisp.org>
56508
56509         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56510         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56511         * modules/trim (Depends-on): Add mbchar.
56512         (configure.ac): Add gl_FUNC_MBRTOWC.
56513         (Makefile.am): Augment lib_SOURCES.
56514
56515 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         Modify glob.c to use fstatat and dirfd, to simplify it.
56518         Suggested by Eric Blake.
56519         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56520         Don't include <stdbool.h>; not used.
56521         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56522         (link_exists_p): Simplify implementation, since we can now assume
56523         dirfd and fstatat.
56524         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56525
56526 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56527
56528         * gnulib-tool (func_get_dependencies): Fix sed script to
56529         match only tests.
56530
56531 2007-10-17  Bruno Haible  <bruno@clisp.org>
56532
56533         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56534         allow locale names without encoding suffix.
56535         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56536         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56537
56538 2007-10-16  Bruno Haible  <bruno@clisp.org>
56539
56540         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56541         * lib/getgroups.c (getgroups): Likewise.
56542         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56543
56544 2007-10-16  Bruno Haible  <bruno@clisp.org>
56545
56546         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56547         * modules/malloc-posix (License): Likewise.
56548         * modules/realloc-posix (License): Likewise.
56549         * modules/calloc-posix (License): Likewise.
56550         * modules/intprops (License): Change from GPL to LGPL, with
56551         Paul Eggert's approval.
56552
56553 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56554
56555         Merge glibc changes into lib/glob.c.
56556
56557         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56558         2007-10-15 04:59:03 UTC.  Here are the changes:
56559
56560         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56561
56562         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56563
56564         * lib/glob.c: Add some branch prediction throughout.
56565
56566         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56567
56568         [BZ #5103]
56569         * lib/glob.c (glob): Recognize patterns starting \/.
56570
56571         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56572
56573         [BZ #3996]
56574         * lib/glob.c (attribute_hidden): Define if not defined.
56575         (glob): Unescape dirname, filename or username when needed and not
56576         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56577         is NULL.  Handle unescaped [ in pattern without closing ].
56578         Don't pass GLOB_CHECK down to recursive glob for directories.
56579         (__glob_pattern_type): New function.
56580         (__glob_pattern_p): Implement using __glob_pattern_type.
56581         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56582         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56583         Remove unreachable code.
56584
56585         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56586
56587         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56588         explain why there are no leaks.
56589
56590         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56591
56592         [BZ #3253]
56593         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56594         time, rather allocate increasingly bigger arrays of pointers, if
56595         possible with alloca, if too large with malloc.
56596
56597 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56598
56599         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56600         Problem reported by H.Merijn Brand in
56601         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56602         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56603         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56604
56605 2007-10-15  Bruno Haible  <bruno@clisp.org>
56606
56607         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56608         with explicit rpl_ prefix.
56609         * lib/fopen.c (fopen): Likewise.
56610         * lib/freopen.c (freopen): Likewise.
56611         * lib/iconv.c (iconv): Likewise.
56612         * lib/iconv_close.c (iconv_close): Likewise.
56613
56614 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56615
56616         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56617
56618 2007-10-15  Bruno Haible  <bruno@clisp.org>
56619
56620         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56621         <stddef.h> instead of <stdlib.h> since we only need NULL.
56622         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56623
56624 2007-10-15  Bruno Haible  <bruno@clisp.org>
56625
56626         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56627         Replace paragraph talking about LIBOBJS.
56628         Reported by Colin Watson <cjwatson@debian.org>.
56629
56630 2007-10-15  Bruno Haible  <bruno@clisp.org>
56631
56632         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56633         <stdlib.h> before using NULL.
56634
56635 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56636
56637         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56638         Reported by Albert Chin <china@thewrittenword.com>.
56639
56640 2007-10-14  Bruno Haible  <bruno@clisp.org>
56641
56642         * modules/iconv_open-utf-tests: New file.
56643         * tests/test-iconv-utf.c: New file.
56644
56645         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56646         * modules/iconv_open-utf: New file.
56647         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56648         (iconv, iconv_close): New declarations.
56649         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56650         be defined.
56651         (iconv_open): Add special handling of conversion between UTF-8 and
56652         UTF-{16,32}{BE,LE}.
56653         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56654         * lib/iconv_close.c: New file.
56655         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56656         gl_FUNC_ICONV_OPEN.
56657         (gl_FUNC_ICONV_OPEN): Use it.
56658         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56659         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56660         and REPLACE_ICONV_UTF.
56661         * modules/iconv_open (Depends-on): Add c-strcase.
56662         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56663         ICONV_CONST.
56664         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56665
56666 2007-10-13  Albert Chin  <china@thewrittenword.com>
56667             Bruno Haible  <bruno@clisp.org>
56668
56669         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56670         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56671
56672 2007-10-13  Bruno Haible  <bruno@clisp.org>
56673
56674         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56675         defined, use the ISO C99 inline semantics.
56676         * lib/argp.h (ARGP_EI): Likewise.
56677
56678 2007-10-13  Bruno Haible  <bruno@clisp.org>
56679
56680         Handle 'inline' change in gcc 4.3.0.
56681         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56682         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56683         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56684         argp_fmtstream_point): Disable 'extern' declaration if the function
56685         definition is going to be provided inline.
56686         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56687         semantics, not the ISO C99 inline semantics.
56688         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56689         'extern' declaration if the function definition is going to be provided
56690         inline.
56691         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56692         the GNU C inline semantics, not the ISO C99 inline semantics. With
56693         GCC 4.2, avoid a warning.
56694
56695 2007-10-13  Bruno Haible  <bruno@clisp.org>
56696
56697         * lib/freading.h (freading): Enable the use of __freading for
56698         glibc >= 2.7.
56699         * lib/freading.c (freading): Likewise.
56700
56701 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56702
56703         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56704         "warning: C99 inline functions are not supported; using GNU89".
56705
56706 2007-10-12  Bruno Haible  <bruno@clisp.org>
56707
56708         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56709         of 2.
56710         * tests/test-ceilf2.c: New file.
56711         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56712
56713         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56714         * modules/ceilf-tests: Update.
56715
56716 2007-10-12  Bruno Haible  <bruno@clisp.org>
56717
56718         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56719         of 2.
56720         * tests/test-floorf2.c: New file.
56721         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56722
56723         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56724         * modules/floorf-tests: Update.
56725
56726 2007-10-12  Bruno Haible  <bruno@clisp.org>
56727
56728         * tests/test-trunc2.c: New file.
56729         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56730
56731         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56732         * modules/trunc-tests: Update.
56733
56734 2007-10-12  Bruno Haible  <bruno@clisp.org>
56735
56736         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56737         of 2.
56738         * tests/test-truncf2.c: New file.
56739         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56740
56741         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56742         * modules/truncf-tests: Update.
56743
56744 2007-10-11  Eric Blake  <ebb9@byu.net>
56745
56746         Don't claim strerror is broken on Interix.
56747         * doc/functions/strerror.texi (strerror): Known broken systems are
56748         now Solaris 8, and not Interix.
56749         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56750         Interix on cross-compile.
56751         Reported by Martin Koeppe in
56752         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56753
56754 2007-10-11  Bruno Haible  <bruno@clisp.org>
56755
56756         * modules/i-ring-tests: New file.
56757         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56758         instead of assert.
56759
56760 2007-10-11  Bruno Haible  <bruno@clisp.org>
56761
56762         * modules/filenamecat-tests: New file.
56763         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56764         * lib/filenamecat.c: Remove test code.
56765
56766 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56767
56768         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56769
56770         * lib/strerror.c: Include <string.h> always, to test interface,
56771         and to remove the need for the dummy.
56772         Include intprops.h to compute width instead of doing it ourselves
56773         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56774         (strerror): Define it to return NULL if there's no system strerror.
56775         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56776         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56777         ancient pre-strerror Unix systems well any more.  Saying "unknown
56778         system error" is enough.
56779         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56780         simpler strerror.c implementation.
56781         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56782         Simplify the tests to reflect the simpler strerror implementation.
56783         * modules/strerror (Depends-on): Add intprops.
56784
56785 2007-10-09  Eric Blake  <ebb9@byu.net>
56786
56787         Silence test-fpending.
56788         * modules/fpending-tests (Files): Add wrapper script.
56789         * tests/test-fpending.sh: New file.
56790
56791 2007-10-09  Bruno Haible  <bruno@clisp.org>
56792
56793         * MODULES.html.sh (func_module): Don't create a hyperlink for
56794         function names like 'printf_frexp'.
56795         (Misc): Add crc, memxor.
56796         (Characteristics of floating types): New section.
56797         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56798         isnanf-nolibm, signbit, trunc, truncf, truncl.
56799         (Enhancements for ISO C 99 functions): New subsection Input/output.
56800         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56801         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56802         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56803         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56804         (Enhancements for POSIX:2001 functions): Add chdir-long.
56805         (File system functions): Add areadlink, chdir-safer, read-file.
56806         Remove cycle-check.
56807         (File system as inode set): New section.
56808         (Date and time): Add gethrxtime.
56809         (Multithreading): Add openmp.
56810         (Internationalization functions): Add localename.
56811         (Unicode string functions): Add unistr/u*-mbsnlen.
56812         (Support for maintaining and releasing projects): Add git-version-gen.
56813         (Lone files): Remove directories.
56814
56815 2007-10-08  Ben Pfaff  <blp@gnu.org>
56816
56817         * lib/xmalloca.h: Fix typo in comment.
56818
56819 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56820
56821         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56822         when avoiding problems with integer overflow.  Use a portable test
56823         instead.
56824
56825 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56826
56827         * modules/dummy (License): Change to LGPLv2+.
56828         * modules/float (License): Likewise
56829         * modules/realloc (License): Likewise
56830         * modules/stdlib (License): Likewise
56831
56832 2007-10-07  Bruno Haible  <bruno@clisp.org>
56833
56834         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56835         * floor.c (TWO_MANT_DIG): Likewise.
56836         * ceil.c (TWO_MANT_DIG): Likewise.
56837         Reported by Ben Pfaff.
56838
56839 2007-10-07  Bruno Haible  <bruno@clisp.org>
56840
56841         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56842         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56843         * lib/frexp.c (FUNC): Likewise.
56844         * lib/printf-frexp.h (printf_frexp): Likewise.
56845         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56846         * lib/printf-frexp.c (FUNC): Likewise.
56847         Suggested by Jim Meyering.
56848
56849 2007-10-07  Jim Meyering  <meyering@redhat.com>
56850
56851         Make xnanosleep's integer overflow test more robust.
56852         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56853         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56854
56855 2007-10-07  Bruno Haible  <bruno@clisp.org>
56856
56857         * NEWS: Mention the license change.
56858
56859         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56860         abbreviations in the modules files.
56861
56862         Change copyright notice from GPLv2+ to GPLv3+.
56863         * README: Change copyright notice.
56864         * MODULES.html.sh: Likewise.
56865         * build-aux/bootstrap.conf: Likewise.
56866         * build-aux/config.libpath: Likewise.
56867         * build-aux/csharpcomp.sh.in: Likewise.
56868         * build-aux/csharpexec.sh.in: Likewise.
56869         * build-aux/install-reloc: Likewise.
56870         * build-aux/javacomp.sh.in: Likewise.
56871         * build-aux/javaexec.sh.in: Likewise.
56872         * build-aux/ldd.sh.in: Likewise.
56873         * build-aux/reloc-ldflags: Likewise.
56874         * build-aux/relocatable.sh.in: Likewise.
56875         * build-aux/x-to-1.in: Likewise.
56876         * check-module: Likewise.
56877         * config/srclistvars.sh: Likewise.
56878         * gnulib-tool: Likewise.
56879         * lib/acl-internal.h: Likewise.
56880         * lib/acl.c: Likewise.
56881         * lib/acl.h: Likewise.
56882         * lib/acl_entries.c: Likewise.
56883         * lib/areadlink-with-size.c: Likewise.
56884         * lib/areadlink.c: Likewise.
56885         * lib/areadlink.h: Likewise.
56886         * lib/argmatch.c: Likewise.
56887         * lib/argmatch.h: Likewise.
56888         * lib/argp-ba.c: Likewise.
56889         * lib/argp-eexst.c: Likewise.
56890         * lib/argp-fmtstream.c: Likewise.
56891         * lib/argp-fmtstream.h: Likewise.
56892         * lib/argp-fs-xinl.c: Likewise.
56893         * lib/argp-help.c: Likewise.
56894         * lib/argp-namefrob.h: Likewise.
56895         * lib/argp-parse.c: Likewise.
56896         * lib/argp-pin.c: Likewise.
56897         * lib/argp-pv.c: Likewise.
56898         * lib/argp-pvh.c: Likewise.
56899         * lib/argp-xinl.c: Likewise.
56900         * lib/argp.h: Likewise.
56901         * lib/at-func.c: Likewise.
56902         * lib/atanl.c: Likewise.
56903         * lib/backupfile.c: Likewise.
56904         * lib/backupfile.h: Likewise.
56905         * lib/basename.c: Likewise.
56906         * lib/binary-io.h: Likewise.
56907         * lib/byteswap.in.h: Likewise.
56908         * lib/c-stack.c: Likewise.
56909         * lib/c-stack.h: Likewise.
56910         * lib/c-strcasestr.c: Likewise.
56911         * lib/c-strcasestr.h: Likewise.
56912         * lib/c-strstr.c: Likewise.
56913         * lib/c-strstr.h: Likewise.
56914         * lib/c-strtod.c: Likewise.
56915         * lib/calloc.c: Likewise.
56916         * lib/canon-host.c: Likewise.
56917         * lib/canon-host.h: Likewise.
56918         * lib/canonicalize-lgpl.c: Likewise.
56919         * lib/canonicalize.c: Likewise.
56920         * lib/canonicalize.h: Likewise.
56921         * lib/ceil.c: Likewise.
56922         * lib/ceilf.c: Likewise.
56923         * lib/ceill.c: Likewise.
56924         * lib/chdir-long.c: Likewise.
56925         * lib/chdir-long.h: Likewise.
56926         * lib/chdir-safer.c: Likewise.
56927         * lib/chdir-safer.h: Likewise.
56928         * lib/chown.c: Likewise.
56929         * lib/classpath.c: Likewise.
56930         * lib/classpath.h: Likewise.
56931         * lib/clean-temp.c: Likewise.
56932         * lib/clean-temp.h: Likewise.
56933         * lib/cloexec.c: Likewise.
56934         * lib/close-stream.c: Likewise.
56935         * lib/closein.c: Likewise.
56936         * lib/closein.h: Likewise.
56937         * lib/closeout.c: Likewise.
56938         * lib/closeout.h: Likewise.
56939         * lib/concat-filename.c: Likewise.
56940         * lib/copy-file.c: Likewise.
56941         * lib/copy-file.h: Likewise.
56942         * lib/count-one-bits.h: Likewise.
56943         * lib/crc.c: Likewise.
56944         * lib/crc.h: Likewise.
56945         * lib/creat-safer.c: Likewise.
56946         * lib/csharpcomp.c: Likewise.
56947         * lib/csharpcomp.h: Likewise.
56948         * lib/csharpexec.c: Likewise.
56949         * lib/csharpexec.h: Likewise.
56950         * lib/cycle-check.c: Likewise.
56951         * lib/cycle-check.h: Likewise.
56952         * lib/diacrit.c: Likewise.
56953         * lib/diacrit.h: Likewise.
56954         * lib/diffseq.h: Likewise.
56955         * lib/dirchownmod.c: Likewise.
56956         * lib/dirent.in.h: Likewise.
56957         * lib/dirfd.c: Likewise.
56958         * lib/dirfd.h: Likewise.
56959         * lib/dirname.c: Likewise.
56960         * lib/dirname.h: Likewise.
56961         * lib/dummy.c: Likewise.
56962         * lib/dup-safer.c: Likewise.
56963         * lib/dup2.c: Likewise.
56964         * lib/eealloc.h: Likewise.
56965         * lib/error.c: Likewise.
56966         * lib/error.h: Likewise.
56967         * lib/euidaccess.c: Likewise.
56968         * lib/exclude.c: Likewise.
56969         * lib/exclude.h: Likewise.
56970         * lib/execute.c: Likewise.
56971         * lib/execute.h: Likewise.
56972         * lib/exitfail.c: Likewise.
56973         * lib/exitfail.h: Likewise.
56974         * lib/expl.c: Likewise.
56975         * lib/fatal-signal.c: Likewise.
56976         * lib/fatal-signal.h: Likewise.
56977         * lib/fbufmode.c: Likewise.
56978         * lib/fbufmode.h: Likewise.
56979         * lib/fchdir.c: Likewise.
56980         * lib/fchmodat.c: Likewise.
56981         * lib/fchownat.c: Likewise.
56982         * lib/fcntl--.h: Likewise.
56983         * lib/fcntl-safer.h: Likewise.
56984         * lib/fcntl.in.h: Likewise.
56985         * lib/fd-safer.c: Likewise.
56986         * lib/fflush.c: Likewise.
56987         * lib/file-has-acl.c: Likewise.
56988         * lib/file-set.c: Likewise.
56989         * lib/file-type.c: Likewise.
56990         * lib/file-type.h: Likewise.
56991         * lib/fileblocks.c: Likewise.
56992         * lib/filemode.c: Likewise.
56993         * lib/filemode.h: Likewise.
56994         * lib/filename.h: Likewise.
56995         * lib/filenamecat.c: Likewise.
56996         * lib/filenamecat.h: Likewise.
56997         * lib/findprog.c: Likewise.
56998         * lib/findprog.h: Likewise.
56999         * lib/float.in.h: Likewise.
57000         * lib/floor.c: Likewise.
57001         * lib/floorf.c: Likewise.
57002         * lib/floorl.c: Likewise.
57003         * lib/fopen-safer.c: Likewise.
57004         * lib/fopen.c: Likewise.
57005         * lib/fpending.c: Likewise.
57006         * lib/fpending.h: Likewise.
57007         * lib/fprintf.c: Likewise.
57008         * lib/fprintftime.h: Likewise.
57009         * lib/fpucw.h: Likewise.
57010         * lib/fpurge.c: Likewise.
57011         * lib/fpurge.h: Likewise.
57012         * lib/freadable.c: Likewise.
57013         * lib/freadable.h: Likewise.
57014         * lib/freadahead.c: Likewise.
57015         * lib/freadahead.h: Likewise.
57016         * lib/freading.c: Likewise.
57017         * lib/freading.h: Likewise.
57018         * lib/free.c: Likewise.
57019         * lib/freopen.c: Likewise.
57020         * lib/frexp.c: Likewise.
57021         * lib/frexpl.c: Likewise.
57022         * lib/fseek.c: Likewise.
57023         * lib/fseterr.c: Likewise.
57024         * lib/fseterr.h: Likewise.
57025         * lib/fstatat.c: Likewise.
57026         * lib/fstrcmp.c: Likewise.
57027         * lib/fstrcmp.h: Likewise.
57028         * lib/fsusage.c: Likewise.
57029         * lib/fsusage.h: Likewise.
57030         * lib/ftell.c: Likewise.
57031         * lib/ftello.c: Likewise.
57032         * lib/fts-cycle.c: Likewise.
57033         * lib/fts.c: Likewise.
57034         * lib/fts_.h: Likewise.
57035         * lib/full-read.c: Likewise.
57036         * lib/full-read.h: Likewise.
57037         * lib/full-write.c: Likewise.
57038         * lib/full-write.h: Likewise.
57039         * lib/fwritable.c: Likewise.
57040         * lib/fwritable.h: Likewise.
57041         * lib/fwriteerror.c: Likewise.
57042         * lib/fwriteerror.h: Likewise.
57043         * lib/fwriting.c: Likewise.
57044         * lib/fwriting.h: Likewise.
57045         * lib/gcd.c: Likewise.
57046         * lib/gcd.h: Likewise.
57047         * lib/getcwd.c: Likewise.
57048         * lib/getdate.h: Likewise.
57049         * lib/getdate.y: Likewise.
57050         * lib/getdomainname.c: Likewise.
57051         * lib/getdomainname.h: Likewise.
57052         * lib/getgroups.c: Likewise.
57053         * lib/gethostname.c: Likewise.
57054         * lib/gethrxtime.c: Likewise.
57055         * lib/gethrxtime.h: Likewise.
57056         * lib/getloadavg.c: Likewise.
57057         * lib/getndelim2.c: Likewise.
57058         * lib/getndelim2.h: Likewise.
57059         * lib/getnline.c: Likewise.
57060         * lib/getnline.h: Likewise.
57061         * lib/getopt.c: Likewise.
57062         * lib/getopt.in.h: Likewise.
57063         * lib/getopt1.c: Likewise.
57064         * lib/getopt_int.h: Likewise.
57065         * lib/getpagesize.h: Likewise.
57066         * lib/getsubopt.c: Likewise.
57067         * lib/gettime.c: Likewise.
57068         * lib/getugroups.c: Likewise.
57069         * lib/getugroups.h: Likewise.
57070         * lib/getusershell.c: Likewise.
57071         * lib/gl_anyavltree_list1.h: Likewise.
57072         * lib/gl_anyavltree_list2.h: Likewise.
57073         * lib/gl_anyhash_list1.h: Likewise.
57074         * lib/gl_anyhash_list2.h: Likewise.
57075         * lib/gl_anylinked_list1.h: Likewise.
57076         * lib/gl_anylinked_list2.h: Likewise.
57077         * lib/gl_anyrbtree_list1.h: Likewise.
57078         * lib/gl_anyrbtree_list2.h: Likewise.
57079         * lib/gl_anytree_list1.h: Likewise.
57080         * lib/gl_anytree_list2.h: Likewise.
57081         * lib/gl_anytree_oset.h: Likewise.
57082         * lib/gl_anytreehash_list1.h: Likewise.
57083         * lib/gl_anytreehash_list2.h: Likewise.
57084         * lib/gl_array_list.c: Likewise.
57085         * lib/gl_array_list.h: Likewise.
57086         * lib/gl_array_oset.c: Likewise.
57087         * lib/gl_array_oset.h: Likewise.
57088         * lib/gl_avltree_list.c: Likewise.
57089         * lib/gl_avltree_list.h: Likewise.
57090         * lib/gl_avltree_oset.c: Likewise.
57091         * lib/gl_avltree_oset.h: Likewise.
57092         * lib/gl_avltreehash_list.c: Likewise.
57093         * lib/gl_avltreehash_list.h: Likewise.
57094         * lib/gl_carray_list.c: Likewise.
57095         * lib/gl_carray_list.h: Likewise.
57096         * lib/gl_linked_list.c: Likewise.
57097         * lib/gl_linked_list.h: Likewise.
57098         * lib/gl_linkedhash_list.c: Likewise.
57099         * lib/gl_linkedhash_list.h: Likewise.
57100         * lib/gl_list.c: Likewise.
57101         * lib/gl_list.h: Likewise.
57102         * lib/gl_oset.c: Likewise.
57103         * lib/gl_oset.h: Likewise.
57104         * lib/gl_rbtree_list.c: Likewise.
57105         * lib/gl_rbtree_list.h: Likewise.
57106         * lib/gl_rbtree_oset.c: Likewise.
57107         * lib/gl_rbtree_oset.h: Likewise.
57108         * lib/gl_rbtreehash_list.c: Likewise.
57109         * lib/gl_rbtreehash_list.h: Likewise.
57110         * lib/gl_sublist.c: Likewise.
57111         * lib/gl_sublist.h: Likewise.
57112         * lib/group-member.c: Likewise.
57113         * lib/group-member.h: Likewise.
57114         * lib/hard-locale.c: Likewise.
57115         * lib/hard-locale.h: Likewise.
57116         * lib/hash-pjw.c: Likewise.
57117         * lib/hash-pjw.h: Likewise.
57118         * lib/hash-triple.c: Likewise.
57119         * lib/hash.c: Likewise.
57120         * lib/hash.h: Likewise.
57121         * lib/human.c: Likewise.
57122         * lib/human.h: Likewise.
57123         * lib/i-ring.c: Likewise.
57124         * lib/i-ring.h: Likewise.
57125         * lib/idcache.c: Likewise.
57126         * lib/imaxabs.c: Likewise.
57127         * lib/imaxdiv.c: Likewise.
57128         * lib/inet_pton.c: Likewise.
57129         * lib/inet_pton.h: Likewise.
57130         * lib/intprops.h: Likewise.
57131         * lib/inttostr.c: Likewise.
57132         * lib/inttostr.h: Likewise.
57133         * lib/inttypes.in.h: Likewise.
57134         * lib/isapipe.c: Likewise.
57135         * lib/isdir.c: Likewise.
57136         * lib/isnan.c: Likewise.
57137         * lib/isnan.h: Likewise.
57138         * lib/isnanf.c: Likewise.
57139         * lib/isnanf.h: Likewise.
57140         * lib/isnanl-nolibm.h: Likewise.
57141         * lib/isnanl.c: Likewise.
57142         * lib/isnanl.h: Likewise.
57143         * lib/javacomp.c: Likewise.
57144         * lib/javacomp.h: Likewise.
57145         * lib/javaexec.c: Likewise.
57146         * lib/javaexec.h: Likewise.
57147         * lib/javaversion.c: Likewise.
57148         * lib/javaversion.h: Likewise.
57149         * lib/javaversion.java: Likewise.
57150         * lib/lbrkprop.h: Likewise.
57151         * lib/lchmod.h: Likewise.
57152         * lib/lchown.c: Likewise.
57153         * lib/ldexpl.c: Likewise.
57154         * lib/linebreak.c: Likewise.
57155         * lib/linebreak.h: Likewise.
57156         * lib/linebuffer.c: Likewise.
57157         * lib/linebuffer.h: Likewise.
57158         * lib/locale.in.h: Likewise.
57159         * lib/logl.c: Likewise.
57160         * lib/long-options.c: Likewise.
57161         * lib/long-options.h: Likewise.
57162         * lib/lstat.c: Likewise.
57163         * lib/lstat.h: Likewise.
57164         * lib/math.in.h: Likewise.
57165         * lib/mbchar.c: Likewise.
57166         * lib/mbchar.h: Likewise.
57167         * lib/mbfile.h: Likewise.
57168         * lib/mbiter.h: Likewise.
57169         * lib/mbscasecmp.c: Likewise.
57170         * lib/mbscasestr.c: Likewise.
57171         * lib/mbschr.c: Likewise.
57172         * lib/mbscspn.c: Likewise.
57173         * lib/mbslen.c: Likewise.
57174         * lib/mbsncasecmp.c: Likewise.
57175         * lib/mbsnlen.c: Likewise.
57176         * lib/mbspbrk.c: Likewise.
57177         * lib/mbspcasecmp.c: Likewise.
57178         * lib/mbsrchr.c: Likewise.
57179         * lib/mbssep.c: Likewise.
57180         * lib/mbsspn.c: Likewise.
57181         * lib/mbsstr.c: Likewise.
57182         * lib/mbstok_r.c: Likewise.
57183         * lib/mbswidth.c: Likewise.
57184         * lib/mbswidth.h: Likewise.
57185         * lib/mbuiter.h: Likewise.
57186         * lib/memcasecmp.c: Likewise.
57187         * lib/memcasecmp.h: Likewise.
57188         * lib/memchr.c: Likewise.
57189         * lib/memcmp.c: Likewise.
57190         * lib/memcoll.c: Likewise.
57191         * lib/memcoll.h: Likewise.
57192         * lib/memcpy.c: Likewise.
57193         * lib/memrchr.c: Likewise.
57194         * lib/mkancesdirs.c: Likewise.
57195         * lib/mkdir-p.c: Likewise.
57196         * lib/mkdir-p.h: Likewise.
57197         * lib/mkdir.c: Likewise.
57198         * lib/mkdirat.c: Likewise.
57199         * lib/mkdtemp.c: Likewise.
57200         * lib/mkstemp-safer.c: Likewise.
57201         * lib/mkstemp.c: Likewise.
57202         * lib/modechange.c: Likewise.
57203         * lib/modechange.h: Likewise.
57204         * lib/mountlist.c: Likewise.
57205         * lib/mountlist.h: Likewise.
57206         * lib/mpsort.c: Likewise.
57207         * lib/nanosleep.c: Likewise.
57208         * lib/obstack.c: Likewise.
57209         * lib/obstack.h: Likewise.
57210         * lib/open-safer.c: Likewise.
57211         * lib/open.c: Likewise.
57212         * lib/openat-die.c: Likewise.
57213         * lib/openat-priv.h: Likewise.
57214         * lib/openat-proc.c: Likewise.
57215         * lib/openat.c: Likewise.
57216         * lib/openat.h: Likewise.
57217         * lib/pagealign_alloc.c: Likewise.
57218         * lib/pagealign_alloc.h: Likewise.
57219         * lib/physmem.c: Likewise.
57220         * lib/physmem.h: Likewise.
57221         * lib/pipe-safer.c: Likewise.
57222         * lib/pipe.c: Likewise.
57223         * lib/pipe.h: Likewise.
57224         * lib/posixtm.c: Likewise.
57225         * lib/posixtm.h: Likewise.
57226         * lib/posixver.c: Likewise.
57227         * lib/printf-frexp.c: Likewise.
57228         * lib/printf-frexp.h: Likewise.
57229         * lib/printf-frexpl.c: Likewise.
57230         * lib/printf-frexpl.h: Likewise.
57231         * lib/printf.c: Likewise.
57232         * lib/progname.c: Likewise.
57233         * lib/progname.h: Likewise.
57234         * lib/progreloc.c: Likewise.
57235         * lib/putenv.c: Likewise.
57236         * lib/quote.c: Likewise.
57237         * lib/quote.h: Likewise.
57238         * lib/quotearg.c: Likewise.
57239         * lib/quotearg.h: Likewise.
57240         * lib/raise.c: Likewise.
57241         * lib/readline.c: Likewise.
57242         * lib/readline.h: Likewise.
57243         * lib/readlink.c: Likewise.
57244         * lib/readtokens.c: Likewise.
57245         * lib/readtokens.h: Likewise.
57246         * lib/readtokens0.c: Likewise.
57247         * lib/readtokens0.h: Likewise.
57248         * lib/readutmp.c: Likewise.
57249         * lib/readutmp.h: Likewise.
57250         * lib/realloc.c: Likewise.
57251         * lib/relocwrapper.c: Likewise.
57252         * lib/rename-dest-slash.c: Likewise.
57253         * lib/rename.c: Likewise.
57254         * lib/rmdir.c: Likewise.
57255         * lib/rpmatch.c: Likewise.
57256         * lib/safe-read.c: Likewise.
57257         * lib/safe-read.h: Likewise.
57258         * lib/safe-write.c: Likewise.
57259         * lib/safe-write.h: Likewise.
57260         * lib/same-inode.h: Likewise.
57261         * lib/same.c: Likewise.
57262         * lib/same.h: Likewise.
57263         * lib/save-cwd.c: Likewise.
57264         * lib/save-cwd.h: Likewise.
57265         * lib/savedir.c: Likewise.
57266         * lib/savedir.h: Likewise.
57267         * lib/savewd.c: Likewise.
57268         * lib/savewd.h: Likewise.
57269         * lib/search.in.h: Likewise.
57270         * lib/setenv.c: Likewise.
57271         * lib/setenv.h: Likewise.
57272         * lib/settime.c: Likewise.
57273         * lib/sh-quote.c: Likewise.
57274         * lib/sh-quote.h: Likewise.
57275         * lib/sig2str.c: Likewise.
57276         * lib/sig2str.h: Likewise.
57277         * lib/signal.in.h: Likewise.
57278         * lib/signbitd.c: Likewise.
57279         * lib/signbitf.c: Likewise.
57280         * lib/signbitl.c: Likewise.
57281         * lib/sigprocmask.c: Likewise.
57282         * lib/sincosl.c: Likewise.
57283         * lib/sleep.c: Likewise.
57284         * lib/sprintf.c: Likewise.
57285         * lib/sqrtl.c: Likewise.
57286         * lib/stat-time.h: Likewise.
57287         * lib/stdio--.h: Likewise.
57288         * lib/stdio-safer.h: Likewise.
57289         * lib/stdlib--.h: Likewise.
57290         * lib/stdlib-safer.h: Likewise.
57291         * lib/stdlib.in.h: Likewise.
57292         * lib/stpcpy.c: Likewise.
57293         * lib/stpncpy.c: Likewise.
57294         * lib/strchrnul.c: Likewise.
57295         * lib/strcspn.c: Likewise.
57296         * lib/strerror.c: Likewise.
57297         * lib/strftime.c: Likewise.
57298         * lib/strftime.h: Likewise.
57299         * lib/striconveh.c: Likewise.
57300         * lib/striconveh.h: Likewise.
57301         * lib/striconveha.c: Likewise.
57302         * lib/striconveha.h: Likewise.
57303         * lib/stripslash.c: Likewise.
57304         * lib/strnlen1.c: Likewise.
57305         * lib/strnlen1.h: Likewise.
57306         * lib/strtod.c: Likewise.
57307         * lib/strtoimax.c: Likewise.
57308         * lib/strtok_r.c: Likewise.
57309         * lib/strtol.c: Likewise.
57310         * lib/strtoll.c: Likewise.
57311         * lib/strtoul.c: Likewise.
57312         * lib/strtoull.c: Likewise.
57313         * lib/sysexits.in.h: Likewise.
57314         * lib/tempname.c: Likewise.
57315         * lib/tempname.h: Likewise.
57316         * lib/timespec.h: Likewise.
57317         * lib/tls.c: Likewise.
57318         * lib/tls.h: Likewise.
57319         * lib/tmpdir.c: Likewise.
57320         * lib/tmpdir.h: Likewise.
57321         * lib/tmpfile-safer.c: Likewise.
57322         * lib/tmpfile.c: Likewise.
57323         * lib/trigl.c: Likewise.
57324         * lib/trigl.h: Likewise.
57325         * lib/trim.c: Likewise.
57326         * lib/trim.h: Likewise.
57327         * lib/trunc.c: Likewise.
57328         * lib/truncf.c: Likewise.
57329         * lib/truncl.c: Likewise.
57330         * lib/tsearch.c: Likewise.
57331         * lib/unicodeio.c: Likewise.
57332         * lib/unicodeio.h: Likewise.
57333         * lib/unistd--.h: Likewise.
57334         * lib/unistd-safer.h: Likewise.
57335         * lib/unistdio/ulc-fprintf.c: Likewise.
57336         * lib/unistdio/ulc-vfprintf.c: Likewise.
57337         * lib/unlinkdir.c: Likewise.
57338         * lib/unlinkdir.h: Likewise.
57339         * lib/unlocked-io.h: Likewise.
57340         * lib/unsetenv.c: Likewise.
57341         * lib/userspec.c: Likewise.
57342         * lib/utime.c: Likewise.
57343         * lib/utimecmp.c: Likewise.
57344         * lib/utimecmp.h: Likewise.
57345         * lib/utimens.c: Likewise.
57346         * lib/verify.h: Likewise.
57347         * lib/verror.c: Likewise.
57348         * lib/verror.h: Likewise.
57349         * lib/version-etc-fsf.c: Likewise.
57350         * lib/version-etc.c: Likewise.
57351         * lib/version-etc.h: Likewise.
57352         * lib/vfprintf.c: Likewise.
57353         * lib/vprintf.c: Likewise.
57354         * lib/vsprintf.c: Likewise.
57355         * lib/w32spawn.h: Likewise.
57356         * lib/wait-process.c: Likewise.
57357         * lib/wait-process.h: Likewise.
57358         * lib/wcwidth.c: Likewise.
57359         * lib/write-any-file.c: Likewise.
57360         * lib/xalloc-die.c: Likewise.
57361         * lib/xalloc.h: Likewise.
57362         * lib/xasprintf.c: Likewise.
57363         * lib/xgetcwd.c: Likewise.
57364         * lib/xgetcwd.h: Likewise.
57365         * lib/xgetdomainname.c: Likewise.
57366         * lib/xgetdomainname.h: Likewise.
57367         * lib/xgethostname.c: Likewise.
57368         * lib/xmalloc.c: Likewise.
57369         * lib/xmalloca.c: Likewise.
57370         * lib/xmalloca.h: Likewise.
57371         * lib/xmemcoll.c: Likewise.
57372         * lib/xnanosleep.c: Likewise.
57373         * lib/xreadlink.c: Likewise.
57374         * lib/xreadlink.h: Likewise.
57375         * lib/xsetenv.c: Likewise.
57376         * lib/xsetenv.h: Likewise.
57377         * lib/xstriconv.c: Likewise.
57378         * lib/xstriconv.h: Likewise.
57379         * lib/xstrndup.c: Likewise.
57380         * lib/xstrndup.h: Likewise.
57381         * lib/xstrtod.c: Likewise.
57382         * lib/xstrtod.h: Likewise.
57383         * lib/xstrtol-error.c: Likewise.
57384         * lib/xstrtol.c: Likewise.
57385         * lib/xstrtol.h: Likewise.
57386         * lib/xtime.h: Likewise.
57387         * lib/xvasprintf.c: Likewise.
57388         * lib/xvasprintf.h: Likewise.
57389         * lib/yesno.c: Likewise.
57390         * lib/yesno.h: Likewise.
57391         * posix-modules: Likewise.
57392         * tests/test-alloca-opt.c: Likewise.
57393         * tests/test-arcfour.c: Likewise.
57394         * tests/test-arctwo.c: Likewise.
57395         * tests/test-argmatch.c: Likewise.
57396         * tests/test-argp-2.sh: Likewise.
57397         * tests/test-argp.c: Likewise.
57398         * tests/test-arpa_inet.c: Likewise.
57399         * tests/test-array_list.c: Likewise.
57400         * tests/test-array_oset.c: Likewise.
57401         * tests/test-atexit.c: Likewise.
57402         * tests/test-avltree_list.c: Likewise.
57403         * tests/test-avltree_oset.c: Likewise.
57404         * tests/test-avltreehash_list.c: Likewise.
57405         * tests/test-base64.c: Likewise.
57406         * tests/test-binary-io.c: Likewise.
57407         * tests/test-byteswap.c: Likewise.
57408         * tests/test-c-ctype.c: Likewise.
57409         * tests/test-c-strcasecmp.c: Likewise.
57410         * tests/test-c-strcasestr.c: Likewise.
57411         * tests/test-c-strncasecmp.c: Likewise.
57412         * tests/test-c-strstr.c: Likewise.
57413         * tests/test-canonicalize-lgpl.c: Likewise.
57414         * tests/test-canonicalize.c: Likewise.
57415         * tests/test-carray_list.c: Likewise.
57416         * tests/test-ceilf.c: Likewise.
57417         * tests/test-ceill.c: Likewise.
57418         * tests/test-count-one-bits.c: Likewise.
57419         * tests/test-crc.c: Likewise.
57420         * tests/test-dirname.c: Likewise.
57421         * tests/test-fbufmode.c: Likewise.
57422         * tests/test-fcntl.c: Likewise.
57423         * tests/test-fflush.c: Likewise.
57424         * tests/test-floorf.c: Likewise.
57425         * tests/test-floorl.c: Likewise.
57426         * tests/test-fopen.c: Likewise.
57427         * tests/test-fprintf-posix.c: Likewise.
57428         * tests/test-fprintf-posix.h: Likewise.
57429         * tests/test-fpurge.c: Likewise.
57430         * tests/test-freadable.c: Likewise.
57431         * tests/test-freadahead.c: Likewise.
57432         * tests/test-freading.c: Likewise.
57433         * tests/test-freopen.c: Likewise.
57434         * tests/test-frexp.c: Likewise.
57435         * tests/test-frexpl.c: Likewise.
57436         * tests/test-fseek.c: Likewise.
57437         * tests/test-fseeko.c: Likewise.
57438         * tests/test-fseterr.c: Likewise.
57439         * tests/test-fstrcmp.c: Likewise.
57440         * tests/test-ftell.c: Likewise.
57441         * tests/test-ftello.c: Likewise.
57442         * tests/test-fwritable.c: Likewise.
57443         * tests/test-fwriting.c: Likewise.
57444         * tests/test-getaddrinfo.c: Likewise.
57445         * tests/test-getpass.c: Likewise.
57446         * tests/test-gettimeofday.c: Likewise.
57447         * tests/test-hmac-md5.c: Likewise.
57448         * tests/test-hmac-sha1.c: Likewise.
57449         * tests/test-iconv.c: Likewise.
57450         * tests/test-iconvme.c: Likewise.
57451         * tests/test-inttypes.c: Likewise.
57452         * tests/test-isnan.c: Likewise.
57453         * tests/test-isnanf.c: Likewise.
57454         * tests/test-isnanl-nolibm.c: Likewise.
57455         * tests/test-isnanl.c: Likewise.
57456         * tests/test-isnanl.h: Likewise.
57457         * tests/test-ldexpl.c: Likewise.
57458         * tests/test-linked_list.c: Likewise.
57459         * tests/test-linkedhash_list.c: Likewise.
57460         * tests/test-locale.c: Likewise.
57461         * tests/test-localename.c: Likewise.
57462         * tests/test-lock.c: Likewise.
57463         * tests/test-lseek.c: Likewise.
57464         * tests/test-malloca.c: Likewise.
57465         * tests/test-math.c: Likewise.
57466         * tests/test-mbscasecmp.c: Likewise.
57467         * tests/test-mbscasestr1.c: Likewise.
57468         * tests/test-mbscasestr2.c: Likewise.
57469         * tests/test-mbscasestr3.c: Likewise.
57470         * tests/test-mbscasestr4.c: Likewise.
57471         * tests/test-mbschr.c: Likewise.
57472         * tests/test-mbscspn.c: Likewise.
57473         * tests/test-mbsncasecmp.c: Likewise.
57474         * tests/test-mbspbrk.c: Likewise.
57475         * tests/test-mbspcasecmp.c: Likewise.
57476         * tests/test-mbsrchr.c: Likewise.
57477         * tests/test-mbsspn.c: Likewise.
57478         * tests/test-mbsstr1.c: Likewise.
57479         * tests/test-mbsstr2.c: Likewise.
57480         * tests/test-mbsstr3.c: Likewise.
57481         * tests/test-md5.c: Likewise.
57482         * tests/test-memmem.c: Likewise.
57483         * tests/test-netinet_in.c: Likewise.
57484         * tests/test-open.c: Likewise.
57485         * tests/test-printf-frexp.c: Likewise.
57486         * tests/test-printf-frexpl.c: Likewise.
57487         * tests/test-printf-posix.c: Likewise.
57488         * tests/test-printf-posix.h: Likewise.
57489         * tests/test-rbtree_list.c: Likewise.
57490         * tests/test-rbtree_oset.c: Likewise.
57491         * tests/test-rbtreehash_list.c: Likewise.
57492         * tests/test-read-file.c: Likewise.
57493         * tests/test-rijndael.c: Likewise.
57494         * tests/test-search.c: Likewise.
57495         * tests/test-signbit.c: Likewise.
57496         * tests/test-sleep.c: Likewise.
57497         * tests/test-snprintf-posix.c: Likewise.
57498         * tests/test-snprintf-posix.h: Likewise.
57499         * tests/test-snprintf.c: Likewise.
57500         * tests/test-sprintf-posix.c: Likewise.
57501         * tests/test-sprintf-posix.h: Likewise.
57502         * tests/test-stat-time.c: Likewise.
57503         * tests/test-stdbool.c: Likewise.
57504         * tests/test-stdint.c: Likewise.
57505         * tests/test-stdio.c: Likewise.
57506         * tests/test-stdlib.c: Likewise.
57507         * tests/test-stpncpy.c: Likewise.
57508         * tests/test-strcasestr.c: Likewise.
57509         * tests/test-striconv.c: Likewise.
57510         * tests/test-striconveh.c: Likewise.
57511         * tests/test-striconveha.c: Likewise.
57512         * tests/test-string.c: Likewise.
57513         * tests/test-sys_select.c: Likewise.
57514         * tests/test-sys_socket.c: Likewise.
57515         * tests/test-sys_stat.c: Likewise.
57516         * tests/test-sys_time.c: Likewise.
57517         * tests/test-sysexits.c: Likewise.
57518         * tests/test-time.c: Likewise.
57519         * tests/test-tls.c: Likewise.
57520         * tests/test-trunc.c: Likewise.
57521         * tests/test-truncf.c: Likewise.
57522         * tests/test-truncl.c: Likewise.
57523         * tests/test-unistd.c: Likewise.
57524         * tests/test-vasnprintf-posix.c: Likewise.
57525         * tests/test-vasnprintf-posix2.c: Likewise.
57526         * tests/test-vasnprintf.c: Likewise.
57527         * tests/test-vasprintf-posix.c: Likewise.
57528         * tests/test-vasprintf.c: Likewise.
57529         * tests/test-verify.c: Likewise.
57530         * tests/test-vfprintf-posix.c: Likewise.
57531         * tests/test-vprintf-posix.c: Likewise.
57532         * tests/test-vsnprintf-posix.c: Likewise.
57533         * tests/test-vsnprintf.c: Likewise.
57534         * tests/test-vsprintf-posix.c: Likewise.
57535         * tests/test-wchar.c: Likewise.
57536         * tests/test-wctype.c: Likewise.
57537         * tests/test-wcwidth.c: Likewise.
57538         * tests/test-xstrtol.c: Likewise.
57539         * tests/test-xvasprintf.c: Likewise.
57540         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57541         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57542         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57543         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57544         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57545         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57546         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57547         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57548         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57549         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57550         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57551         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57552         * tests/uniname/test-uninames.c: Likewise.
57553         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57554         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57555         * tests/unistdio/test-u16-printf1.h: Likewise.
57556         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57557         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57558         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57559         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57560         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57561         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57562         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57563         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57564         * tests/unistdio/test-u32-printf1.h: Likewise.
57565         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57566         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57567         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57568         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57569         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57570         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57571         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57572         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57573         * tests/unistdio/test-u8-printf1.h: Likewise.
57574         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57575         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57576         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57577         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57578         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57579         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57580         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57581         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57582         * tests/unistdio/test-ulc-printf1.h: Likewise.
57583         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57584         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57585         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57586         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57587         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57588         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57589         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57590         * tests/uniwidth/test-u16-width.c: Likewise.
57591         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57592         * tests/uniwidth/test-u32-width.c: Likewise.
57593         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57594         * tests/uniwidth/test-u8-width.c: Likewise.
57595         * tests/uniwidth/test-uc_width.c: Likewise.
57596         * config/srclist-update: Likewise.
57597         (fixlicense): Update to GPLv3+.
57598
57599         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57600         * tests/test-tsearch.c: Change copyright notice.
57601
57602         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57603         * lib/c-strcaseeq.h: Change copyright notice.
57604         * lib/streq.h: Likewise.
57605         * lib/uniconv.h: Likewise.
57606         * lib/uniconv/u-conv-from-enc.h: Likewise.
57607         * lib/uniconv/u-conv-to-enc.h: Likewise.
57608         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57609         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57610         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57611         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57612         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57613         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57614         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57615         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57616         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57617         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57618         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57619         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57620         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57621         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57622         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57623         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57624         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57625         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57626         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57627         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57628         * lib/uniname.h: Likewise.
57629         * lib/uniname/uniname.c: Likewise.
57630         * lib/unistdio.h: Likewise.
57631         * lib/unistdio/u-asnprintf.h: Likewise.
57632         * lib/unistdio/u-asprintf.h: Likewise.
57633         * lib/unistdio/u-printf-args.c: Likewise.
57634         * lib/unistdio/u-printf-args.h: Likewise.
57635         * lib/unistdio/u-printf-parse.h: Likewise.
57636         * lib/unistdio/u-snprintf.h: Likewise.
57637         * lib/unistdio/u-sprintf.h: Likewise.
57638         * lib/unistdio/u-vasprintf.h: Likewise.
57639         * lib/unistdio/u-vsnprintf.h: Likewise.
57640         * lib/unistdio/u-vsprintf.h: Likewise.
57641         * lib/unistdio/u16-asnprintf.c: Likewise.
57642         * lib/unistdio/u16-asprintf.c: Likewise.
57643         * lib/unistdio/u16-printf-parse.c: Likewise.
57644         * lib/unistdio/u16-snprintf.c: Likewise.
57645         * lib/unistdio/u16-sprintf.c: Likewise.
57646         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57647         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57648         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57649         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57650         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57651         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57652         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57653         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57654         * lib/unistdio/u16-vasnprintf.c: Likewise.
57655         * lib/unistdio/u16-vasprintf.c: Likewise.
57656         * lib/unistdio/u16-vsnprintf.c: Likewise.
57657         * lib/unistdio/u16-vsprintf.c: Likewise.
57658         * lib/unistdio/u32-asnprintf.c: Likewise.
57659         * lib/unistdio/u32-asprintf.c: Likewise.
57660         * lib/unistdio/u32-printf-parse.c: Likewise.
57661         * lib/unistdio/u32-snprintf.c: Likewise.
57662         * lib/unistdio/u32-sprintf.c: Likewise.
57663         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57664         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57665         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57666         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57667         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57668         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57669         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57670         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57671         * lib/unistdio/u32-vasnprintf.c: Likewise.
57672         * lib/unistdio/u32-vasprintf.c: Likewise.
57673         * lib/unistdio/u32-vsnprintf.c: Likewise.
57674         * lib/unistdio/u32-vsprintf.c: Likewise.
57675         * lib/unistdio/u8-asnprintf.c: Likewise.
57676         * lib/unistdio/u8-asprintf.c: Likewise.
57677         * lib/unistdio/u8-printf-parse.c: Likewise.
57678         * lib/unistdio/u8-snprintf.c: Likewise.
57679         * lib/unistdio/u8-sprintf.c: Likewise.
57680         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57681         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57682         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57683         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57684         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57685         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57686         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57687         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57688         * lib/unistdio/u8-vasnprintf.c: Likewise.
57689         * lib/unistdio/u8-vasprintf.c: Likewise.
57690         * lib/unistdio/u8-vsnprintf.c: Likewise.
57691         * lib/unistdio/u8-vsprintf.c: Likewise.
57692         * lib/unistdio/ulc-asnprintf.c: Likewise.
57693         * lib/unistdio/ulc-asprintf.c: Likewise.
57694         * lib/unistdio/ulc-printf-parse.c: Likewise.
57695         * lib/unistdio/ulc-snprintf.c: Likewise.
57696         * lib/unistdio/ulc-sprintf.c: Likewise.
57697         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57698         * lib/unistdio/ulc-vasprintf.c: Likewise.
57699         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57700         * lib/unistdio/ulc-vsprintf.c: Likewise.
57701         * lib/unistr.h: Likewise.
57702         * lib/unistr/u-cpy-alloc.h: Likewise.
57703         * lib/unistr/u-cpy.h: Likewise.
57704         * lib/unistr/u-endswith.h: Likewise.
57705         * lib/unistr/u-move.h: Likewise.
57706         * lib/unistr/u-set.h: Likewise.
57707         * lib/unistr/u-startswith.h: Likewise.
57708         * lib/unistr/u-stpcpy.h: Likewise.
57709         * lib/unistr/u-stpncpy.h: Likewise.
57710         * lib/unistr/u-strcat.h: Likewise.
57711         * lib/unistr/u-strcpy.h: Likewise.
57712         * lib/unistr/u-strcspn.h: Likewise.
57713         * lib/unistr/u-strdup.h: Likewise.
57714         * lib/unistr/u-strlen.h: Likewise.
57715         * lib/unistr/u-strncat.h: Likewise.
57716         * lib/unistr/u-strncpy.h: Likewise.
57717         * lib/unistr/u-strnlen.h: Likewise.
57718         * lib/unistr/u-strpbrk.h: Likewise.
57719         * lib/unistr/u-strspn.h: Likewise.
57720         * lib/unistr/u-strstr.h: Likewise.
57721         * lib/unistr/u-strtok.h: Likewise.
57722         * lib/unistr/u16-check.c: Likewise.
57723         * lib/unistr/u16-chr.c: Likewise.
57724         * lib/unistr/u16-cmp.c: Likewise.
57725         * lib/unistr/u16-cpy-alloc.c: Likewise.
57726         * lib/unistr/u16-cpy.c: Likewise.
57727         * lib/unistr/u16-endswith.c: Likewise.
57728         * lib/unistr/u16-mblen.c: Likewise.
57729         * lib/unistr/u16-mbsnlen.c: Likewise.
57730         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57731         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57732         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57733         * lib/unistr/u16-mbtouc.c: Likewise.
57734         * lib/unistr/u16-mbtoucr.c: Likewise.
57735         * lib/unistr/u16-move.c: Likewise.
57736         * lib/unistr/u16-next.c: Likewise.
57737         * lib/unistr/u16-prev.c: Likewise.
57738         * lib/unistr/u16-set.c: Likewise.
57739         * lib/unistr/u16-startswith.c: Likewise.
57740         * lib/unistr/u16-stpcpy.c: Likewise.
57741         * lib/unistr/u16-stpncpy.c: Likewise.
57742         * lib/unistr/u16-strcat.c: Likewise.
57743         * lib/unistr/u16-strchr.c: Likewise.
57744         * lib/unistr/u16-strcmp.c: Likewise.
57745         * lib/unistr/u16-strcpy.c: Likewise.
57746         * lib/unistr/u16-strcspn.c: Likewise.
57747         * lib/unistr/u16-strdup.c: Likewise.
57748         * lib/unistr/u16-strlen.c: Likewise.
57749         * lib/unistr/u16-strmblen.c: Likewise.
57750         * lib/unistr/u16-strmbtouc.c: Likewise.
57751         * lib/unistr/u16-strncat.c: Likewise.
57752         * lib/unistr/u16-strncmp.c: Likewise.
57753         * lib/unistr/u16-strncpy.c: Likewise.
57754         * lib/unistr/u16-strnlen.c: Likewise.
57755         * lib/unistr/u16-strpbrk.c: Likewise.
57756         * lib/unistr/u16-strrchr.c: Likewise.
57757         * lib/unistr/u16-strspn.c: Likewise.
57758         * lib/unistr/u16-strstr.c: Likewise.
57759         * lib/unistr/u16-strtok.c: Likewise.
57760         * lib/unistr/u16-to-u32.c: Likewise.
57761         * lib/unistr/u16-to-u8.c: Likewise.
57762         * lib/unistr/u16-uctomb-aux.c: Likewise.
57763         * lib/unistr/u16-uctomb.c: Likewise.
57764         * lib/unistr/u32-check.c: Likewise.
57765         * lib/unistr/u32-chr.c: Likewise.
57766         * lib/unistr/u32-cmp.c: Likewise.
57767         * lib/unistr/u32-cpy-alloc.c: Likewise.
57768         * lib/unistr/u32-cpy.c: Likewise.
57769         * lib/unistr/u32-endswith.c: Likewise.
57770         * lib/unistr/u32-mblen.c: Likewise.
57771         * lib/unistr/u32-mbsnlen.c: Likewise.
57772         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57773         * lib/unistr/u32-mbtouc.c: Likewise.
57774         * lib/unistr/u32-mbtoucr.c: Likewise.
57775         * lib/unistr/u32-move.c: Likewise.
57776         * lib/unistr/u32-next.c: Likewise.
57777         * lib/unistr/u32-prev.c: Likewise.
57778         * lib/unistr/u32-set.c: Likewise.
57779         * lib/unistr/u32-startswith.c: Likewise.
57780         * lib/unistr/u32-stpcpy.c: Likewise.
57781         * lib/unistr/u32-stpncpy.c: Likewise.
57782         * lib/unistr/u32-strcat.c: Likewise.
57783         * lib/unistr/u32-strchr.c: Likewise.
57784         * lib/unistr/u32-strcmp.c: Likewise.
57785         * lib/unistr/u32-strcpy.c: Likewise.
57786         * lib/unistr/u32-strcspn.c: Likewise.
57787         * lib/unistr/u32-strdup.c: Likewise.
57788         * lib/unistr/u32-strlen.c: Likewise.
57789         * lib/unistr/u32-strmblen.c: Likewise.
57790         * lib/unistr/u32-strmbtouc.c: Likewise.
57791         * lib/unistr/u32-strncat.c: Likewise.
57792         * lib/unistr/u32-strncmp.c: Likewise.
57793         * lib/unistr/u32-strncpy.c: Likewise.
57794         * lib/unistr/u32-strnlen.c: Likewise.
57795         * lib/unistr/u32-strpbrk.c: Likewise.
57796         * lib/unistr/u32-strrchr.c: Likewise.
57797         * lib/unistr/u32-strspn.c: Likewise.
57798         * lib/unistr/u32-strstr.c: Likewise.
57799         * lib/unistr/u32-strtok.c: Likewise.
57800         * lib/unistr/u32-to-u16.c: Likewise.
57801         * lib/unistr/u32-to-u8.c: Likewise.
57802         * lib/unistr/u32-uctomb.c: Likewise.
57803         * lib/unistr/u8-check.c: Likewise.
57804         * lib/unistr/u8-chr.c: Likewise.
57805         * lib/unistr/u8-cmp.c: Likewise.
57806         * lib/unistr/u8-cpy-alloc.c: Likewise.
57807         * lib/unistr/u8-cpy.c: Likewise.
57808         * lib/unistr/u8-endswith.c: Likewise.
57809         * lib/unistr/u8-mblen.c: Likewise.
57810         * lib/unistr/u8-mbsnlen.c: Likewise.
57811         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57812         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57813         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57814         * lib/unistr/u8-mbtouc.c: Likewise.
57815         * lib/unistr/u8-mbtoucr.c: Likewise.
57816         * lib/unistr/u8-move.c: Likewise.
57817         * lib/unistr/u8-next.c: Likewise.
57818         * lib/unistr/u8-prev.c: Likewise.
57819         * lib/unistr/u8-set.c: Likewise.
57820         * lib/unistr/u8-startswith.c: Likewise.
57821         * lib/unistr/u8-stpcpy.c: Likewise.
57822         * lib/unistr/u8-stpncpy.c: Likewise.
57823         * lib/unistr/u8-strcat.c: Likewise.
57824         * lib/unistr/u8-strchr.c: Likewise.
57825         * lib/unistr/u8-strcmp.c: Likewise.
57826         * lib/unistr/u8-strcpy.c: Likewise.
57827         * lib/unistr/u8-strcspn.c: Likewise.
57828         * lib/unistr/u8-strdup.c: Likewise.
57829         * lib/unistr/u8-strlen.c: Likewise.
57830         * lib/unistr/u8-strmblen.c: Likewise.
57831         * lib/unistr/u8-strmbtouc.c: Likewise.
57832         * lib/unistr/u8-strncat.c: Likewise.
57833         * lib/unistr/u8-strncmp.c: Likewise.
57834         * lib/unistr/u8-strncpy.c: Likewise.
57835         * lib/unistr/u8-strnlen.c: Likewise.
57836         * lib/unistr/u8-strpbrk.c: Likewise.
57837         * lib/unistr/u8-strrchr.c: Likewise.
57838         * lib/unistr/u8-strspn.c: Likewise.
57839         * lib/unistr/u8-strstr.c: Likewise.
57840         * lib/unistr/u8-strtok.c: Likewise.
57841         * lib/unistr/u8-to-u16.c: Likewise.
57842         * lib/unistr/u8-to-u32.c: Likewise.
57843         * lib/unistr/u8-uctomb-aux.c: Likewise.
57844         * lib/unistr/u8-uctomb.c: Likewise.
57845         * lib/unitypes.h: Likewise.
57846         * lib/uniwidth.h: Likewise.
57847         * lib/uniwidth/cjk.h: Likewise.
57848         * lib/uniwidth/u16-strwidth.c: Likewise.
57849         * lib/uniwidth/u16-width.c: Likewise.
57850         * lib/uniwidth/u32-strwidth.c: Likewise.
57851         * lib/uniwidth/u32-width.c: Likewise.
57852         * lib/uniwidth/u8-strwidth.c: Likewise.
57853         * lib/uniwidth/u8-width.c: Likewise.
57854         * lib/uniwidth/width.c: Likewise.
57855
57856 2007-10-07  Bruno Haible  <bruno@clisp.org>
57857
57858         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57859         The file is still under LGPL (see modules/inttypes).
57860
57861 2007-10-06  Bruno Haible  <bruno@clisp.org>
57862
57863         * modules/trunc (Dependencies): Add 'extensions'.
57864         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57865         Reported by Ben Pfaff <blp@gnu.org>.
57866
57867 2007-10-06  Bruno Haible  <bruno@clisp.org>
57868
57869         * modules/freopen-tests: New file.
57870         * tests/test-freopen.c: New file.
57871
57872         * modules/fopen-tests: New file.
57873         * tests/test-fopen.c: New file.
57874
57875         * modules/fopen: New file.
57876         * lib/fopen.c: New file.
57877         * m4/fopen.m4: New file.
57878         * modules/freopen: New file.
57879         * lib/freopen.c: New file.
57880         * m4/freopen.m4: New file.
57881         * lib/stdio.in.h (fopen, freopen): New declarations.
57882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57883         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57884         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57885         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57886         * doc/functions/fopen.texi: Mention the 'fopen' module.
57887         * doc/functions/freopen.texi: Mention the 'freopen' module.
57888
57889 2007-10-06  Bruno Haible  <bruno@clisp.org>
57890
57891         * modules/open-tests: New file.
57892         * tests/test-open.c: New file.
57893
57894         * modules/open: New file.
57895         * lib/open.c: New file.
57896         * m4/open.m4: New file.
57897         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57898         lib/open.c does.
57899         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57900         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57901         macros.
57902         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57903         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57904         REPLACE_OPEN.
57905         * doc/functions/open.texi: Mention the 'open' module.
57906
57907 2007-10-04  Bruno Haible  <bruno@clisp.org>
57908
57909         * modules/ceill-tests: New file.
57910         * tests/test-ceill.c: New file.
57911
57912         * modules/ceill: New file.
57913         * lib/ceill.c: Replace entire file.
57914         * m4/ceill.m4: New file.
57915         * lib/math.in.h (ceill): Replace declaration.
57916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57917         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57918         * doc/functions/ceill.texi: Mention the 'ceill' module.
57919         * modules/mathl (Files): Remove lib/ceill.c.
57920         (Depends-on): Add ceill.
57921
57922 2007-10-04  Bruno Haible  <bruno@clisp.org>
57923
57924         * modules/ceilf-tests: New file.
57925         * tests/test-ceilf.c: New file.
57926
57927         * modules/ceilf: New file.
57928         * lib/ceil.c: New file.
57929         * lib/ceilf.c: New file.
57930         * m4/ceilf.m4: New file.
57931         * lib/math.in.h (ceilf): New declaration.
57932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57933         HAVE_DECL_CEILF.
57934         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57935         HAVE_DECL_CEILF.
57936         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57937
57938 2007-10-04  Bruno Haible  <bruno@clisp.org>
57939
57940         * modules/floorl-tests: New file.
57941         * tests/test-floorl.c: New file.
57942
57943         * modules/floorl: New file.
57944         * lib/floorl.c: Replace entire file.
57945         * m4/floorl.m4: New file.
57946         * lib/math.in.h (floorl): Replace declaration.
57947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57948         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57949         * doc/functions/floorl.texi: Mention the 'floorl' module.
57950         * modules/mathl (Files): Remove lib/floorl.c.
57951         (Depends-on): Add floorl.
57952
57953 2007-10-04  Bruno Haible  <bruno@clisp.org>
57954
57955         * modules/floorf-tests: New file.
57956         * tests/test-floorf.c: New file.
57957
57958         * modules/floorf: New file.
57959         * lib/floor.c: New file.
57960         * lib/floorf.c: New file.
57961         * m4/floorf.m4: New file.
57962         * lib/math.in.h (floorf): New declaration.
57963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57964         HAVE_DECL_FLOORF.
57965         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57966         HAVE_DECL_FLOORF.
57967         * doc/functions/floorf.texi: Mention the 'floorf' module.
57968
57969 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57970             Bruno Haible  <bruno@clisp.org>
57971
57972         Advertise for the Git server instead of the CVS server.
57973         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57974         repository instead of the CVS one.
57975         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57976         about all VCS systems generically.
57977         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57978
57979 2007-10-04  Bruno Haible  <bruno@clisp.org>
57980
57981         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57982         means.
57983         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57984
57985 2007-10-04  Bruno Haible  <bruno@clisp.org>
57986
57987         * modules/truncl-tests: New file.
57988         * tests/test-truncl.c: New file.
57989
57990         * modules/truncl: New file.
57991         * lib/truncl.c: New file.
57992         * m4/truncl.m4: New file.
57993         * lib/math.in.h (truncl): New declaration.
57994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57995         HAVE_DECL_TRUNCL.
57996         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57997         HAVE_DECL_TRUNCL.
57998         * doc/functions/truncl.texi: Mention the 'truncl' module.
57999
58000 2007-10-04  Bruno Haible  <bruno@clisp.org>
58001
58002         * modules/truncf-tests: New file.
58003         * tests/test-truncf.c: New file.
58004
58005         * modules/truncf: New file.
58006         * lib/trunc.c: Make paramerizable through USE_* macros.
58007         * lib/truncf.c: New file.
58008         * m4/truncf.m4: New file.
58009         * lib/math.in.h (truncf): New declaration.
58010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
58011         HAVE_DECL_TRUNCF.
58012         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
58013         HAVE_DECL_TRUNCF.
58014         * doc/functions/truncf.texi: Mention the 'truncf' module.
58015
58016 2007-10-03  Bruno Haible  <bruno@clisp.org>
58017
58018         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58019         augmentation also for tests modules.
58020         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
58021         * modules/atexit-tests (Makefile.am): Likewise.
58022         * modules/binary-io-tests (Makefile.am): Likewise.
58023         * modules/c-strcase-tests (Makefile.am): Likewise.
58024         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
58025         * modules/canonicalize-tests (Makefile.am): Likewise.
58026         * modules/closein-tests (Makefile.am): Likewise.
58027         * modules/fprintf-posix-tests (Makefile.am): Likewise.
58028         * modules/freadahead-tests (Makefile.am): Likewise.
58029         * modules/fseek-tests (Makefile.am): Likewise.
58030         * modules/fseeko-tests (Makefile.am): Likewise.
58031         * modules/ftell-tests (Makefile.am): Likewise.
58032         * modules/ftello-tests (Makefile.am): Likewise.
58033         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
58034         * modules/isnanl-tests (Makefile.am): Likewise.
58035         * modules/lseek-tests (Makefile.am): Likewise.
58036         * modules/mbscasecmp-tests (Makefile.am): Likewise.
58037         * modules/mbscasestr-tests (Makefile.am): Likewise.
58038         * modules/mbschr-tests (Makefile.am): Likewise.
58039         * modules/mbscspn-tests (Makefile.am): Likewise.
58040         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58041         * modules/mbspbrk-tests (Makefile.am): Likewise.
58042         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58043         * modules/mbsrchr-tests (Makefile.am): Likewise.
58044         * modules/mbsspn-tests (Makefile.am): Likewise.
58045         * modules/mbsstr-tests (Makefile.am): Likewise.
58046         * modules/printf-posix-tests (Makefile.am): Likewise.
58047         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58048         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58049         * modules/tsearch-tests (Makefile.am): Likewise.
58050         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58051         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58052         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58053         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58054         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58055         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58056         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58057         * modules/vprintf-posix-tests (Makefile.am): Likewise.
58058         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
58059         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
58060         * modules/xstrtoimax-tests (Makefile.am): Likewise.
58061         * modules/xstrtol-tests (Makefile.am): Likewise.
58062         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58063         * modules/yesno-tests (Makefile.am): Likewise.
58064
58065 2007-10-03  Bruno Haible  <bruno@clisp.org>
58066
58067         * modules/trunc-tests: New file.
58068         * tests/test-trunc.c: New file.
58069
58070         * modules/trunc: New file.
58071         * lib/trunc.c: New file.
58072         * m4/trunc.m4: New file.
58073         * lib/math.in.h (trunc): New declaration.
58074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58075         HAVE_DECL_TRUNC.
58076         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58077         HAVE_DECL_TRUNC.
58078         * doc/functions/trunc.texi: Mention the 'trunc' module.
58079
58080 2007-10-03  Bruno Haible  <bruno@clisp.org>
58081
58082         * tests/test-fpending.c: New file, mostly copied
58083         from coreutils/lib/t-fpending.c.
58084         * modules/fpending-tests: New file.
58085
58086 2007-10-03  Bruno Haible  <bruno@clisp.org>
58087
58088         Port the stdio extensions to QNX (untested).
58089         * lib/fseterr.c (fseterr): Add support for QNX.
58090         * lib/fbufmode.c (fbufmode): Likewise.
58091         * lib/freadable.c (freadable): Likewise.
58092         * lib/fwritable.c (fwritable): Likewise.
58093         * lib/freading.c (freading): Likewise.
58094         * lib/fwriting.c (fwriting): Likewise.
58095         * lib/freadahead.c (freadahed): Likewise.
58096         * lib/fpurge.c (fpurge): Likewise.
58097         * lib/fseeko.c (rpl_fseeko): Likewise.
58098
58099 2007-10-03  Bruno Haible  <bruno@clisp.org>
58100             Jim Meyering  <jim@meyering.net>
58101             Eric Blake  <ebb9@byu.net>
58102
58103         * doc/relocatable.texi: Use @command instead of @program.
58104
58105 2007-10-02  Jim Meyering  <jim@meyering.net>
58106
58107         Perform one more "_.h" -> ".in.h" substitution.
58108         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58109         instead of unistd_.h here, too.
58110
58111 2007-10-01  Bruno Haible  <bruno@clisp.org>
58112
58113         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58114         Needed for the alloca-opt module.
58115
58116 2007-09-30  Bruno Haible  <bruno@clisp.org>
58117
58118         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58119         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58120         alloca_.h.
58121         * lib/argz.in.h: Renamed from lib/argz_.h.
58122         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58123         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58124         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58125         byteswap_.h.
58126         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58127         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58128         dirent_.h.
58129         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58130         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58131         fcntl_.h.
58132         * lib/float.in.h: Renamed from lib/float_.h.
58133         * modules/float (Files, Makefile.am): Use float.in.h instead of
58134         float_.h.
58135         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58136         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58137         fnmatch_.h.
58138         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58139         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58140         getopt_.h.
58141         * lib/glob.in.h: Renamed from lib/glob_.h.
58142         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58143         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58144         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58145         iconv_.h.
58146         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58147         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58148         inttypes_.h.
58149         * lib/locale.in.h: Renamed from lib/locale_.h.
58150         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58151         locale_.h.
58152         * lib/math.in.h: Renamed from lib/math_.h.
58153         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58154         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58155         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58156         of netinet_in_.h. Add dependency.
58157         * lib/poll.in.h: Renamed from lib/poll_.h.
58158         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58159         * lib/search.in.h: Renamed from lib/search_.h.
58160         * modules/search (Files, Makefile.am): Use search.in.h instead of
58161         search_.h.
58162         * lib/signal.in.h: Renamed from lib/signal_.h.
58163         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58164         _signal.h.
58165         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58166         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58167         stdbool_.h.
58168         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58169         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58170         stdint_.h.
58171         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58172         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58173         stdio_.h.
58174         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58175         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58176         stdlib_.h.
58177         * lib/string.in.h: Renamed from lib/string_.h.
58178         * modules/string (Files, Makefile.am): Use string.in.h instead of
58179         string_.h.
58180         * doc/gnulib-tool.texi (Initial import): Update.
58181         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58182         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58183         of sys_select_.h. Add dependency.
58184         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58185         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58186         of sys_socket_.h.
58187         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58188         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58189         sys_stat_.h.
58190         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58191         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58192         sys_time_.h.
58193         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58194         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58195         sysexits_.h.
58196         * lib/time.in.h: Renamed from lib/time_.h.
58197         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58198         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58199         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58200         unistd_.h.
58201         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58202         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58203         wchar_.h.
58204         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58205         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58206         wctype_.h.
58207         * build-aux/bootstrap (slurp): Update.
58208         * lib/.cppi-disable: Update.
58209
58210 2007-09-30  Bruno Haible  <bruno@clisp.org>
58211
58212         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58213         Needed on BeOS.
58214
58215 2007-09-30  Bruno Haible  <bruno@clisp.org>
58216
58217         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58218
58219 2007-09-29  Bruno Haible  <bruno@clisp.org>
58220
58221         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58222
58223 2007-09-29  Bruno Haible  <bruno@clisp.org>
58224
58225         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58226         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58227         * build-aux/install-reloc: Compile also areadlink.c.
58228         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58229
58230 2007-09-29  Bruno Haible  <bruno@clisp.org>
58231
58232         * gnulib-tool (func_emit_initmacro_done): Indentation.
58233
58234 2007-09-29  Bruno Haible  <bruno@clisp.org>
58235
58236         * README: Add CVS checkout update instructions.
58237         Info from Bob Proulx <bob@proulx.com>.
58238
58239 2007-09-28  Eric Blake  <ebb9@byu.net>
58240
58241         Provide move-if-change.
58242         * build-aux/move-if-change: New file, based on best practice
58243         rather than any canonical upstream location.
58244
58245 2007-09-28  Jim Meyering  <jim@meyering.net>
58246
58247         Fix canonicalize loop-detection corner case.
58248         Do not attempt to stat the symlink values stored via seen_triple.
58249         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58250         on linux-2.6.18, (but not 2.6.22).
58251         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58252         triple_compare.  The former compares dev,ino,filename, while the latter
58253         would actually stat dirname(filename) when dev and ino were equal.
58254         * lib/hash-triple.c: Install <string.h>.
58255         (STREQ): Define.
58256         (triple_compare_ino_str): New function.
58257         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58258
58259 2007-09-28  Eric Blake  <ebb9@byu.net>
58260
58261         Enforce that AC_REPLACE_FUNCS files exist.
58262         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58263         override check for typos.
58264
58265         Fix test-closein on Solaris 10.
58266         * tests/test-closein.c (main): Don't assume stdin can be inherited
58267         closed on all systems.
58268         * tests/test-closein.sh: Likewise.
58269         Reported by Piotr Tarnowski.
58270
58271 2007-09-28  Jim Meyering  <jim@meyering.net>
58272
58273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58274
58275 2007-09-27  Jim Meyering  <jim@meyering.net>
58276
58277         canonicalize: Avoid a false-positive cycle failure.
58278         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58279         Sort.  Remove cycle-check.
58280         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58281         not cycle-check.h.
58282         (seen_triple): New function.
58283         (canonicalize_filename_mode): Use it instead of cycle-check.
58284         * tests/test-canonicalize.c: Add a test for this bug.
58285         * tests/test-canonicalize.sh: Set up and run the test.
58286
58287         New module, file-set, from coreutils.
58288         * modules/file-set: Define it.
58289         * lib/file-set.c, lib/file-set.h: Implement.
58290
58291         New module, hash-triple, from coreutils.
58292         * modules/hash-triple: Define it.
58293         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58294
58295 2007-09-25  Eric Blake  <ebb9@byu.net>
58296
58297         Fix strerror on Interix.
58298         * lib/string_.h (strerror): Declare replacement.
58299         * doc/functions/strerror.texi (strerror): Document the Interix
58300         shortcoming.
58301         * modules/string (Makefile.am): Support new hooks.
58302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58303         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58304         gl_FUNC_STRERROR_SEPARATE.
58305         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58306         * lib/strerror.c (rpl_strerror): Provide replacement.
58307         * modules/strerror (Depends-on): Add string.
58308         (configure.ac): Detect use of module.
58309         * tests/test-strerror.c: New file.
58310         * modules/strerror-tests: New test module.
58311         * modules/argp (Depends-on): Add strerror.
58312         * modules/error (Depends-on): Likewise.
58313         Reported by Martin Koeppe.
58314
58315 2007-09-24  Bruno Haible  <bruno@clisp.org>
58316
58317         * README: Update git instructions.
58318
58319 2007-09-24  Eric Blake  <ebb9@byu.net>
58320
58321         Revert fpending breakage from 2007-09-08.
58322         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58323         __fpending.c.
58324
58325 2007-09-24  Jim Meyering  <jim@meyering.net>
58326
58327         filenamecat.c: Add a test.
58328         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58329         showing how the function works when DIR is the empty string.
58330
58331 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58332
58333         * tests/test-canonicalize.sh: Turn on executable bit.
58334
58335 2007-09-19  Eric Blake  <ebb9@byu.net>
58336
58337         * README: Update CVS instructions.
58338
58339 2007-09-18  Bruno Haible  <bruno@clisp.org>
58340
58341         * modules/areadlink: New file.
58342         * lib/areadlink.h (areadlink): New declaration.
58343         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58344
58345 2007-09-17  Jim Meyering  <jim@meyering.net>
58346
58347         * lib/savewd.c (ESTALE) [!defined]: Define.
58348         Reported to be required on Interix by Martin Koeppe.
58349
58350 2007-09-17  Bruno Haible  <bruno@clisp.org>
58351
58352         * gnulib-tool (func_version): Use $version.
58353
58354 2007-09-16  Bruno Haible  <bruno@clisp.org>
58355
58356         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58357         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58358         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58359         Reported by Greg Schafer <gschafer@zip.com.au>.
58360
58361 2007-09-15  Bruno Haible  <bruno@clisp.org>
58362
58363         * gnulib-tool (sed): Try a little harder to make bash understand the
58364         alias.
58365         Reported by Bruce Korb <bruce.korb@gmail.com>.
58366
58367 2007-09-13  Eric Blake  <ebb9@byu.net>
58368
58369         * ChangeLog: Remove conflict markers.
58370
58371 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58372
58373         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58374         Reported by Bruno Haible <bruno@clisp.org>.
58375
58376 2007-09-12  Bruno Haible  <bruno@clisp.org>
58377
58378         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58379         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58380         is not defined.
58381
58382 2007-09-12  Eric Blake  <ebb9@byu.net>
58383
58384         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58385         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58386         Autoconf definition.
58387         * modules/euidaccess (Depends-on): Add extensions, for
58388         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58389         * modules/fnmatch (Depends-on): Likewise.
58390         * modules/getaddrinfo (Depends-on): Likewise.
58391         * modules/getdelim (Depends-on): Likewise.
58392         * modules/getline (Depends-on): Likewise.
58393         * modules/getsubopt (Depends-on): Likewise.
58394         * modules/gettext (Depends-on): Likewise.
58395         * modules/group-member (Depends-on): Likewise.
58396         * modules/mbchar (Depends-on): Likewise.
58397         * modules/memmem (Depends-on): Likewise.
58398         * modules/mempcpy (Depends-on): Likewise.
58399         * modules/memrchr (Depends-on): Likewise.
58400         * modules/pagealign_alloc (Depends-on): Likewise.
58401         * modules/readutmp (Depends-on): Likewise.
58402         * modules/stpcpy (Depends-on): Likewise.
58403         * modules/stpncpy (Depends-on): Likewise.
58404         * modules/strchrnul (Depends-on): Likewise.
58405         * modules/strndup (Depends-on): Likewise.
58406         * modules/strsep (Depends-on): Likewise.
58407         * modules/strverscmp (Depends-on): Likewise.
58408         * modules/vasprintf (Depends-on): Likewise.
58409         * modules/wcwidth (Depends-on): Likewise.
58410         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58411         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58412         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58413         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58414         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58415         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58416         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58417         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58418         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58419         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58420         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58421         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58422         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58423         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58424         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58425         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58426         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58427         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58428         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58429         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58430         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58431         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58432         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58433         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58434         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58436         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58437         so that lock.m4 can be used in gettext without extensions module.
58438
58439 2007-09-11  Bruno Haible  <bruno@clisp.org>
58440
58441         * m4/isc-posix.m4: Remove file.
58442         Suggested by Eric Blake.
58443
58444 2007-09-11  Eric Blake  <ebb9@byu.net>
58445
58446         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58447
58448 2007-09-10  Bruno Haible  <bruno@clisp.org>
58449
58450         * posix-modules: Fix typo in error message.
58451         Reported by Matt <mkraai@beckman.com>.
58452
58453 2007-09-09  Bruno Haible  <bruno@clisp.org>
58454
58455         * doc/functions/getdelim.texi: Update list of platforms lacking the
58456         function.
58457         * doc/functions/getline.texi: Likewise.
58458
58459 2007-09-09  Jim Meyering  <jim@meyering.net>
58460
58461         * lib/hash.c (hash_initialize): Detect calloc failure.
58462         Reported by Bruno Haible.
58463
58464 2007-09-09  Bruno Haible  <bruno@clisp.org>
58465
58466         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58467         malloc or realloc fails.
58468
58469 2007-09-09  Bruno Haible  <bruno@clisp.org>
58470
58471         * modules/getcwd (Depends-on): Add malloc-posix.
58472         * modules/glob (Depends-on): Likewise.
58473         * modules/putenv (Depends-on): Likewise.
58474         * modules/strdup (Depends-on): Likewise.
58475         * modules/getdelim (Depends-on): Add realloc-posix.
58476         * modules/read-file (Depends-on): Likewise.
58477
58478 2007-09-09  Bruno Haible  <bruno@clisp.org>
58479
58480         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58481         (gl_FUNC_MALLOC_POSIX): Require it.
58482         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58483         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58484         * modules/realloc (Files): Add m4/malloc.m4.
58485         * modules/calloc (Files): Likewise.
58486
58487 2007-09-09  Bruno Haible  <bruno@clisp.org>
58488
58489         * modules/malloc-posix: New file.
58490         * modules/malloc (Depends-on): Add malloc-posix.
58491         * lib/malloc.c: Include errno.h.
58492         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58493         and a POSIX-compatible malloc into a single function. Set ENOMEM
58494         when returning NULL.
58495         * m4/malloc.m4: New file.
58496         * doc/functions/malloc.texi: Mention the malloc-posix module.
58497         * lib/stdlib_.h (malloc): New declaration.
58498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58499         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58500         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58501         and HAVE_MALLOC_POSIX.
58502
58503 2007-09-09  Bruno Haible  <bruno@clisp.org>
58504
58505         * modules/realloc-posix: New file.
58506         * modules/realloc (Depends-on): Add realloc-posix.
58507         * lib/realloc.c: Include errno.h.
58508         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58509         and a POSIX-compatible realloc into a single function. Set ENOMEM
58510         when returning NULL.
58511         * m4/realloc.m4: New file.
58512         * doc/functions/realloc.texi: Mention the realloc-posix module.
58513         * lib/stdlib_.h (realloc): New declaration.
58514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58515         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58516         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58517         and HAVE_REALLOC_POSIX.
58518
58519 2007-09-09  Bruno Haible  <bruno@clisp.org>
58520
58521         * modules/calloc-posix: New file.
58522         * modules/calloc (Depends-on): Add calloc-posix.
58523         * lib/calloc.c: Include errno.h.
58524         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58525         and a POSIX-compatible calloc into a single function. Set ENOMEM
58526         when returning NULL.
58527         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58528         * doc/functions/calloc.texi: Mention the calloc-posix module.
58529         * lib/stdlib_.h (calloc): New declaration.
58530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58531         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58532         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58533         and HAVE_CALLOC_POSIX.
58534
58535 2007-09-09  Bruno Haible  <bruno@clisp.org>
58536
58537         Allow for modules to show an arbitrary notice.
58538         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58539         * gnulib-tool: New option --extract-notice.
58540         (func_usage): Document it.
58541         (sed_extract_prog): Update.
58542         (func_get_notice): New function.
58543         (func_modules_notice): New function.
58544         (func_import, func_create_testdir): Invoke it.
58545         Suggested by Jim Meyering.
58546
58547 2007-09-09  Bruno Haible  <bruno@clisp.org>
58548
58549         * gnulib-tool: New options --verbose, --quiet.
58550         (func_usage): Document them.
58551         (verbose): New variable.
58552         (func_execute_command): New function.
58553         (func_import): Don't show the module list and the file list if
58554         $verbose < 0.
58555         (func_create_testdir): Likewise. Use func_execute_command.
58556         (func_create_megatestdir): Use func_execute_command.
58557
58558 2007-09-08  Bruno Haible  <bruno@clisp.org>
58559
58560         * gnulib-tool (func_import): Prefer rsync over wget when available,
58561         for fetching the PO files.
58562
58563 2007-09-08  Bruno Haible  <bruno@clisp.org>
58564
58565         * posix-modules: New file. Portions copied from gnulib-tool.
58566         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58567
58568 2007-09-08  Jim Meyering  <jim@meyering.net>
58569
58570         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58571         * lib/fpending.h: Rename from __fpending.h.
58572         * lib/fpending.c: Rename from __fpending.c.
58573         Include "fpending.h", not "__fpending.h".
58574         * lib/__fpending.h, lib/__fpending.c: Remove files.
58575         * modules/fpending (Files): Reflect new file names.
58576         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58577
58578 2007-09-08  Bruno Haible  <bruno@clisp.org>
58579
58580         * m4/inttypes-h.m4: Remove stub file.
58581
58582 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58583
58584         * doc/headers/stdint.texi: Discuss #include_next issue.
58585
58586 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58587
58588         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58589
58590 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58591
58592         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58593         in variable name.
58594
58595 2007-09-03  Jim Meyering  <jim@meyering.net>
58596
58597         New module: git-version-gen.
58598         * modules/git-version-gen: New file.
58599
58600         Import changes from coreutils for bootstrap script.
58601
58602         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58603
58604         bootstrap: uses rsync to download the .po files
58605         * build-aux/bootstrap (po_download_command_format): New global.
58606         (download_po_files): Use rsync.
58607         (update_po_files): Don't remove .po files after download,
58608         so future rsync runs can take advantage of the copies.
58609
58610         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58611
58612         Solve the unnecessary-.po-file-regeneration problem once and for all.
58613         * build-aux/bootstrap (download_po_files): New function, renamed from
58614         get_translations.  Now, downloads, but doesn't update LINGUAS.
58615         (update_po_files): New function.
58616
58617         bootstrap: Ignore more.
58618         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58619         uniwidth to e.g., lib/.gitignore.
58620         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58621
58622         * build-aux/bootstrap: New setting: vc_ignore.
58623         (insert_sorted_if_absent): Create $file if absent.
58624         Adapt to new, possibly empty, list: $vc_ignore.
58625
58626         bootstrap: generate more ignorable names
58627         * build-aux/bootstrap (slurp): When generating ignorable names,
58628         also map .sin to .sed, .gperf to .c, and .y to .c.
58629
58630 2007-09-03  Jim Meyering  <jim@meyering.net>
58631
58632         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58633         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58634
58635 2007-09-02  Bruno Haible  <bruno@clisp.org>
58636
58637         Fix mis-recognition of 'mcs' on QNX 6.
58638         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58639         output contains the string "Mono".
58640         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58641         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58642
58643 2007-09-01  Bruno Haible  <bruno@clisp.org>
58644
58645         Fix collision between uniwidth/* and linebreak modules.
58646         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58647         u32_width): Remove declarations.
58648         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58649         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58650         streq3, streq2, streq1, streq0): Remove functions.
58651         (STREQ): Remove macro.
58652         (is_cjk_encoding): Remove function.
58653         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58654         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58655         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58656         * NEWS: Document the change.
58657
58658 2007-09-01  Bruno Haible  <bruno@clisp.org>
58659
58660         * lib/streq.h: Add double-inclusion guard.
58661
58662 2007-09-01  Karl Berry  <karl@gnu.org>
58663
58664         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58665
58666 2007-08-28  Jim Meyering  <jim@meyering.net>
58667
58668         Rename mreadlink_with_size to areadlink_with_size.
58669         * NEWS: Document the change.
58670         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58671         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58672         * lib/mreadlink.h: Rename this to...
58673         * lib/areadlink.h: ...this.
58674         * modules/mreadlink-with-size: Rename this to...
58675         * modules/areadlink-with-size: ...this.
58676         * lib/canonicalize.c: Reflect the renaming.
58677         * modules/canonicalize: Likewise.
58678
58679 2007-08-26  Bruno Haible  <bruno@clisp.org>
58680
58681         * gnulib-tool (func_import): When deciding which files to remove,
58682         consider also dangling symbolic links.
58683         Reported by Eric Blake.
58684
58685 2007-08-26  Bruno Haible  <bruno@clisp.org>
58686
58687         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58688
58689 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58690
58691         * lib/readline.c: Don't include getline.h, the prototype is now
58692         found in stdio.h.
58693
58694 2007-08-23  Jim Meyering  <jim@meyering.net>
58695
58696         Getdelim touchup.
58697         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58698         around the funlockfile call, since funlockfile never sets errno.
58699         Don't set errno upon failed realloc.
58700
58701 2007-08-22  Eric Blake  <ebb9@byu.net>
58702
58703         Getline touchups.
58704         * lib/getdelim.c (getdelim): Revert regression that required *n to
58705         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58706         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58707         getdelim, rather than whether implementation is missing.
58708         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58709         * lib/stdio_.h (getline): Also declare if replacement is
58710         required.
58711         * doc/functions/getdelim.texi: New file.
58712         * doc/functions/getline.texi: Likewise.
58713         * doc/gnulib.texi (Function Substitutes): Add new files.
58714         Reported by Bruno Haible.
58715
58716 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58717
58718         * users.txt: Add Guile.
58719
58720 2007-08-22  Eric Blake  <ebb9@byu.net>
58721
58722         * tests/test-getdelim.c (main): Use remove, not unlink.
58723         * tests/test-getline.c (main): Likewise.
58724
58725         Move getline and getdelim into stdio.h, per POSIX 200x.
58726         * modules/getline (Files): Remove getline.h.
58727         (Depends-on): Add stdio.
58728         (configure.ac): Add module indicator.
58729         * modules/getdelim (Files): Remove getdelim.h.
58730         (Depends-on): Add stdio.
58731         (configure.ac): Add module indicator.
58732         * modules/stdio (Makefile.am): Work with new indicators.
58733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58734         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58735         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58736         * lib/getdelim.h: Delete.
58737         * lib/getline.h: Delete.
58738         * lib/stdio_.h (getdelim, getline): Declare.
58739         * modules/getdelim-tests: New module.
58740         * modules/getline-tests: Likewise.
58741         * tests/test-getdelim.c: New file.
58742         * tests/test-getline.c: Likewise.
58743         * NEWS: Document the change.
58744         * lib/getline.c: Update choice of header.
58745         * lib/csharpcomp.c: Likewise.
58746         * lib/getpass.c: Likewise.
58747         * lib/javacomp.c: Likewise.
58748         * lib/javaversion.c: Likewise.
58749         * lib/yesno.c: Likewise.
58750         * lib/getdelim.c: Likewise.
58751         (getdelim): Set errno on failure, and avoid memory leak.
58752
58753 2007-08-19  Bruno Haible  <bruno@clisp.org>
58754
58755         * modules/closein (Depends-on): Add freadahead.
58756         * lib/closein.c: Include freadahead.h.
58757         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58758         is zero.
58759
58760 2007-08-19  Bruno Haible  <bruno@clisp.org>
58761
58762         * modules/freadahead-tests: New file.
58763         * tests/test-freadahead.sh: New file.
58764         * tests/test-freadahead.c: New file.
58765
58766         * modules/freadahead: New file.
58767         * lib/freadahead.h: New file.
58768         * lib/freadahead.c: New file.
58769         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58770         fbufmode, fpurge, freadable, fwritable.
58771
58772 2007-08-19  Eric Blake  <ebb9@byu.net>
58773
58774         Test yesno in combination with closein.
58775         * lib/yesno.c (yesno): Document use of stdin.
58776         * modules/yesno-tests (Files): New module.
58777         * tests/test-yesno.c (main): New file.
58778         * tests/test-yesno.sh: Likewise.
58779
58780 2007-08-19  Bruno Haible  <bruno@clisp.org>
58781
58782         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58783         * lib/fseeko.c (rpl_fseeko): Likewise.
58784         * lib/fseterr.c (fseterr): Likewise.
58785
58786 2007-08-19  Bruno Haible  <bruno@clisp.org>
58787
58788         * tests/test-lseek.c (main): Disable a test for BeOS.
58789         * doc/functions/lseek.texi: Document the BeOS bug.
58790
58791 2007-08-19  Bruno Haible  <bruno@clisp.org>
58792             Eric Blake  <ebb9@byu.net>
58793
58794         * lib/lseek.c: Include <sys/stat.h>.
58795         (rpl_lseek): Add workaround code also for Unix platforms.
58796         Needed for BeOS.
58797         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58798         * doc/functions/lseek.texi: Document BeOS definiency.
58799
58800 2007-08-18  Bruno Haible  <bruno@clisp.org>
58801
58802         * modules/fstrcmp-tests: New file.
58803         * tests/test-fstrcmp.c: New file.
58804
58805 2007-08-18  Bruno Haible  <bruno@clisp.org>
58806
58807         * modules/fstrcmp: New file, from GNU gettext with modifications.
58808         * lib/fstrcmp.h: New file, from GNU gettext.
58809         * lib/fstrcmp.c: New file, from GNU gettext.
58810         * MODULES.html.sh (String handling): Add fstrcmp.
58811
58812 2007-08-18  Bruno Haible  <bruno@clisp.org>
58813
58814         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58815         'bool'.
58816         (diag, compareseq): Remove const from the ctxt argument.
58817         (USE_HEURISTIC): Undefine at the end.
58818
58819 2007-08-18  Jim Meyering  <jim@meyering.net>
58820
58821         New file: lib/idcache.h
58822         * NEWS: Mention the addition.
58823         * modules/idcache (Files): Add lib/idcache.h
58824         * lib/idcache.c: Include "idcache.h".
58825         Don't include <sys/types.h>.
58826         Add a FIXME comment.
58827         Move file-scoped "static" declarations to the top.
58828         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58829
58830 2007-08-17  Bruno Haible  <bruno@clisp.org>
58831         and Paul Eggert  <eggert@cs.ucla.edu>
58832
58833         * MODULES.html.sh: Add diffseq.
58834         * modules/diffseq: New file.
58835         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58836         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58837
58838 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58839
58840         Import changes from coreutils for bootstrap script.
58841
58842         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58843
58844         * build-aux/bootstrap (slurp): Work even in environments where
58845         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58846         current code does not slurp files whose names start with ".", and
58847         this looks like it might be a troublesome area.
58848
58849         2007-07-11  Jim Meyering  <jim@meyering.net>
58850
58851         If there's a GPL vN copyright comment, require that N == 3.
58852
58853         2007-07-08  Jim Meyering  <jim@meyering.net>
58854
58855         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58856         * build-aux/bootstrap (mam_template): Move definition out of loop.
58857
58858         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58859
58860         * build-aux/bootstrap (symlink_to_dir): Rename function from
58861         symlink_to_gnulib.  Add a directory parameter.  Update all
58862         callers.
58863         (cp_mark_as_generated): Also check for -- and link to -- files in
58864         gl/.
58865
58866         2007-07-08  Jim Meyering  <jim@meyering.net>
58867
58868         Adapt to deeper hierarchy in gnulib.
58869         * build-aux/bootstrap (symlink_to_dir): If the destination
58870         directory doesn't exist, create it. This is required at least for
58871         "lib/uniwidth/cjk.h".
58872
58873         2007-05-15  Jim Meyering  <jim@meyering.net>
58874
58875         * build-aux/bootstrap: Now that generated Makefile.am files
58876         are no longer under version control, they must be created at
58877         bootstrap time.
58878
58879 2007-08-14  Ben Pfaff  <blp@gnu.org>
58880
58881         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58882
58883 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58884
58885         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58886         given the changes below.
58887         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58888         even on hosts that have padding bits beyond the supported 64.
58889
58890 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58891
58892         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58893         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58894         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58895         depends on it.
58896         (xstrtol_error): Remove.
58897         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58898         but with a different signature.
58899         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58900         * lib/xstrtol-error.c: Include exitfail.h.
58901         (xstrtol_fatal): New function, with a different signature from the
58902         old xstrtol_error, so that the caller need not worry about passing
58903         in an exit status, or about storage management of the option argument.
58904         (xstrtol_error): Now a static function.  Redo signature to
58905         implement xstrtol_fatal.  Output the correct number of hyphens in
58906         front of the option so that the caller need not worry about
58907         storage management.
58908         (N_): New macro.
58909         (_): Remove; not used now.
58910         * modules/xstrtol: Depend on getopt.
58911         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58912         of old STRTOL_FATAL_ERROR macro.
58913         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58914         of test program.
58915         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58916         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58917
58918 2007-08-08  Eric Blake  <ebb9@byu.net>
58919
58920         * lib/xstrtol-error.c: Add missing include.
58921
58922         Move xstrtol messages into gnulib domain, when --pobase is used.
58923         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58924         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58925         * modules/xstrtol (Files): Distribute new file.
58926         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58927         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58928         * tests/test-xstrtol.c: ...into new file.
58929         * tests/test-xstrtoul.c: Also test xstrtoul.
58930         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58931         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58932         * tests/test-xstrtol.sh: Drive the tests.
58933         * tests/test-xstrtoimax.sh: Likewise.
58934         * tests/test-xstrtoumax.sh: Likewise.
58935         * modules/xstrtol-tests: New module.
58936         * modules/xstrtoimax-tests: Likewise.
58937         * modules/xstrtoumax-tests: Likewise.
58938
58939 2007-08-08  Jim Meyering  <jim@meyering.net>
58940
58941         New function: mfile_name_concat.
58942         * lib/filenamecat.c (mfile_name_concat): New function, just like
58943         file_name_concat, but return NULL upon failure rather than exiting
58944         with a diagnostic.
58945         * lib/filenamecat.h: Declare it.
58946
58947 2007-08-07  Bruno Haible  <bruno@clisp.org>
58948
58949         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58950         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58951         warning from gcc.
58952         Reported by Eric Blake.
58953
58954 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58955
58956         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58957         * modules/crypto/arcfour (License): Likewise.
58958         * modules/crypto/des-tests (License): Likewise.
58959         * modules/crypto/gc-arctwo-tests (License): Likewise.
58960         * modules/crypto/gc-des-tests (License): Likewise.
58961         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58962         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58963         * modules/crypto/gc-md2-tests (License): Likewise.
58964         * modules/crypto/gc-md4-tests (License): Likewise.
58965         * modules/crypto/gc-md5-tests (License): Likewise.
58966         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58967         * modules/crypto/gc-rijndael-tests (License): Likewise.
58968         * modules/crypto/gc-sha1-tests (License): Likewise.
58969         * modules/crypto/gc-tests (License): Likewise.
58970         * modules/crypto/hmac-md5 (License): Likewise.
58971         * modules/crypto/hmac-sha1 (License): Likewise.
58972         * modules/crypto/md2-tests (License): Likewise.
58973         * modules/crypto/md4-tests (License): Likewise.
58974         * modules/crypto/md5 (License): Likewise.
58975         * modules/crypto/rijndael (License): Likewise.
58976         * modules/crypto/sha1 (License): Likewise.
58977         * modules/memxor (License): Likewise.
58978
58979 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58980         and Bruno Haible  <bruno@clisp.org>
58981
58982         * NEWS: Describe interface changes to human, xstrtol.
58983         * lib/human.h: Include <xstrtol.h>.
58984         (human_options): Return enum strtol_error, not int.  Remove
58985         bool arg; take int * instead.
58986         * lib/human.c: Don't include "gettext.h".
58987         (_): Remove; no longer used.
58988         Don't include <xstrtol.h>, since human.h does it.
58989         (human_options): Adjust to abovementioned interface changes.
58990         Do not report error to stderr; that's now the caller's
58991         responsibility.
58992         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58993         interface change.
58994         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58995         Str, Argument_type_string.  All uses changed.  Put " argument"
58996         in diagnostics to make them clearer.  Change wording of suffix
58997         message for clarity.
58998         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58999         Argument_type_string.
59000         (STRTOL_FATAL_WARN): Remove; no longer used.
59001         * modules/human (Depends-on): Remove gettext-h.
59002
59003 2007-08-06  Simon Josefsson  <simon@josefsson.org>
59004
59005         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
59006
59007 2007-07-31  Bruno Haible  <bruno@clisp.org>
59008
59009         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
59010         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
59011         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
59012
59013 2007-07-31  Bruno Haible  <bruno@clisp.org>
59014
59015         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
59016         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
59017
59018 2007-07-30  Bruno Haible  <bruno@clisp.org>
59019
59020         * modules/base64 (License): Use the synonymous term "LGPLv2+".
59021         * modules/c-ctype (License): Likewise.
59022         * modules/c-strcase (License): Likewise.
59023         * modules/check-version (License): Likewise.
59024         * modules/iconv (License): Likewise.
59025         * modules/iconv_open (License): Likewise.
59026         * modules/read-file (License): Likewise.
59027         * modules/striconv (License): Likewise.
59028         * modules/strverscmp (License): Likewise.
59029         * modules/vasprintf (License): Likewise.
59030         * modules/crypto/des (License): Likewise.
59031         * modules/crypto/gc (License): Likewise.
59032         * modules/crypto/gc-arcfour (License): Likewise.
59033         * modules/crypto/gc-arctwo (License): Likewise.
59034         * modules/crypto/gc-des (License): Likewise.
59035         * modules/crypto/gc-hmac-md5 (License): Likewise.
59036         * modules/crypto/gc-hmac-sha1 (License): Likewise.
59037         * modules/crypto/gc-md2 (License): Likewise.
59038         * modules/crypto/gc-md4 (License): Likewise.
59039         * modules/crypto/gc-md5 (License): Likewise.
59040         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59041         * modules/crypto/gc-random (License): Likewise.
59042         * modules/crypto/gc-rijndael (License): Likewise.
59043         * modules/crypto/gc-sha1 (License): Likewise.
59044         * modules/crypto/md2 (License): Likewise.
59045         * modules/crypto/md4 (License): Likewise.
59046
59047 2007-07-30  Jim Meyering  <jim@meyering.net>
59048
59049         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59050         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59051         it has valid stat data.  This bug would cause du not to count the
59052         sizes of inaccessible directories.
59053         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59054         in <http://bugzilla.redhat.com/250077>.
59055
59056 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59057             Bruno Haible  <bruno@clisp.org>
59058
59059         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
59060         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
59061         #include_next, gives a diagnostic about it, but reports no error in
59062         the exit code.
59063         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59064
59065 2007-07-24  Ben Pfaff  <blp@gnu.org>
59066
59067         Improve name: "count-one-bits" is better than "popcount".
59068         * MODULES.html.sh: Update name.
59069         * lib/popcount.h: Renamed lib/count-one-bits.h.
59070         (popcount): Renamed count_one_bits.
59071         (popcountl): Renamed count_one_bits_l.
59072         (popcountll): Renamed count_one_bits_ll.
59073         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59074         * modules/popcount: Renamed module/count-one-bits.
59075         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59076         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59077
59078 2007-07-23  Ben Pfaff  <blp@gnu.org>
59079
59080         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59081         better code generation, and add U to large constants to avoid
59082         warnings, in non-GCC case.
59083         Suggested by Bruno Haible.
59084
59085 2007-07-23  Ben Pfaff  <blp@gnu.org>
59086
59087         * lib/popcount.h: Use verify_true instead of if...abort.
59088         * modules/popcount: Depend on verify module.
59089         Suggested by Jim Meyering.
59090
59091 2007-07-23  Bruno Haible  <bruno@clisp.org>
59092
59093         * gnulib-tool (func_import): Create a .cvsignore file also when the
59094         directory is not yet in CVS but the toplevel directory is. When
59095         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59096         Reported by Karl Berry.
59097
59098 2007-07-22  Ben Pfaff  <blp@gnu.org>
59099
59100         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59101         case.
59102         Suggested by Eric Blake.
59103
59104 2007-07-22  Ben Pfaff  <blp@gnu.org>
59105
59106         New module: popcount.
59107         * MODULES.html.sh: Add popcount.
59108         * modules/popcount: New file.
59109         * modules/popcount-tests: New file.
59110         * tests/test-popcount.c: New file.
59111         * lib/popcount.h: New file.
59112         * m4/popcount.m4: New file.
59113
59114 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         * build-aux/announce-gen: Update to GPLv3.
59117
59118         * build-aux/config.guess: Update from config.
59119
59120 2007-07-21  Bruno Haible  <bruno@clisp.org>
59121
59122         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59123         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59124
59125 2007-07-20  Jim Meyering  <jim@meyering.net>
59126
59127         * check-module: Diagnose a self-dependency.
59128
59129 2007-07-19  Bruno Haible  <bruno@clisp.org>
59130
59131         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59132         empty.
59133         Reported by Eric Blake.
59134
59135 2007-07-18  Bruno Haible  <bruno@clisp.org>
59136
59137         * gnulib-tool: New options --po-base, --po-domain.
59138         (func_usage): Document them.
59139         (pobase, po_domain): New variables.
59140         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59141         DEFAULT_TEXT_DOMAIN.
59142         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59143         (func_import): Consider pobase and po_domain. Create a po/ directory.
59144         (func_create_testdir): Set pobase and po_domain to empty.
59145         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59146         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59147
59148 2007-07-18  Bruno Haible  <bruno@clisp.org>
59149
59150         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59151         EXTRA_DIST augmentation for files in build-aux/.
59152
59153 2007-07-16  Bruno Haible  <bruno@clisp.org>
59154
59155         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59156         * modules/getdelim (License): Likewise.
59157
59158 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59159
59160         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59161         * modules/d-type (License): Likewise.
59162         * modules/extensions (License): Likewise.
59163         * modules/fnmatch (License): Likewise.
59164         * modules/fseeko (License): Likewise.
59165         * modules/getaddrinfo (License): Likewise.
59166         * modules/getline (License): Likewise.
59167         * modules/getlogin_r (License): Likewise.
59168         * modules/getpass (License): Likewise.
59169         * modules/gettimeofday (License): Likewise.
59170         * modules/glob (License): Likewise.
59171         * modules/inet_ntop (License): Likewise.
59172         * modules/malloc (License): Likewise.
59173         * modules/malloca (License): Likewise.
59174         * modules/memmem (License): Likewise.
59175         * modules/mempcpy (License): Likewise.
59176         * modules/memset (License): Likewise.
59177         * modules/minmax (License): Likewise.
59178         * modules/mktime (License): Likewise.
59179         * modules/netinet_in (License): Likewise.
59180         * modules/pathmax (License): Likewise.
59181         * modules/poll (License): Likewise.
59182         * modules/regex (License): Likewise.
59183         * modules/snprintf (License): Likewise.
59184         * modules/stdbool (License): Likewise.
59185         * modules/stdint (License): Likewise.
59186         * modules/stdio (License): Likewise.
59187         * modules/strcase (License): Likewise.
59188         * modules/strcasestr (License): Likewise.
59189         * modules/strdup (License): Likewise.
59190         * modules/string (License): Likewise.
59191         * modules/strndup (License): Likewise.
59192         * modules/strnlen (License): Likewise.
59193         * modules/strpbrk (License): Likewise.
59194         * modules/strptime (License): Likewise.
59195         * modules/strsep (License): Likewise.
59196         * modules/sys_select (License): Likewise.
59197         * modules/sys_socket (License): Likewise.
59198         * modules/sys_stat (License): Likewise.
59199         * modules/sys_time (License): Likewise.
59200         * modules/time (License): Likewise.
59201         * modules/time_r (License): Likewise.
59202         * modules/timegm (License): Likewise.
59203         * modules/unistd (License): Likewise.
59204         * modules/vsnprintf (License): Likewise.
59205         * modules/wctype (License): Likewise.
59206
59207 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59208
59209         * modules/argz (License): LGPLv2+.
59210
59211 2007-07-15  Karl Berry  <karl@gnu.org>
59212
59213         * doc/gnulib.texi: revise node structure per new fdl.texi.
59214
59215 2007-07-14  Bruno Haible  <bruno@clisp.org>
59216
59217         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59218         the output file.
59219         * lib/uniname/uninames.h: Regenerated.
59220
59221 2007-07-14  Karl Berry  <karl@gnu.org>
59222
59223         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59224         omitting sectioning and index commands.
59225
59226 2007-07-13  Bruno Haible  <bruno@clisp.org>
59227
59228         New gnulib-tool option --more-symlinks.
59229         * gnulib-tool (func_usage): Document --more-symlinks.
59230         (do_copyrights): New variable.
59231         Recognize option --more-symlinks.
59232         (func_import): Don't add a copyright notice transform to
59233         sed_transform_lib_file if do_copyrights is empty.
59234
59235 2007-07-13  Bruno Haible  <bruno@clisp.org>
59236
59237         * lib/vasnprintf.c (decimal_point_char): Define also if
59238         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59239         && !NEED_PRINTF_DIRECTIVE_A.
59240         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59241         Gary V. Vaughan <gary@gnu.org>.
59242
59243 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59244
59245         * lib/inttypes_.h: Undo previous change, since it was fixed
59246         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59247
59248 2007-07-13  Bruno Haible  <bruno@clisp.org>
59249
59250         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59251         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59252
59253 2007-07-13  Jim Meyering  <jim@meyering.net>
59254
59255         df: Don't fail for Tru64's "file-on-file mount".
59256         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59257         so we fall through and use statfs instead.  Details here:
59258         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59259         Reported by Albert Chin.
59260
59261 2007-07-13  Bruno Haible  <bruno@clisp.org>
59262
59263         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59264         * modules/configmake (License): Likewise.
59265         * modules/gettext (License): Likewise.
59266         * modules/gettext-h (License): Likewise.
59267         * modules/include_next (License): Likewise.
59268         * modules/link-warning (License): Likewise.
59269         * modules/localcharset (License): Likewise.
59270         * modules/localename (License): Likewise.
59271         * modules/lock (License): Likewise.
59272         * modules/relocatable-lib-lgpl (License): Likewise.
59273         * modules/size_max (License): Likewise.
59274         * modules/vasnprintf (License): Likewise.
59275         * modules/wchar (License): Likewise.
59276         * modules/xsize (License): Likewise.
59277
59278 2007-07-13  Bruno Haible  <bruno@clisp.org>
59279
59280         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59281         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59282
59283 2007-07-12  Bruno Haible  <bruno@clisp.org>
59284
59285         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59286         in the modules files.
59287
59288 2007-07-11  Karl Berry  <karl@gnu.org>
59289
59290         * MODULES.html.sh (func_module): use
59291          sed -e '\|^'"${includefile}"'$|d'
59292          instead of /.../d, to avoid errors on $includefile's containing /.
59293
59294 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59295
59296         * gnulib-tool (func_import): Avoid duplication of --avoid
59297         statements
59298         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59299         names to `_' in variable names.
59300
59301 2007-07-10  Eric Blake  <ebb9@byu.net>
59302
59303         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59304         * NEWS: Document this change.
59305
59306 2007-07-08  Bruno Haible  <bruno@clisp.org>
59307
59308         Update to Unicode 5.0.
59309         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59310         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59311         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59312         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59313         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59314         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59315         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59316         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59317         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59318         U+10A3F, U+1D242..U+1D244.
59319         (nonspacing_table_ind): Update.
59320         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59321         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59322
59323 2007-07-08  Bruno Haible  <bruno@clisp.org>
59324
59325         Update to Unicode 5.0.
59326         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59327         code transform. Extend the name index field of unicode_name_to_code and
59328         unicode_code_to_name from 16 to 24 bits.
59329         * lib/uniname/uniname.c (unicode_character_name,
59330         unicode_name_character): Add the range 0x12xxx to the code transform.
59331         * lib/uniname/uninames.h: Regenerated.
59332         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59333
59334 2007-07-07  Bruno Haible  <bruno@clisp.org>
59335
59336         * modules/wcwidth-tests: New file.
59337         * tests/test-wcwidth.c: New file.
59338
59339         Work around MacOS X wcwidth() bug.
59340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59341         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59342         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59343         original wcwidth in non-UTF-8 locales.
59344         * modules/wcwidth (Depends-on): Add localcharset, streq,
59345         uniwidth/width.
59346         * doc/functions/wcwidth.texi: Update.
59347
59348 2007-07-07  Bruno Haible  <bruno@clisp.org>
59349
59350         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59351         (wcwidth): New declaration.
59352         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59353         macros.
59354         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59355         here. Prepare for creating <wchar.h> unconditionally.
59356         * modules/wchar (Depends-on): Add link-warning.
59357         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59358         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59359         * lib/wcwidth.h: Remove file.
59360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59361         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59362         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59363         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59364         (Include): Replace wcwidth.h with <wchar.h>.
59365         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59366         * lib/mbchar.h: Don't include wcwidth.h.
59367         * lib/mbswidth.c: Likewise.
59368         * NEWS: Mention the change.
59369
59370 2007-07-07  Bruno Haible  <bruno@clisp.org>
59371
59372         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59373         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59374         definition with an external declaration.
59375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59376         defined as a function. Remove AC_C_INLINE requirement.
59377         * modules/wcwidth (Files): Add lib/wcwidth.c.
59378         (Makefile.am): Remove redundant statement.
59379
59380 2007-07-07  Bruno Haible  <bruno@clisp.org>
59381
59382         * MODULES.html.sh (Unicode string functions): Add the new modules.
59383
59384         * tests/uniwidth/test-u32-strwidth.c: New file.
59385         * modules/uniwidth/u32-strwidth-tests: New file.
59386
59387         * lib/uniwidth/u32-strwidth.c: New file.
59388         * modules/uniwidth/u32-strwidth: New file.
59389
59390         * tests/uniwidth/test-u16-strwidth.c: New file.
59391         * modules/uniwidth/u16-strwidth-tests: New file.
59392
59393         * lib/uniwidth/u16-strwidth.c: New file.
59394         * modules/uniwidth/u16-strwidth: New file.
59395
59396         * tests/uniwidth/test-u8-strwidth.c: New file.
59397         * modules/uniwidth/u8-strwidth-tests: New file.
59398
59399         * lib/uniwidth/u8-strwidth.c: New file.
59400         * modules/uniwidth/u8-strwidth: New file.
59401
59402         * tests/uniwidth/test-u32-width.c: New file.
59403         * modules/uniwidth/u32-width-tests: New file.
59404
59405         * lib/uniwidth/u32-width.c: New file.
59406         * modules/uniwidth/u32-width: New file.
59407
59408         * tests/uniwidth/test-u16-width.c: New file.
59409         * modules/uniwidth/u16-width-tests: New file.
59410
59411         * lib/uniwidth/u16-width.c: New file.
59412         * modules/uniwidth/u16-width: New file.
59413
59414         * tests/uniwidth/test-u8-width.c: New file.
59415         * modules/uniwidth/u8-width-tests: New file.
59416
59417         * lib/uniwidth/u8-width.c: New file.
59418         * modules/uniwidth/u8-width: New file.
59419
59420         * tests/uniwidth/test-uc_width.c: New file.
59421         * modules/uniwidth/width-tests: New file.
59422
59423         * lib/uniwidth/width.c: New file, from GNU libiconv.
59424         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59425         * modules/uniwidth/width: New file.
59426
59427         * lib/uniwidth.h: New file, from GNU libiconv.
59428         * modules/uniwidth/base: New file.
59429
59430 2007-07-07  Bruno Haible  <bruno@clisp.org>
59431
59432         * lib/uniname.h: New file, from GNU gettext.
59433         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59434         * lib/uniname/uninames.h: New file, from GNU gettext.
59435         * lib/uniname/uniname.c: New file, from GNU gettext.
59436         * tests/uniname/test-uninames.sh: New file.
59437         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59438         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59439         * modules/uniname/base: New file.
59440         * modules/uniname/uniname: New file.
59441         * modules/uniname/uniname-tests: New file.
59442         * MODULES.html.sh (Unicode string functions): Add the new modules.
59443
59444 2007-07-06  Bruno Haible  <bruno@clisp.org>
59445
59446         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59447
59448 2007-07-06  Bruno Haible  <bruno@clisp.org>
59449
59450         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59451         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59452         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59453         include <sys/time.h>.
59454         Reported by Eric Blake.
59455
59456 2007-07-06  Eric Blake  <ebb9@byu.net>
59457
59458         Fix testing canonicalize on cygwin.
59459         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59460         Revert patch from 2007-06-19.
59461         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59462         canonicalize module is also in use.
59463         * tests/test-canonicalize.c: New file.
59464         * tests/test-canonicalize.sh: Likewise.
59465         * modules/canonicalize-tests: Likewise.
59466
59467 2007-07-06  Jim Meyering  <jim@meyering.net>
59468
59469         * lib/getugroups.c (getugroups): Detect getgrent failure.
59470         Adjust comment to reflect reality: this function may return -1.
59471
59472 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59473
59474         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59475         the new TP address.
59476         (usage): Fix typo
59477         (gnulib_mk): New variable.
59478
59479 2007-07-05  Jim Meyering  <jim@meyering.net>
59480
59481         Don't let endgrent clobber errno, no matter how improbable.
59482         * lib/getugroups.c (getugroups): Save and restore errno around
59483         endgrent call.
59484
59485         Close the group DB even when failing with 2^31 or more members.
59486         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59487
59488 2007-07-04  Jim Meyering  <jim@meyering.net>
59489
59490         * lib/getugroups.h: New file.
59491         * lib/getugroups.c: Include "getugroups.h".
59492         Remove uses of "register" keyword.
59493         Move local variable, "cp", down into scope where used.
59494         Give "username" parameter the "const" attribute.
59495         * modules/getugroups (Files): Add lib/getugroups.h
59496
59497 2007-07-04  Karl Berry  <karl@gnu.org>
59498
59499         * MODULES.html.sh (func_all_modules): Complete rename of
59500         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59501
59502 2007-07-02  Bruno Haible  <bruno@clisp.org>
59503
59504         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59505         mode, when inttypes.h comes from gnulib.
59506         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59507
59508 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59509
59510         * NEWS: Mention lgpl module name change.
59511
59512         * modules/lgpl-2.1: Renamed from lgpl.
59513
59514         * NEWS: Mention gpl module name change.
59515
59516         * modules/gpl-3.0: New file, based on gpl-2.0.
59517
59518         * modules/gpl-2.0: Renamed from gpl.
59519
59520         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59521         doc/gpl-2.0.texi.
59522
59523 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59524
59525         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59526         #define __STDC_LIMIT_MACROS temporarily while including
59527         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59528         Problem reported by Joel E. Denny in
59529         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59530
59531 2007-07-01  Bruno Haible  <bruno@clisp.org>
59532
59533         * lib/unistdio.h: New file.
59534         * lib/unistdio/u-asnprintf.h: New file.
59535         * lib/unistdio/u-asprintf.h: New file.
59536         * lib/unistdio/u-printf-args.c: New file.
59537         * lib/unistdio/u-printf-args.h: New file.
59538         * lib/unistdio/u-printf-parse.h: New file.
59539         * lib/unistdio/u-snprintf.h: New file.
59540         * lib/unistdio/u-sprintf.h: New file.
59541         * lib/unistdio/u-vasprintf.h: New file.
59542         * lib/unistdio/u-vsnprintf.h: New file.
59543         * lib/unistdio/u-vsprintf.h: New file.
59544         * lib/unistdio/ulc-asnprintf.c: New file.
59545         * lib/unistdio/ulc-asprintf.c: New file.
59546         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59547         * lib/unistdio/ulc-printf-parse.c: New file.
59548         * lib/unistdio/ulc-snprintf.c: New file.
59549         * lib/unistdio/ulc-sprintf.c: New file.
59550         * lib/unistdio/ulc-vasnprintf.c: New file.
59551         * lib/unistdio/ulc-vasprintf.c: New file.
59552         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59553         * lib/unistdio/ulc-vsnprintf.c: New file.
59554         * lib/unistdio/ulc-vsprintf.c: New file.
59555         * lib/unistdio/u8-asnprintf.c: New file.
59556         * lib/unistdio/u8-asprintf.c: New file.
59557         * lib/unistdio/u8-printf-parse.c: New file.
59558         * lib/unistdio/u8-snprintf.c: New file.
59559         * lib/unistdio/u8-sprintf.c: New file.
59560         * lib/unistdio/u8-vasnprintf.c: New file.
59561         * lib/unistdio/u8-vasprintf.c: New file.
59562         * lib/unistdio/u8-vsnprintf.c: New file.
59563         * lib/unistdio/u8-vsprintf.c: New file.
59564         * lib/unistdio/u8-u8-asnprintf.c: New file.
59565         * lib/unistdio/u8-u8-asprintf.c: New file.
59566         * lib/unistdio/u8-u8-snprintf.c: New file.
59567         * lib/unistdio/u8-u8-sprintf.c: New file.
59568         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59569         * lib/unistdio/u8-u8-vasprintf.c: New file.
59570         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59571         * lib/unistdio/u8-u8-vsprintf.c: New file.
59572         * lib/unistdio/u16-asnprintf.c: New file.
59573         * lib/unistdio/u16-asprintf.c: New file.
59574         * lib/unistdio/u16-printf-parse.c: New file.
59575         * lib/unistdio/u16-snprintf.c: New file.
59576         * lib/unistdio/u16-sprintf.c: New file.
59577         * lib/unistdio/u16-vasnprintf.c: New file.
59578         * lib/unistdio/u16-vasprintf.c: New file.
59579         * lib/unistdio/u16-vsnprintf.c: New file.
59580         * lib/unistdio/u16-vsprintf.c: New file.
59581         * lib/unistdio/u16-u16-asnprintf.c: New file.
59582         * lib/unistdio/u16-u16-asprintf.c: New file.
59583         * lib/unistdio/u16-u16-snprintf.c: New file.
59584         * lib/unistdio/u16-u16-sprintf.c: New file.
59585         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59586         * lib/unistdio/u16-u16-vasprintf.c: New file.
59587         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59588         * lib/unistdio/u16-u16-vsprintf.c: New file.
59589         * lib/unistdio/u32-asnprintf.c: New file.
59590         * lib/unistdio/u32-asprintf.c: New file.
59591         * lib/unistdio/u32-printf-parse.c: New file.
59592         * lib/unistdio/u32-snprintf.c: New file.
59593         * lib/unistdio/u32-sprintf.c: New file.
59594         * lib/unistdio/u32-vasnprintf.c: New file.
59595         * lib/unistdio/u32-vasprintf.c: New file.
59596         * lib/unistdio/u32-vsnprintf.c: New file.
59597         * lib/unistdio/u32-vsprintf.c: New file.
59598         * lib/unistdio/u32-u32-asnprintf.c: New file.
59599         * lib/unistdio/u32-u32-asprintf.c: New file.
59600         * lib/unistdio/u32-u32-snprintf.c: New file.
59601         * lib/unistdio/u32-u32-sprintf.c: New file.
59602         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59603         * lib/unistdio/u32-u32-vasprintf.c: New file.
59604         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59605         * lib/unistdio/u32-u32-vsprintf.c: New file.
59606         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59607         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59608         * tests/unistdio/test-ulc-printf1.h: New file.
59609         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59610         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59611         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59612         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59613         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59614         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59615         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59616         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59617         * tests/unistdio/test-u8-asnprintf1.c: New file.
59618         * tests/unistdio/test-u8-asnprintf1.h: New file.
59619         * tests/unistdio/test-u8-printf1.h: New file.
59620         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59621         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59622         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59623         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59624         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59625         * tests/unistdio/test-u8-vasprintf1.c: New file.
59626         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59627         * tests/unistdio/test-u8-vsprintf1.c: New file.
59628         * tests/unistdio/test-u16-asnprintf1.c: New file.
59629         * tests/unistdio/test-u16-asnprintf1.h: New file.
59630         * tests/unistdio/test-u16-printf1.h: New file.
59631         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59632         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59633         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59634         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59635         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59636         * tests/unistdio/test-u16-vasprintf1.c: New file.
59637         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59638         * tests/unistdio/test-u16-vsprintf1.c: New file.
59639         * tests/unistdio/test-u32-asnprintf1.c: New file.
59640         * tests/unistdio/test-u32-asnprintf1.h: New file.
59641         * tests/unistdio/test-u32-printf1.h: New file.
59642         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59643         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59644         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59645         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59646         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59647         * tests/unistdio/test-u32-vasprintf1.c: New file.
59648         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59649         * tests/unistdio/test-u32-vsprintf1.c: New file.
59650         * modules/unistdio/base: New file.
59651         * modules/unistdio/u-printf-args: New file.
59652         * modules/unistdio/ulc-asnprintf: New file.
59653         * modules/unistdio/ulc-asprintf: New file.
59654         * modules/unistdio/ulc-fprintf: New file.
59655         * modules/unistdio/ulc-printf-parse: New file.
59656         * modules/unistdio/ulc-snprintf: New file.
59657         * modules/unistdio/ulc-sprintf: New file.
59658         * modules/unistdio/ulc-vasnprintf: New file.
59659         * modules/unistdio/ulc-vasprintf: New file.
59660         * modules/unistdio/ulc-vfprintf: New file.
59661         * modules/unistdio/ulc-vsnprintf: New file.
59662         * modules/unistdio/ulc-vsprintf: New file.
59663         * modules/unistdio/u8-asnprintf: New file.
59664         * modules/unistdio/u8-asprintf: New file.
59665         * modules/unistdio/u8-printf-parse: New file.
59666         * modules/unistdio/u8-snprintf: New file.
59667         * modules/unistdio/u8-sprintf: New file.
59668         * modules/unistdio/u8-vasnprintf: New file.
59669         * modules/unistdio/u8-vasprintf: New file.
59670         * modules/unistdio/u8-vsnprintf: New file.
59671         * modules/unistdio/u8-vsprintf: New file.
59672         * modules/unistdio/u8-u8-asnprintf: New file.
59673         * modules/unistdio/u8-u8-asprintf: New file.
59674         * modules/unistdio/u8-u8-snprintf: New file.
59675         * modules/unistdio/u8-u8-sprintf: New file.
59676         * modules/unistdio/u8-u8-vasnprintf: New file.
59677         * modules/unistdio/u8-u8-vasprintf: New file.
59678         * modules/unistdio/u8-u8-vsnprintf: New file.
59679         * modules/unistdio/u8-u8-vsprintf: New file.
59680         * modules/unistdio/u16-asnprintf: New file.
59681         * modules/unistdio/u16-asprintf: New file.
59682         * modules/unistdio/u16-printf-parse: New file.
59683         * modules/unistdio/u16-snprintf: New file.
59684         * modules/unistdio/u16-sprintf: New file.
59685         * modules/unistdio/u16-vasnprintf: New file.
59686         * modules/unistdio/u16-vasprintf: New file.
59687         * modules/unistdio/u16-vsnprintf: New file.
59688         * modules/unistdio/u16-vsprintf: New file.
59689         * modules/unistdio/u16-u16-asnprintf: New file.
59690         * modules/unistdio/u16-u16-asprintf: New file.
59691         * modules/unistdio/u16-u16-snprintf: New file.
59692         * modules/unistdio/u16-u16-sprintf: New file.
59693         * modules/unistdio/u16-u16-vasnprintf: New file.
59694         * modules/unistdio/u16-u16-vasprintf: New file.
59695         * modules/unistdio/u16-u16-vsnprintf: New file.
59696         * modules/unistdio/u16-u16-vsprintf: New file.
59697         * modules/unistdio/u32-asnprintf: New file.
59698         * modules/unistdio/u32-asprintf: New file.
59699         * modules/unistdio/u32-printf-parse: New file.
59700         * modules/unistdio/u32-snprintf: New file.
59701         * modules/unistdio/u32-sprintf: New file.
59702         * modules/unistdio/u32-vasnprintf: New file.
59703         * modules/unistdio/u32-vasprintf: New file.
59704         * modules/unistdio/u32-vsnprintf: New file.
59705         * modules/unistdio/u32-vsprintf: New file.
59706         * modules/unistdio/u32-u32-asnprintf: New file.
59707         * modules/unistdio/u32-u32-asprintf: New file.
59708         * modules/unistdio/u32-u32-snprintf: New file.
59709         * modules/unistdio/u32-u32-sprintf: New file.
59710         * modules/unistdio/u32-u32-vasnprintf: New file.
59711         * modules/unistdio/u32-u32-vasprintf: New file.
59712         * modules/unistdio/u32-u32-vsnprintf: New file.
59713         * modules/unistdio/u32-u32-vsprintf: New file.
59714         * modules/unistdio/ulc-asnprintf-tests: New file.
59715         * modules/unistdio/ulc-vasnprintf-tests: New file.
59716         * modules/unistdio/ulc-vasprintf-tests: New file.
59717         * modules/unistdio/ulc-vsnprintf-tests: New file.
59718         * modules/unistdio/ulc-vsprintf-tests: New file.
59719         * modules/unistdio/u8-asnprintf-tests: New file.
59720         * modules/unistdio/u8-vasnprintf-tests: New file.
59721         * modules/unistdio/u8-vasprintf-tests: New file.
59722         * modules/unistdio/u8-vsnprintf-tests: New file.
59723         * modules/unistdio/u8-vsprintf-tests: New file.
59724         * modules/unistdio/u16-asnprintf-tests: New file.
59725         * modules/unistdio/u16-vasnprintf-tests: New file.
59726         * modules/unistdio/u16-vasprintf-tests: New file.
59727         * modules/unistdio/u16-vsnprintf-tests: New file.
59728         * modules/unistdio/u16-vsprintf-tests: New file.
59729         * modules/unistdio/u32-asnprintf-tests: New file.
59730         * modules/unistdio/u32-vasnprintf-tests: New file.
59731         * modules/unistdio/u32-vasprintf-tests: New file.
59732         * modules/unistdio/u32-vsnprintf-tests: New file.
59733         * modules/unistdio/u32-vsprintf-tests: New file.
59734         * MODULES.html.sh (Unicode string functions): Add the new modules.
59735
59736 2007-07-01  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/sprintf.c (sprintf): Limit the available length estimation,
59739         to avoid address wraparound.
59740         * lib/vsprintf.c (vsprintf): Likewise.
59741         * modules/sprintf-posix (Dependencies): Add stdint.
59742         * modules/vsprintf-posix (Dependencies): Likewise.
59743
59744 2007-07-01  Bruno Haible  <bruno@clisp.org>
59745
59746         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59747         Windows PATH as well. Conservative double-quoting. Comments.
59748
59749 2007-07-01  Bruno Haible  <bruno@clisp.org>
59750             Eric Blake  <ebb9@byu.net>
59751             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59752
59753         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59754         empty components in $PATH, denoting '.'.
59755
59756 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59757
59758         * gnulib-tool: Fix indentation.
59759         (func_create_megatestdir): Likewise.
59760         Report by Bruno Haible.
59761
59762 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59763
59764         Sync from Automake.
59765         * build-aux/gnupload: Fix shell portability issues with for loops.
59766         Report by Karl Berry.
59767
59768 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59769
59770         * build-aux/maint.mk (POURL): Use translationproject.org.
59771
59772 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59773             Bruno Haible  <bruno@clisp.org>
59774
59775         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59776         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59777         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59778         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59779         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59780
59781 2007-06-27  Bruno Haible  <bruno@clisp.org>
59782
59783         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59784         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59785
59786 2007-06-26  Karl Berry  <karl@gnu.org>
59787
59788         * MODULES.html.sh: remove xreadlink-with-size.
59789
59790 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59791
59792         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59793         method that I hope also handles the double-include problem noted
59794         by Bruno Haible in
59795         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59796
59797 2007-06-23  Bruno Haible  <bruno@clisp.org>
59798
59799         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59800         Don't let the 'mostlyclean' target fail if the last subdirectory could
59801         not be removed.
59802         Reported by Karl Berry.
59803
59804 2007-06-23  Bruno Haible  <bruno@clisp.org>
59805
59806         * gnulib-tool (echo): Add a speedier workaround for ksh.
59807         * tests/test-echo.sh: Likewise.
59808
59809 2007-06-23  Bruno Haible  <bruno@clisp.org>
59810
59811         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59812         * tests/test-echo.sh: Likewise.
59813
59814 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59815
59816         * gnulib-tool (IFS): Initialize early, so we don't set it to
59817         empty later.
59818         (self_abspathname): Rewrite algorithm to set it, reindent.
59819         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59820         (func_create_megatestdir): Merge some sed scripts.
59821
59822 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59823
59824         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59825         exposed by Sun Studio 11 cc on Solaris 8.
59826
59827 2007-06-22  Bruno Haible  <bruno@clisp.org>
59828
59829         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59830         backslashes.
59831         * tests/test-echo.sh: New file.
59832
59833 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59834
59835         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59836         simplify `sed_replace_build_aux' scripts, they are portable but
59837         echoing them with `echo' is not.
59838         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59839
59840 2007-06-21  Karl Berry  <karl@gnu.org>
59841
59842         * config/srclist.txt: guess we can't handle the licenses via
59843         srclist at the moment.
59844
59845 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59846
59847         * MODULES.html.sh: Add include_next.
59848         * modules/include_next: New file.
59849
59850 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59851
59852         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59853         INCLUDE_NEXT.
59854         (gl_CHECK_NEXT_HEADERS): New macro.
59855         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59856         the obsolescent gl_ABSOLUTE_HEADER.
59857         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59858         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59859         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59860         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59861         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59862         * m4/math_h.m4 (gl_MATH_H): Likewise.
59863         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59864         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59865         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59866         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59867         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59868         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59869         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59870         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59871         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59872         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59873         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59874         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59875         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59876         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59877         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59878         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59879         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59880         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59881         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59882         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59883         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59884         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59885         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59886         * lib/float_.h: Likewise.
59887         * lib/inttypes_.h: Likewise.
59888         * lib/math_.h: Likewise.
59889         * lib/search_.h: Likewise.
59890         * lib/signal_.h: Likewise.
59891         * lib/stdint_.h: Likewise.
59892         * lib/stdio_.h: Likewise.
59893         * lib/stdlib_.h: Likewise.
59894         * lib/string_.h: Likewise.
59895         * lib/sys_stat_.h: Likewise.
59896         * lib/sys_time_.h: Likewise.
59897         * lib/time_.h: Likewise.
59898         * lib/unistd_.h: Likewise.
59899         * lib/wchar_.h: Likewise.
59900         * lib/wctype_.h: Likewise.
59901         * lib/dirent_.h: Likewise.
59902         * lib/iconv_.h: Likewise.
59903         * lib/locale_.h: Likewise.
59904         * lib/netinet_in_.h: Likewise.
59905         * lib/sys_select_.h: Likewise.
59906         * lib/sys_socket_.h: Likewise.
59907         * lib/sysexits_.h: Likewise.
59908         * modules/fcntl (Depends-on): Depend on include_next, not
59909         absolute_header.
59910         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59911         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59912         * modules/fchdir: Likewise.
59913         * modules/float: Likewise.
59914         * modules/iconv_open: Likewise.
59915         * modules/inttypes: Likewise.
59916         * modules/locale: Likewise.
59917         * modules/math: Likewise.
59918         * modules/netinet_in: Likewise.
59919         * modules/search: Likewise.
59920         * modules/signal: Likewise.
59921         * modules/stdint: Likewise.
59922         * modules/stdio: Likewise.
59923         * modules/stdlib: Likewise.
59924         * modules/string: Likewise.
59925         * modules/sys_select: Likewise.
59926         * modules/sys_socket: Likewise.
59927         * modules/sys_stat: Likewise.
59928         * modules/sys_time: Likewise.
59929         * modules/sysexits: Likewise.
59930         * modules/time: Likewise.
59931         * modules/unistd: Likewise.
59932         * modules/wchar: Likewise.
59933         * modules/wctype: Likewise.
59934         * modules/sys_stat: Change maintainer to "all".
59935         * modules/unistd: Likewise.
59936
59937 2007-06-20  Karl Berry  <karl@gnu.org>
59938
59939         * config/srclist.txt: track www changes in license files.
59940
59941 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59942
59943         * build-aux/bootstrap: Remove stray dot.
59944         Make sure build_aux settings are honored when linking
59945         gnulib_extra_files.
59946
59947 2007-06-19  Eric Blake  <ebb9@byu.net>
59948
59949         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59950         Allow compilation on cygwin.
59951
59952 2007-06-19  Jim Meyering  <jim@meyering.net>
59953
59954         xreadlink-with-size: Remove module.  No longer used.
59955         Ex-callers now use xreadlink or mreadlink-with-size.
59956         * modules/xreadlink-with-size: Remove module.
59957         * lib/xreadlink-with-size.c: Remove file.
59958         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59959         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59960         just before the function definition *is* accurate.
59961
59962         Eliminate one way canonicalize_filename_mode could exit.
59963         * lib/canonicalize.c (canonicalize_filename_mode):
59964         Use mreadlink_with_size, not xreadlink_with_size.
59965
59966 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59967
59968         Detect porting problems to FreeBSD/arm, which has time_t wider than
59969         long int.  Original problem reported for GNU diff by Xin Li in
59970         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59971         * modules/getdate (Depends-on): Add intprops, verify.
59972         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59973         is an integer type no wider than long int.
59974
59975 2007-06-18  Jim Meyering  <jim@meyering.net>
59976
59977         New module: mreadlink-with-size.
59978         * MODULES.html.sh: Add mreadlink-with-size.
59979         * modules/mreadlink-with-size: New module
59980         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59981         not xreadlink-with-size.
59982         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59983
59984 2007-06-16  Bruno Haible  <bruno@clisp.org>
59985
59986         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59987         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59988         Reported by Gary V. Vaughan <gary@gnu.org>.
59989
59990 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59991
59992         Revamp lchown so that it lives in unistd.h where it belongs.
59993         * lib/lchown.h: Remove.
59994         * lib/dirchownmod.c: Don't include lib/lchown.h.
59995         * lib/fchownat.c: Likewise.
59996         * lib/openat.c: Likewise.
59997         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59998         does not follow symlinks.
59999         (EOPNOTSUPP): Define if not defined.
60000         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
60001         is defined to 0.
60002         (lchown): New decl.
60003         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
60004         Do not check for lchown decl.
60005         Set REPLACE_LCHOWN.
60006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
60007         REPLACE_LCHOWN.
60008         * modules/chown: Make it clear it follows symlinks.
60009         * modules/lchown: Make it clear it doesn't follow symlinks.
60010         (Files): Remove lib/lchown.h
60011         (Depends-on): Add unistd.
60012         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
60013         (Include): Include <unistd.h>, not "lchown.h".
60014         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
60015         REPLACE_LCHOWN.
60016
60017 2007-06-15  Jim Meyering  <jim@meyering.net>
60018
60019         Change license (GPL to LGPL) of fsusage and dependents.
60020         * modules/fsusage (License): Change to LGPL.
60021         * modules/full-read (License): Likewise.
60022         * modules/full-write (License): Likewise.
60023         * modules/safe-read (License): Likewise.
60024         * modules/safe-write (License): Likewise.
60025
60026 2007-06-14  Ben Pfaff  <blp@gnu.org>
60027
60028         Missing part of allocsa -> malloca transition.
60029         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
60030         gl_MALLOCA.
60031
60032 2007-06-12  Bruno Haible  <bruno@clisp.org>
60033
60034         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
60035         to ia64, x86_64, i386.
60036         Reported by Eric Blake.
60037
60038 2007-06-12  Bruno Haible  <bruno@clisp.org>
60039
60040         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60041         cross-compiling to x86_64.
60042
60043 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60044
60045         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60046         glitch reported by Ralf Wildenhues in
60047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60048
60049         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60050         Vin Shelton.
60051
60052 2007-06-11  Bruno Haible  <bruno@clisp.org>
60053
60054         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60055         replacement string.
60056         Reported by Eric Blake.
60057
60058 2007-06-10  Bruno Haible  <bruno@clisp.org>
60059
60060         Prepare vasnprintf code for use with Unicode strings.
60061         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60062         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60063         TYPE_U32_STRING.
60064         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60065         a_u32_string variants.
60066         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60067         * lib/printf-args.c: Don't include config.h and the specification
60068         header if PRINTF_FETCHARGS is already defined.
60069         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60070         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60071         TYPE_U16_STRING, TYPE_U32_STRING.
60072         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60073         u16_directive, u16_directives, u32_directive, u32_directives): New
60074         types.
60075         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60076         New declarations.
60077         * lib/printf-parse.c: Don't include config.h and the specification
60078         header if PRINTF_PARSE is already defined. Eliminate the set of
60079         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60080         them now. Include c-ctype.h.
60081         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60082         directive and CHAR_T_ONLY_ASCII.
60083         * lib/vasnprintf.c: Don't include config.h and the specification header
60084         if VASNPRINTF is already defined.
60085         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60086         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60087         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60088         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60089         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60090         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60091         code accordingly.
60092         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60093         pad_ourselves also in this case, with the 'c' and 's' directives, and
60094         with a different notion of "width".
60095         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60096
60097 2007-06-10  Bruno Haible  <bruno@clisp.org>
60098
60099         * modules/unistr/u32-mbsnlen: New file.
60100         * lib/unistr/u32-mbsnlen.c: New file.
60101
60102         * modules/unistr/u16-mbsnlen: New file.
60103         * lib/unistr/u16-mbsnlen.c: New file.
60104
60105         * modules/unistr/u8-mbsnlen: New file.
60106         * lib/unistr/u8-mbsnlen.c: New file.
60107
60108         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60109         declarations.
60110
60111 2007-06-10  Bruno Haible  <bruno@clisp.org>
60112
60113         * lib/string_.h (mbsnlen): New declaration.
60114         * lib/mbsnlen.c: New file.
60115         * m4/mbsnlen.m4: New file.
60116         * modules/mbsnlen: New file.
60117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60118         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60119         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60120
60121 2007-06-10  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60124
60125 2007-06-10  Bruno Haible  <bruno@clisp.org>
60126
60127         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60128         * lib/mbuiter.h: Likewise.
60129
60130 2007-06-10  Bruno Haible  <bruno@clisp.org>
60131
60132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60133         declaration.
60134
60135 2007-06-10  Karl Berry  <karl@gnu.org>
60136
60137         * config/srclist.txt: remove gettext entries, Bruno prefers
60138         to update individually.
60139
60140 2007-06-10  Bruno Haible  <bruno@clisp.org>
60141
60142         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60143         'maxlen'. Ensure only length + width bytes are allocated, not
60144         length + 1 + width.
60145
60146 2007-06-09  Bruno Haible  <bruno@clisp.org>
60147
60148         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60149         (CHAR_T): Remove macro.
60150         (VASNPRINTF): Update.
60151
60152 2007-06-09  Bruno Haible  <bruno@clisp.org>
60153
60154         * MODULES.html.sh (Unicode string functions): Add the new modules.
60155
60156         * modules/uniconv/u32-conv-to-enc: New file.
60157         * lib/uniconv/u32-conv-to-enc.c: New file.
60158         * modules/uniconv/u32-conv-to-enc-tests: New file.
60159         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60160
60161         * modules/uniconv/u16-conv-to-enc: New file.
60162         * lib/uniconv/u16-conv-to-enc.c: New file.
60163         * lib/uniconv/u-conv-to-enc.h: New file.
60164         * modules/uniconv/u16-conv-to-enc-tests: New file.
60165         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60166
60167         * modules/uniconv/u8-conv-to-enc: New file.
60168         * lib/uniconv/u8-conv-to-enc.c: New file.
60169         * modules/uniconv/u8-conv-to-enc-tests: New file.
60170         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60171
60172         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60173         u32_conv_to_encoding): New declarations.
60174
60175 2007-06-09  Bruno Haible  <bruno@clisp.org>
60176
60177         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60178
60179 2007-06-09  Bruno Haible  <bruno@clisp.org>
60180
60181         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60182         * modules/malloca: Renamed from modules/allocsa, updated.
60183         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60184         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60185         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60186         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60187         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60188         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60189         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60190         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60191         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60192         * modules/c-strcasestr (Depends-on): Update.
60193         * lib/c-strcasestr.c: Update.
60194         * modules/c-strstr (Depends-on): Update.
60195         * lib/c-strstr.c: Update.
60196         * modules/canonicalize-lgpl (Depends-on): Update.
60197         * lib/canonicalize-lgpl.c: Update.
60198         * modules/clean-temp (Depends-on): Update.
60199         * lib/clean-temp.c: Update.
60200         * modules/csharpcomp (Depends-on): Update.
60201         * lib/csharpcomp.c: Update.
60202         * modules/csharpexec (Depends-on): Update.
60203         * lib/csharpexec.c: Update.
60204         * modules/javacomp (Depends-on): Update.
60205         * lib/javacomp.c: Update.
60206         * modules/javaexec (Depends-on): Update.
60207         * lib/javaexec.c: Update.
60208         * modules/mbscasestr (Depends-on): Update.
60209         * lib/mbscasestr.c: Update.
60210         * modules/mbsstr (Depends-on): Update.
60211         * lib/mbsstr.c: Update.
60212         * modules/setenv (Depends-on): Update.
60213         * lib/setenv.c: Update.
60214         * modules/strcasestr (Depends-on): Update.
60215         * lib/strcasestr.c: Update.
60216         * modules/striconveha (Depends-on): Update.
60217         * lib/striconveha.c: Update.
60218         * modules/relocatable-prog-wrapper (Files): Update.
60219         * lib/relocwrapper.c: Update.
60220         * build-aux/install-reloc: Update.
60221         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60222
60223 2007-06-08  Bruno Haible  <bruno@clisp.org>
60224
60225         Port to uClibc.
60226         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60227         * lib/fpurge.c (fpurge): Likewise.
60228         * lib/freading.c (freading): Likewise.
60229         * lib/fseeko.c (rpl_fseeko): Likewise.
60230         * lib/fseterr.c (fseterr): Likewise.
60231         * lib/fwriting.c (fwriting): Likewise.
60232         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60233
60234 2007-06-08  Bruno Haible  <bruno@clisp.org>
60235
60236         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60237         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60238         * modules/gettext (Files): Add m4/intlmacosx.m4.
60239
60240 2007-06-07  Bruno Haible  <bruno@clisp.org>
60241
60242         * modules/localename-tests: New file.
60243         * tests/test-localename.c: New file.
60244
60245         New module 'localename'.
60246         * lib/localename.h: New file.
60247         * lib/localename.c: New file, from GNU gettext.
60248         * m4/localename.m4: New file.
60249         * modules/localename: New file.
60250
60251 2007-06-07  Bruno Haible  <bruno@clisp.org>
60252
60253         Work around the lack of <wchar.h> on some builds of uClibc.
60254         * doc/headers/wchar.texi: Update.
60255         * lib/wchar_.h: Include <wchar.h> only if it exists.
60256         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60257         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60258         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60259         doesn't exist.
60260         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60261         * modules/mbfile (Depends-on): Add wchar.
60262         * modules/mbiter (Depends-on): Likewise.
60263         * modules/mbuiter (Depends-on): Likewise.
60264         Reported by Simon Josefsson.
60265
60266 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60267
60268         Work around problem reported by Steven M. Schweda in
60269         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60270         Tru64 5.1B with the Compaq compiler environment installed declares
60271         an 'isblank' function but does not define it in the C library.
60272         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60273         * lib/regex_internal.h (isblank): Likewise.
60274         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60275         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60276
60277 2007-06-05  Bruno Haible  <bruno@clisp.org>
60278
60279         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60280         ia64.
60281         * modules/printf-safe: New file.
60282         * modules/fprintf-posix (Depends-on): Add printf-safe.
60283         * modules/printf-posix (Depends-on): Likewise.
60284         * modules/snprintf-posix (Depends-on): Likewise.
60285         * modules/sprintf-posix (Depends-on): Likewise.
60286         * modules/vasnprintf-posix (Depends-on): Likewise.
60287         * modules/vasprintf-posix (Depends-on): Likewise.
60288         * modules/vfprintf-posix (Depends-on): Likewise.
60289         * modules/vprintf-posix (Depends-on): Likewise.
60290         * modules/vsnprintf-posix (Depends-on): Likewise.
60291         * modules/vsprintf-posix (Depends-on): Likewise.
60292         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60293         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60294         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60295         "no" on i386, x86_64, ia64.
60296         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60297         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60298         on i386, x86_64, ia64.
60299         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60300         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60301         on i386, x86_64, ia64.
60302         * tests/test-vasnprintf-posix.c: Include float.h.
60303         (LDBL80_WORDS): New macro.
60304         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60305         on i386, x86_64, ia64.
60306         * tests/test-vasprintf-posix.c: Include float.h.
60307         (LDBL80_WORDS): New macro.
60308         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60309         on i386, x86_64, ia64.
60310         * tests/test-snprintf-posix.c: Include float.h.
60311         * tests/test-sprintf-posix.c: Likewise.
60312         * tests/test-vsnprintf-posix.c: Likewise.
60313         * tests/test-vsprintf-posix.c: Likewise.
60314
60315 2007-06-05  Bruno Haible  <bruno@clisp.org>
60316
60317         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60318         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60319         non-IEEE numbers on i386, x86_64, ia64.
60320         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60321         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60322         * tests/test-isnanl.h: Include float.h.
60323         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60324
60325 2007-06-05  Bruno Haible  <bruno@clisp.org>
60326
60327         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60328         also the %a / %A. Handle the %a / %A code before this extra handling.
60329
60330 2007-06-05  Bruno Haible  <bruno@clisp.org>
60331
60332         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60333         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60334
60335 2007-06-05  Bruno Haible  <bruno@clisp.org>
60336
60337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60338         typo in variable name.
60339
60340 2007-06-05  Eric Blake  <ebb9@byu.net>
60341
60342         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60343         Reported by Simon Josefsson.
60344
60345 2007-06-04  Bruno Haible  <bruno@clisp.org>
60346
60347         Avoid test failures on some PowerPC platforms.
60348         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60349         Define differently for PowerPC.
60350         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60351         Reported by Gary V. Vaughan <gary@gnu.org>.
60352
60353 2007-06-02  Bruno Haible  <bruno@clisp.org>
60354
60355         Fix test-stdint failure on FreeBSD/ia64.
60356         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60357         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60358         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60359         * doc/headers/stdint.texi: Update.
60360
60361 2007-06-01  Bruno Haible  <bruno@clisp.org>
60362
60363         * tests/test-binary-io.c (main): Pass a third argument to open().
60364         Reported by Gary V. Vaughan <gary@gnu.org>.
60365
60366 2007-06-01  Bruno Haible  <bruno@clisp.org>
60367
60368         * doc/functions/frexpl.texi: Update for mingw.
60369
60370 2007-06-01  Bruno Haible  <bruno@clisp.org>
60371
60372         * tests/test-lseek.c (main): Disable test of errno for invalid third
60373         argument.
60374         * doc/functions/lseek.texi: Update.
60375         Reported by Gary V. Vaughan <gary@gnu.org>.
60376
60377 2007-05-28  Bruno Haible  <bruno@clisp.org>
60378
60379         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60380
60381 2007-05-31  Eric Blake  <ebb9@byu.net>
60382
60383         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60384         cross compiling.
60385
60386 2007-05-30  Eric Blake  <ebb9@byu.net>
60387         and Bruno Haible  <bruno@clisp.org>
60388
60389         Work around mingw test failures exposed by m4-1.4.9b.
60390         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60391         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60392         moment.
60393
60394 2007-05-30  Bruno Haible  <bruno@clisp.org>
60395
60396         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60397         assuming that they are closed. Needed on HP-UX 11.
60398
60399 2007-05-29  Bruno Haible  <bruno@clisp.org>
60400
60401         Fix a problem with #include_next.
60402         * lib/dirent_.h: Split the double-inclusion guard.
60403         * lib/fcntl_.h: Likewise.
60404         * lib/float_.h: Likewise.
60405         * lib/iconv_.h: Likewise.
60406         * lib/inttypes_.h: Likewise.
60407         * lib/locale_.h: Likewise.
60408         * lib/math_.h: Likewise.
60409         * lib/netinet_in_.h: Likewise.
60410         * lib/search_.h: Likewise.
60411         * lib/signal_.h: Likewise.
60412         * lib/stdint_.h: Likewise.
60413         * lib/stdio_.h: Likewise.
60414         * lib/stdlib_.h: Likewise.
60415         * lib/string_.h: Likewise.
60416         * lib/sys_select_.h: Likewise.
60417         * lib/sys_socket_.h: Likewise.
60418         * lib/sys_stat_.h: Likewise.
60419         * lib/sys_time_.h: Likewise.
60420         * lib/sysexits_.h: Likewise.
60421         * lib/time_.h: Likewise.
60422         * lib/unistd_.h: Likewise.
60423         * lib/wchar_.h: Likewise.
60424         * lib/wctype_.h: Likewise.
60425
60426 2007-05-29  Bruno Haible  <bruno@clisp.org>
60427
60428         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60429         for the moment.
60430
60431 2007-05-29  Bruno Haible  <bruno@clisp.org>
60432
60433         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60434         invocation.
60435         Reported by Eric Blake.
60436
60437 2007-05-29  Bruno Haible  <bruno@clisp.org>
60438
60439         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60440         compiling case.
60441
60442 2007-05-29  Eric Blake  <ebb9@byu.net>
60443             Bruno Haible  <bruno@clisp.org>
60444
60445         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60446         cross compiles.
60447
60448 2007-05-28  Eric Blake  <ebb9@byu.net>
60449
60450         * modules/closein-tests (test_closein_LDADD): Support test on
60451         cygwin with libtool.
60452
60453 2007-05-28  Bruno Haible  <bruno@clisp.org>
60454
60455         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60456         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60457         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60458         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60459         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60460         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60461         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60462         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60463         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60464
60465 2007-05-28  Eric Blake  <ebb9@byu.net>
60466
60467         Unconditionally include <config.h> in unit tests.
60468         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60469         * tests/test-allocsa.c, tests/test-arcfour.c,
60470         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60471         tests/test-array_list.c, tests/test-array_oset.c,
60472         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60473         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60474         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60475         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60476         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60477         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60478         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60479         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60480         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60481         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60482         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60483         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60484         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60485         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60486         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60487         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60488         test-md5.c, test-memmem.c, test-printf-posix.c,
60489         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60490         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60491         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60492         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60493         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60494         test-vasnprintf-posix2.c, test-vasnprintf.c,
60495         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60496         test-vfprintf-posix.c, test-vprintf-posix.c,
60497         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60498         test-xvasprintf.c: Likewise.
60499
60500 2007-05-28  Bruno Haible  <bruno@clisp.org>
60501
60502         * gnulib-tool (func_import): Remember the --with-tests command-line
60503         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60504         Reported by Eric Blake.
60505
60506 2007-05-28  Bruno Haible  <bruno@clisp.org>
60507
60508         * modules/ftell-tests: New file.
60509         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60510         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60511
60512         * lib/ftell.c: New file.
60513         * modules/ftell: New file.
60514         * m4/ftell.m4: New file.
60515         * doc/functions/ftell.texi: Update.
60516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60517         REPLACE_FTELL.
60518         * lib/stdio_.h (rpl_ftell): New declaration.
60519         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60520         REPLACE_FTELL.
60521
60522 2007-05-28  Eric Blake  <ebb9@byu.net>
60523
60524         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60525
60526 2007-05-28  Bruno Haible  <bruno@clisp.org>
60527
60528         * modules/fseek-tests: New file.
60529         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60530         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60531
60532         * lib/fseek.c: New file.
60533         * modules/fseek: New file.
60534         * m4/fseek.m4: New file.
60535         * doc/functions/fseek.texi: Update.
60536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60537         REPLACE_FSEEK.
60538         * lib/stdio_.h (rpl_fseek): New declaration.
60539         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60540         REPLACE_FSEEK.
60541
60542 2007-05-28  Bruno Haible  <bruno@clisp.org>
60543
60544         * lib/stdio_.h (fflush): More comments.
60545
60546 2007-05-28  Bruno Haible  <bruno@clisp.org>
60547
60548         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60549         runtime test.
60550
60551 2007-05-28  Eric Blake  <ebb9@byu.net>
60552
60553         Improve lseek module.
60554         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60555         * lib/unistd_.h (lseek): Scale back link warning message.
60556         * tests/test-lseek.c: Beef up test.
60557         * tests/test-lseek.sh: Exercise more facets of lseek.
60558         Reported by Bruno Haible.
60559
60560 2007-05-28  Bruno Haible  <bruno@clisp.org>
60561
60562         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60563         to define.
60564
60565 2007-05-27  Bruno Haible  <bruno@clisp.org>
60566
60567         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60568
60569 2007-05-27  Bruno Haible  <bruno@clisp.org>
60570
60571         * modules/openmp: New file.
60572         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60573         Noah Misch.
60574
60575 2007-05-26  Bruno Haible  <bruno@clisp.org>
60576
60577         * modules/chdir-long (Depends-on): Add fchdir.
60578         * modules/chdir-safer (Depends-on): Likewise.
60579         * modules/fts (Depends-on): Likewise.
60580         * modules/fts-lgpl (Depends-on): Likewise.
60581         * modules/openat (Depends-on): Likewise.
60582         * modules/savewd (Depends-on): Likewise.
60583
60584 2007-05-24  Eric Blake  <ebb9@byu.net>
60585
60586         Fix lseek on mingw.
60587         * modules/lseek: New module.
60588         * m4/lseek.m4: New file.
60589         * lib/lseek.c: New file.
60590         * modules/lseek-tests: New file.
60591         * tests/test-lseek.c: New file.
60592         * tests/test-lseek.sh: New file.
60593         * MODULES.html.sh: Document lseek module.
60594         * modules/fflush (Depends-on): Add lseek, fseeko.
60595         * modules/fseeko (Depends-on): Likewise.
60596         * modules/ftello (Depends-on): Likewise.
60597         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60598         broken.
60599         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60600         broken.
60601         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60602         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60603         * lib/ftello.c (rpl_ftello): Likewise.
60604         * tests/test-fseeko.c (main): Test this.
60605         * tests/test-fseeko.sh: Likewise.
60606         * tests/test-ftello.c (main): Likewise.
60607         * tests/test-ftello.sh: Likewise.
60608         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60609         implies replacing fseek.
60610         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60611         HAVE_FTELLO.
60612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60613         * modules/unistd (Makefile.am): Likewise.
60614         * lib/unistd_.h (lseek): Declare a replacement.
60615         * doc/functions/lseek.texi (lseek): Document this fix.
60616         * doc/functions/fseek.texi (fseek): Likewise.
60617         * doc/functions/ftell.texi (ftell): Likewise.
60618
60619 2007-05-24  Bruno Haible  <bruno@clisp.org>
60620
60621         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60622         in the printed representation of a NaN.
60623         * tests/test-vasprintf-posix.c (test_function): Likewise.
60624         * tests/test-snprintf-posix.h (test_function): Likewise.
60625         * tests/test-sprintf-posix.h (test_function): Likewise.
60626         Reported by Eric Blake.
60627
60628 2007-05-23  Eric Blake  <ebb9@byu.net>
60629
60630         Fix fseeko/ftello on cygwin 1.5.24.
60631         * doc/functions/fseeko.texi (fseeko): Document the fix.
60632         * doc/functions/ftello.texi (ftello): Document the fix.
60633         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60634         * doc/functions/stdout.text (stdout): New file.
60635         * doc/functions/stderr.text (stderr): New file.
60636         * doc/gnulib.texi (Function Substitutes): Use new files.
60637         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60638         prior to 1.7.0.
60639         * tests/test-ftello.c (main): Likewise for ftello.
60640         * tests/test-fseeko.sh: New file.
60641         * tests/test-ftello.sh: New file.
60642         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60643         with seekable stdin.
60644         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60645         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60646         (gl_REPLACE_FSEEKO): New macro.
60647         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60648         * modules/fseeko (Files): Distribute fseeko.c.
60649         * modules/ftello (Files): Distribute ftello.c.
60650         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60651         mode.
60652         * lib/ftello.c (rpl_ftello): New file.
60653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60654         fseeko, ftello.
60655         (gl_STDIN_LARGE_OFFSET): New macro.
60656         * modules/stdio (Makefile.am): Perform the replacement.
60657         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60658
60659 2007-05-23  Bruno Haible  <bruno@clisp.org>
60660
60661         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60662         GNULIB_POSIXCHECK is defined.
60663
60664 2007-05-21  Bruno Haible  <bruno@clisp.org>
60665
60666         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60667         Check also the output for NaN arguments. When cross-compiling, guess
60668         no on IRIX.
60669         * lib/vasnprintf.c: Update comments.
60670         * tests/test-vasnprintf-posix.c (strisnan): New function.
60671         (test_function): Use it.
60672         * tests/test-vasprintf-posix.c (strisnan): New function.
60673         (test_function): Use it.
60674         * tests/test-snprintf-posix.h (strisnan): New function.
60675         (test_function): Use it.
60676         * tests/test-sprintf-posix.h (strisnan): New function.
60677         (test_function): Use it.
60678         Reported by Eric Blake.
60679
60680 2007-05-20  Bruno Haible  <bruno@clisp.org>
60681
60682         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60683         numbers that fails on BeOS.
60684         * doc/functions/frexpl.texi: Update.
60685
60686 2007-05-20  Jim Meyering  <jim@meyering.net>
60687
60688         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60689         forced upon us by glibc-2.6.
60690
60691 2007-05-20  Bruno Haible  <bruno@clisp.org>
60692
60693         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60694         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60695         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60696         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60697         NEED_PRINTF_INFINITE.
60698         (is_infinitel): New function.
60699         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60700         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60701         gl_PREREQ_VASNPRINTF_INFINITE.
60702         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60703         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60704         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60705         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60706         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60707         gl_PREREQ_VASNPRINTF_INFINITE.
60708         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60709         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60710         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60711         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60712         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60713         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60714         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60715         * doc/functions/fprintf.texi: Update.
60716         * doc/functions/printf.texi: Update.
60717         * doc/functions/snprintf.texi: Update.
60718         * doc/functions/sprintf.texi: Update.
60719         * doc/functions/vfprintf.texi: Update.
60720         * doc/functions/vprintf.texi: Update.
60721         * doc/functions/vsnprintf.texi: Update.
60722         * doc/functions/vsprintf.texi: Update.
60723
60724 2007-05-20  Bruno Haible  <bruno@clisp.org>
60725
60726         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60727         was not found in libc.
60728         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60729
60730 2007-05-20  Bruno Haible  <bruno@clisp.org>
60731
60732         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60733         printed as "-nan" instead of "nan".
60734         * tests/test-vasprintf-posix.c (test_function): Likewise.
60735         * tests/test-snprintf-posix.h (test_function): Likewise.
60736         * tests/test-sprintf-posix.h (test_function): Likewise.
60737         Needed for HP-UX 11.
60738
60739 2007-05-20  Jim Meyering  <jim@meyering.net>
60740
60741         Fix buggy test for the fchownat-deref bug.
60742         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60743         symlink required for the run-test.  Without it, this test would
60744         always declare that fchownat doesn't work, and client code would
60745         unnecessarily use the replacement function with fixed libc.
60746         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60747         Reported by Greg Schafer.
60748
60749 2007-05-19  Bruno Haible  <bruno@clisp.org>
60750
60751         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60752         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60753         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60754         Needed for IRIX 6.5 and Solaris 2.5.1.
60755
60756 2007-05-19  Bruno Haible  <bruno@clisp.org>
60757
60758         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60759         (test_function): Skip tests involving -0.0 on platforms where
60760         -0.0 = 0.0.
60761         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60762         (test_function): Skip tests involving -0.0 on platforms where
60763         -0.0 = 0.0.
60764         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60765         (test_function): Skip tests involving -0.0 on platforms where
60766         -0.0 = 0.0.
60767         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60768         (test_function): Skip tests involving -0.0 on platforms where
60769         -0.0 = 0.0.
60770         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60771         tests.
60772         * tests/test-printf-posix.h (test_function): Likewise.
60773         * tests/test-printf-posix.output: Remove all -0.0 related results.
60774         Needed for IRIX 6.5.
60775
60776 2007-05-19  Bruno Haible  <bruno@clisp.org>
60777
60778         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60779         printed as "nan0x7fffffff" instead of "nan".
60780         * tests/test-vasprintf-posix.c (test_function): Likewise.
60781         * tests/test-snprintf-posix.h (test_function): Likewise.
60782         * tests/test-sprintf-posix.h (test_function): Likewise.
60783         * tests/test-fprintf-posix.h (NaN): Remove macro.
60784         (test_function): Remove all NaN related tests.
60785         * tests/test-printf-posix.h (NaN): Remove macro.
60786         (test_function): Remove all NaN related tests.
60787         * tests/test-printf-posix.output: Remove all NaN related results.
60788         Needed for IRIX 6.5.
60789
60790 2007-05-19  Bruno Haible  <bruno@clisp.org>
60791
60792         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60793         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60794
60795 2007-05-19  Bruno Haible  <bruno@clisp.org>
60796
60797         * lib/float_.h: New file.
60798         * m4/float_h.m4: New file.
60799         * modules/float: New file.
60800         * modules/isnanl (Dependencies): Add float.
60801         * modules/isnanl-nolibm (Dependencies): Likewise.
60802         * modules/mathl (Dependencies): Likewise.
60803         * modules/printf-frexpl (Dependencies): Likewise.
60804         * modules/signbit (Dependencies): Likewise.
60805         * modules/vasnprintf (Dependencies): Likewise.
60806         * doc/headers/float.texi: Update.
60807
60808 2007-05-19  Jim Meyering  <jim@meyering.net>
60809
60810         * lib/utimens.c (gl_futimens): Rename from futimens,
60811         now that glibc-2.6 declares futimens.
60812         * lib/utimens.h: Likewise.
60813
60814 2007-05-19  Bruno Haible  <bruno@clisp.org>
60815
60816         Avoid test failures on mingw.
60817         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60818         * tests/test-printf-posix.sh: Likewise.
60819         * tests/test-vfprintf-posix.sh: Likewise.
60820         * tests/test-vprintf-posix.sh: Likewise.
60821
60822 2007-05-19  Bruno Haible  <bruno@clisp.org>
60823
60824         Fix *printf result for NaN, Inf, -0.0 on mingw.
60825         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60826         * lib/vasnprintf.c: Include math.h and isnan.h.
60827         (is_infinite_or_zero): New function.
60828         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60829         values in the %f, %F, %e, %E, %g, %G directives.
60830         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60831         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60832         gl_PRINTF_INFINITE and test its result. Invoke
60833         gl_PREREQ_VASNPRINTF_INFINITE.
60834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60835         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60836         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60837         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60838         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60839         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60840         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60841         * doc/functions/fprintf.texi: Update.
60842         * doc/functions/printf.texi: Update.
60843         * doc/functions/snprintf.texi: Update.
60844         * doc/functions/sprintf.texi: Update.
60845         * doc/functions/vfprintf.texi: Update.
60846         * doc/functions/vprintf.texi: Update.
60847         * doc/functions/vsnprintf.texi: Update.
60848         * doc/functions/vsprintf.texi: Update.
60849
60850 2007-05-19  Bruno Haible  <bruno@clisp.org>
60851
60852         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60853         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60854         Instead of multiplying with 10^k, set extra_zeroes to k.
60855         (scale10_round_long_double): Remove function.
60856
60857 2007-05-18  Bruno Haible  <bruno@clisp.org>
60858
60859         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60860         introduced on 2007-05-06.
60861
60862 2007-05-18  Bruno Haible  <bruno@clisp.org>
60863
60864         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60865         %g directives.
60866         * tests/test-vasprintf-posix.c (test_function): Likewise.
60867         * tests/test-snprintf-posix.h (test_function): Likewise.
60868         * tests/test-sprintf-posix.h (test_function): Likewise.
60869
60870 2007-05-18  Bruno Haible  <bruno@clisp.org>
60871
60872         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60873         (strmatch): New function.
60874         (test_function): Test the %f directive on numbers of various exponents.
60875         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60876         (strmatch): New function.
60877         (test_function): Test the %f directive on numbers of various exponents.
60878         * tests/test-snprintf-posix.h (strmatch): New function.
60879         (test_function): Test the %f directive on numbers of various exponents.
60880         * tests/test-sprintf-posix.h (strmatch): New function.
60881         (test_function): Test the %f directive on numbers of various exponents.
60882         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60883         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60884         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60885         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60886
60887 2007-05-18  Bruno Haible  <bruno@clisp.org>
60888
60889         Add support for 'long double' number output.
60890         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60891         * lib/vasnprintf.c: Include math.h and float+.h.
60892         (mp_limb_t): New type.
60893         (GMP_LIMB_BITS): New macro.
60894         (mp_twolimb_t): New type.
60895         (GMP_TWOLIMB_BITS): New macro.
60896         (mpn_t): New type.
60897         (multiply, divide, convert_to_decimal, decode_long_double,
60898         scale10_round_long_double, scale10_round_decimal_long_double,
60899         floorlog10l): New functions.
60900         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60901         for the %f, %F, %e, %E, %g, %G directives.
60902         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60903         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60904         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60905         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60908         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60910         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60911         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60912         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60913         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60914         * modules/snprintf-posix (Depends-on): Likewise.
60915         * modules/sprintf-posix (Depends-on): Likewise.
60916         * modules/vasnprintf-posix (Depends-on): Likewise.
60917         * modules/vasprintf-posix (Depends-on): Likewise.
60918         * modules/vfprintf-posix (Depends-on): Likewise.
60919         * modules/vsnprintf-posix (Depends-on): Likewise.
60920         * modules/vsprintf-posix (Depends-on): Likewise.
60921         * modules/vasnprintf (Files): Add lib/float+.h.
60922         * doc/functions/fprintf.texi: Update.
60923         * doc/functions/printf.texi: Update.
60924         * doc/functions/snprintf.texi: Update.
60925         * doc/functions/sprintf.texi: Update.
60926         * doc/functions/vfprintf.texi: Update.
60927         * doc/functions/vprintf.texi: Update.
60928         * doc/functions/vsnprintf.texi: Update.
60929         * doc/functions/vsprintf.texi: Update.
60930
60931 2007-05-18  Bruno Haible  <bruno@clisp.org>
60932
60933         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60934
60935 2007-05-18  Bruno Haible  <bruno@clisp.org>
60936
60937         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60938         for printing 64-bit integers. Needed for mingw.
60939
60940 2007-05-18  Bruno Haible  <bruno@clisp.org>
60941
60942         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60943         gl_FUNC_FREXPL_WORKS.
60944         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60945
60946 2007-05-18  Bruno Haible  <bruno@clisp.org>
60947
60948         * modules/frexpl-nolibm-tests: New file.
60949
60950         * modules/frexpl-nolibm: New file.
60951         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60952
60953 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60954
60955         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60956         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60957         GCC 4.2, which otherwise issues a lot of warnings.
60958         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60959         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60960         Likewise.
60961         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60962         * modules/iconv_open (iconv.h): Likewise.
60963         * modules/locale (locale.h): Likewise.
60964         * modules/netinet_in (netinet/in.h): Likewise.
60965         * modules/sys_select (sys_select.h): Likewise.
60966         * modules/sys_socket (sys/socket.h): Likewise.
60967         * modules/sys_stat (sys/stat.h): Likewise.
60968         * modules/sysexits (sysexits.h): Likewise.
60969         * modules/unistd (unistd.h): Likewise.
60970
60971 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60972
60973         * modules/closein-tests (Makefile.am): Distribute
60974         `test-closein.sh'.
60975
60976 2007-05-17  Bruno Haible  <bruno@clisp.org>
60977
60978         * tests/test-printf-posix.output: Renamed from
60979         tests/test-fprintf-posix.out.
60980         * modules/fprintf-posix-tests: Update.
60981         * modules/printf-posix-tests: Update.
60982         * modules/vfprintf-posix-tests: Update.
60983         * modules/vprintf-posix-tests: Update.
60984         * tests/test-fprintf-posix.sh: Update.
60985         * tests/test-printf-posix.sh: Update.
60986         * tests/test-vfprintf-posix.sh: Update.
60987         * tests/test-vprintf-posix.sh: Update.
60988         Reported by Ralf Wildenhues.
60989
60990 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60991
60992         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60993         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60994         GCC 4.2, which otherwise issues a lot of warnings.
60995         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60996         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60997         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60998         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60999         it should no longer be needed.
61000         * lib/string_.h: Likewise.
61001         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
61002         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
61003         * modules/inttypes (inttypes.h): Likewise.
61004         * modules/math (math.h): Likewise.
61005         * modules/search (search.h): Likewise.
61006         * modules/signal (signal.h): Likewise.
61007         * modules/stdint (stdint.h): Likewise.
61008         * modules/stdio (stdio.h): Likewise.
61009         * modules/stdlib (stdlib.h): Likewise.
61010         * modules/string (string.h): Likewise.
61011         * modules/sys_time (sys/time.h): Likewise.
61012         * modules/time (time.h): Likewise.
61013         * modules/wchar (wchar.h): Likewise.
61014         * modules/wctype (wtype.h): Likewise.
61015
61016 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61017
61018         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
61019
61020 2007-05-13  Bruno Haible  <bruno@clisp.org>
61021
61022         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
61023         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61024         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
61025         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61026         (gl_PREREQ_STRTOK_R): Don't require it here.
61027
61028 2007-05-13  Bruno Haible  <bruno@clisp.org>
61029
61030         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
61031         when used in C++ mode.
61032
61033 2007-05-12  Bruno Haible  <bruno@clisp.org>
61034
61035         * lib/linebuffer.h: Tweak doc.
61036         * lib/linebuffer.c: Likewise.
61037
61038 2007-05-12  James Youngman  <jay@gnu.org>
61039
61040         * lib/linebuffer.c (readlinebuffer_delim): New function,
61041         like readlinebuffer, but use a caller-specified delimiter.
61042         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61043         as the delimiter.
61044         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61045
61046 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61047
61048         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61049         * modules/openat (Files): Remove openat-die.c.
61050         (Depends-on): Add openat-die.
61051         * modules/openat-die: New module.
61052
61053 2007-05-06  Bruno Haible  <bruno@clisp.org>
61054
61055         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61056         Update with info about Cygwin.
61057         * doc/functions/fprintf.texi: Update.
61058         * doc/functions/printf.texi: Update.
61059         * doc/functions/snprintf.texi: Update.
61060         * doc/functions/sprintf.texi: Update.
61061         * doc/functions/vfprintf.texi: Update.
61062         * doc/functions/vprintf.texi: Update.
61063         * doc/functions/vsnprintf.texi: Update.
61064         * doc/functions/vsprintf.texi: Update.
61065         Reported by Eric Blake.
61066
61067 2007-05-06  Bruno Haible  <bruno@clisp.org>
61068
61069         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61070         padding ourselves for the floating-point directives.
61071         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61073         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61074         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61075         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61076         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61077         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61078         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61079         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61080         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61081         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61082         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61083         * tests/test-snprintf-posix.h (test_function): Also check the width
61084         and some flags in the %f directive.
61085         * tests/test-sprintf-posix.h (test_function): Likewise.
61086         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61087         * tests/test-vasprintf-posix.c (test_function): Likewise.
61088         * doc/functions/fprintf.texi: Update.
61089         * doc/functions/printf.texi: Update.
61090         * doc/functions/snprintf.texi: Update.
61091         * doc/functions/sprintf.texi: Update.
61092         * doc/functions/vfprintf.texi: Update.
61093         * doc/functions/vprintf.texi: Update.
61094         * doc/functions/vsnprintf.texi: Update.
61095         * doc/functions/vsprintf.texi: Update.
61096
61097 2007-05-06  Bruno Haible  <bruno@clisp.org>
61098
61099         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61100         pass the ' flag character to sprintf or snprintf.
61101         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61103         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61104         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61105         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61106         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61107         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61108         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61109         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61110         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61111         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61112         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61113         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61114         flag.
61115         * tests/test-sprintf-posix.h (test_function): Likewise.
61116         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61117         * tests/test-vasprintf-posix.c (test_function): Likewise.
61118         * doc/functions/fprintf.texi: Update.
61119         * doc/functions/printf.texi: Update.
61120         * doc/functions/snprintf.texi: Update.
61121         * doc/functions/sprintf.texi: Update.
61122         * doc/functions/vfprintf.texi: Update.
61123         * doc/functions/vprintf.texi: Update.
61124         * doc/functions/vsnprintf.texi: Update.
61125         * doc/functions/vsprintf.texi: Update.
61126
61127 2007-05-01  Bruno Haible  <bruno@clisp.org>
61128
61129         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61130
61131 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61132
61133         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61134         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61135
61136 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61139         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61141
61142 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61143
61144         * lib/argp-help.c (struct hol_entry): New member `ord'.
61145         (HOL_ENTRY_PTRCMP): Use ord for comparison
61146         (hol_sort): Initialize ord.
61147
61148 2007-05-01  Bruno Haible  <bruno@clisp.org>
61149
61150         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61151         Reported by Eric Blake.
61152         * doc/gnulib.texi (Function Substitutes): Update.
61153
61154 2007-05-01  Bruno Haible  <bruno@clisp.org>
61155
61156         * doc/functions.texi: Remove file, now redundant through
61157         doc/functions/*.texi.
61158
61159 2007-05-01  Bruno Haible  <bruno@clisp.org>
61160
61161         * modules/argp (Depends-on): Add sleep.
61162
61163 2007-05-01  Bruno Haible  <bruno@clisp.org>
61164
61165         * modules/sleep-tests: New file.
61166         * tests/test-sleep.c: New file.
61167
61168         * modules/sleep: New file.
61169         * lib/sleep.c: New file.
61170         * m4/sleep.m4: New file.
61171         * lib/unistd_.h (sleep): New declaration.
61172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61173         HAVE_SLEEP.
61174         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61175         * doc/functions/sleep.texi: Document the sleep module.
61176
61177 2007-05-01  Bruno Haible  <bruno@clisp.org>
61178
61179         * lib/sigprocmask.h: Remove file.
61180         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61181         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61182         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61183         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61184         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61185         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61186         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61187         HAVE_SIGSET_T as a shell variable.
61188         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61189         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61190         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61191         (Depends-on): Add signal. Remove verify.
61192         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61193         (Include): Mention <signal.h> instead of sigprocmask.h.
61194         * NEWS: Mention the change.
61195         * lib/fatal-signal.c: Don't include sigprocmask.h.
61196
61197 2007-05-01  Bruno Haible  <bruno@clisp.org>
61198
61199         * modules/signal: New file.
61200         * lib/signal_.h: New file.
61201         * m4/signal_h.m4: New file.
61202
61203 2007-05-01  Bruno Haible  <bruno@clisp.org>
61204
61205         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61206         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61207         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61208         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61209
61210 2007-05-01  Bruno Haible  <bruno@clisp.org>
61211
61212         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61213         configure time.
61214         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61215         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61216         * modules/sys_stat (Makefile.am): Substitute their values into
61217         sys/stat.h.
61218
61219 2007-05-01  Bruno Haible  <bruno@clisp.org>
61220
61221         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61222         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61223         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61224
61225 2007-05-01  Bruno Haible  <bruno@clisp.org>
61226
61227         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61228         'assert' module here.
61229
61230 2007-05-01  Bruno Haible  <bruno@clisp.org>
61231
61232         * doc/functions/*.texi: New files.
61233         * doc/functions/google-ranking.txt: New file.
61234         * doc/gnulib.texi (Function Substitutes): New chapter.
61235         (ctime, inet_ntoa): Remove sections.
61236         * doc/ctime.texi: Remove file.
61237         * doc/inet_ntoa.texi: Remove file.
61238         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61239         dependencies.
61240         (%.info): New rule, specifying a --reference-limit.
61241
61242 2007-05-01  Bruno Haible  <bruno@clisp.org>
61243
61244         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61245
61246 2007-05-01  Bruno Haible  <bruno@clisp.org>
61247
61248         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61249         the portability of 'mkdir' to mingw systems.
61250
61251 2007-05-01  Bruno Haible  <bruno@clisp.org>
61252
61253         * doc/headers/google-ranking.txt: New file.
61254
61255 2007-04-30  Eric Blake  <ebb9@byu.net>
61256
61257         Prefer fseeko to fseek.
61258         * modules/getpass (Depends-on): Add fseeko.
61259         * lib/getpass.c (getpass): Use fseeko, not fseek.
61260
61261 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61262
61263         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61264         assumes the sorting is stable, while most qsort implementations
61265         are not.  Use argument addresses to ensure they never compare as
61266         equal.
61267
61268         * tests/test-argp-2.sh (usage-indent test): Fix output
61269         (func_compare): Restore diff options
61270         * tests/test-argp.c: Restore #include "progname.h"
61271
61272 2007-04-29  Bruno Haible  <bruno@clisp.org>
61273
61274         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61275         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61276         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61277         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61278         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61279         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61280         (TESTS, check_PROGRAMS): Add test-snprintf.
61281         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61282         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61283         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61284         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61285         assertions that fail on HP-UX, OSF/1, or IRIX.
61286         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61287
61288 2007-04-29  Bruno Haible  <bruno@clisp.org>
61289
61290         * MODULES.html.sh (posix_functions): Remove 'contents'.
61291
61292 2007-04-29  Karl Berry  <karl@gnu.org>
61293
61294         * config/srclist.txt (gendocs_template_min): new entry.
61295
61296 2007-04-29  Bruno Haible  <bruno@clisp.org>
61297
61298         Work around fpurge bug on BSD systems.
61299         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61300         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61301         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61302         fpurge to rpl_fpurge if the system already has this function.
61303         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61304         the case where the system already has this function. Correct invariants
61305         on BSD systems.
61306         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61307         BSD systems.
61308
61309 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61310
61311         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61312         proposed by Sven Verdoolaege.
61313
61314         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61315         options.
61316         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61317         (usage and help tests): Update
61318
61319 2007-04-29  Bruno Haible  <bruno@clisp.org>
61320
61321         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61322         Print more information in case of failure. Disable a test on BeOS.
61323
61324 2007-04-29  Bruno Haible  <bruno@clisp.org>
61325
61326         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61327         This helps debugging on systems on which no gdb is available.
61328
61329 2007-04-29  Bruno Haible  <bruno@clisp.org>
61330
61331         * lib/freading.h: Improve comments.
61332         * lib/fwriting.h: Likewise.
61333         * tests/test-freading.c (main): Don't check freading immediately after
61334         repositioning. Needed for glibc.
61335
61336 2007-04-29  Bruno Haible  <bruno@clisp.org>
61337
61338         * lib/freading.c (freading): Trivial simplification.
61339
61340 2007-04-28  Bruno Haible  <bruno@clisp.org>
61341
61342         * tests/test-fwriting.c (main): Also test the interaction between
61343         fflush and fwriting.
61344         * modules/fwriting-tests (Depends-on): Add fflush.
61345
61346         * tests/test-freading.c (main): Also test the interaction between
61347         fflush and freading.
61348         * modules/freading-tests (Depends-on): Add fflush.
61349
61350 2007-04-28  Bruno Haible  <bruno@clisp.org>
61351
61352         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61353         fseeko and ftello.
61354         Suggested by Eric Blake.
61355
61356 2007-04-28  Jim Meyering  <jim@meyering.net>
61357
61358         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61359         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61360         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61361
61362 2007-04-27  Eric Blake  <ebb9@byu.net>
61363
61364         * doc/headers/assert.texi (assert.h): Document assert module use.
61365
61366 2007-04-27  Bruno Haible  <bruno@clisp.org>
61367
61368         * doc/headers/*.texi: New files.
61369         * doc/gnulib.texi (Header File Substitutes): New chapter.
61370         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61371         dependencies.
61372         (standards.info ,standards.html, standards.dvi): Update dependencies.
61373         (mostlyclean, clean): New targets.
61374
61375 2007-04-27  Bruno Haible  <bruno@clisp.org>
61376
61377         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61378         * modules/sysexits (Files, Makefile.am): Update.
61379
61380         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61381         * modules/sys_socket (Files, Makefile.am): Update.
61382
61383         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61384         * modules/sys_stat (Files, Makefile.am): Update.
61385
61386 2007-04-27  Eric Blake  <ebb9@byu.net>
61387
61388         * lib/freading.h: Improve comments.
61389         * lib/fwriting.h: Likewise.
61390         * lib/fflush.c: Likewise.
61391
61392         Fix closein for mingw.
61393         * modules/closein-tests: Add tests for closein.
61394         * tests/test-closein.c: New file.
61395         * tests/test-closein.sh: Likewise.
61396         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61397         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61398
61399 2007-04-27  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61402         version is < 6.
61403         * lib/math_.h [__DECC]: Likewise.
61404         * lib/stdio_.h [__DECC]: Likewise.
61405         * lib/stdlib_.h [__DECC]: Likewise.
61406         * lib/string_.h [__DECC]: Likewise.
61407         * lib/time_.h [__DECC]: Likewise.
61408         * lib/wchar_.h [__DECC]: Likewise.
61409         * lib/wctype_.h [__DECC]: Likewise.
61410
61411 2007-04-27  Bruno Haible  <bruno@clisp.org>
61412
61413         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61414
61415 2007-04-27  Bruno Haible  <bruno@clisp.org>
61416
61417         * lib/fflush.c: Add comments.
61418         * modules/fpurge-tests (Depends-on): Add fflush.
61419         * modules/freadable-tests (Depends-on): Likewise.
61420         * modules/fwritable-tests (Depends-on): Likewise.
61421
61422 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61423
61424         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61425         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61426         Report by Bruno Haible <bruno@clisp.org>.
61427
61428 2007-04-26  Eric Blake  <ebb9@byu.net>
61429
61430         Fix fflush on mingw.
61431         * modules/fflush (Depends-on): Add freading.
61432         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61433         but unread data.
61434
61435 2007-04-26  Eric Blake  <ebb9@byu.net>
61436         and Bruno Haible  <bruno@clisp.org>
61437
61438         Implement freading and fwriting.
61439         * lib/freading.c: New file.
61440         * lib/freading.h: Likewise.
61441         * m4/freading.m4: Likewise.
61442         * modules/freading: Likewise.
61443         * modules/freading-tests: Likewise.
61444         * tests/test-freading.c: Likewise.
61445         * lib/fwriting.c: New file.
61446         * lib/fwriting.h: Likewise.
61447         * m4/fwriting.m4: Likewise.
61448         * modules/fwriting: Likewise.
61449         * modules/fwriting-tests: Likewise.
61450         * tests/test-fwriting.c: Likewise.
61451         * MODULES.html.sh (File stream based Input/Output): Mention them.
61452
61453 2007-04-26  Bruno Haible  <bruno@clisp.org>
61454
61455         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61456         'long' when we assume it.
61457         Suggested by Eric Blake.
61458
61459 2007-04-26  Bruno Haible  <bruno@clisp.org>
61460
61461         Ensure fseeko, ftello are declared on glibc systems.
61462         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61463         * modules/fseeko (configure.ac-early): Likewise.
61464         * modules/ftello (configure.ac-early): Likewise.
61465         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61466         AC_FUNC_FSEEKO for this.
61467         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61468         (gl_CHECK_FSEEKO): Remove macro.
61469
61470 2007-04-26  Bruno Haible  <bruno@clisp.org>
61471
61472         * tests/test-fflush.c (main): Also check the ftell result after
61473         fflush and fseek/fseeko.
61474         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61475         file descriptor position cache in the stream.
61476         * lib/fseeko.c (rpl_fseeko): Likewise.
61477
61478 2007-04-26  Bruno Haible  <bruno@clisp.org>
61479
61480         * modules/fflush-tests (Depends-on): Add fseeko.
61481
61482 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61483             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61484
61485         * lib/argz_.h: ensure error_t definition is obtained in same
61486         mechanism system argz.h would have.
61487         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61488         argz facilities are known bad.  Err on the side of caution if
61489         cross-compiling.
61490
61491 2007-04-25  Eric Blake  <ebb9@byu.net>
61492
61493         * lib/fpurge.c (includes): Use stdlib.h for free.
61494         * tests/test-fflush.c (main): Also test fflush-fseeko.
61495
61496 2007-04-25  Bruno Haible  <bruno@clisp.org>
61497
61498         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61499         * lib/fseeko.c: New file.
61500         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61501         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61502         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61503         gl_FUNC_FSEEKO.
61504         (gl_FUNC_FSEEKO): Invoke it.
61505         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61506         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61507         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61508
61509 2007-04-25  Bruno Haible  <bruno@clisp.org>
61510
61511         * modules/fflush (Depends-on): Add ftello.
61512
61513 2007-04-25  Bruno Haible  <bruno@clisp.org>
61514
61515         * modules/ftello-tests: New file.
61516         * tests/test-ftello.c: New file.
61517
61518         * modules/ftello: New file.
61519         * m4/ftello.m4: New file.
61520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61521         HAVE_FTELLO.
61522         * lib/stdio_.h (ftello): New declaration.
61523         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61524         HAVE_FTELLO.
61525
61526 2007-04-25  Bruno Haible  <bruno@clisp.org>
61527
61528         * modules/fseeko-tests: New file.
61529         * tests/test-fseeko.c: New file.
61530
61531         * modules/fseeko: New file.
61532         * m4/fseeko.m4: New file.
61533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61534         HAVE_FSEEKO.
61535         * lib/stdio_.h (fseeko): New declaration.
61536         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61537         HAVE_FSEEKO.
61538
61539 2007-04-25  Bruno Haible  <bruno@clisp.org>
61540
61541         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61542
61543 2007-04-25  Bruno Haible  <bruno@clisp.org>
61544
61545         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61546         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61547         * tests/test-unistd.c: Likewise.
61548         * tests/test-fcntl.c: Likewise.
61549
61550 2007-04-23  Eric Blake  <ebb9@byu.net>
61551
61552         * lib/fflush.c: Fix missing include.
61553         Reported by Bruno Haible.
61554
61555 2007-04-23  Bruno Haible  <bruno@clisp.org>
61556
61557         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61558         Reported by Eric Blake.
61559
61560 2007-04-23  Bruno Haible  <bruno@clisp.org>
61561
61562         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61563
61564 2007-04-23  Bruno Haible  <bruno@clisp.org>
61565
61566         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61567
61568 2007-04-23  Bruno Haible  <bruno@clisp.org>
61569
61570         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61571         Needed on HP-UX 11.
61572
61573 2007-04-16  Eric Blake  <ebb9@byu.net>
61574
61575         Make fflush rely on fpurge.
61576         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61577         open coding all variants.
61578         * modules/fflush (Depends-on): Add fpurge and unistd.
61579         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61580         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61581
61582         Fix --with-tests compilation on cygwin.
61583         * modules/argmatch-tests (Makefile.am): List gnulib library first
61584         in LDADD.
61585         * modules/argp-tests (Makefile.am): Likewise.
61586         * modules/array-list-tests (Makefile.am): Likewise.
61587         * modules/array-oset-tests (Makefile.am): Likewise.
61588         * modules/avltree-list-tests (Makefile.am): Likewise.
61589         * modules/avltree-oset-tests (Makefile.am): Likewise.
61590         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61591         * modules/carray-list-tests (Makefile.am): Likewise.
61592         * modules/dirname-tests (Makefile.am): Likewise.
61593         * modules/frexp-tests (Makefile.am): Likewise.
61594         * modules/isnanl-tests (Makefile.am): Likewise.
61595         * modules/linked-list-tests (Makefile.am): Likewise.
61596         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61597         * modules/lock-tests (Makefile.am): Likewise.
61598         * modules/rbtree-list-tests (Makefile.am): Likewise.
61599         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61600         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61601         * modules/tls-tests (Makefile.am): Likewise.
61602         * modules/tsearch-tests (Makefile.am): Likewise.
61603         * modules/xvasprintf-tests (Makefile.am): Likewise.
61604
61605         Fix fpurge for cygwin.
61606         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61607         value.
61608         * modules/fpurge-tests (Depends-on): Clean up trash.
61609
61610 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61611
61612         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61613
61614         * m4/autobuild.m4: Re-indent.
61615
61616 2007-04-13  Bruno Haible  <bruno@clisp.org>
61617
61618         * modules/fpurge-tests: New file.
61619         * tests/test-fpurge.c: New file.
61620
61621         * modules/fpurge: New file.
61622         * lib/fpurge.h: New file.
61623         * lib/fpurge.c: New file.
61624         * m4/fpurge.m4: New file.
61625
61626 2007-04-13  Bruno Haible  <bruno@clisp.org>
61627
61628         * modules/fbufmode-tests: New file.
61629         * tests/test-fbufmode.c: New file.
61630
61631         * modules/fbufmode: New file.
61632         * lib/fbufmode.h: New file.
61633         * lib/fbufmode.c: New file.
61634         * m4/fbufmode.m4: New file.
61635
61636 2007-04-13  Bruno Haible  <bruno@clisp.org>
61637
61638         * modules/fwritable-tests: New file.
61639         * tests/test-fwritable.c: New file.
61640
61641         * modules/fwritable: New file.
61642         * lib/fwritable.h: New file.
61643         * lib/fwritable.c: New file.
61644         * m4/fwritable.m4: New file.
61645
61646 2007-04-13  Bruno Haible  <bruno@clisp.org>
61647
61648         * modules/freadable-tests: New file.
61649         * tests/test-freadable.c: New file.
61650
61651         * modules/freadable: New file.
61652         * lib/freadable.h: New file.
61653         * lib/freadable.c: New file.
61654         * m4/freadable.m4: New file.
61655
61656 2007-04-13  Bruno Haible  <bruno@clisp.org>
61657
61658         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61659         MOSTLYCLEANFILES.
61660
61661 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61662
61663         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61664         gzip bootstrap.conf to avoid dragging in i18n machinery.
61665         (gnulib_tool_option): Use it.
61666
61667 2007-04-13  Bruno Haible  <bruno@clisp.org>
61668
61669         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61670         %F directives.
61671         * tests/test-vasprintf-posix.c (test_function): Likewise.
61672         * tests/test-snprintf-posix.h (test_function): Likewise.
61673         * tests/test-sprintf-posix.h (test_function): Likewise.
61674         * tests/test-fprintf-posix.h (test_function): Likewise.
61675         * tests/test-printf-posix.h (test_function): Likewise.
61676         * tests/test-fprintf-posix.out: Likewise.
61677
61678 2007-04-13  Bruno Haible  <bruno@clisp.org>
61679
61680         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61681         * modules/tls-tests (configure.ac): Likewise.
61682         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61683
61684 2007-04-13  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/tls.c (glthread_tls_get): Fix return type.
61687         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61688
61689 2007-04-12  Eric Blake  <ebb9@byu.net>
61690
61691         * modules/gettime (Depends-on): Remove gettime.
61692         Reported by Dmitry V. Levin.
61693
61694 2007-04-12  Bruno Haible  <bruno@clisp.org>
61695
61696         * modules/fflush (Include): Mention <stdio.h>.
61697         * modules/strtoimax (Include): Mention <inttypes.h>.
61698         * modules/strtoumax (Include): Likewise.
61699
61700 2007-04-12  Eric Blake  <ebb9@byu.net>
61701
61702         * .cvsignore: New file.
61703         * .gitignore: Likewise.
61704
61705 2007-04-12  Bruno Haible  <bruno@clisp.org>
61706
61707         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61708         not before, since $(LDADD) often contains libgnu.a.
61709         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61710         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61711         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61712         Needed on Cygwin.
61713
61714 2007-04-12  Eric Blake  <ebb9@byu.net>
61715
61716         Work around glibc's failure to flush stdin on fclose.
61717         * lib/closein.c (close_stdin): Flush stdin before closing.
61718
61719         Work around glibc's failure to reset seekable stdin on exit.
61720         * modules/closein: New module.
61721         * lib/closein.c: New file.
61722         * lib/closein.h: Likewise.
61723         * m4/closein.m4: Likewise.
61724         * MODULES.html.sh (File stream based Input/Output): Document it.
61725
61726 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61727
61728         * gnulib-tool: Rename generated 'autobuild' script to
61729         'do-autobuild' in --create-megatestdir output.
61730
61731         * doc/gnulib.texi (Build robot for gnulib): Fix.
61732
61733 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61734
61735         * modules/sysexits (Depends-on): Add absolute-header.
61736
61737 2007-04-12  Eric Blake  <ebb9@byu.net>
61738
61739         No need to preserve errno on success.
61740         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61741         Reported by Bruno Haible.
61742
61743 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61744
61745         * MODULES.html.sh (Support for maintaining and releasing
61746         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61747
61748 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61749
61750         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61751
61752 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61753
61754         * modules/autobuild: New module.
61755
61756         * m4/autobuild.m4: New file.
61757
61758 2007-04-11  Bruno Haible  <bruno@clisp.org>
61759
61760         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61761         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61762         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61764         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61765         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61766         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61767         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61768         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61769         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61770         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61771         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61772         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61774         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61775         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61777         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61778         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61779         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61780         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61781         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61782         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61783         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61784         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61785         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61786         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61787         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61788         Reported by Eric Blake.
61789
61790 2007-04-11  Bruno Haible  <bruno@clisp.org>
61791
61792         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61793
61794 2007-04-10  Bruno Haible  <bruno@clisp.org>
61795
61796         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61797         for NaN and Infinity. Needed on FreeBSD 6.1.
61798         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61799         regarding results for "%010a" of Infinity and NaN.
61800         * tests/test-vasprintf-posix.c (test_function): Likewise.
61801         * tests/test-snprintf-posix.h (test_function): Likewise.
61802         * tests/test-sprintf-posix.h (test_function): Likewise.
61803         * tests/test-fprintf-posix.h (test_function): Likewise.
61804         * tests/test-printf-posix.h (test_function): Likewise.
61805         * tests/test-fprintf-posix.out: Likewise.
61806
61807 2007-04-10  Bruno Haible  <bruno@clisp.org>
61808
61809         * modules/locale-tests: New file.
61810         * tests/test-locale.c: New file.
61811
61812         * modules/locale: New file.
61813         * lib/locale_.h: New file.
61814         * m4/locale_h.m4: New file.
61815
61816 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61817             Bruno Haible  <bruno@clisp.org>
61818
61819         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61820         be determined, test for availability of the copysignf, copysign,
61821         copysignl functions.
61822         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61823         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61824         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61825
61826 2007-04-09  Eric Blake  <ebb9@byu.net>
61827
61828         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61829         * modules/stdio (Makefile.am): Support fflush.
61830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61831         * modules/fflush: New file.
61832         * lib/fflush.c: Likewise.
61833         * m4/fflush.m4: Likewise.
61834         * modules/fflush-tests: New test.
61835         * tests/test-fflush.c: Likewise.
61836         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61837
61838 2007-04-06  Bruno Haible  <bruno@clisp.org>
61839
61840         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61841         (VASNPRINTF): Use signbit for faster determination whether to print a
61842         minus sign.
61843         * modules/vasnprintf (Files): Remove lib/float+.h.
61844         * modules/fprintf-posix (Depends-on): Add signbit.
61845         * modules/snprintf-posix (Depends-on): Likewise.
61846         * modules/sprintf-posix (Depends-on): Likewise.
61847         * modules/vasnprintf-posix (Depends-on): Likewise.
61848         * modules/vasprintf-posix (Depends-on): Likewise.
61849         * modules/vfprintf-posix (Depends-on): Likewise.
61850         * modules/vsnprintf-posix (Depends-on): Likewise.
61851         * modules/vsprintf-posix (Depends-on): Likewise.
61852
61853 2007-04-06  Bruno Haible  <bruno@clisp.org>
61854
61855         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61856         * tests/test-frexpl.c (main): Likewise.
61857         * tests/test-ldexpl.c (main): Likewise.
61858         * modules/frexp-tests (Depends-on): Add signbit.
61859         * modules/frexpl-tests (Depdends-on): Likewise.
61860         * modules/ldexpl-tests (Depdends-on): Likewise.
61861
61862 2007-04-06  Bruno Haible  <bruno@clisp.org>
61863
61864         * modules/signbit-tests: New file.
61865         * tests/test-signbit.c: New file.
61866
61867         * modules/signbit: New file.
61868         * lib/signbitf.c: New file.
61869         * lib/signbitd.c: New file.
61870         * lib/signbitl.c: New file.
61871         * m4/signbit.m4: New file.
61872         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61873         (signbit): New macro.
61874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61875         REPLACE_SIGNBIT.
61876         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61877         REPLACE_FREXPL into math.h.
61878
61879 2007-04-06  Bruno Haible  <bruno@clisp.org>
61880
61881         * modules/isnanf-nolibm-tests: New file.
61882         * tests/test-isnanf.c: New file.
61883
61884         * modules/isnanf-nolibm: New file.
61885         * lib/isnanf.h: New file.
61886         * lib/isnanf.c: New file.
61887         * lib/isnan.c: Consider the USE_FLOAT macro.
61888         * m4/isnanf.m4: New file.
61889
61890 2007-04-06  Bruno Haible  <bruno@clisp.org>
61891
61892         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61893         (Link): New section.
61894
61895         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61896
61897 2007-04-06  Bruno Haible  <bruno@clisp.org>
61898
61899         Assume the 'long double' type.
61900         * m4/longdouble.m4: Remove file.
61901         * config/srclist.txt: Don't mention longdouble.m4.
61902         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61903         * lib/float+.h: Likewise.
61904         * lib/frexp.c: Likewise.
61905         * lib/printf-args.h: Likewise.
61906         * lib/printf-args.c: Likewise.
61907         * lib/printf-frexp.c: Likewise.
61908         * lib/printf-parse.c: Likewise.
61909         * lib/vasnprintf.c: Likewise.
61910         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61911         * m4/intl.m4: Likewise.
61912         * m4/isnanl.m4: Likewise.
61913         * m4/printf.m4: Likewise.
61914         * m4/printf-frexpl.m4: Likewise.
61915         * m4/vasnprintf.m4: Likewise.
61916         * modules/allocsa (Files): Remove m4/longdouble.m4.
61917         * modules/gettext (Files): Likewise.
61918         * modules/relocatable-prog-wrapper (Files): Likewise.
61919         * modules/vasnprintf (Files): Likewise.
61920         * modules/isnanl (Files): Likewise.
61921         (Include): Simplify.
61922         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61923         (Include): Simplify.
61924         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61925         (Include): Simplify.
61926         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61927         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61928         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61929         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61930         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61931         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61932         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61933         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61934         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61935         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61936         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61937         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61938         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61939         * tests/test-isnanl.c: Likewise.
61940         * tests/test-snprintf-posix.h: Likewise.
61941         * tests/test-sprintf-posix.h: Likewise.
61942         * tests/test-vasnprintf-posix.c: Likewise.
61943         * tests/test-vasnprintf-posix2.c: Likewise.
61944         * tests/test-vasprintf-posix.c: Likewise.
61945
61946 2007-04-06  Bruno Haible  <bruno@clisp.org>
61947
61948         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61949         * lib/math_.h [__DECC]: Include the overridden include file through
61950         #include_next, outside the double-inclusion guard.
61951         * lib/stdio_.h [__DECC]: Likewise.
61952         * lib/stdlib_.h [__DECC]: Likewise.
61953         * lib/string_.h [__DECC]: Likewise.
61954         * lib/time_.h [__DECC]: Likewise.
61955         * lib/wchar_.h [__DECC]: Likewise.
61956         * lib/wctype_.h [__DECC]: Likewise.
61957         * lib/inttypes_.h [__DECC]: Likewise.
61958         Reported by Albert Chin <china@thewrittenword.com> in
61959         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61960
61961 2007-04-04  Eric Blake  <ebb9@byu.net>
61962
61963         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61964         1.5.x.
61965
61966 2007-04-04  Bruno Haible  <bruno@clisp.org>
61967
61968         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61969         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61970
61971 2007-04-04  Bruno Haible  <bruno@clisp.org>
61972
61973         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61974         results for "%010a" of Infinity and NaN.
61975         * tests/test-vasprintf-posix.c (test_function): Likewise.
61976         * tests/test-snprintf-posix.h (test_function): Likewise.
61977         * tests/test-sprintf-posix.h (test_function): Likewise.
61978         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61979         * tests/test-printf-posix.h (test_function): Likewise.
61980         * tests/test-fprintf-posix.out: Update.
61981         Needed for FreeBSD 6.1.
61982
61983 2007-04-04  Bruno Haible  <bruno@clisp.org>
61984
61985         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61986         directly used by the gnulib modules nor by gnulib-tool.
61987
61988 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61989
61990         * DEPENDENCIES: Give overall description of version dependency
61991         desirability.  Use more-typical names for apps.
61992         Add shell, coreutils, diffutils, grep, tar, gzip.
61993
61994 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61995
61996         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61997
61998 2007-04-04  Karl Berry  <karl@gnu.org>
61999
62000         * MODULES.html.sh (func_module): missing '.
62001
62002 2007-04-03  Bruno Haible  <bruno@clisp.org>
62003
62004         * modules/argmatch-tests (Makefile.am): New variable
62005         test_argmatch_LDADD.
62006         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
62007         * modules/array-list-tests (Makefile.am): New variable
62008         test_array_list_LDADD.
62009         * modules/array-oset-tests (Makefile.am): New variable
62010         test_array_oset_LDADD.
62011         * modules/avltree-list-tests (Makefile.am): New variable
62012         test_avltree_list_LDADD.
62013         * modules/avltree-oset-tests (Makefile.am): New variable
62014         test_avltree_oset_LDADD.
62015         * modules/avltreehash-list-tests (Makefile.am): New variable
62016         test_avltreehash_list_LDADD.
62017         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
62018         test_canonicalize_lgpl_LDADD.
62019         * modules/carray-list-tests (Makefile.am): New variable
62020         test_carray_list_LDADD.
62021         * modules/dirname-tests (Makefile.am): New variable
62022         test_dirname_LDADD.
62023         * modules/linked-list-tests (Makefile.am): New variable
62024         test_linked_list_LDADD.
62025         * modules/linkedhash-list-tests (Makefile.am): New variable
62026         test_linkedhash_list_LDADD.
62027         * modules/rbtree-list-tests (Makefile.am): New variable
62028         test_rbtree_list_LDADD.
62029         * modules/rbtree-oset-tests (Makefile.am): New variable
62030         test_rbtree_oset_LDADD.
62031         * modules/rbtreehash-list-tests (Makefile.am): New variable
62032         test_rbtreehash_list_LDADD.
62033         * modules/xvasprintf-tests (Makefile.am): New variable
62034         test_xvasprintf_LDADD.
62035         Reported by Eric Blake.
62036
62037 2007-04-03  Eric Blake  <ebb9@byu.net>
62038
62039         * DEPENDENCIES: Weaken m4 requirements.
62040
62041 2007-04-03  Bruno Haible  <bruno@clisp.org>
62042
62043         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62044         * modules/isnanl-tests (configure.ac): Likewise.
62045
62046 2007-04-03  Ben Pfaff  <blp@gnu.org>
62047
62048         * modules/iconv_open: Add $(srcdir)/ to source directory
62049         references in Makefile fragments that call gperf, to fix VPATH
62050         builds.
62051
62052 2007-04-03  Bruno Haible  <bruno@clisp.org>
62053
62054         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62055         * lib/ldexpl.c: Undo last change.
62056
62057 2007-04-03  Bruno Haible  <bruno@clisp.org>
62058
62059         * modules/printf-frexpl (Depends-on): Undo last change.
62060         (Files): Add m4/ldexpl.m4.
62061
62062 2007-04-03  Bruno Haible  <bruno@clisp.org>
62063
62064         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62065         * modules/isnanl (Link): New section.
62066
62067         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62068         * modules/frexp (Link): New section.
62069
62070         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62071         * modules/frexpl (Link): New section.
62072
62073         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62074         * modules/ldexpl (Link): New section.
62075
62076 2007-04-03  Bruno Haible  <bruno@clisp.org>
62077
62078         * modules/TEMPLATE-EXTENDED: New file.
62079         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62080
62081 2007-04-03  Bruno Haible  <bruno@clisp.org>
62082
62083         * DEPENDENCIES: New file.
62084         Suggested by Simon Josefsson.
62085
62086 2007-04-03  Bruno Haible  <bruno@clisp.org>
62087
62088         * doc/gnulib.texi: Escape @.
62089
62090 2007-04-03  James Youngman  <jay@gnu.org>
62091         and Paul Eggert  <eggert@cs.ucla.edu>
62092
62093         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62094         birthtime on all systems that have birthtime, not just those which
62095         use st_birthtimensec rather than st_birthtim.  Putting zero in
62096         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62097         that the birth time is not available for files on an NFS mount.
62098
62099 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62100
62101         * modules/memxor: Move back from crypto/, suggested by Bruno.
62102         * modules/crypto/hmac-sha1: Fix memxor dependency.
62103
62104         * modules/crypto/gc: Moved from ../.
62105
62106 2007-04-02  Eric Blake  <ebb9@byu.net>
62107
62108         * lib/ldexpl.c (includes): Avoid libm.
62109
62110         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62111
62112 2007-04-02  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62115         on IRIX.
62116
62117 2007-04-02  Bruno Haible  <bruno@clisp.org>
62118
62119         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62120         x86 or x86_64 platforms running MacOS X.
62121         Reported by Ryan Schmidt <@ryandesign.com>.
62122
62123 2007-04-02  Bruno Haible  <bruno@clisp.org>
62124
62125         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62126         i386.
62127
62128 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62129
62130         * modules/crypto/arcfour: Moved from ../.
62131         * modules/crypto/arcfour-tests: Moved from ../.
62132         * modules/crypto/arctwo: Moved from ../.
62133         * modules/crypto/arctwo-tests: Moved from ../.
62134         * modules/crypto/des: Moved from ../.
62135         * modules/crypto/des-tests: Moved from ../.
62136         * modules/crypto/gc-arcfour: Moved from ../.
62137         * modules/crypto/gc-arcfour-tests: Moved from ../.
62138         * modules/crypto/gc-arctwo: Moved from ../.
62139         * modules/crypto/gc-arctwo-tests: Moved from ../.
62140         * modules/crypto/gc-des: Moved from ../.
62141         * modules/crypto/gc-des-tests: Moved from ../.
62142         * modules/crypto/gc-hmac-md5: Moved from ../.
62143         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62144         * modules/crypto/gc-hmac-sha1: Moved from ../.
62145         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62146         * modules/crypto/gc-md2: Moved from ../.
62147         * modules/crypto/gc-md2-tests: Moved from ../.
62148         * modules/crypto/gc-md4: Moved from ../.
62149         * modules/crypto/gc-md4-tests: Moved from ../.
62150         * modules/crypto/gc-md5: Moved from ../.
62151         * modules/crypto/gc-md5-tests: Moved from ../.
62152         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62153         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62154         * modules/crypto/gc-random: Moved from ../.
62155         * modules/crypto/gc-rijndael: Moved from ../.
62156         * modules/crypto/gc-rijndael-tests: Moved from ../.
62157         * modules/crypto/gc-sha1: Moved from ../.
62158         * modules/crypto/gc-sha1-tests: Moved from ../.
62159         * modules/crypto/gc-tests: Moved from ../.
62160         * modules/crypto/hmac-md5: Moved from ../.
62161         * modules/crypto/hmac-md5-tests: Moved from ../.
62162         * modules/crypto/hmac-sha1: Moved from ../.
62163         * modules/crypto/hmac-sha1-tests: Moved from ../.
62164         * modules/crypto/md2: Moved from ../.
62165         * modules/crypto/md2-tests: Moved from ../.
62166         * modules/crypto/md4: Moved from ../.
62167         * modules/crypto/md4-tests: Moved from ../.
62168         * modules/crypto/md5: Moved from ../.
62169         * modules/crypto/md5-tests: Moved from ../.
62170         * modules/crypto/memxor: Moved from ../.
62171         * modules/crypto/rijndael: Moved from ../.
62172         * modules/crypto/rijndael-tests: Moved from ../.
62173         * modules/crypto/sha1: Moved from ../.
62174
62175 2007-03-30  James Youngman  <jay@gnu.org>
62176
62177         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62178         rename() to change the ctime of a file (because ctime is unaffected
62179         by rename on jfs2 on AIX 5.1).
62180         (main): Start by doing cleanup, in case a previous run failed leaving
62181         test files behind.
62182
62183 2007-03-31  Bruno Haible  <bruno@clisp.org>
62184
62185         Support old proprietary implementations of iconv.
62186         * modules/iconv_open: New file.
62187         * lib/iconv_.h: New file.
62188         * m4/iconv_h.m4: New file.
62189         * lib/iconv_open.c: New file.
62190         * lib/iconv_open-aix.gperf: New file.
62191         * lib/iconv_open-hpux.gperf: New file.
62192         * lib/iconv_open-irix.gperf: New file.
62193         * lib/iconv_open-osf.gperf: New file.
62194         * m4/iconv_open.m4: New file.
62195         * modules/linebreak (Depends-on): Add iconv_open.
62196         * modules/striconv (Depends-on): Likewise.
62197         * modules/striconveh (Depends-on): Likewise.
62198         * modules/unicodeio (Depends-on): Likewise.
62199         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62200         (iconv_t)(-1).
62201         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62202         conversion if cd is (iconv_t)(-1).
62203         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62204         is not possible.
62205
62206 2007-03-31  Bruno Haible  <bruno@clisp.org>
62207
62208         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62209         work on Solaris either. Protect also second use of "autodetect_jp".
62210
62211 2007-03-31  Bruno Haible  <bruno@clisp.org>
62212
62213         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62214         the function is not present.
62215
62216 2007-03-31  Bruno Haible  <bruno@clisp.org>
62217
62218         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62219         the function is not present.
62220
62221 2007-03-31  Bruno Haible  <bruno@clisp.org>
62222
62223         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62224         a bug in HP-UX iconv_open().
62225
62226 2007-03-31  Bruno Haible  <bruno@clisp.org>
62227
62228         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62229         (Mathematics <math.h>): New section, add fpieee.
62230         (Input/output <stdio.h>): Add fseterr.
62231         (Mathematics <math.h>): New section, add printf-frexp.
62232         (Container data structures): Add sublist.
62233         (Core language properties): Add fpucw, inline.
62234         (Functions for greatest-width integer types <inttypes.h>): Add
62235         imaxabs, imaxdiv, inttypes.
62236         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62237         isnanl-nolibm, ldexp.
62238         (Mathematics <math.h>): New section, add printf-frexpl.
62239         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62240         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62241         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62242         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62243         (Unicode string functions): Add unistr/u*-mbtoucr.
62244         (Java): Add javacomp-script, javaexec-script.
62245         (C#): Add csharpcomp-script, csharpexec-script.
62246         (Support for building libraries and executables): Add havelib,
62247         relocatable-*.
62248         (Support for maintaining and releasing projects): Renamed from
62249         'Support for maintaining and release projects'. Add announce-gen.
62250
62251 2007-03-31  Bruno Haible  <bruno@clisp.org>
62252
62253         * README: Talk primarily about git.
62254         (git and CVS): Renamed from CVS.
62255         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62256         gnulib is available through git.
62257         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62258
62259 2007-03-30  Bruno Haible  <bruno@clisp.org>
62260
62261         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62262         * lib/poll_.h: Likewise.
62263         * lib/stat_.h: Likewise.
62264         * lib/sys_time_.h: Likewise.
62265         * lib/sysexit_.h: Likewise.
62266         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62267         * lib/stdbool_.h: Likewise.
62268         * lib/byteswap_.h: Add double-inclusion guard.
62269
62270 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62271
62272         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62273
62274 2007-03-30  Karl Berry  <karl@gnu.org>
62275
62276         * config/srclist-update: double space after USA in the license
62277         substitution, since that's how it's usually (?) written.
62278
62279 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62280
62281         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62282         reported by Bruno Haible.
62283
62284 2007-03-29  Bruno Haible  <bruno@clisp.org>
62285
62286         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62287         a bug in AIX iconv().
62288
62289 2007-03-29  Bruno Haible  <bruno@clisp.org>
62290
62291         * modules/ldexpl-tests: New file.
62292         * tests/test-ldexpl.c: New file.
62293
62294 2007-03-29  Bruno Haible  <bruno@clisp.org>
62295
62296         * lib/ldexpl.c: Include fpucw.h.
62297         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62298         multiplication.
62299         * modules/ldexpl (Depends-on): Add fpucw.
62300
62301 2007-03-29  Bruno Haible  <bruno@clisp.org>
62302
62303         * modules/ldexpl: New file.
62304         * m4/ldexpl.m4: New file.
62305         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62306         set.
62307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62308         REPLACE_LDEXPL.
62309         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62310         REPLACE_LDEXPL.
62311         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62312         gl_FUNC_LDEXPL_WORKS.
62313         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62314         * modules/mathl (Files): Remove lib/ldexpl.c.
62315         (Depends-on): Add ldexpl.
62316
62317 2007-03-29  Bruno Haible  <bruno@clisp.org>
62318
62319         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62320
62321 2007-03-29  Bruno Haible  <bruno@clisp.org>
62322
62323         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62324         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62325         and possibly also HP-UX.
62326         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62327         work on AIX, IRIX, HP-UX, OSF/1.
62328         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62329         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62330         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62331         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62332         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62333         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62334
62335 2007-03-29  Bruno Haible  <bruno@clisp.org>
62336
62337         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62338
62339 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62340
62341         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62342         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62343
62344 2007-03-29  Eric Blake  <ebb9@byu.net>
62345
62346         * lib/acl-internal.h: Remove redundant include.
62347         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62348         Cygwin when a file is locked.
62349
62350 2007-03-29  Bruno Haible  <bruno@clisp.org>
62351
62352         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62353         file.
62354         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62355
62356 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62357
62358         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62359         try to remove a parent directory if the child couldn't be removed
62360         (except for the first rmdir, which could fail because the child
62361         doesn't exist).  Problem reported by Jeff Blaine in
62362         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62363
62364 2007-03-28  Bruno Haible  <bruno@clisp.org>
62365
62366         * lib/striconveh.c (utf8conv_carefully): New function.
62367         (mem_cd_iconveh_internal): Invoke it.
62368
62369 2007-03-28  Bruno Haible  <bruno@clisp.org>
62370
62371         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62372         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62373         input.
62374         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62375         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62376         unistr/u8-uctomb.
62377
62378 2007-03-28  Bruno Haible  <bruno@clisp.org>
62379
62380         * modules/unistr/u8-mbtoucr: New file.
62381         * lib/unistr/u8-mbtoucr.c: New file.
62382         * modules/unistr/u16-mbtoucr: New file.
62383         * lib/unistr/u16-mbtoucr.c: New file.
62384         * modules/unistr/u16-mbtoucr: New file.
62385         * lib/unistr/u16-mbtoucr.c: New file.
62386         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62387
62388 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62389             Bruno Haible  <bruno@clisp.org>
62390
62391         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62392         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62393         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62394
62395         * m4/stdio_h.m4: Add stubs for vasprintf too.
62396
62397         * modules/stdio: Support vasprintf in sed command.
62398
62399         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62400         vasprintf.h.  Add stdio module indicator.
62401
62402         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62403         vasprintf.h.
62404
62405         * lib/vasprintf.h: File removed.
62406
62407         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62408         * lib/vasprintf.c: Ditto.
62409         * lib/xvasprintf.c: Ditto.
62410         * tests/test-vasprintf-posix.c: Ditto.
62411         * tests/test-vasprintf.c: Ditto.
62412
62413 2007-03-27  Bruno Haible  <bruno@clisp.org>
62414
62415         Make vasnprintf multithread-safe.
62416         * lib/vasnprintf.c (decimal_point_char): New function.
62417         (VASNPRINTF): Use it.
62418         Suggested by Simon Josefsson.
62419
62420 2007-03-27  Eric Blake  <ebb9@byu.net>
62421
62422         Support sub-second birthtime on cygwin.
62423         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62424         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62425         (get_stat_birthtime): Also work with st_birthtim.
62426
62427 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62428
62429         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62430         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62431         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62432         (get_stat_birthtime_ns): Simplify compile-time tests.
62433         (get_stat_birthtime): Change the API to look like
62434         get_stat_mtime etc., except return a negative tv_nsec on error.
62435         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62436         Don't check for "spare" fields.
62437         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62438         or for struct stat.st_birthtime, as these tests aren't used.
62439         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62440
62441 2007-03-27  Bruno Haible  <bruno@clisp.org>
62442
62443         * lib/stat-time.h: Include <sys/stat.h>.
62444
62445 2007-03-27  James Youngman  <jay@gnu.org>
62446
62447         * lib/stat-time.h (get_stat_birthtime): New function for
62448           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62449         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62450           and its variants.
62451         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62452         * modules/stat-time-test: New file.
62453         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62454
62455 2007-03-26  Bruno Haible  <bruno@clisp.org>
62456
62457         Better support of signalling NaNs.
62458         * lib/atanl.c: Include isnanl.h.
62459         (atanl): Perform test for NaN at the beginning of the function and
62460         through a call to isnanl.
62461         * lib/cosl.c: Include isnanl.h.
62462         (cosl): Perform test for NaN at the beginning of the function and
62463         through a call to isnanl.
62464         * lib/ldexpl.c: Include isnanl.h.
62465         (ldexpl): Perform test for NaN through a call to isnanl.
62466         * lib/logl.c: Include isnanl.h.
62467         (logl): Perform test for NaN at the beginning of the function and
62468         through a call to isnanl.
62469         * lib/sinl.c: Include isnanl.h.
62470         (sinl): Perform test for NaN at the beginning of the function and
62471         through a call to isnanl.
62472         * lib/sqrtl.c: Include isnanl.h.
62473         (sqrtl): Perform test for NaN at the beginning of the function and
62474         through a call to isnanl.
62475         * lib/tanl.c: Include isnanl.h.
62476         (tanl): Perform test for NaN at the beginning of the function and
62477         through a call to isnanl.
62478         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62479         * modules/mathl (Depends-on): Add isnanl.
62480
62481 2007-03-26  Eric Blake  <ebb9@byu.net>
62482
62483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62484         regression in logic sense of previous patch.
62485
62486 2007-03-26  Bruno Haible  <bruno@clisp.org>
62487
62488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62489         unportable shell command "if ! ...".
62490         Reported by Ralf Wildenhues.
62491
62492 2007-03-25  Bruno Haible  <bruno@clisp.org>
62493
62494         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62495         <sysexits.h> file, and only add EX_CONFIG.
62496         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62497         absolute file name and whether it is sufficient. Substitute also
62498         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62499         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62500         ABSOLUTE_SYSEXITS_H into sysexits.h.
62501
62502 2007-03-25  Bruno Haible  <bruno@clisp.org>
62503
62504         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62505         hints is NULL.
62506
62507 2007-03-25  Bruno Haible  <bruno@clisp.org>
62508
62509         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62510         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62511
62512 2007-03-25  Bruno Haible  <bruno@clisp.org>
62513
62514         * lib/vasnprintf.c: Include langinfo.h.
62515         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62516         multithread-safe.
62517         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62518         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62520         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62521         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62523         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62526         Reported by Simon Josefsson.
62527
62528 2007-03-25  Bruno Haible  <bruno@clisp.org>
62529
62530         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62531         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62532         * modules/vasnprintf (Depends-on): Add stdint.
62533
62534 2007-03-25  Bruno Haible  <bruno@clisp.org>
62535
62536         * modules/fpieee: New file.
62537         * m4/fpieee.m4: New file.
62538         * modules/isnan-nolibm (Depends-on): Add fpieee.
62539         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62540         * modules/isnanl (Depends-on): Add fpieee.
62541
62542 2007-03-25  Bruno Haible  <bruno@clisp.org>
62543
62544         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62545
62546 2007-03-25  Bruno Haible  <bruno@clisp.org>
62547
62548         Avoid test failures on IRIX 6.5.
62549         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62550         (main): Use it.
62551         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62552         macros.
62553         (main): Use them.
62554
62555 2007-03-25  Bruno Haible  <bruno@clisp.org>
62556
62557         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62558         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62559         exists but doesn't work.
62560         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62561         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62563         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62564         math.h.
62565
62566 2007-03-25  Bruno Haible  <bruno@clisp.org>
62567
62568         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62569         returns inf. Needed on IRIX 6.5.
62570
62571 2007-03-25  Bruno Haible  <bruno@clisp.org>
62572
62573         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62574         (main): Use isnanl instead of x != x idiom.
62575         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62576
62577         * tests/test-frexp.c: Include isnan.h.
62578         (main): Use isnan instead of x != x idiom.
62579         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62580
62581 2007-03-25  Bruno Haible  <bruno@clisp.org>
62582
62583         * tests/test-frexp.c (NaN): New function/macro.
62584         (main): Use it instead of 0.0 / 0.0.
62585         * tests/test-isnan.c (NaN): New function/macro.
62586         (main): Use it instead of 0.0 / 0.0.
62587         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62588         (test_function): Use it instead of 0.0 / 0.0.
62589         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62590         (test_function): Use it instead of 0.0 / 0.0.
62591         * tests/test-snprintf-posix.h (NaN): New function/macro.
62592         (test_function): Use it instead of 0.0 / 0.0.
62593         * tests/test-sprintf-posix.h (NaN): New function/macro.
62594         (test_function): Use it instead of 0.0 / 0.0.
62595         * tests/test-fprintf-posix.h (NaN): New function/macro.
62596         (test_function): Use it instead of 0.0 / 0.0.
62597         * tests/test-printf-posix.h (NaN): New function/macro.
62598         (test_function): Use it instead of 0.0 / 0.0.
62599
62600         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62601
62602 2007-03-25  Bruno Haible  <bruno@clisp.org>
62603
62604         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62605
62606 2007-03-25  Bruno Haible  <bruno@clisp.org>
62607
62608         * lib/regexec.c (merge_state_with_log): Make static.
62609
62610 2007-03-25  Bruno Haible  <bruno@clisp.org>
62611
62612         * lib/trigl.c (kernel_rem_pio2): Make static.
62613
62614 2007-03-25  Bruno Haible  <bruno@clisp.org>
62615
62616         * lib/sincosl.c (sincosl_table): Make static.
62617
62618 2007-03-25  Bruno Haible  <bruno@clisp.org>
62619
62620         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62621         if the compiler does not support C99.
62622
62623 2007-03-25  Bruno Haible  <bruno@clisp.org>
62624
62625         * modules/time (Makefile.am): Ensure all rule action lines start with a
62626         tab.
62627
62628 2007-03-24  Bruno Haible  <bruno@clisp.org>
62629
62630         * modules/tsearch-tests: New file.
62631         * tests/test-tsearch.sh: New file.
62632         * tests/test-tsearch.c: New file, mostly copied from glibc.
62633
62634         * modules/search-tests: New file.
62635         * tests/test-search.c: New file.
62636
62637         * modules/search: New file.
62638         * lib/search_.h: New file, incorporating lib/tsearch.h.
62639         * m4/search_h.m4: New file.
62640         * lib/tsearch.h: Remove file.
62641         * lib/tsearch.c: Include search.h instead of tsearch.h.
62642         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62643         HAVE_TSEARCH.
62644         * modules/tsearch (Files): Remove lib/tsearch.h.
62645         (Depends-on): Add search.
62646         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62647         (Include): Change tsearch.h into search.h.
62648
62649 2007-03-24  Bruno Haible  <bruno@clisp.org>
62650
62651         * modules/fpucw: New file.
62652         * lib/fpucw.h: New file.
62653         * lib/frexp.c: Include fpucw.h.
62654         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62655         (FUNC): Use them.
62656         * lib/printf-frexp.c: Include fpucw.h.
62657         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62658         (FUNC): Use them.
62659         * lib/vasnprintf.c: Include fpucw.h.
62660         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62661         'long double' calculations.
62662         * tests/test-frexpl.c: Include fpucw.h.
62663         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62664         * tests/test-printf-frexpl.c: Include fpucw.h.
62665         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62666         * modules/frexpl (Depends-on): Add fpucw.
62667         * modules/printf-frexpl (Depends-on): Likewise.
62668         * modules/fprintf-posix (Depends-on): Likewise.
62669         * modules/snprintf-posix (Depends-on): Likewise.
62670         * modules/sprintf-posix (Depends-on): Likewise.
62671         * modules/vasnprintf-posix (Depends-on): Likewise.
62672         * modules/vasprintf-posix (Depends-on): Likewise.
62673         * modules/vfprintf-posix (Depends-on): Likewise.
62674         * modules/vsnprintf-posix (Depends-on): Likewise.
62675         * modules/vsprintf-posix (Depends-on): Likewise.
62676         * modules/frexpl-tests (Depends-on): Likewise.
62677         * modules/printf-frexpl-tests (Depends-on): Likewise.
62678
62679 2007-03-24  Bruno Haible  <bruno@clisp.org>
62680
62681         * lib/float+.h: New file.
62682         * lib/isnan.c: Include float+.h.
62683         (SIZE): New macro.
62684         (FUNC): Compare only SIZE bytes of the value.
62685         * lib/vasnprintf.c: Include float+.h.
62686         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62687         SIZEOF_LDBL or SIZEOF_DBL bytes.
62688         * modules/isnan-nolibm (Files): Add lib/float+.h.
62689         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62690         * modules/isnanl (Files): Add lib/float+.h.
62691         * modules/vasnprintf (Files): Add lib/float+.h.
62692
62693 2007-03-24  Bruno Haible  <bruno@clisp.org>
62694
62695         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62696         include isnanl-nolibm.h.
62697
62698 2007-03-24  Bruno Haible  <bruno@clisp.org>
62699
62700         * tests/test-read-file.c (main): Don't produce spurious output for
62701         expected situations. Make the test fail if it encountered unexpected
62702         results.
62703
62704 2007-03-24  Bruno Haible  <bruno@clisp.org>
62705
62706         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62707         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62708
62709 2007-03-24  Bruno Haible  <bruno@clisp.org>
62710
62711         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62712
62713 2007-03-24  Bruno Haible  <bruno@clisp.org>
62714
62715         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62716         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62717
62718         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62719         * modules/utf8-ucs4: Turn into a symbolic link to module
62720         unistr/u8-mbtouc.
62721
62722         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62723         utf8-ucs4-unsafe.
62724         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62725         unistr/u8-mbtouc-unsafe.
62726
62727         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62728         * modules/utf16-ucs4: Turn into a symbolic link to module
62729         unistr/u16-mbtouc.
62730
62731         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62732         utf16-ucs4-unsafe.
62733         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62734         unistr/u16-mbtouc-unsafe.
62735
62736         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62737         * modules/ucs4-utf8: Turn into a symbolic link to module
62738         unistr/u8-ubtomb.
62739
62740         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62741         * modules/ucs4-utf16: Turn into a symbolic link to module
62742         unistr/u16-ubtomb.
62743
62744 2007-03-24  Bruno Haible  <bruno@clisp.org>
62745
62746         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62747         Enable the function only if HAVE_INLINE.
62748         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62749         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62750         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62751         Enable the function only if HAVE_INLINE.
62752         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62753         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62754         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62755         Enable the function only if HAVE_INLINE.
62756         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62757         Enable the function only if HAVE_INLINE.
62758         * modules/utf8-ucs4: Update.
62759         * modules/utf8-ucs4-unsafe: Update.
62760         * modules/utf16-ucs4: Update.
62761         * modules/utf16-ucs4-unsafe: Update.
62762         * modules/ucs4-utf8: Update.
62763         * modules/ucs4-utf16: Update.
62764
62765 2007-03-24  Bruno Haible  <bruno@clisp.org>
62766
62767         * lib/utf8-ucs4.h: Remove file.
62768         * lib/utf8-ucs4-unsafe.h: Remove file.
62769         * lib/utf16-ucs4.h: Remove file.
62770         * lib/utf16-ucs4-unsafe.h: Remove file.
62771         * lib/ucs4-utf8.h: Remove file.
62772         * lib/ucs4-utf16.h: Remove file.
62773         * lib/unistr.h: Include their previous contents.
62774         * m4/utf-ucs4.m4: Remove file.
62775         * m4/ucs4-utf.m4: Remove file.
62776         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62777         (Depends-on): Add unistr/base.
62778         (configure.ac): Remove gl_UTF_UCS4.
62779         (Makefile.am): Update.
62780         (Include): Change to unistr.h.
62781         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62782         (Depends-on): Add unistr/base.
62783         (configure.ac): Remove gl_UTF_UCS4.
62784         (Makefile.am): Update.
62785         (Include): Change to unistr.h.
62786         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62787         (Depends-on): Add unistr/base.
62788         (configure.ac): Remove gl_UTF_UCS4.
62789         (Makefile.am): Update.
62790         (Include): Change to unistr.h.
62791         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62792         (Depends-on): Add unistr/base.
62793         (configure.ac): Remove gl_UTF_UCS4.
62794         (Makefile.am): Update.
62795         (Include): Change to unistr.h.
62796         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62797         (Depends-on): Add unistr/base.
62798         (configure.ac): Remove gl_UCS4_UTF.
62799         (Makefile.am): Update.
62800         (Include): Change to unistr.h.
62801         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62802         (Depends-on): Add unistr/base.
62803         (configure.ac): Remove gl_UCS4_UTF.
62804         (Makefile.am): Update.
62805         (Include): Change to unistr.h.
62806         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62807         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62808         utf8-ucs4-unsafe.h.
62809         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62810         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62811         utf16-ucs4-unsafe.h.
62812         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62813         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62814         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62815         * lib/unistr/u8-strchr.c: Likewise.
62816         * lib/unistr/u8-strrchr.c: Likewise.
62817         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62818         * lib/unistr/u16-strchr.c: Likewise.
62819         * lib/unistr/u16-strrchr.c: Likewise.
62820         * lib/striconveh.c: Update.
62821         * lib/linebreak.c: Update.
62822
62823 2007-03-24  Bruno Haible  <bruno@clisp.org>
62824
62825         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62826         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62827
62828 2007-03-22  Bruno Haible  <bruno@clisp.org>
62829
62830         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62831
62832 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62833
62834         * MODULES.html.sh (File system functions): New module write-any-file.
62835         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62836         * m4/write-any-file.m4: New files.
62837
62838 2007-03-23  Eric Blake  <ebb9@byu.net>
62839
62840         * gnulib-tool: Rearrange space-tab sequences, since some editors
62841         like to eat them.
62842
62843 2007-03-23  Eric Blake  <ebb9@byu.net>
62844
62845         * lib/version-etc.c (version_etc_va): Update license wording to
62846         be more concise.  Recommended by Richard Stallman.
62847
62848 2007-03-22  Bruno Haible  <bruno@clisp.org>
62849
62850         * lib/poll.c (MSG_PEEK): New fallback definition.
62851
62852 2007-03-22  Bruno Haible  <bruno@clisp.org>
62853
62854         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62855         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62856         (main): Update.
62857         Fixes a compilation error on BeOS.
62858
62859 2007-03-22  Bruno Haible  <bruno@clisp.org>
62860
62861         * modules/frexpl-tests: New file.
62862         * tests/test-frexpl.c: New file.
62863
62864         * modules/frexpl: New file.
62865         * m4/frexpl.m4: New file.
62866         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62867         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62869         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62870         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62871         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62872
62873 2007-03-22  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/frexpl.c: Share code with lib/frexp.c.
62876         * modules/mathl (Files): Add lib/frexp.c.
62877         (Depends-on): Add isnanl-nolibm.
62878
62879 2007-03-22  Bruno Haible  <bruno@clisp.org>
62880
62881         * modules/printf-frexp (Files): Add m4/frexp.m4.
62882         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62883         only if the found frexp function actually works.
62884
62885 2007-03-22  Bruno Haible  <bruno@clisp.org>
62886
62887         * lib/frexp.c: Remove older implementation that uses divisions.
62888
62889 2007-03-21  Bruno Haible  <bruno@clisp.org>
62890
62891         * modules/frexp-tests: New file.
62892         * tests/test-frexp.c: New file.
62893
62894         * modules/frexp: New file.
62895         * lib/frexp.c: New file.
62896         * m4/frexp.m4: New file.
62897         * lib/math_.h (frexp): New declaration.
62898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62899         REPLACE_FREXP.
62900         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62901
62902 2007-03-21  Bruno Haible  <bruno@clisp.org>
62903
62904         * modules/isnanl-tests: New file.
62905         * tests/test-isnanl.c: New file.
62906
62907         * modules/isnanl: New file.
62908         * lib/isnanl.h: New file.
62909         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62910         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62911         gl_FUNC_ISNANL_WORKS.
62912         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62913         New macros.
62914
62915 2007-03-21  Bruno Haible  <bruno@clisp.org>
62916
62917         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62918         lib/isnanl.h.
62919         (Include): Update.
62920         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62921         * lib/vasnprintf.c: Update.
62922         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62923         tests/test-isnanl.h, remove tests/test-isnanl.c.
62924         (Makefile.am): Update.
62925         * tests/test-isnanl-nolibm.c: New file.
62926         * tests/test-isnanl.h: New file.
62927         * tests/test-isnanl.c: Remove file.
62928
62929 2007-03-21  Jim Meyering  <jim@meyering.net>
62930
62931         When trying to open ".", treat ESTALE like EACCES.
62932         * lib/savewd.c (savewd_save): Resort to forking not just upon
62933         failure with EACCES, but also when errno is ESTALE.
62934
62935 2007-03-20  Bruno Haible  <bruno@clisp.org>
62936
62937         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62938         Needed on AIX 5.1. Reported by Matthew Woehlke.
62939
62940 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62941
62942         Suggestions by Bruno Haible:
62943         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62944         our own.
62945         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62946         * modules/acl (Depends-on): Add gettext.
62947
62948 2007-03-19  Bruno Haible  <bruno@clisp.org>
62949
62950         * modules/iconvme: Remove file.
62951         * lib/iconvme.h: Remove file.
62952         * lib/iconvme.c: Remove file.
62953         * m4/iconvme.m4: Remove file.
62954
62955 2007-03-19  Bruno Haible  <bruno@clisp.org>
62956
62957         * doc/relocatable-maint.texi: Break long shell script line.
62958         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62959
62960 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62961
62962         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62963         handle file_has_acl.
62964         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62965         * lib/acl.c: Move header inclusions and related macro defns into
62966         lib/acl-internal.h.
62967         (S_ISLNK): Remove defn, since that's now done for us.
62968         (file_has_acl): Move to lib/file-has-acl.c.
62969         Call acl_trivial if available.  This is the crucial part of the fix.
62970         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62971         shared within the library.  Rewrite a bit, partly to make it compatible
62972         with the GNU coding style.
62973         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62974         Remove unnecessary double-quotes.
62975         Don't test for acl_to_text; the build will catch that.
62976         Replace acl_entries if it doesn't exist and it is needed.
62977         Check for -lsec and acl_trivial (as used on Solaris 10).
62978         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62979         lib/file-has-acl.c.
62980         (Depends-on): Add sys_stat, for S_ISLNK.
62981
62982 2007-03-19  Ben Pfaff  <blp@gnu.org>
62983
62984         * doc/gnulib.texi: Fix typos.
62985         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62986
62987 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62988
62989         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62990         If size is zero here, buf must be zero.
62991
62992 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62993
62994         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62995         <bruno@clisp.org>.
62996
62997 2007-03-18  Bruno Haible  <bruno@clisp.org>
62998
62999         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
63000         Suggested by Eric Blake.
63001
63002 2007-03-18  Ben Pfaff  <blp@gnu.org>
63003
63004         * doc/relocatable.texi: Recommend using as prefix a directory
63005         that does not exist and will never be created.  Based on
63006         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
63007         and others.
63008
63009 2007-03-17  Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/fchownat.c: Include lchown.h.
63012
63013 2007-03-17  Bruno Haible  <bruno@clisp.org>
63014
63015         Fix endless loop when the given allocated size was > INT_MAX.
63016         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
63017         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
63018         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
63019         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
63020         * lib/sprintf.c (sprintf): Likewise.
63021
63022 2007-03-17  Bruno Haible  <bruno@clisp.org>
63023
63024         * tests/test-argp-2.sh (func_compare): Output a context diff.
63025
63026 2007-03-17  Bruno Haible  <bruno@clisp.org>
63027
63028         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
63029         locale's decimal-point character.
63030
63031 2007-03-17  Bruno Haible  <bruno@clisp.org>
63032
63033         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
63034         before comparing it. Needed because on some platforms (e.g. x86) a
63035         'long double' occupies less bytes than sizeof (long double).
63036
63037 2007-03-17  Bruno Haible  <bruno@clisp.org>
63038
63039         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63040         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63041         * tests/test-getaddrinfo.c (simple): Likewise.
63042         * tests/test-read-file.c (main): Likewise.
63043
63044 2007-03-17  Bruno Haible  <bruno@clisp.org>
63045
63046         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63047
63048 2007-03-17  Bruno Haible  <bruno@clisp.org>
63049
63050         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63051         unused variable.
63052
63053 2007-03-17  Bruno Haible  <bruno@clisp.org>
63054
63055         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63056         * tests/test-c-strncasecmp.c: Likewise.
63057
63058 2007-03-17  Bruno Haible  <bruno@clisp.org>
63059
63060         * modules/stdlib (Depends-on): Add unistd.
63061         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63062         Needed for MacOS X 10.3.
63063
63064 2007-03-17  Bruno Haible  <bruno@clisp.org>
63065
63066         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63067
63068 2007-03-17  Bruno Haible  <bruno@clisp.org>
63069
63070         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63071
63072 2007-03-17  Bruno Haible  <bruno@clisp.org>
63073
63074         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63075         to reflect files copied from gnulib (with or without modifications).
63076         Suggested by Jim Meyering.
63077
63078 2007-03-17  Eric Blake  <ebb9@byu.net>
63079
63080         * NEWS: Document stdlib change from 2007-02-18.
63081
63082 2007-03-17  Jim Meyering  <jim@meyering.net>
63083
63084         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63085         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63086         someone uses a name containing shell meta-characters.
63087         Reported by Alfred M. Szmidt.
63088
63089         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63090
63091 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63092
63093         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63094         and copy gettext configuration files only if configure.ac contains
63095         a use of AM_GNU_GETTEXT_VERSION.
63096
63097 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63098
63099         * build-aux/bootstrap (gnulib_name): New variable.
63100         (gnulib_tool_options): Use it.
63101
63102 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63103
63104         * tests/test-des.c: Use new namespace.
63105
63106 2007-03-15  Bruno Haible  <bruno@clisp.org>
63107
63108         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63109         Reported by James Youngman <jay@gnu.org>.
63110
63111 2007-03-15  Bruno Haible  <bruno@clisp.org>
63112
63113         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63114         declared prototype. Needed with cc on OSF/1 5.1.
63115
63116 2007-03-15  Bruno Haible  <bruno@clisp.org>
63117
63118         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63119         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63120         (struct gl_list_implementation): Add dispose_fn argument to the
63121         'create_empty', 'create' methods.
63122         (struct gl_list_impl_base): Add field 'dispose_fn'.
63123         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63124         argument.
63125         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63126         dispose_fn argument.
63127         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63128         dispose_fn on the dropped values.
63129         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63130         dispose_fn argument.
63131         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63132         dropped values.
63133         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63134         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63135         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63136         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63137         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63138         argument.
63139         (gl_tree_list_free): Call dispose_fn on the dropped values.
63140         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63141         the dropped values.
63142         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63143         Add dispose_fn argument.
63144         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63145         Call dispose_fn on the dropped values.
63146         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63147         Add dispose_fn argument.
63148         (gl_sublist_create): Initialize the 'dispose_fn' field.
63149         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63150         * tests/test-array_list.c (main): Update.
63151         * tests/test-carray_list.c (main): Update.
63152         * tests/test-avltree_list.c (main): Update.
63153         * tests/test-rbtree_list.c (main): Update.
63154         * tests/test-avltreehash_list.c (main): Update.
63155         * tests/test-rbtreehash_list.c (main): Update.
63156         * tests/test-linked_list.c (main): Update.
63157         * tests/test-linkedhash_list.c (main): Update.
63158         * tests/test-array_oset.c (main): Update.
63159
63160 2007-03-15  Bruno Haible  <bruno@clisp.org>
63161
63162         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63163         (gl_oset_create_empty): Add dispose_fn argument.
63164         (struct gl_oset_implementation): Add dispose_fn argument to
63165         'create_empty' method.
63166         (struct gl_oset_impl_base): Add dispose_fn field.
63167         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63168         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63169         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63170         values.
63171         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63172         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63173         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63174         dropped value.
63175         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63176         dropped value.
63177         * tests/test-array_oset.c (main): Update.
63178         * tests/test-avltree_oset.c (main): Update.
63179         * tests/test-rbtree_oset.c (main): Update.
63180         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63181
63182 2007-03-13  Bruno Haible  <bruno@clisp.org>
63183
63184         * tests/test-stdbool.c (i): Update after last patch.
63185
63186 2007-03-12  Bruno Haible  <bruno@clisp.org>
63187
63188         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63189         the iswprint macro. Needed on Solaris 2.5.1.
63190
63191 2007-03-12  Bruno Haible  <bruno@clisp.org>
63192
63193         * tests/test-printf-frexp.c (main): Declare x as volatile.
63194
63195 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63196
63197         * doc/gnulib.texi (Build robot for gnulib): New section.
63198
63199 2007-03-12  Jim Meyering  <jim@meyering.net>
63200
63201         * build-aux/bootstrap: New file.
63202         * build-aux/bootstrap.conf: New file, from coreutils.
63203
63204 2007-03-11  Bruno Haible  <bruno@clisp.org>
63205
63206         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63207
63208 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63209
63210         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63211         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63212         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63213
63214 2007-03-11  Bruno Haible  <bruno@clisp.org>
63215
63216         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63217         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63218
63219 2007-03-11  Bruno Haible  <bruno@clisp.org>
63220
63221         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63222         formula. Needed for SunPRO C 5.0.
63223
63224 2007-03-11  Bruno Haible  <bruno@clisp.org>
63225
63226         * modules/long-options (Depends-on): Add getopt.
63227
63228 2007-03-11  Bruno Haible  <bruno@clisp.org>
63229
63230         * modules/modechange (Depends-on): Add stdbool.
63231
63232 2007-03-11  Bruno Haible  <bruno@clisp.org>
63233
63234         * modules/i-ring (Depends-on): Add stdbool.
63235
63236 2007-03-11  Bruno Haible  <bruno@clisp.org>
63237
63238         * modules/gc-des (Depends-on): Add stdbool.
63239
63240 2007-03-11  Bruno Haible  <bruno@clisp.org>
63241
63242         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63243
63244 2007-03-11  Bruno Haible  <bruno@clisp.org>
63245
63246         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63247
63248 2007-03-11  Bruno Haible  <bruno@clisp.org>
63249
63250         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63251
63252 2007-03-11  Bruno Haible  <bruno@clisp.org>
63253
63254         * lib/vasnprintf.c (sprintf): Undefine.
63255
63256 2007-03-11  Bruno Haible  <bruno@clisp.org>
63257
63258         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63259         initializers in SunPRO C and Compaq C compilers.
63260
63261 2007-03-11  Bruno Haible  <bruno@clisp.org>
63262
63263         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63264         decrementing code ANSI C compliant.
63265
63266 2007-03-11  Bruno Haible  <bruno@clisp.org>
63267
63268         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63269         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63270
63271 2007-03-11  Bruno Haible  <bruno@clisp.org>
63272
63273         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63274         <stdbool.h> substitute doesn't pass.
63275
63276 2007-03-11  Bruno Haible  <bruno@clisp.org>
63277
63278         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63279
63280 2007-03-11  Bruno Haible  <bruno@clisp.org>
63281
63282         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63283         script, for submission to autobuild.josefsson.org.
63284
63285 2007-03-10  Bruno Haible  <bruno@clisp.org>
63286
63287         * modules/canonicalize-lgpl-tests: New file.
63288         * tests/test-canonicalize-lgpl.sh: New file.
63289         * tests/test-canonicalize-lgpl.c: New file.
63290
63291         * modules/c-strcase-tests: New file.
63292         * tests/test-c-strcase.sh: New file.
63293         * tests/test-c-strcasecmp.c: New file.
63294         * tests/test-c-strncasecmp.c: New file.
63295
63296         * modules/atexit-tests: New file.
63297         * tests/test-atexit.sh: New file.
63298         * tests/test-atexit.c: New file.
63299
63300 2007-03-10  Bruno Haible  <bruno@clisp.org>
63301
63302         * tests/test-binary-io.sh: Use temporary filenames that are not so
63303         likely to clash with those of other tests (in a parallel make).
63304         * tests/test-binary-io.c: Likewise.
63305
63306 2007-03-10  Bruno Haible  <bruno@clisp.org>
63307
63308         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63309         fallback; use #error instead.
63310         Suggested by Simon Josefsson.
63311
63312 2007-03-10  Bruno Haible  <bruno@clisp.org>
63313
63314         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63315         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63316         first and the last.
63317
63318 2007-03-10  Bruno Haible  <bruno@clisp.org>
63319
63320         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63321
63322 2007-03-10  Bruno Haible  <bruno@clisp.org>
63323
63324         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63325         "make distcheck".
63326         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63327         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63328         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63329
63330 2007-03-10  Bruno Haible  <bruno@clisp.org>
63331
63332         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63333         variable.
63334         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63335         variable.
63336
63337 2007-03-09  Eric Blake  <ebb9@byu.net>
63338         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63339
63340         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63341         types are not being provided by gnulib.
63342         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63343         types are supported.
63344
63345 2007-03-10  Bruno Haible  <bruno@clisp.org>
63346
63347         * lib/stdio_.h (__attribute__): New macro.
63348         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63349         vsprintf): Specify __attribute__ __format__ for GCC.
63350         Suggested by Eric Blake.
63351
63352 2007-03-09  Bruno Haible  <bruno@clisp.org>
63353
63354         * modules/printf-posix-tests: New file.
63355         * tests/test-printf-posix.sh: New file.
63356         * tests/test-printf-posix.c: New file.
63357
63358         * modules/printf-posix: New file.
63359         * lib/printf.c: New file.
63360         * m4/printf-posix-rpl.m4: New file.
63361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63362         REPLACE_PRINTF.
63363         * lib/stdio_.h (printf): New declaration.
63364         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63365         ____strfmon____): New macros.
63366         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63367         REPLACE_PRINTF.
63368
63369 2007-03-09  Bruno Haible  <bruno@clisp.org>
63370
63371         * tests/test-vasnprintf-posix2.sh: New file.
63372         * tests/test-vasnprintf-posix2.c: New file.
63373         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63374         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63375         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63376
63377         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63378         a locale dependent decimal point, rather than always '.'.
63379
63380 2007-03-09  Eric Blake  <ebb9@byu.net>
63381
63382         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63383         spite of platforms like Tandem/NSK that define it to -1.
63384
63385 2007-03-08  Bruno Haible  <bruno@clisp.org>
63386
63387         * modules/vprintf-posix-tests: New file.
63388         * tests/test-vprintf-posix.sh: New file.
63389         * tests/test-vprintf-posix.c: New file.
63390         * tests/test-printf-posix.h: New file.
63391
63392         * modules/vprintf-posix: New file.
63393         * lib/vprintf.c: New file.
63394         * m4/vprintf-posix.m4: New file.
63395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63396         REPLACE_VPRINTF.
63397         * lib/stdio_.h (vprintf): New declaration.
63398         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63399         REPLACE_VPRINTF.
63400
63401 2007-03-08  Bruno Haible  <bruno@clisp.org>
63402
63403         * modules/fprintf-posix-tests: New file.
63404         * tests/test-fprintf-posix.sh: New file.
63405         * tests/test-fprintf-posix.c: New file.
63406
63407         * modules/fprintf-posix: New file.
63408         * lib/fprintf.c: New file.
63409         * m4/fprintf-posix.m4: New file.
63410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63411         REPLACE_FPRINTF.
63412         * lib/stdio_.h (fprintf): New declaration.
63413         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63414         REPLACE_FPRINTF.
63415
63416 2007-03-08  Bruno Haible  <bruno@clisp.org>
63417
63418         * modules/vfprintf-posix-tests: New file.
63419         * tests/test-vfprintf-posix.sh: New file.
63420         * tests/test-vfprintf-posix.c: New file.
63421         * tests/test-fprintf-posix.h: New file.
63422         * tests/test-fprintf-posix.out: New file.
63423
63424         * modules/vfprintf-posix: New file.
63425         * lib/vfprintf.c: New file.
63426         * m4/vfprintf-posix.m4: New file.
63427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63428         REPLACE_VFPRINTF.
63429         * lib/stdio_.h (vfprintf): New declaration.
63430         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63431         REPLACE_VFPRINTF.
63432
63433 2007-03-08  Bruno Haible  <bruno@clisp.org>
63434
63435         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63436
63437 2007-03-08  Bruno Haible  <bruno@clisp.org>
63438
63439         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63440         instead of 'expr' invocations.
63441         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63442         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63443         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63445         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63446         Suggested by Paul Eggert.
63447
63448 2007-03-08  Bruno Haible  <bruno@clisp.org>
63449
63450         * modules/fseterr-tests: New file.
63451         * tests/test-fseterr.c: New file.
63452
63453         * modules/fseterr: New file.
63454         * lib/fseterr.h: New file.
63455         * lib/fseterr.c: New file.
63456
63457 2007-03-08  Bruno Haible  <bruno@clisp.org>
63458
63459         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63460         * lib/getopt_.h: Likewise.
63461         * lib/mbswidth.h: Likewise.
63462         * lib/setenv.h: Likewise.
63463         * lib/vasnprintf.h: Likewise.
63464         * lib/vasprintf.h: Likewise.
63465         * lib/verror.h: Likewise.
63466         * lib/xsetenv.h: Likewise.
63467         * lib/xvasprintf.h: Likewise.
63468
63469 2007-03-08  Jim Meyering  <jim@meyering.net>
63470
63471         * users.txt: Add parted.
63472
63473         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63474
63475 2007-03-07  Bruno Haible  <bruno@clisp.org>
63476
63477         * m4/printf.m4: Make the shell script snippets copy&pastable.
63478
63479 2007-03-02  Bruno Haible  <bruno@clisp.org>
63480
63481         * lib/netinet_in_.h: New file.
63482         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63483         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63484         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63485         (Depends-on): Add absolute-header.
63486         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63487         into netinet/in.h.
63488
63489 2007-03-03  Bruno Haible  <bruno@clisp.org>
63490
63491         * lib/sys_select_.h: New file.
63492         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63493         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63494         * modules/sys_select (Files): Add lib/sys_select_.h.
63495         (Depends-on): Add absolute-header.
63496         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63497         into sys/select.h.
63498
63499 2007-03-02  Bruno Haible  <bruno@clisp.org>
63500
63501         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63502         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63503         values.
63504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63505         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63506         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63507         * modules/sys_socket (Depends-on): Add absolute-header.
63508         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63509         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63510         (Include): Remove requirement of inclusion of <sys/types.h>.
63511
63512 2007-03-02  Bruno Haible  <bruno@clisp.org>
63513
63514         * lib/byteswap_.h (bswap_32): Fix formula.
63515
63516 2007-03-06  Bruno Haible  <bruno@clisp.org>
63517
63518         * modules/sprintf-posix-tests: New file.
63519         * tests/test-sprintf-posix.c: New file.
63520
63521         * modules/sprintf-posix: New file.
63522         * lib/sprintf.c: New file.
63523         * m4/sprintf-posix.m4: New file.
63524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63525         REPLACE_SPRINTF.
63526         * lib/stdio_.h (sprintf): New declaration.
63527         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63528         REPLACE_SPRINTF.
63529
63530 2007-03-06  Bruno Haible  <bruno@clisp.org>
63531
63532         * modules/vsprintf-posix-tests: New file.
63533         * tests/test-vsprintf-posix.c: New file.
63534         * tests/test-sprintf-posix.h: New file.
63535
63536         * modules/vsprintf-posix: New file.
63537         * lib/vsprintf.c: New file.
63538         * m4/vsprintf-posix.m4: New file.
63539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63540         REPLACE_VSPRINTF.
63541         * lib/stdio_.h (vsprintf): New declaration.
63542         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63543         REPLACE_VSPRINTF.
63544
63545 2007-03-06  Bruno Haible  <bruno@clisp.org>
63546
63547         * modules/vsnprintf (Depend-on): Remove minmax.
63548
63549 2007-03-06  Bruno Haible  <bruno@clisp.org>
63550
63551         * modules/snprintf-posix-tests: New file.
63552         * tests/test-snprintf-posix.c: New file.
63553
63554         * modules/snprintf-posix: New file.
63555         * m4/snprintf-posix.m4: New file.
63556         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63557         gl_FUNC_SNPRINTF.
63558         (gl_FUNC_SNPRINTF): Invoke it.
63559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63560         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63561         is set.
63562         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63563
63564 2007-03-06  Bruno Haible  <bruno@clisp.org>
63565
63566         * modules/vsnprintf-posix-tests: New file.
63567         * tests/test-vsnprintf-posix.c: New file.
63568         * tests/test-snprintf-posix.h: New file.
63569
63570         * modules/vsnprintf-posix: New file.
63571         * m4/vsnprintf-posix.m4: New file.
63572         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63573         gl_FUNC_VSNPRINTF.
63574         (gl_FUNC_VSNPRINTF): Invoke it.
63575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63576         * lib/stdio_.h (vsnprintf): Define as a replacement if
63577         REPLACE_VSNPRINTF is set.
63578         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63579
63580 2007-03-06  Bruno Haible  <bruno@clisp.org>
63581
63582         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63584
63585 2007-03-06  Bruno Haible  <bruno@clisp.org>
63586
63587         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63588         (asinl): Declare also if HAVE_DECL_ASINL is set.
63589         (atanl): Declare also if HAVE_DECL_ATANL is set.
63590         (ceill): Declare also if HAVE_DECL_CEILL is set.
63591         (cosl): Declare also if HAVE_DECL_COSL is set.
63592         (expl): Declare also if HAVE_DECL_EXPL is set.
63593         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63594         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63595         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63596         (logl): Declare also if HAVE_DECL_LOGL is set.
63597         (sinl): Declare also if HAVE_DECL_SINL is set.
63598         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63599         (tanl): Declare also if HAVE_DECL_TANL is set.
63600         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63602         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63603         declaration of frexpl, ldexpl.
63604         * modules/printf-frexpl (Depends-on): Add math.
63605         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63606
63607 2007-03-05  Bruno Haible  <bruno@clisp.org>
63608
63609         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63610         frexpl and ldexpl are declared.
63611         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63612
63613 2007-03-05  Bruno Haible  <bruno@clisp.org>
63614
63615         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63616         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63617
63618 2007-03-05  Bruno Haible  <bruno@clisp.org>
63619
63620         * lib/stdio_.h: Include <stddef.h>.
63621
63622 2007-03-05  Bruno Haible  <bruno@clisp.org>
63623
63624         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63625
63626 2007-03-05  Bruno Haible  <bruno@clisp.org>
63627
63628         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63629         NetBSD 4, from Ralf Wildenhues.
63630
63631 2007-03-04  Bruno Haible  <bruno@clisp.org>
63632
63633         * lib/vasprintf.h: Update #if logic for the case when the functions
63634         exist but are overridden.
63635
63636 2007-03-04  Bruno Haible  <bruno@clisp.org>
63637
63638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63639         implementations: glibc-2.4 and MacOS X 10.3.
63640         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63641         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63642         * tests/test-vasprintf-posix.c (test_function): Likewise.
63643
63644 2007-03-04  Bruno Haible  <bruno@clisp.org>
63645
63646         * modules/vasprintf-posix-tests: New file.
63647         * tests/test-vasprintf-posix.c: New file.
63648
63649         * modules/vasprintf-posix: New file.
63650         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63651         defined.
63652         * m4/vasprintf-posix.m4: New file.
63653         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63654         gl_FUNC_VASPRINTF.
63655         (gl_FUNC_VASPRINTF): Invoke it.
63656         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63657         here.
63658         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63659
63660 2007-03-04  Bruno Haible  <bruno@clisp.org>
63661
63662         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63663         REPLACE_GETTIMEOFDAY.
63664         * modules/sys_time (Makefile.am): Likewise.
63665         * m4/sys_time_h.m4: Likewise.
63666         * m4/gettimeofday.m4: Likewise.
63667
63668 2007-03-04  Bruno Haible  <bruno@clisp.org>
63669
63670         * modules/vasnprintf-posix-tests: New file.
63671         * tests/test-vasnprintf-posix.c: New file.
63672
63673         * modules/vasnprintf-posix: New file.
63674         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63675         printf-frexpl.h.
63676         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63677         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63678         REPLACE_VASNPRINTF is defined.
63679         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63680         gl_FUNC_VASNPRINTF.
63681         (gl_FUNC_VASNPRINTF): Invoke it.
63682         * m4/vasnprintf-posix.m4: New file.
63683         * m4/printf.m4: New file.
63684
63685 2007-03-04  Bruno Haible  <bruno@clisp.org>
63686
63687         Compile progreloc.c only if --enable-relocatable is specified.
63688         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63689         if --enable-relocatable was specified.
63690         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63691         lib_SOURCES.
63692
63693 2007-03-04  Jim Meyering  <jim@meyering.net>
63694
63695         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63696         Use it consistently, rather than enumerating errno constants.
63697
63698 2007-03-04  Bruno Haible  <bruno@clisp.org>
63699
63700         * modules/xvasprintf-tests: New file.
63701         * tests/test-xvasprintf.c: New file.
63702
63703         * modules/vasprintf-tests: New file.
63704         * tests/test-vasprintf.c: New file.
63705
63706         * modules/vasnprintf-tests: New file.
63707         * tests/test-vasnprintf.c: New file.
63708
63709         * modules/vsnprintf-tests: New file.
63710         * tests/test-vsnprintf.c: New file.
63711
63712         * modules/snprintf-tests: New file.
63713         * tests/test-snprintf.c: New file.
63714
63715 2007-03-04  Bruno Haible  <bruno@clisp.org>
63716
63717         Compile relocatable.c only if --enable-relocatable is specified.
63718         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63719         gl_RELOCATABLE_LIBRARY.
63720         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63721         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63722         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63723         gl_RELOCATABLE_LIBRARY.
63724         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63725         (Makefile.am): Remove lib_SOURCES.
63726         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63727         gl_RELOCATABLE_LIBRARY.
63728         (Makefile.am): Remove lib_SOURCES.
63729         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63730         always.
63731         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63732         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63733
63734 2007-03-04  Bruno Haible  <bruno@clisp.org>
63735
63736         * modules/argmatch-tests: New file.
63737         * tests/test-argmatch.c: New file.
63738
63739         * tests/test-allocsa.c (main): Halve the number of loop runs.
63740
63741         * modules/alloca-opt-tests: New file.
63742         * tests/test-alloca-opt.c: New file.
63743
63744 2007-03-04  Jim Meyering  <jim@meyering.net>
63745
63746         Work around difference between Linux ACLs and Solaris 10 ZFS.
63747         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63748         for EINVAL.
63749
63750 2007-03-03  Bruno Haible  <bruno@clisp.org>
63751
63752         * modules/relocatable-prog (Depends-on): Add back progreloc's
63753         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63754
63755 2007-03-03  Bruno Haible  <bruno@clisp.org>
63756
63757         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63758         * modules/relocatable-lib: New file.
63759
63760 2007-03-03  Bruno Haible  <bruno@clisp.org>
63761
63762         * modules/relocatable-prog: Renamed from modules/relocatable.
63763         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63764
63765 2007-03-03  Bruno Haible  <bruno@clisp.org>
63766
63767         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63768         m4/relocatable-lib.m4.
63769         (Depends-on): Remove 'relocatable'.
63770         (configure.ac): Add gl_RELOCATABLE_NOP.
63771
63772 2007-03-03  Bruno Haible  <bruno@clisp.org>
63773
63774         * modules/relocatable-prog-wrapper: New file.
63775         * modules/relocatable (Depends-on): Add it. Remove all other
63776         dependencies except progname.
63777         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63778
63779         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63780         (gl_FUNC_STRERROR): Nop.
63781         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63782
63783         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63784         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63785
63786         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63787         (gl_FUNC_READLINK): Update.
63788
63789         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63790
63791 2007-03-03  Bruno Haible  <bruno@clisp.org>
63792
63793         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63794         * modules/xreadlink (Depends-on): Add unistd.
63795         * modules/xreadlink-with-size (Depends-on): Likewise.
63796
63797 2007-03-03  Bruno Haible  <bruno@clisp.org>
63798
63799         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63800         extracted from gt_FUNC_SETENV.
63801         (gt_FUNC_SETENV): Remove macro.
63802         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63803         remove gt_FUNC_SETENV.
63804
63805 2007-03-03  Bruno Haible  <bruno@clisp.org>
63806
63807         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63808         ENABLE_RELOCATABLE here.
63809         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63810
63811 2007-03-03  Bruno Haible  <bruno@clisp.org>
63812
63813         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63814         * tests/test-rbtreehash_list.c: Include progname.h.
63815         (main): Call set_program_name.
63816
63817         * modules/rbtree-oset-tests (Depends-on): Add progname.
63818         * tests/test-rbtree_oset.c: Include progname.h.
63819         (main): Call set_program_name.
63820
63821         * modules/rbtree-list-tests (Depends-on): Add progname.
63822         * tests/test-rbtree_list.c: Include progname.h.
63823         (main): Call set_program_name.
63824
63825         * modules/linked-list-tests (Depends-on): Add progname.
63826         * tests/test-linked_list.c: Include progname.h.
63827         (main): Call set_program_name.
63828
63829 2007-03-03  Bruno Haible  <bruno@clisp.org>
63830
63831         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63832         All uses of __restrict changed to _Restrict_.
63833         * lib/glob_.h (__restrict): Remove macro.
63834
63835 2007-03-02  Bruno Haible  <bruno@clisp.org>
63836
63837         * modules/gettext (configure.ac): Require gettext infrastructure
63838         from version 0.16.1.
63839
63840 2007-03-02  Bruno Haible  <bruno@clisp.org>
63841
63842         * modules/linkedhash-list-tests (Depends-on): Add progname.
63843         * tests/test-linkedhash_list.c: Include progname.h.
63844         (main): Call set_program_name.
63845
63846         * modules/carray-list-tests (Depends-on): Add progname.
63847         * tests/test-carray_list.c: Include progname.h.
63848         (main): Call set_program_name.
63849
63850         * modules/avltreehash-list-tests (Depends-on): Add progname.
63851         * tests/test-avltreehash_list.c: Include progname.h.
63852         (main): Call set_program_name.
63853
63854         * modules/avltree-oset-tests (Depends-on): Add progname.
63855         * tests/test-avltree_oset.c: Include progname.h.
63856         (main): Call set_program_name.
63857
63858         * modules/avltree-list-tests (Depends-on): Add progname.
63859         * tests/test-avltree_list.c: Include progname.h.
63860         (main): Call set_program_name.
63861
63862         * modules/array-oset-tests (Depends-on): Add progname.
63863         * tests/test-array_oset.c: Include progname.h.
63864         (main): Call set_program_name.
63865
63866         * modules/array-list-tests (Depends-on): Add progname.
63867         * tests/test-array_list.c: Include progname.h.
63868         (main): Call set_program_name.
63869
63870         * modules/argp-tests (Depends-on): Add progname.
63871         * tests/test-argp.c: Include argp.h first. Include progname.h.
63872         (main): Call set_program_name.
63873
63874 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63875
63876         * doc/gnulib-tool.texi (Initial import): Reword description of
63877         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63878         limited effect even if defined after the first system include.
63879
63880 2007-03-01  Bruno Haible  <bruno@clisp.org>
63881
63882         * build-aux/config.libpath: Update to libtool-1.5.22.
63883         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63884
63885 2007-03-01  Bruno Haible  <bruno@clisp.org>
63886
63887         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63888         foo_CFLAGS.
63889         Reported by Ralf Wildenhues.
63890
63891 2007-03-01  Bruno Haible  <bruno@clisp.org>
63892
63893         * build-aux/install-reloc: Remove object files left over by some
63894         compilers.
63895         Reported by Ralf Wildenhues.
63896
63897 2007-03-01  Bruno Haible  <bruno@clisp.org>
63898
63899         * build-aux/install-reloc: Break long lines.
63900
63901 2007-03-01  Bruno Haible  <bruno@clisp.org>
63902
63903         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63904         Reported by Ralf Wildenhues.
63905
63906 2007-03-01  Bruno Haible  <bruno@clisp.org>
63907
63908         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63909         include ordering constraints.
63910
63911 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63914         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63915         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63916         as another example.
63917         * lib/time_.h: Fix misspelling.
63918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63919         Require gl_HEADER_TIME_H_DEFAULTS.
63920         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63921         * m4/time_r.m4 (gl_TIME_R): Likewise.
63922         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63923
63924 2007-03-01  Bruno Haible  <bruno@clisp.org>
63925
63926         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63927         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63928
63929 2007-03-01  Jim Meyering  <jim@meyering.net>
63930
63931         * modules/xreadlink (Maintainer): Add my name.
63932         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63933
63934 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63935             Bruno Haible  <bruno@clisp.org>
63936
63937         * build-aux/install-reloc: Compile also c-ctype.c.
63938         * build-aux/relocatable.sh.in: New file.
63939         * doc/relocatable.texi: New file.
63940         * doc/relocatable-maint.texi: New file.
63941         * doc/gnulib.texi: Include relocatable-maint.texi.
63942         * lib/progreloc.c: Include unistd.h unconditionally.
63943         * lib/relocwrapper.c: Include unistd.h unconditionally.
63944         Include c-ctype.h.
63945         (add_dotbin): Use c_tolower.
63946         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63947         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63948         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63949         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63950         to m4/relocatable-lib.m4.
63951         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63952         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63953         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63954         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63955         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63956         * modules/relocatable: New file.
63957         * modules/relocatable-lib: New file.
63958         * modules/relocatable-script: New file.
63959
63960 2007-02-28  Bruno Haible  <bruno@clisp.org>
63961
63962         Import --enable-relocatable infrastructure.
63963         * build-aux/config.libpath: New file, from GNU gettext.
63964         * build-aux/install-reloc: New file, from GNU gettext.
63965         * build-aux/reloc-ldflags: New file, from GNU gettext.
63966         * lib/relocatable.h: New file, from GNU gettext.
63967         * lib/relocatable.c: New file, from GNU gettext.
63968         * lib/relocwrapper.c: New file, from GNU gettext.
63969         * m4/relocatable.m4: New file, from GNU gettext.
63970
63971 2007-02-28  Bruno Haible  <bruno@clisp.org>
63972
63973         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63974
63975         * modules/xreadlink: New file, from GNU gettext with modifications.
63976         * lib/xreadlink.c: New file, from GNU gettext.
63977         * lib/xreadlink.h: Add comments.
63978         (xreadlink): New declaration.
63979
63980         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63981         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63982         lib/xreadlink-with-size.c.
63983         (configure.ac): Remove gl_XREADLINK invocation.
63984         (Makefile.am): Augment lib_SOURCES.
63985         * m4/xreadlink.m4: Remove file.
63986         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63987         (xreadlink_with_size): Renamed from xreadink.
63988         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63989         * modules/canonicalize (Depends-on): Replace xreadlink with
63990         xreadlink-with-size.
63991         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63992
63993 2007-02-25  Jim Meyering  <jim@meyering.net>
63994
63995         * build-aux/announce-gen: When complaining about excess arguments,
63996         list them.
63997
63998 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63999
64000         * README: Document signed integer overflow situation more
64001         accurately.
64002
64003 2007-02-25  Bruno Haible  <bruno@clisp.org>
64004
64005         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
64006         'a' or 'A' conversion.
64007
64008 2007-02-25  Bruno Haible  <bruno@clisp.org>
64009
64010         * modules/filename: Renamed from modules/pathname.
64011         (Files): Replace lib/pathname.h with lib/filename.h. Replace
64012         lib/concatpath.c with lib/concat-filename.c.
64013         (Makefile.am): Update.
64014         (Include): Replace pathname.h with filename.h.
64015         * lib/filename.h: Renamed from lib/pathname.h.
64016         (concatenated_filename): Renamed from concatenated_pathname.
64017         * lib/concat-filename.c: Renamed from lib/concatpath.c.
64018         (concatenated_filename): Renamed from concatenated_pathname.
64019         * lib/findprog.c: Include filename.h instead of pathname.h.
64020         (find_in_path): Update.
64021         * lib/javacomp.c: Include filename.h instead of pathname.h.
64022         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
64023         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
64024         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
64025         is_oldgcj_14_13_usable, is_javac_usable): Update.
64026         * lib/javaexec.c: Include filename.h instead of pathname.h.
64027         (execute_java_class): Update.
64028         * modules/findprog: Update.
64029         * modules/javacomp: Update.
64030         * modules/javaexec: Update.
64031         * MODULES.html.sh (File system functions): Add 'filename', remove
64032         'pathname'.
64033
64034 2007-02-25  Bruno Haible  <bruno@clisp.org>
64035
64036         * modules/printf-frexpl-tests: New file.
64037         * tests/test-printf-frexpl.c: New file.
64038
64039         * modules/printf-frexpl: New file.
64040         * lib/printf-frexpl.h: New file.
64041         * lib/printf-frexpl.c: New file.
64042         * m4/printf-frexpl.m4: New file.
64043
64044 2007-02-25  Bruno Haible  <bruno@clisp.org>
64045
64046         * modules/printf-frexp-tests: New file.
64047         * tests/test-printf-frexp.c: New file.
64048
64049         * modules/printf-frexp: New file.
64050         * lib/printf-frexp.h: New file.
64051         * lib/printf-frexp.c: New file.
64052         * m4/printf-frexp.m4: New file.
64053
64054 2007-02-25  Bruno Haible  <bruno@clisp.org>
64055
64056         Assume automake >= 1.10 for the tests.
64057         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
64058         * modules/arctwo-tests: Likewise.
64059         * modules/argp-tests: Likewise.
64060         * modules/avltree-list-tests: Likewise.
64061         * modules/avltree-oset-tests: Likewise.
64062         * modules/avltreehash-list-tests: Likewise.
64063         * modules/carray-list-tests: Likewise.
64064         * modules/crc-tests: Likewise.
64065         * modules/des-tests: Likewise.
64066         * modules/gc-arcfour-tests: Likewise.
64067         * modules/gc-arctwo-tests: Likewise.
64068         * modules/gc-des-tests: Likewise.
64069         * modules/gc-hmac-md5-tests: Likewise.
64070         * modules/gc-hmac-sha1-tests: Likewise.
64071         * modules/gc-md2-tests: Likewise.
64072         * modules/gc-md4-tests: Likewise.
64073         * modules/gc-md5-tests: Likewise.
64074         * modules/gc-pbkdf2-sha1-tests: Likewise.
64075         * modules/gc-rijndael-tests: Likewise.
64076         * modules/gc-sha1-tests: Likewise.
64077         * modules/gc-tests: Likewise.
64078         * modules/getaddrinfo-tests: Likewise.
64079         * modules/hmac-md5-tests: Likewise.
64080         * modules/hmac-sha1-tests: Likewise.
64081         * modules/linked-list-tests: Likewise.
64082         * modules/linkedhash-list-tests: Likewise.
64083         * modules/lock-tests: Likewise.
64084         * modules/md2-tests: Likewise.
64085         * modules/md4-tests: Likewise.
64086         * modules/md5-tests: Likewise.
64087         * modules/rbtree-list-tests: Likewise.
64088         * modules/rbtree-oset-tests: Likewise.
64089         * modules/rbtreehash-list-tests: Likewise.
64090         * modules/read-file-tests: Likewise.
64091         * modules/rijndael-tests: Likewise.
64092         * modules/stdint-tests: Likewise.
64093         * modules/tls-tests: Likewise.
64094
64095 2007-02-24  Bruno Haible  <bruno@clisp.org>
64096
64097         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64098         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64099         function; instead check whether isnan with a double argument links.
64100         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64101         function; instead check whether isnan with a 'long double' argument
64102         links.
64103         Reported by Eric Blake <ebb9@byu.net>.
64104
64105 2007-02-24  Bruno Haible  <bruno@clisp.org>
64106
64107         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64108         defined.
64109         * lib/isnanl.c: Remove all code. Just include isnan.c.
64110         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64111
64112 2007-02-25  Jim Meyering  <jim@meyering.net>
64113
64114         Avoid conflicting types for 'unsetenv' on FreeBSD.
64115         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64116         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64117         in stdlib.h.
64118
64119 2007-02-24  Bruno Haible  <bruno@clisp.org>
64120
64121         * modules/isnanl-nolibm-tests: New file.
64122         * tests/test-isnanl.c: New file.
64123
64124         * modules/isnanl-nolibm: New file.
64125         * lib/isnanl.h: New file.
64126         * lib/isnanl.c: New file.
64127         * m4/isnanl.m4: New file.
64128
64129 2007-02-24  Bruno Haible  <bruno@clisp.org>
64130
64131         * modules/isnan-nolibm-tests: New file.
64132         * tests/test-isnan.c: New file.
64133
64134         * modules/isnan-nolibm: New file.
64135         * lib/isnan.h: New file.
64136         * lib/isnan.c: New file.
64137         * m4/isnan.m4: New file.
64138
64139 2007-02-24  Bruno Haible  <bruno@clisp.org>
64140
64141         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64142         assume that an exponent fits in 20 bits.
64143
64144 2007-02-24  Jim Meyering  <jim@meyering.net>
64145
64146         * m4/regex.m4: Update the description of the configure-time option,
64147         --without-included-regex, to state accurately what the defaults are,
64148         and perhaps to give people an idea why using this option is risky.
64149
64150 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64151
64152         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64153         loops on small arguments.  This attempts to avoid the problem
64154         Bruno Haible reported for AIX 4.3.2 in
64155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64156
64157 2007-02-23  Bruno Haible  <bruno@clisp.org>
64158
64159         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64160         Needed for help2man.
64161
64162 2007-02-23  Karl Berry  <karl@gnu.org>
64163
64164         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64165         exists, foo.h should be cvs-ignored, not committed.
64166
64167 2007-02-23  Eric Blake  <ebb9@byu.net>
64168
64169         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64170         * lib/stat-time.h (includes): Likewise.
64171         * lib/utimecmp.c (includes): Likewise.
64172         * lib/utimens.h (includes): Likewise.
64173         * lib/getdate.y (includes): Also include "timespec.h" for use
64174         internal to the module.
64175         * modules/utimens (Depends-on): Revert yesterday's patch.
64176         * modules/nanosleep (Depends-on): Add missing dependency.
64177
64178 2007-02-22  Bruno Haible  <bruno@clisp.org>
64179
64180         * lib/glob.c: Don't include getlogin_r.h.
64181
64182 2007-02-22  Jim Meyering  <jim@meyering.net>
64183
64184         * modules/utimens (Depends-on): Add timespec, required for
64185         utimens.h's inclusion of timespec.h.
64186
64187 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64188
64189         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64190         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64191         Schwab in
64192         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64193         I'll try to think of a better way to fix the Solaris problem.
64194
64195         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64196         like glibc; on Solaris 10, it fails with errno == EINVAL.
64197         POSIX says the behavior is unspecified if the first argument is NULL,
64198         so play it safe and never pass NULL to the system getcwd.
64199
64200 2007-02-21  Jim Meyering  <jim@meyering.net>
64201
64202         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64203         of gettimeofday.  It would conflict with the one now always
64204         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64205         an IRIX 6.5 build failure.
64206
64207 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64208
64209         Minor fixups to port to Solaris 10 with Sun C 5.8.
64210         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64211         * modules/getcwd (Depends-on): Add dirfd.
64212         * lib/putenv.c (putenv): #undef it.
64213         (rpl_putenv): New decl.
64214         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64215
64216 2007-02-20  Bruno Haible  <bruno@clisp.org>
64217
64218         * modules/stdio-tests: New file.
64219         * tests/test-stdio.c: New file.
64220
64221         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64222         (Depends-on): Add stdio.
64223         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64224         (Include): Use <stdio.h> instead of vsnprintf.h.
64225         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64226         HAVE_DECL_VSNPRINTF.
64227         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64228
64229         * modules/snprintf (Files): Remove lib/snprintf.h.
64230         (Depends-on): Add stdio.
64231         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64232         (Include): Use <stdio.h> instead of snprintf.h.
64233         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64234         HAVE_DECL_SNPRINTF.
64235         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64236         * lib/getaddrinfo.c: Likewise.
64237
64238         * modules/stdio: New file.
64239         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64240         * lib/snprintf.h: Remove file.
64241         * lib/vsnprintf.h: Remove file.
64242         * lib/.cppi-disable: Remove snprintf.h.
64243         * m4/stdio_h.m4: New file.
64244         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64245
64246 2007-02-20  Jim Meyering  <jim@meyering.net>
64247
64248         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64249         used by e.g., mingw.  From Bruno Haible.
64250
64251 2007-02-19  Bruno Haible  <bruno@clisp.org>
64252
64253         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64254         warnings.
64255         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64256
64257 2007-02-19  Bruno Haible  <bruno@clisp.org>
64258
64259         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64260         from mingw users.
64261
64262 2007-02-19  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64265         warnings.
64266         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64267
64268 2007-02-19  Jim Meyering  <jim@meyering.net>
64269
64270         Don't use FD after a successful "fdopendir (fd)".
64271         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64272         Reset it by calling dirfd on the just-obtained DIR*.
64273
64274         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64275         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64276
64277 2007-02-18  Bruno Haible  <bruno@clisp.org>
64278
64279         * lib/readlink.c: Include <unistd.h>.
64280         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64281         HAVE_READLINK.
64282         * modules/readlink (Depends-on): Add unistd.
64283         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64284         (Include): Add <unistd.h>.
64285
64286         * lib/getlogin_r.h: Remove file.
64287         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64288         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64289         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64290         HAVE_DECL_GETLOGIN_R.
64291         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64292         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64293         (Include): Use <unistd.h> instead of getlogin_r.h.
64294
64295         * lib/getcwd.h: Remove file.
64296         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64297         * lib/xgetcwd.c: Likewise.
64298         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64299         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64300         * modules/getcwd (Files): Remove lib/getcwd.h.
64301         (Depends-on): Add unistd.
64302         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64303         (Include): Use <unistd.h> instad of getcwd.h.
64304
64305         * lib/ftruncate.c: Include <unistd.h> first.
64306         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64307         Set HAVE_FTRUNCATE.
64308         * modules/ftruncate (Depends-on): Add unistd.
64309         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64310
64311         * lib/fchdir.c: Include <unistd.h> first.
64312         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64314         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64315         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64316         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64317
64318         * lib/dup2.c: Include <unistd.h> first.
64319         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64320         HAVE_DUP2.
64321         * modules/dup2 (Depends-on): Add unistd.
64322         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64323
64324         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64325         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64326         REPLACE_CHOWN. Don't define chown as a macro here.
64327         * modules/chown (Depends-on): Add unistd.
64328         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64329
64330         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64331         Add definition for GL_LINK_WARNING.
64332         (chown, dup2): New declarations.
64333         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64334         link warning.
64335         (ftruncate): New declaration.
64336         (getcwd): New declaration, taken from old getcwd.h.
64337         (getlogin_r): New declaration, taken from old getlogin_r.h.
64338         (readlink): New declaration.
64339         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64340         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64341         (gl_PREREQ_UNISTD): Remove macro.
64342         (gl_UNISTD_MODULE_INDICATOR): New macro.
64343         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64344         many new variables. Don't set UNISTD_H.
64345         * modules/unistd (Description): Change.
64346         (Depends-on): Add link-warning.
64347         (configure.ac): Update.
64348         (Makefile.am): Create unistd.h always. Substitute many new variables
64349         into it.
64350
64351 2007-02-18  Bruno Haible  <bruno@clisp.org>
64352
64353         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64354         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64355         HAVE_GETSUBOPT.
64356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64357         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64358         * lib/getsubopt.h: Remove file.
64359         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64360         (Depends-on): Add stdlib.
64361         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64362         (Includes): Use <stdlib.h> instead of getsubopt.h.
64363         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64364         Set HAVE_GETSUBOPT.
64365         * lib/getsubopt.c: Don't include getsubopt.h.
64366
64367 2007-02-18  Bruno Haible  <bruno@clisp.org>
64368
64369         * modules/fchdir (Depends-on): Add dup2.
64370
64371 2007-02-18  Bruno Haible  <bruno@clisp.org>
64372
64373         * lib/stdlib_.h: Handle glibc's special invocation convention
64374         specially.
64375
64376 2007-02-18  Bruno Haible  <bruno@clisp.org>
64377
64378         * modules/stdlib-tests: New file.
64379         * tests/test-stdlib.c: New file.
64380
64381         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64382         (Depends-on): Add stdlib.
64383         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64384         (Includes): Use <stdlib.h> instead of mkstemp.h.
64385         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64386         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64387         * lib/mkstemp.c: Don't include mkstemp.h.
64388         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64389         * lib/stdlib--.h: Don't include mkstemp.h.
64390
64391         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64392         (Depends-on): Add stdlib.
64393         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64394         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64395         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64396         HAVE_MKDTEMP.
64397         * lib/mkdtemp.c: Don't include mkdtemp.h.
64398         * lib/clean-temp.c: Don't include mkdtemp.h.
64399
64400         * modules/exit (Files): Remove lib/exit.h.
64401         (Depends-on): Add stdlib.
64402         (Makefile.am): Remove lib_SOURCES.
64403         (Include): Use <stdlib.h> instead of exit.h.
64404         * lib/argmatch.c: Don't include exit.h.
64405         * lib/execute.c: Likewise.
64406         * lib/pagealign_alloc.c: Likewise.
64407         * lib/pipe.c: Likewise.
64408         * lib/wait-process.c: Likewise.
64409         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64410         * lib/exitfail.c: Likewise.
64411         * lib/savewd.c: Likewise.
64412         * lib/xsetenv.c: Likewise.
64413
64414         * modules/stdlib: New file.
64415         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64416         and extra comments about mkstemp().
64417         * lib/exit.h: Remove file.
64418         * lib/mkdtemp.h: Remove file.
64419         * lib/mkstemp.h: Remove file.
64420         * m4/stdlib_h.m4: New file.
64421         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64422
64423 2007-02-18  Bruno Haible  <bruno@clisp.org>
64424
64425         * modules/math-tests: New file.
64426         * tests/test-math.c: New file.
64427
64428         * modules/math: New file.
64429         * modules/mathl (Files): Remove lib/mathl.h.
64430         (Depends-on): Add math.
64431         (Makefile.am): Don't mention mathl.h.
64432         (Include): Use <math.h> instead of mathl.h.
64433         * lib/math_.h: New file.
64434         * lib/mathl.h: Remove file.
64435         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64436         mathl.h.
64437         * lib/asinl.c: Likewise.
64438         * lib/atanl.c: Likewise.
64439         * lib/ceill.c: Likewise.
64440         * lib/cosl.c: Likewise.
64441         * lib/expl.c: Likewise.
64442         * lib/floorl.c: Likewise.
64443         * lib/frexpl.c: Likewise.
64444         * lib/ldexpl.c: Likewise.
64445         * lib/logl.c: Likewise.
64446         * lib/sincosl.c: Likewise.
64447         * lib/sinl.c: Likewise.
64448         * lib/sqrtl.c: Likewise.
64449         * lib/tanl.c: Likewise.
64450         * lib/trigl.c: Likewise.
64451         * m4/math_h.m4: New file.
64452         * MODULES.html.sh (Mathematics): Add math.
64453
64454 2007-02-17  Bruno Haible  <bruno@clisp.org>
64455
64456         * modules/wctype-tests: New file.
64457         * tests/test-wctype.c: New file.
64458
64459         * modules/wchar-tests: New file.
64460         * tests/test-wchar.c: New file.
64461
64462         * modules/unistd-tests: New file.
64463         * tests/test-unistd.c: New file.
64464
64465         * modules/time-tests: New file.
64466         * tests/test-time.c: New file.
64467
64468         * modules/sysexits-tests: New file.
64469         * tests/test-sysexits.c: New file.
64470
64471         * modules/sys_time-tests: New file.
64472         * tests/test-sys_time.c: New file.
64473
64474         * modules/sys_stat-tests: New file.
64475         * tests/test-sys_stat.c: New file.
64476
64477         * modules/sys_socket-tests: New file.
64478         * tests/test-sys_socket.c: New file.
64479
64480         * modules/sys_select-tests: New file.
64481         * tests/test-sys_select.c: New file.
64482
64483         * modules/string-tests: New file.
64484         * tests/test-string.c: New file.
64485
64486         * modules/stdbool-tests: New file.
64487         * tests/test-stdbool.c: New file.
64488
64489         * modules/netinet_in-tests: New file.
64490         * tests/test-netinet_in.c: New file.
64491
64492         * modules/inttypes-tests: New file.
64493         * tests/test-inttypes.c: New file.
64494
64495         * modules/fcntl-tests: New file.
64496         * tests/test-fcntl.c: New file.
64497
64498         * modules/byteswap-tests: New file.
64499         * tests/test-byteswap.c: New file.
64500
64501         * modules/arpa_inet-tests: New file.
64502         * tests/test-arpa_inet.c: New file.
64503
64504 2007-02-17  Bruno Haible  <bruno@clisp.org>
64505
64506         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64507         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64508         if the corresponding module is not enabled. Emit link warnings if
64509         the function is used nevertheless.
64510         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64511         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64512         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64513         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64514         * modules/inttypes (Depends-on): Add link-warning.
64515         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64516         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64517         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64518         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64519         * modules/imaxdiv (configure.ac): Likewise.
64520         * modules/strtoimax (configure.ac): Likewise.
64521         * modules/strtoumax (configure.ac): Likewise.
64522
64523 2007-02-17  Bruno Haible  <bruno@clisp.org>
64524
64525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64526         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64527         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64528         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64529
64530 2007-02-17  Bruno Haible  <bruno@clisp.org>
64531
64532         * modules/link-warning: New file.
64533         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64534         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64535         * modules/string (Depends-on): Add link-warning.
64536         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64537         string.h.
64538         * MODULES.html.sh (Support for building libraries and executables): Add
64539         link-warning.
64540
64541 2007-02-17  Bruno Haible  <bruno@clisp.org>
64542
64543         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64544         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64545         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64546         long lines.
64547
64548 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64549             Bruno Haible  <bruno@clisp.org>
64550
64551         * modules/tmpfile: New file.
64552         * lib/tmpfile.c: New file.
64553         * m4/tmpfile.m4: New file.
64554         * MODULES.html.sh (func_all_modules): New section "Input/output".
64555
64556 2007-02-15  Bruno Haible  <bruno@clisp.org>
64557
64558         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64559         (supports_delete_on_close): New function.
64560         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64561
64562 2007-02-14  Bruno Haible  <bruno@clisp.org>
64563
64564         * modules/mbspcasecmp-tests: New file.
64565         * tests/test-mbspcasecmp.sh: New file.
64566         * tests/test-mbspcasecmp.c: New file.
64567
64568         New module mbspcasecmp.
64569         * modules/mbspcasecmp: New file.
64570         * lib/mbspcasecmp.c: New file.
64571         * lib/string_.h (strncasecmp): Change warning message.
64572         (mbspcasecmp): New declaration.
64573         * m4/mbspcasecmp.m4: New file.
64574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64575         GNULIB_MBSPCASECMP.
64576         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64577         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64578
64579 2007-02-14  Bruno Haible  <bruno@clisp.org>
64580
64581         * modules/mbsncasecmp-tests: New file.
64582         * tests/test-mbsncasecmp.sh: New file.
64583         * tests/test-mbsncasecmp.c: New file.
64584
64585         New module mbsncasecmp.
64586         * modules/mbsncasecmp: New file.
64587         * lib/mbsncasecmp.c: New file.
64588         * lib/string_.h (mbsncasecmp): New declaration.
64589         * m4/mbsncasecmp.m4: New file.
64590         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64591         GNULIB_MBSNCASECMP.
64592         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64593         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64594
64595 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64596
64597         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64598         Verify that it doesn't overlap with our flags.
64599         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64600         do not have the desired effect in multibyte locales; instead, use
64601         mbscasecmp.
64602         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64603         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64604         we don't require GNU fnmatch ourselves (if our users require it, they
64605         should do so explicitly).
64606
64607         Fix regex code so it doesn't rely on strcasecmp.
64608         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64609         Otherwise, include gnulib's langinfo.h.
64610         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64611         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64612         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64613         * modules/regex (FILES): Remove m4/codeset.m4.
64614         (Depends-on): Add localcharset.  Remove strcase.
64615
64616 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64617
64618         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64619         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64620
64621 2007-02-13  Bruno Haible  <bruno@clisp.org>
64622
64623         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64624         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64625
64626 2007-02-12  Bruno Haible  <bruno@clisp.org>
64627
64628         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64629         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64630         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64631         time warning rather than a link error.
64632
64633 2007-02-12  Bruno Haible  <bruno@clisp.org>
64634
64635         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64636         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64637         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64638
64639 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64640
64641         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64642         args, not 2.
64643
64644 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64645
64646         New module 'time', so that apps can include <time.h> as per
64647         POSIX and GNU instead of separate include files like time_r.h
64648         and timegm.h.  This implementation tries out a simpler approach
64649         for replacing decls in standard include files (as compared to
64650         the string module), somewhat as an experiment.
64651
64652         * config/srclist.txt: Comment out mktime.c for now.
64653         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64654         since it doesn't apply any more.  Use generic wording instead.
64655         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64656         'time'.
64657         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64658         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64659         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64660         Don't include <sys/types.h>; no longer needed since we assume C89.
64661         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64662         * lib/strftime.c: Likewise.
64663         * lib/time_r.c: Likewise.
64664         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64665         * lib/nanosleep.c: Include <time.h> first, to check interface.
64666         * lib/strptime.c: Likewise.
64667         * lib/time_r.c: Likewise.
64668         * lib/timegm.c: Likewise.
64669         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64670         needed.
64671         * lib/timegm.c: Don't include timegm.h; no longer needed.
64672         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64673         time.h now handles any problems in that area.
64674         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64675         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64676         that time.h defines struct timespec.
64677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64678         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64679         handles that.
64680         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64681         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64682         needed.  Set REPLACE_LOCALTIME.
64683         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64684         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64685         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64686         nanosleep; time_h.m4 now does that.  Don't require
64687         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64688         module handles this now.
64689         * modules/getdate (Depends-on): Remove timespec.  Add time.
64690         * modules/nanosleep (Depends-on): Likewise.
64691         * modules/stat-time (Depends-on): Likewise.
64692         * modules/nanosleep (Include): Include time.h, not timespec.h.
64693         * modules/strptime (Files): Remove lib/strptime.h.
64694         (Depends-on): Add extensions, time.
64695         (Include): Include time.h, not strptime.h.
64696         * modules/time_r (Files): Remove lib/time_r.h.
64697         (Depends-on): Add time.
64698         (Include): Include time.h, not time_r.h.
64699         * modules/timegm: Likewise.
64700         * modules/timespec (Description): Now does timespec-related decls
64701         of our own, instead of struct timespec itself.
64702         (Depends-on): Add time; remove extensions.
64703         (Maintainer): Add self.
64704         * modules/utimecmp (Depends-on): Add time; remove timespec.
64705         * modules/utimens (Depends-on): Likewise.
64706         * modules/xnanosleep (Depends-on): Likewise.
64707
64708 2007-02-11  Bruno Haible  <bruno@clisp.org>
64709
64710         * lib/c-strstr.c: Include allocsa.h.
64711         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64712         * lib/c-strcasestr.c: Include allocsa.h.
64713         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64714         * lib/strcasestr.c: Include allocsa.h.
64715         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64716         * lib/mbsstr.c: Include allocsa.h.
64717         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64718         allocsa/freesa instead of malloc/free.
64719         * lib/mbscasestr.c: Include allocsa.h.
64720         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64721         allocsa/freesa instead of malloc/free.
64722         * modules/c-strstr (Depends-on): Add allocsa.
64723         * modules/c-strcasestr (Depends-on): Likewise.
64724         * modules/strcasestr (Depends-on): Likewise.
64725         * modules/mbsstr (Depends-on): Likewise.
64726         * modules/mbscasestr (Depends-on): Likewise.
64727
64728 2007-02-11  Bruno Haible  <bruno@clisp.org>
64729
64730         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64731
64732         * modules/mbsspn-tests: New file.
64733         * tests/test-mbsspn.sh: New file.
64734         * tests/test-mbsspn.c: New file.
64735
64736 2007-02-11  Bruno Haible  <bruno@clisp.org>
64737
64738         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64739
64740         * modules/mbspbrk-tests: New file.
64741         * tests/test-mbspbrk.sh: New file.
64742         * tests/test-mbspbrk.c: New file.
64743
64744 2007-02-11  Bruno Haible  <bruno@clisp.org>
64745
64746         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64747         unneeded cast.
64748
64749         * modules/mbscspn-tests: New file.
64750         * tests/test-mbscspn.sh: New file.
64751         * tests/test-mbscspn.c: New file.
64752
64753 2007-02-11  Bruno Haible  <bruno@clisp.org>
64754
64755         * modules/mbscasecmp-tests: New file.
64756         * tests/test-mbscasecmp.sh: New file.
64757         * tests/test-mbscasecmp.c: New file.
64758
64759 2007-02-11  Bruno Haible  <bruno@clisp.org>
64760
64761         Ensure O(n) worst-case complexity of mbscasestr.
64762         * lib/mbscasestr.c: Include stdbool.h.
64763         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64764         functions.
64765         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64766         the bookkeeping indicates that it's worth it.
64767         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64768
64769         * modules/mbscasestr-tests: New file.
64770         * tests/test-mbscasestr1.c: New file.
64771         * tests/test-mbscasestr2.sh: New file.
64772         * tests/test-mbscasestr2.c: New file.
64773         * tests/test-mbscasestr3.sh: New file.
64774         * tests/test-mbscasestr3.c: New file.
64775         * tests/test-mbscasestr4.sh: New file.
64776         * tests/test-mbscasestr4.c: New file.
64777         * m4/locale-tr.m4: New file.
64778
64779 2007-02-11  Bruno Haible  <bruno@clisp.org>
64780
64781         Ensure O(n) worst-case complexity of mbsstr.
64782         * lib/mbsstr.c: Include stdbool.h.
64783         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64784         functions.
64785         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64786         bookkeeping indicates that it's worth it.
64787         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64788
64789         * modules/mbsstr-tests: New file.
64790         * tests/test-mbsstr1.c: New file.
64791         * tests/test-mbsstr2.sh: New file.
64792         * tests/test-mbsstr2.c: New file.
64793         * tests/test-mbsstr3.sh: New file.
64794         * tests/test-mbsstr3.c: New file.
64795         * m4/locale-fr.m4: New file.
64796
64797 2007-02-11  Bruno Haible  <bruno@clisp.org>
64798
64799         * lib/mbsrchr.c (mbsrchr): Fix bug.
64800
64801         * modules/mbsrchr-tests: New file.
64802         * tests/test-mbsrchr.sh: New file.
64803         * tests/test-mbsrchr.c: New file.
64804
64805 2007-02-11  Bruno Haible  <bruno@clisp.org>
64806
64807         * lib/mbschr.c (mbschr): Fix bug.
64808
64809         * modules/mbschr-tests: New file.
64810         * tests/test-mbschr.sh: New file.
64811         * tests/test-mbschr.c: New file.
64812         * m4/locale-zh.m4: New file.
64813
64814 2007-02-11  Bruno Haible  <bruno@clisp.org>
64815
64816         Support for copying multibyte string iterators.
64817         * lib/mbiter.h: Include <string.h>.
64818         (mbiter_multi_copy): New function.
64819         (mbi_copy): New macro.
64820         * lib/mbuiter.h: Include <string.h>.
64821         (mbuiter_multi_copy): New function.
64822         (mbui_copy): New macro.
64823
64824 2007-02-11  Bruno Haible  <bruno@clisp.org>
64825
64826         New module mbslen.
64827         * modules/mbslen: New file.
64828         * lib/mbslen.c: New file.
64829         * lib/string_.h (mbslen): New declaration.
64830         * m4/mbslen.m4: New file.
64831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64832         GNULIB_MBSLEN.
64833         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64834         * MODULES.html.sh (Internationalization functions): Add mbslen.
64835
64836 2007-02-11  Bruno Haible  <bruno@clisp.org>
64837
64838         Ensure O(n) worst-case complexity of strcasestr substitute.
64839         * lib/strcasestr.c: Include stdbool.h.
64840         (knuth_morris_pratt): New function.
64841         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64842         bookkeeping indicates that it's worth it.
64843         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64844
64845         * modules/strcasestr-tests: New file.
64846         * tests/test-strcasestr.c: New file.
64847
64848 2007-02-11  Bruno Haible  <bruno@clisp.org>
64849
64850         Ensure O(n) worst-case complexity of c_strcasestr.
64851         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64852         (knuth_morris_pratt): New function.
64853         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64854         the bookkeeping indicates that it's worth it.
64855         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64856
64857         * modules/c-strcasestr-tests: New file.
64858         * tests/test-c-strcasestr.c: New file.
64859
64860 2007-02-11  Bruno Haible  <bruno@clisp.org>
64861
64862         Ensure O(n) worst-case complexity of c_strstr.
64863         * lib/c-strstr.c: Include stdbool.h, string.h.
64864         (knuth_morris_pratt): New function.
64865         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64866         bookkeeping indicates that it's worth it.
64867         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64868
64869         * lib/c-strstr.c: Complete rewrite for maintainability.
64870
64871         * modules/c-strstr-tests: New file.
64872         * tests/test-c-strstr.c: New file.
64873
64874 2007-02-11  Bruno Haible  <bruno@clisp.org>
64875
64876         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64877         5.2.1 and earlier, whereby \055 was treated just like the range
64878         delimiter '-'.
64879         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64880
64881 2007-02-08  Bruno Haible  <bruno@clisp.org>
64882
64883         * modules/regex (Depends-on): Add stdbool.
64884         Reported by Dalibor Topic <robilad@kaffe.org>.
64885
64886 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64889         Prefer returning from main to exiting from it.
64890         Remove unnecessary parens after sizeof.
64891
64892 2007-02-05  Bruno Haible  <bruno@clisp.org>
64893
64894         New module mbssep.
64895         * modules/mbssep: New file.
64896         * lib/mbssep.c: New file.
64897         * lib/string_.h (strsep): Add a conditional link warning.
64898         (mbssep): New declaration.
64899         * m4/mbssep.m4: New file.
64900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64901         GNULIB_MBSSEP.
64902         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64903         * MODULES.html.sh (Internationalization functions): Add mbssep.
64904
64905 2007-02-05  Bruno Haible  <bruno@clisp.org>
64906
64907         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64908         Optimize search in case of 1 delimiter.
64909
64910 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64911
64912         * lib/acl.h: Include sys/types.h before sys/acl.h.
64913
64914 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64915
64916         Merge upstream fix for glibc bugzilla #3957:
64917
64918         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64919
64920         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64921         bit for RE_HAT_LISTS_NOT_NEWLINE.
64922         (build_charclass_op): Remove bogus comment.
64923
64924 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64925
64926         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64927
64928 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64929
64930         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64931         * lib/memmem.c [!defined _LIBC]: Include config.h.
64932
64933 2007-02-04  Bruno Haible  <bruno@clisp.org>
64934
64935         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64936         warning message.
64937
64938 2007-02-04  Bruno Haible  <bruno@clisp.org>
64939
64940         New module mbstok_r.
64941         * modules/mbstok_r: New file.
64942         * lib/mbstok_r.c: New file.
64943         * lib/string_.h (strtok_r): Change argument names to match the
64944         comments. Add a conditional link warning.
64945         (mbstok_r): New declaration.
64946         * m4/mbstok_r.m4: New file.
64947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64948         GNULIB_MBSTOK_R.
64949         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64950         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64951
64952 2007-02-04  Bruno Haible  <bruno@clisp.org>
64953
64954         New module mbsspn.
64955         * modules/mbsspn: New file.
64956         * lib/mbsspn.c: New file.
64957         * lib/string_.h (strspn): Add a conditional link warning.
64958         (mbsspn): New declaration.
64959         * m4/mbsspn.m4: New file.
64960         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64961         GNULIB_MBSSPN.
64962         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64963         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64964
64965 2007-02-04  Bruno Haible  <bruno@clisp.org>
64966
64967         New module mbspbrk.
64968         * modules/mbspbrk: New file.
64969         * lib/mbspbrk.c: New file.
64970         * lib/string_.h (strpbrk): Add a conditional link warning.
64971         (mbspbrk): New declaration.
64972         * m4/mbspbrk.m4: New file.
64973         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64974         GNULIB_MBSPBRK.
64975         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64976         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64977
64978 2007-02-04  Bruno Haible  <bruno@clisp.org>
64979
64980         New module mbscspn.
64981         * modules/mbscspn: New file.
64982         * lib/mbscspn.c: New file.
64983         * lib/string_.h (strcspn): Add a conditional link warning.
64984         (mbscspn): New declaration.
64985         * m4/mbscspn.m4: New file.
64986         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64987         GNULIB_MBSCSPN.
64988         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64989         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64990
64991 2007-02-04  Bruno Haible  <bruno@clisp.org>
64992
64993         New module mbscasestr, reduced goal of strcasestr.
64994         * modules/mbscasestr: New file.
64995         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64996         (mbscasestr): Renamed from strcasestr.
64997         * lib/strcasestr.c: Don't include mbuiter.h.
64998         (strcasestr): Remove support for multibyte locales.
64999         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
65000         Change the conditional link warning.
65001         (mbscasestr): New declaration.
65002         * m4/mbscasestr.m4: New file.
65003         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
65004         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
65005         REPLACE_STRCASESTR.
65006         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
65007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65008         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65009         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
65010         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
65011         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65012         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
65013         (Depends-on): Remove mbuiter.
65014         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
65015
65016 2007-02-04  Bruno Haible  <bruno@clisp.org>
65017
65018         Simplify handling of strncasecmp.
65019         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
65020         the conditional link warning.
65021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65022         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
65023         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
65024         * modules/strcase (configure.ac): Don't invoke
65025         gl_STRING_MODULE_INDICATOR.
65026         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
65027
65028 2007-02-04  Bruno Haible  <bruno@clisp.org>
65029
65030         New module mbscasecmp, reduced goal of strcasecmp.
65031         * modules/mbscasecmp: New file.
65032         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
65033         (mbscasecmp): Renamed from strcasecmp.
65034         * lib/strcasecmp.c: Don't include mbuiter.h.
65035         (strcasecmp): Remove support for multibyte locales.
65036         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
65037         Change the conditional link warning.
65038         (mbscasecmp): New declaration.
65039         * m4/mbscasecmp.m4: New file.
65040         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65041         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65042         REPLACE_STRCASECMP.
65043         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65045         GNULIB_MBSCASECMP.
65046         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65047         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65048         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65049         (Depends-on): Remove mbuiter.
65050         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65051
65052 2007-02-04  Bruno Haible  <bruno@clisp.org>
65053
65054         New module mbsstr. Remove module strstr.
65055         * modules/mbsstr: New file.
65056         * modules/strstr: Remove file.
65057         * lib/mbsstr.c: Renamed from lib/strstr.c.
65058         (mbsstr): Renamed from strstr.
65059         * lib/string_.h (strstr): Remove declaration. Change the conditional
65060         link warning.
65061         (mbsstr): New declaration.
65062         * m4/mbsstr.m4: New file.
65063         * m4/strstr.m4: Remove file.
65064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65065         REPLACE_STRSTR.
65066         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65067         Don't initialize GNULIB_STRSTR.
65068         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65069         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65070         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65071         (Support for systems lacking ANSI C 89): Remove strstr.
65072
65073 2007-02-04  Bruno Haible  <bruno@clisp.org>
65074
65075         New module mbsrchr.
65076         * modules/mbsrchr: New file.
65077         * lib/mbsrchr.c: New file.
65078         * lib/string_.h (strrchr): Add a conditional link warning.
65079         (mbsrchr): New declaration.
65080         * m4/mbsrchr.m4: New file.
65081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65082         GNULIB_MBSRCHR.
65083         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65084         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65085
65086 2007-02-04  Bruno Haible  <bruno@clisp.org>
65087
65088         New module mbschr.
65089         * modules/mbschr: New file.
65090         * lib/mbschr.c: New file.
65091         * lib/string_.h (strchr): Add a conditional link warning.
65092         (mbschr): New declaration.
65093         * m4/mbschr.m4: New file.
65094         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65095         GNULIB_MBSCHR.
65096         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65097         * MODULES.html.sh (Internationalization functions): Add mbschr.
65098
65099 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65100
65101         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65102
65103         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65104
65105 2007-02-04  Bruno Haible  <bruno@clisp.org>
65106
65107         New module description section 'configure.ac-early'.
65108         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65109         (func_get_autoconf_early_snippet): New function.
65110         (func_import, func_create_testdir): Use it. Remove special cases for
65111         modules 'extensions' and 'lock'.
65112         * modules/extensions (configure.ac-early): Require
65113         gl_USE_SYSTEM_EXTENSIONS.
65114         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65115
65116 2007-02-04  Bruno Haible  <bruno@clisp.org>
65117
65118         Make use of gcj-4.3's -fsource and -ftarget option.
65119         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65120         and if so try the options -fsource and -ftarget.
65121         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65122         source_version, ftarget_option, target_version arguments.
65123         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65124         (is_envjavac_oldgcj_14_14_usable): Renamed from
65125         is_envjavac_gcj_14_14_usable.
65126         (is_envjavac_oldgcj_14_13_usable): Renamed from
65127         is_envjavac_gcj_14_13_usable.
65128         (is_gcj_present): Update.
65129         (is_gcj_43, is_gcj43_usable): New functions.
65130         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65131         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65132         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65133         try the options -fsource and -ftarget.
65134
65135 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65136
65137         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65138         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65139         larger value.
65140
65141 2007-02-03  Jim Meyering  <jim@meyering.net>
65142
65143         Give tools a better chance to allocate space for very large buffers.
65144         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65145
65146         Make pwd and readlink work also when run with an unreadable parent dir
65147         on systems with openat support.
65148         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65149         provided getcwd function, even when we have openat support.
65150         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65151
65152 2007-02-02  Bruno Haible  <bruno@clisp.org>
65153
65154         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65155         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65156         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65157         portability problems if one of these functions is only used on specific
65158         platforms.
65159         Reported by Paul Eggert.
65160
65161 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65162
65163         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65164         is causing more trouble than it's curing.
65165         * lib/regex_internal.h (__mempcpy): Remove.
65166         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65167         (and make the code a tad smaller to boot).
65168         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65169
65170 2007-02-02  Jim Meyering  <jim@meyering.net>
65171
65172         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65173         section, not in the Makefile.am: one.
65174
65175 2007-02-02  Eric Blake  <ebb9@byu.net>
65176
65177         * lib/strchrnul.c: Always include config.h first.
65178
65179         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65180         gnulib strstr is not necessary here.
65181
65182 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65183
65184         * m4/socklen.m4: Fix typo.
65185
65186 2007-02-02  Eric Blake  <ebb9@byu.net>
65187
65188         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65189         * modules/netinet_in (Makefile.am): Likewise.
65190
65191 2007-02-01  Bruno Haible  <bruno@clisp.org>
65192
65193         * lib/string_.h (GL_LINK_WARNING): New macro.
65194         (strcasecmp, strstr, strcasestr): If provided by the system,
65195         conditionally define as a macro that leads to a warning instead of to
65196         an error.
65197         (strncasecmp): Conditionally define as a macro that leads to a warning.
65198
65199 2007-02-01  Karl Berry  <karl@gnu.org>
65200
65201         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65202
65203 2007-02-01  Bruno Haible  <bruno@clisp.org>
65204
65205         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65206         renamings.
65207
65208 2007-02-01  Eric Blake  <ebb9@byu.net>
65209
65210         * modules/regex (Depends-on): Revert dependence on mempcpy.
65211         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65212         module's definition of mempcpy.
65213         Reported by Paul Eggert.
65214
65215 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65216
65217         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65218         the symbol XYZ before redefining it.  This fixes a problem with
65219         programs that don't use XYZ, when compiled on systems that define
65220         XYZ to something else.
65221
65222 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65223
65224         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65225         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65226         writeable to group or other and (2) is intended to have a special
65227         mode bit that is set or cleared.  In such a case, the directory
65228         should be neither group- nor other-writeable until the special
65229         mode bits are right.
65230
65231 2007-01-31  Eric Blake  <ebb9@byu.net>
65232
65233         * modules/mountlist (Depends-on): Add strstr.
65234
65235         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65236         bug.
65237         * modules/string (Makefile.am): Remove redundant replacement.
65238         * modules/regex (Depends-on): Add mempcpy.
65239
65240 2007-01-31  Bruno Haible  <bruno@clisp.org>
65241
65242         New module description field 'Link'.
65243         * gnulib-tool (func_usage): Document --extract-link-directive.
65244         (sed_extract_prog): Recognize 'Link' directive.
65245         (func_get_link_directive): New function.
65246         (func_import): Show summary of link directives.
65247         Handle --extract-link-directive option.
65248         * modules/acl (Link): New section.
65249         * modules/clock-time (Link): New section.
65250         * modules/euidaccess (Link): New section.
65251         * modules/gettext (Link): New section.
65252         * modules/iconv (Link): New section.
65253         * modules/lock (Link): New section.
65254         * modules/nanosleep (Link): New section.
65255         * modules/readline (Link): New section.
65256
65257 2007-01-27  Bruno Haible  <bruno@clisp.org>
65258
65259         Enforce the use of gnulib modules for unportable <string.h> functions.
65260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65261         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65262         (gl_HEADER_STRING_H_BODY): Require it.
65263         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65264         the symbol XYZ to one that gives a link error.
65265         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65266         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65267         * modules/mempcpy (configure.ac): Likewise.
65268         * modules/memrchr (configure.ac): Likewise.
65269         * modules/stpcpy (configure.ac): Likewise.
65270         * modules/stpncpy (configure.ac): Likewise.
65271         * modules/strcase (configure.ac): Likewise.
65272         * modules/strcasestr (configure.ac): Likewise.
65273         * modules/strchrnul (configure.ac): Likewise.
65274         * modules/strdup (configure.ac): Likewise.
65275         * modules/strndup (configure.ac): Likewise.
65276         * modules/strnlen (configure.ac): Likewise.
65277         * modules/strpbrk (configure.ac): Likewise.
65278         * modules/strsep (configure.ac): Likewise.
65279         * modules/strstr (configure.ac): Likewise.
65280         * modules/strtok_r (configure.ac): Likewise.
65281
65282 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65283
65284         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65285
65286 2007-01-30  Jim Meyering  <jim@meyering.net>
65287
65288         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65289
65290 2007-01-29  Bruno Haible  <bruno@clisp.org>
65291
65292         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65293         * lib/execute.c: Likewise.
65294         * lib/pipe.c: Likewise.
65295         * lib/printf-args.h: Likewise.
65296         * lib/printf-args.c: Likewise.
65297         * lib/printf-parse.c: Likewise.
65298         * lib/vasnprintf.c: Likewise.
65299
65300 2007-01-29  Eric Blake  <ebb9@byu.net>
65301
65302         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65303         declaration.
65304
65305 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65306
65307         * lib/strptime.h (strptime): Use 'restrict' for args where
65308         POSIX requires this.
65309         * lib/strptime.c (strptime): Likewise.
65310         Change license notice from LGPL to GPL, since gnulib-tool will
65311         change this as needed.
65312         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65313         defined.
65314         Include "strptime.h" first, to check interface.
65315         Do not #undef _LIBC and _NL_CURRENT.
65316         Do not include <stdlib.h>; no longer needed.
65317         Include "time_r.h" and declare ptime_locale_status
65318         only if _LIBC is not defined.
65319         (__P): Remove unused macro.
65320         (match_string): Bring back glibc version, but use it only if _LIBC
65321         is defined.
65322         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65323         Remove unnecessary assertion and abort() call.
65324         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65325         * m4/strptime.m4: Fix serial number comment.
65326         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65327         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65328         (Depends-on): Add time_r.
65329
65330 2007-01-29  Bruno Haible  <bruno@clisp.org>
65331
65332         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65333         strptime.
65334         * modules/strptime (Depends-on): Add stdbool.
65335         * lib/strptime.h: Include <time.h> always. Add comments.
65336
65337 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65338
65339         * modules/strptime: New file.
65340         * lib/strptime.h: New file.
65341         * lib/strptime.c: New file.
65342         * m4/strptime.m4: New file.
65343
65344 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65345
65346         * MODULES.html.sh: New module mpsort.
65347         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65348
65349         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65350         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65351         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65352         All uses changed.
65353         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65354         All uses changed.
65355         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65356         to _Restrict_.
65357         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65358         the parameter matches the prototype.
65359
65360 2007-01-28  Jim Meyering  <jim@meyering.net>
65361
65362         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65363         sys/time.h here, reverting that part of the previous patch:
65364         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65365
65366 2007-01-28  Bruno Haible  <bruno@clisp.org>
65367
65368         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65369         value of $(SYS_TIME_H).
65370         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65371         remove it conditionally, too. [added by Jim Meyering]
65372         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65374         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65375         GETTIMEOFDAY_REPLACEMENT to 1.
65376
65377 2007-01-28  Bruno Haible  <bruno@clisp.org>
65378
65379         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65380         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65381         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65382         Set UNISTD_H instead of UNISTD_H2.
65383         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65384
65385 2007-01-28  Bruno Haible  <bruno@clisp.org>
65386
65387         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65388         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65389
65390 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65391
65392         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65393         (func_create_testdir): Ensure C locale for `grep' and `tr'
65394         character ranges.
65395         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65396         ACLOCAL_AMFLAGS parsing state machine.
65397
65398 2007-01-27  Bruno Haible  <bruno@clisp.org>
65399
65400         * modules/unistr/base: Update.
65401
65402 2007-01-27  Bruno Haible  <bruno@clisp.org>
65403
65404         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65405         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65406         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65407         modules/unistr/u32-mbtouc.
65408         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65409         * lib/unistr.h: Update.
65410         * lib/linebreak.c: Update.
65411         * modules/unistr/u32-mbtouc: Renamed from
65412         modules/unistr/u32-mbtouc-safe.
65413         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65414         * lib/unistr.h: Update.
65415         * lib/unistr/u32-to-u8.c: Update.
65416         * lib/unistr/u32-to-u16.c: Update.
65417
65418 2007-01-27  Bruno Haible  <bruno@clisp.org>
65419
65420         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65421         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65422         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65423         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65424         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65425         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65426         modules/unistr/u16-mbtouc.
65427         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65428         * lib/unistr.h: Update.
65429         * lib/linebreak.c: Update.
65430         * modules/linebreak: Update.
65431         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65432         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65433         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65434         * modules/unistr/u16-mbtouc: Renamed from
65435         modules/unistr/u16-mbtouc-safe.
65436         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65437         * lib/unistr.h: Update.
65438         * lib/unistr/u16-to-u8.c: Update.
65439         * modules/unistr/u16-to-u8: Update.
65440         * lib/unistr/u16-to-u32.c: Update.
65441         * modules/unistr/u16-to-u32: Update.
65442
65443 2007-01-27  Bruno Haible  <bruno@clisp.org>
65444
65445         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65446         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65447         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65448         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65449         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65450         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65451         modules/unistr/u8-mbtouc.
65452         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65453         * lib/unistr.h: Update.
65454         * lib/striconveh.c: Update.
65455         * modules/striconveh: Update.
65456         * lib/linebreak.c: Update.
65457         * modules/linebreak: Update.
65458         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65459         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65460         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65461         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65462         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65463         * lib/unistr.h: Update.
65464         * lib/striconveh.c: Update.
65465         * modules/striconveh: Update.
65466         * lib/unistr/u8-to-u16.c: Update.
65467         * modules/unistr/u8-to-u16: Update.
65468         * lib/unistr/u8-to-u32.c: Update.
65469         * modules/unistr/u8-to-u32: Update.
65470
65471 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65472
65473         Sync from Libtool.
65474         * lib/argz.c: Do not include strings.h nor memory.h, include
65475         string.h unconditionally.  Patch by Simon Josefsson.
65476
65477 2007-01-27  Bruno Haible  <bruno@clisp.org>
65478
65479         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65480         from gl_HEADER_STRING_H_BODY.
65481         (gl_HEADER_STRING_H_BODY): Require it.
65482         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65483         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65484         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65485         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65486         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65487         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65489         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65490         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65491         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65492         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65493         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65494         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65495         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65496         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65497
65498 2007-01-27  Bruno Haible  <bruno@clisp.org>
65499
65500         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65501         check_PROGRAMS into noinst_PROGRAMS.
65502         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65503         check_PROGRAMS in this case.
65504         (func_import): Set for_test to false.
65505         (func_create_testdir): Set for_test to true.
65506
65507 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65508             Bruno Haible  <bruno@clisp.org>
65509
65510         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65511         (Depends-on): Add string.
65512         (Includes): Use <string.h> instead of strcasestr.h.
65513         * modules/string (Makefile.am): Also substitute the value of
65514         REPLACE_STRCASESTR.
65515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65516         assume strcasestr is declared in <string.h> not <strings.h>. Also
65517         set REPLACE_STRCASESTR.
65518         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65519         REPLACE_STRCASESTR.
65520         * lib/strcasestr.h: Remove file.
65521         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65522         * lib/string_.h (strcasestr): New declaration.
65523
65524 2007-01-27  Bruno Haible  <bruno@clisp.org>
65525
65526         * lib/string_.h: Use 'extern'.
65527
65528 2007-01-27  Jim Meyering  <jim@meyering.net>
65529
65530         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65531         of set-but-not-used local, "q".
65532
65533         * lib/mempcpy.c: Include <config.h> before <string.h>.
65534         This fixes a compilation error on HP-UX, due to the system's
65535         "restrict"-using mempcpy prototype.
65536
65537 2007-01-26  Bruno Haible  <bruno@clisp.org>
65538
65539         Small optimization.
65540         * lib/javacomp.c: Include c-strstr.h.
65541          (is_envjavac_gcj): Use c_strstr instead of strstr.
65542         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65543
65544 2007-01-26  Bruno Haible  <bruno@clisp.org>
65545
65546         * MODULES.html.sh (Unicode string functions): Add the new modules.
65547
65548         * modules/uniconv/u32-strconv-to-locale: New file.
65549         * lib/uniconv/u32-strconv-to-locale.c: New file.
65550
65551         * modules/uniconv/u16-strconv-to-locale: New file.
65552         * lib/uniconv/u16-strconv-to-locale.c: New file.
65553
65554         * modules/uniconv/u8-strconv-to-locale: New file.
65555         * lib/uniconv/u8-strconv-to-locale.c: New file.
65556
65557         * modules/uniconv/u32-strconv-from-locale: New file.
65558         * lib/uniconv/u32-strconv-from-locale.c: New file.
65559
65560         * modules/uniconv/u16-strconv-from-locale: New file.
65561         * lib/uniconv/u16-strconv-from-locale.c: New file.
65562
65563         * modules/uniconv/u8-strconv-from-locale: New file.
65564         * lib/uniconv/u8-strconv-from-locale.c: New file.
65565
65566         * modules/uniconv/u32-strconv-to-enc: New file.
65567         * lib/uniconv/u32-strconv-to-enc.c: New file.
65568         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65569         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65570
65571         * modules/uniconv/u16-strconv-to-enc: New file.
65572         * lib/uniconv/u16-strconv-to-enc.c: New file.
65573         * lib/uniconv/u-strconv-to-enc.h: New file.
65574         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65575         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65576
65577         * modules/uniconv/u8-strconv-to-enc: New file.
65578         * lib/uniconv/u8-strconv-to-enc.c: New file.
65579         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65580         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65581
65582         * modules/uniconv/u32-strconv-from-enc: New file.
65583         * lib/uniconv/u32-strconv-from-enc.c: New file.
65584         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65585         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65586
65587         * modules/uniconv/u16-strconv-from-enc: New file.
65588         * lib/uniconv/u16-strconv-from-enc.c: New file.
65589         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65590         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65591
65592         * modules/uniconv/u8-strconv-from-enc: New file.
65593         * lib/uniconv/u8-strconv-from-enc.c: New file.
65594         * lib/uniconv/u-strconv-from-enc.h: New file.
65595         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65596         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65597
65598         * modules/uniconv/u32-conv-from-enc: New file.
65599         * lib/uniconv/u32-conv-from-enc.c: New file.
65600         * modules/uniconv/u32-conv-from-enc-tests: New file.
65601         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65602
65603         * modules/uniconv/u16-conv-from-enc: New file.
65604         * lib/uniconv/u16-conv-from-enc.c: New file.
65605         * lib/uniconv/u-conv-from-enc.h: New file.
65606         * modules/uniconv/u16-conv-from-enc-tests: New file.
65607         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65608
65609         * modules/uniconv/u8-conv-from-enc: New file.
65610         * lib/uniconv/u8-conv-from-enc.c: New file.
65611         * modules/uniconv/u8-conv-from-enc-tests: New file.
65612         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65613
65614         * modules/uniconv/base: New file.
65615         * lib/uniconv.h: New file.
65616
65617 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65618
65619         * doc/gnulib-tool.texi (Initial import): Update to match current
65620         behavior with strdup module.
65621         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65622         * lib/memmem.h: Remove; all uses removed.  This is now done
65623         by <string.h>.
65624         * lib/mempcpy.h: Likewise.
65625         * lib/memrchr.h: Likewise.
65626         * lib/stpcpy.h: Likewise.
65627         * lib/stpncpy.h: Likewise.
65628         * lib/strcase.h: Likewise.
65629         * lib/strchrnul.h: Likewise.
65630         * lib/strdup.h: Likewise.
65631         * lib/strndup.h: Likewise.
65632         * lib/strnlen.h: Likewise.
65633         * lib/strpbrk.h: Likewise.
65634         * lib/strsep.h: Likewise.
65635         * lib/strstr.h: Likewise.
65636         * lib/strtok_r.h: Likewise.
65637         * lib/string_.h: New file.
65638         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65639         Rely on <string.h> instead.
65640         * lib/canon-host.c: Likewise.
65641         * lib/chdir-long.c: Likewise.
65642         * lib/concatpath.c: Likewise.
65643         * lib/exclude.c: Likewise.
65644         * lib/fchdir.c: Likewise.
65645         * lib/getaddrinfo.c: Likewise.
65646         * lib/getcwd.c: Likewise.
65647         * lib/getsubopt.c: Likewise.
65648         * lib/glob.c: Likewise.
65649         * lib/hard-locale.c: Likewise.
65650         * lib/iconvme.c: Likewise.
65651         * lib/javacomp.c: Likewise.
65652         * lib/mempcpy.c: Likewise.
65653         * lib/memrchr.c: Likewise.
65654         * lib/regex_internal.h: Likewise.
65655         * lib/stpncpy.c: Likewise.
65656         * lib/strcasecmp.c: Likewise.
65657         * lib/strchrnul.c: Likewise.
65658         * lib/strdup.c: Likewise.
65659         * lib/striconv.c: Likewise.
65660         * lib/striconveh.c: Likewise.
65661         * lib/striconveha.c: Likewise.
65662         * lib/strncasecmp.c: Likewise.
65663         * lib/strndup.c: Likewise.
65664         * lib/strnlen.c: Likewise.
65665         * lib/strsep.c: Likewise.
65666         * lib/strstr.c: Likewise.
65667         * lib/strtok_r.c: Likewise.
65668         * lib/userspec.c: Likewise.
65669         * lib/w32spawn.h: Likewise.
65670         * lib/xstrndup.c: Likewise.
65671         * lib/mountlist.c (strstr): Remove decl.
65672         * m4/string_h.m4: New file.
65673         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65674         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65675         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65676         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65677         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65678         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65679         Set REPLACE_STRCASECMP if necessary.
65680         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65681         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65682         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65683         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65684         HAVE_DECL_STRDUP if necessary.
65685         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65686         since gl_FUNC_STRNDUP does that now.
65687         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65688         Check for decl here...
65689         (gl_PREREQ_STRNLEN): ... not here.
65690         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65691         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65692         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65693         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65694         necessary.
65695         * modules/string: New file.
65696         * modules/memmem (Files): Remove special-purpose include file.
65697         (Depends-on): Add string.
65698         (Include): Include <string.h>, not the removed file.
65699         * modules/mempcpy: Likewise.
65700         * modules/memrchr: Likewise.
65701         * modules/stpcpy: Likewise.
65702         * modules/stpncpy: Likewise.
65703         * modules/strcase: Likewise.
65704         * modules/strchrnul: Likewise.
65705         * modules/strdup: Likewise.
65706         * modules/strndup: Likewise.
65707         * modules/strnlen: Likewise.
65708         * modules/strpbrk: Likewise.
65709         * modules/strsep: Likewise.
65710         * modules/strstr: Likewise.
65711         * modules/strtok_r: Likewise.
65712         * tests/test-dirname.c: Don't include "strdup.h", since
65713         <string.h> now suffices.
65714         * tests/test-memmem.c: Don't include "memmem.h", since
65715         <string.h> now suffices.
65716
65717 2007-01-25  Bruno Haible  <bruno@clisp.org>
65718
65719         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65720         *resultp is 0.
65721
65722         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65723         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65724         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65725         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65726
65727         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65728         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65729         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65730         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65731         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65732         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65733
65734 2007-01-24  Bruno Haible  <bruno@clisp.org>
65735
65736         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65737         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65738         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65739         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65740         gl_FUNC_FTS_CORE.
65741         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65742         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65743         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65744         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65745         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65746         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65747         gl_FUNC_FCHOWNAT.
65748         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65749         gl_FUNC_STRFTIME.
65750         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65751         Reported by Ralf Wildenhues.
65752
65753 2007-01-24  Bruno Haible  <bruno@clisp.org>
65754
65755         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65756         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65757         gl_GETADDRINFO.
65758         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65759         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65760         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65761
65762 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65763
65764         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65765         Don't use 'exit'; just return from 'main'.
65766         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65767
65768         * lib/fnmatch_.h: Readjust white space and comments to match
65769         glibc, to avoid spurious diffs.
65770
65771 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65774         2004-12-01 change by Jakub Jelinek, since this code won't compile
65775         if !LIBC.  Problem reported by Bob Proulx.
65776
65777 2007-01-23  Bruno Haible  <bruno@clisp.org>
65778
65779         * lib/striconveh.c: Include c-strcaseeq.h.
65780         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65781         * modules/striconveh (Depends-on): Add c-strcaseeq.
65782
65783 2007-01-23  Bruno Haible  <bruno@clisp.org>
65784
65785         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65786
65787         * modules/c-strcaseeq: New file.
65788         * lib/c-strcaseeq.h: New file.
65789
65790         * modules/streq: New file.
65791         * lib/streq.h: New file.
65792
65793 2007-01-23  Bruno Haible  <bruno@clisp.org>
65794
65795         * modules/striconveha-tests: New file.
65796         * tests/test-striconveha.c: New file.
65797
65798         * lib/striconveha.h: Include <stdbool.h>.
65799         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65800         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65801         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65802         (mem_iconveha): New function.
65803         (str_iconveha_notranslit): Renamed from str_iconveha.
65804         (str_iconveha): New function.
65805         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65806         c-strcase.
65807
65808 2007-01-23  Bruno Haible  <bruno@clisp.org>
65809
65810         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65811         encodings without forgiving before trying any encoding with handler.
65812         (str_iconveha): Try all encodings without forgiving before trying any
65813         encoding with handler.
65814
65815 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         Import the following changes from libc.
65818
65819         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65820
65821         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65822
65823         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65824
65825         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65826         normal_bracket label.
65827
65828         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65829
65830         [BZ #361]
65831         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65832         to normal_bracket after fetching the next character.
65833
65834 2007-01-22  Bruno Haible  <bruno@clisp.org>
65835
65836         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65837         argument.
65838         * lib/striconveh.c (iconv_carefully_1): New function.
65839         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65840         argument.
65841         (str_cd_iconveh): Update.
65842         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65843         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65844         * tests/test-striconveh.c (MAGIC): New macro.
65845         (new_offsets): New function.
65846         (main): Test call with and without offsets.
65847
65848 2007-01-22  Bruno Haible  <bruno@clisp.org>
65849
65850         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65851         * modules/sys_select (Makefile.am): Likewise.
65852         * modules/sys_socket (Makefile.am): Likewise.
65853         * modules/sys_time (Makefile.am): Likewise.
65854
65855 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65856
65857         * modules/gettimeofday (License): Change from GPL to LGPL, since
65858         gettimeofday is a library function.
65859
65860 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65861
65862         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65863
65864 2007-01-21  Bruno Haible  <bruno@clisp.org>
65865
65866         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65867
65868 2007-01-21  Bruno Haible  <bruno@clisp.org>
65869
65870         * modules/striconveha: New file.
65871         * lib/striconveha.h: New file.
65872         * lib/striconveha.c: New file.
65873         * MODULES.html.sh (Internationalization functions): Add striconveha.
65874         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65875         string.
65876         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65877
65878 2007-01-21  Bruno Haible  <bruno@clisp.org>
65879
65880         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65881         * lib/striconveh.c (str_iconveh): Likewise.
65882
65883 2007-01-21  Bruno Haible  <bruno@clisp.org>
65884
65885         * lib/striconveh.h (mem_iconveh): New declaration.
65886         * lib/striconveh.c (mem_iconveh): New function.
65887         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65888
65889 2007-01-21  Bruno Haible  <bruno@clisp.org>
65890
65891         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65892
65893         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65894         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65895         original result buffer.
65896         (str_cd_iconveh): Update.
65897         * tests/test-striconveh.c (main): Update.
65898
65899         * lib/striconv.h (mem_cd_iconv): Change specification.
65900         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65901         result buffer.
65902         (str_cd_iconv): Update.
65903         * tests/test-striconv.c (main): Update.
65904
65905 2007-01-21  Bruno Haible  <bruno@clisp.org>
65906
65907         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65908
65909 2007-01-20  Jim Meyering  <jim@meyering.net>
65910
65911         * lib/userspec.c (parse_with_separator): If a user or group string
65912         starts with "+", skip the corresponding name-to-ID look-up, since
65913         such a look-up must fail: user and group names may not include "+".
65914
65915 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65916
65917         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65918         since we now assume the sys_time module.
65919         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65920         check for sys/time.h; no longer needed.
65921         * modules/poll (Depends-on): Depend on sys_time.
65922
65923 2007-01-18  Bruno Haible  <bruno@clisp.org>
65924
65925         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65926         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65927
65928         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65929         gettimeofday.
65930
65931         * tests/test-gettimeofday.c: Include <time.h>.
65932         (dummy): Remove variable.
65933
65934         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65935         gl_HEADER_SYS_TIME_H.
65936         (gl_HEADER_SYS_TIME_H): New macro.
65937
65938         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65939         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65940         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65941         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65942         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65943         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65944         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65945         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65946         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65947         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65948         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65949
65950         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65951         last change; it caused a compilation error when cross-compiling to
65952         Cygwin.
65953
65954 2007-01-18  Jim Meyering  <jim@meyering.net>
65955
65956         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65957         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65958         than the race-prone "test -d sys || mkdir sys".
65959         (configure.ac): Use AC_PROG_MKDIR_P.
65960         * modules/sys_select: Likewise.
65961         * modules/sys_socket: Likewise.
65962         * modules/sys_time: Likewise.
65963
65964 2007-01-18  Eric Blake  <ebb9@byu.net>
65965
65966         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65967         replace gettimeofday.
65968         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65969         name, to avoid infinite recursion.
65970
65971 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65972
65973         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65974         module sys_time.
65975         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65976         assume timespec.h defines struct timeval.
65977         * lib/settime.c: Likewise.
65978         * lib/utimens.c: Likewise.
65979         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65980         since we now assume the gettimeofday module.
65981         * lib/tempname.c (__gen_tempname): Likewise.
65982         * lib/gettimeofday.h: Remove.
65983         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65984         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65985         Include <time.h>, for 'time()'.
65986         (localtime_buffer_addr): Also use this workaround if
65987         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65988         to simplify the uses.  All uses changed.
65989         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65990         that #undef is inside {}, and 'const' follows type name consistently.
65991         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65992         (gettimeofday): Do not use the maximum possible value for
65993         tv->tv_usec, since that might break usages other than ls.c.
65994         Instead, we'll leave ls.c alone.  This undoes today's patch
65995         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65996         we've never observed the problem but might as well keep the
65997         canary.
65998         * lib/nanosleep.c: Include timespec.h first, for interface check.
65999         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
66000         now assume the sys_time module.
66001         * lib/tempname.c: Likewise.
66002         * lib/timespec.h: Likewise.
66003         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
66004         needed.
66005         * lib/strftime.c: Likewise.
66006         * lib/timespec.h: Likewise.
66007         * lib/posixtm.c: Include posixtm.h first, for interface check.
66008         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
66009         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
66010         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
66011         * lib/sys_time_.h: New file.
66012         * lib/timespec.h (struct timespec): Use long int, not long.
66013         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66014         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
66015         Remove obsolescent call to AC_HEADER_TIME.
66016         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
66017         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66018         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66019         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
66020         Likewise.
66021         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
66022         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
66023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
66024         into the sys_time module.  Check for gettimeofday just once.
66025         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
66026         for gettimeofday signature to just check the signature.  Merely
66027         compile it, since linking doesn't test signature.  Improve test for
66028         whether gettimeofday.o is actually needed.
66029         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
66030         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
66031         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
66032         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66033         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
66034         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
66035         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
66036         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
66037         than worrying about sys/time.h.
66038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66039         Don't bother worrying about TIME_WITH_SYS_TIME.
66040         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66041         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66042         * m4/sys_time_h.m4: New file.
66043         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66044         Don't include sys/time.h.  Return from main rather than exiting.
66045         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66046         all uses changed.
66047         * modules/gethrxtime (Depends-on): Add sys_time.
66048         * modules/gettime (Depends-on): Likewise.
66049         * modules/gettimeofday (Depends-on): Likewise.
66050         * modules/nanosleep (Depends-on): Likewise.
66051         * modules/settime (Depends-on): Likewise.
66052         * modules/tempname (Depends-on): Likewise.
66053         * modules/utimens (Depends-on): Likewise.
66054         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66055         (Include): Change back to <sys/time.h>.
66056         (Maintainer): Add self.
66057         * modules/sys_time: New file.
66058         * modules/tempname (Depends-on): Add gettimeofday.
66059         * tests/test-gettimeofday.c: Include <sys/time.h>
66060         rather than gettimeofday.h.
66061
66062 2007-01-17  Bruno Haible  <bruno@clisp.org>
66063
66064         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66065         the license default to GPL.
66066         (func_create_testdir): Don't complain if a module is LGPL and its
66067         tests module depends on GPLed modules.
66068
66069 2007-01-17  Bruno Haible  <bruno@clisp.org>
66070
66071         * lib/gettimeofday.c (gettimeofday): Add code for the case
66072         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66073         maximum possible value for tv->tv_usec, rather than the minimum one.
66074
66075 2005-10-08  Martin Lambers  <marlam@marlam.de>
66076 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66077 2007-01-16  Bruno Haible  <bruno@clisp.org>
66078
66079         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66080         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66081         gl_FUNC_GETTIMEOFDAY.
66082         (Include): Add gettimeofday.h.
66083         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66084         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66085         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66086         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66087         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66088         * lib/gettimeofday.h: New file.
66089         * lib/gettimeofday.c: Include <sys/timeb.h>.
66090         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66091         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66092         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66093         fall back on time().
66094
66095         * tests/test-gettimeofday.c: New file.
66096         * modules/gettimeofday-tests: New file.
66097
66098 2007-01-16  Eric Blake  <ebb9@byu.net>
66099
66100         * modules/fnmatch (Depends-on): Depend on wchar.
66101         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66102         * m4/fnmatch.m4: Likewise.
66103         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66104         * m4/mbchar.m4: Likewise.
66105         * modules/mbswidth (Depends-on): Depend on wchar.
66106         * lib/mbswidth.c: Assume <wchar.h>.
66107         * m4/mbswidth.m4: Likewise.
66108         * modules/quotearg (Depends-on): Depend on wchar.
66109         * lib/quotearg.c: Assume <wchar.h>.
66110         * m4/quotearg.m4: Likewise.
66111         * modules/regex (Depends-on): Depend on wchar.
66112         * lib/regex_internal.h: Assume <wchar.h>.
66113         * m4/regex.m4: Likewise.
66114         * modules/stdint (Depends-on): Depend on wchar.
66115         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66116         * m4/stdint.m4: Likewise.
66117         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66118         * modules/strftime (Depends-on): Depend on wchar.
66119         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66120         * modules/strtol (Depends-on): Depend on wchar.
66121         * lib/strtol.c: Assume <wchar.h>.
66122         * modules/wcwidth (Depends-on): Depend on wchar.
66123         * lib/wcwidth.h: Assume <wchar.h>.
66124         * m4/wcwidth.m4: Likewise.
66125
66126 2007-01-16  Bruno Haible  <bruno@clisp.org>
66127
66128         * modules/csharpexec-script: New, created from...
66129         * modules/csharpexec: ... this.
66130
66131 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66132
66133         * modules/javaexec-script: New, created from...
66134         * modules/javaexec: ... this.
66135
66136 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66137
66138         * modules/poll (Dependencies): Add sys_select.
66139
66140 2007-01-15  Jim Meyering  <jim@meyering.net>
66141
66142         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66143         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66144         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66145         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66146
66147 2007-01-15  Bruno Haible  <bruno@clisp.org>
66148
66149         * modules/striconveh: New file.
66150         * lib/striconveh.h: New file.
66151         * lib/striconveh.c: New file.
66152         * MODULES.html.sh (Internationalization functions): Add striconveh.
66153
66154         * modules/striconveh-tests: New file.
66155         * tests/test-striconveh.c: New file.
66156
66157 2007-01-15  Bruno Haible  <bruno@clisp.org>
66158
66159         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66160         not from GNU libiconv or GNU libc.
66161
66162 2007-01-15  Bruno Haible  <bruno@clisp.org>
66163
66164         * doc/gnulib-intro.texi (Copyright): Explain the different license
66165         terms for module descriptions, autoconf macros, tests, documentation.
66166
66167 2007-01-14  Bruno Haible  <bruno@clisp.org>
66168
66169         * modules/striconv-tests: New file.
66170         * tests/test-striconv.c: New file.
66171
66172 2007-01-14  Bruno Haible  <bruno@clisp.org>
66173
66174         * modules/iconv-tests: New file.
66175         * tests/test-iconv.c: New file.
66176
66177 2007-01-14  Bruno Haible  <bruno@clisp.org>
66178
66179         * gnulib-tool (func_get_license): For test modules, use the license of
66180         the main module.
66181
66182 2007-01-14  Bruno Haible  <bruno@clisp.org>
66183
66184         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66185         if iconv is found to exist.
66186
66187 2007-01-14  Bruno Haible  <bruno@clisp.org>
66188
66189         * modules/c-ctype-tests: New file.
66190         * tests/test-c-ctype.c: New file.
66191
66192 2007-01-14  Bruno Haible  <bruno@clisp.org>
66193
66194         * modules/binary-io-tests: New file.
66195         * tests/test-binary-io.sh: New file.
66196         * tests/test-binary-io.c: New file.
66197
66198 2007-01-14  Bruno Haible  <bruno@clisp.org>
66199
66200         * modules/array-oset-tests: New file.
66201         * tests/test-array_oset.c: New file.
66202
66203 2007-01-14  Bruno Haible  <bruno@clisp.org>
66204
66205         * modules/array-list-tests: New file.
66206         * tests/test-array_list.c: New file.
66207
66208 2007-01-14  Bruno Haible  <bruno@clisp.org>
66209
66210         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66211         and make.
66212         Reported by Simon Josefsson in
66213         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66214
66215 2007-01-14  Bruno Haible  <bruno@clisp.org>
66216
66217         * modules/allocsa-tests: New file.
66218         * tests/test-allocsa.c: New file.
66219
66220 2007-01-14  Bruno Haible  <bruno@clisp.org>
66221
66222         * modules/fchdir (Depends-on): Add absolute-header.
66223         * modules/unistd (Depends-on): Likewise.
66224
66225 2006-12-30  Bruno Haible  <bruno@clisp.org>
66226
66227         * modules/fchdir: New file.
66228         * modules/unistd (Files): Add lib/unistd_.h.
66229         (Makefile.am): Generate unistd.h from unistd_.h.
66230         * lib/fchdir.c: New file.
66231         * lib/dirent_.h: New file.
66232         * lib/unistd_.h: New file.
66233         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66234         * m4/fchdir.m4: New file.
66235         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66236         (gl_HEADER_UNISTD): Invoke it.
66237         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66238         function.
66239         * lib/backupfile.c (opendir, closedir): Undefine.
66240         * lib/chown.c (open, close): Undefine.
66241         * lib/clean-temp.c (open, close): Undefine.
66242         * lib/copy-file.c (open, close): Undefine.
66243         * lib/execute.c (open, close): Undefine.
66244         * lib/fsusage.c (open, close): Undefine.
66245         * lib/gc-gnulib.c (open, close): Undefine.
66246         * lib/getcwd.c (opendir, closedir): Undefine.
66247         * lib/glob.c (opendir, closedir): Undefine.
66248         * lib/javacomp.c (open, close): Undefine.
66249         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66250         * lib/openat-proc.c (open, close): Undefine.
66251         * lib/pagealign_alloc.c (open, close): Undefine.
66252         * lib/pipe.c (open, close): Undefine.
66253         * lib/progreloc.c (open, close): Undefine.
66254         * lib/savedir.c (opendir, closedir): Undefine.
66255         * lib/utime.c (open, close): Undefine.
66256         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66257
66258 2007-01-10  Bruno Haible  <bruno@clisp.org>
66259
66260         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66261
66262 2007-01-12  Eric Blake  <ebb9@byu.net>
66263
66264         Provide a robust <wchar.h>.  Further simplifications are now
66265         possible in other modules, but not included here.
66266         * modules/wchar: New module.
66267         * m4/wchar.m4: New file.
66268         * lib/wchar_.h: Likewise.
66269         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66270         of the new module.
66271         * MODULES.html.sh (Extended multibyte and wide character utilities):
66272         New section.
66273
66274 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66275
66276         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66277         to a reasonable default for memory allocation.
66278         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66279         file system that reports garbage st_size values for symlinks.
66280         Problem reported by Liyang Hu.
66281
66282 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66283
66284         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66285         Emacs .#* auto-save files).
66286
66287 2007-01-11  Bruno Haible  <bruno@clisp.org>
66288
66289         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66290         directory.
66291
66292 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66293
66294         Use @...@ consistently in lib/wctype_.h.
66295         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66296         on it being set to 1 or 0.
66297         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66298         go back to AC_SUBSTing it.
66299         * modules/wctype (Makefile.am): Undo previous change.
66300
66301 2007-01-10  Eric Blake  <ebb9@byu.net>
66302
66303         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66304         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66305         * modules/wctype (Makefile.am): Likewise.
66306         Reported by Chris McGuire.
66307
66308 2007-01-10  Jim Meyering  <jim@meyering.net>
66309
66310         fts.c: a small readability/maintainability improvement
66311         * lib/fts.c (fts_read): Make this code slightly more readable and
66312         maintainable by hoisting the "sp->fts_cur = p" assignments to
66313         immediately follow the statements that set P.  Derived from
66314         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66315
66316 2007-01-10  Eric Blake  <ebb9@byu.net>
66317
66318         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66319         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66321         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66322         Reported by Chris McGuire.
66323
66324 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66325
66326         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66327         in sed script.
66328
66329 2007-01-09  Bruno Haible  <bruno@clisp.org>
66330
66331         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66332         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66333         variables.
66334         (func_module): Use them.
66335
66336 2007-01-09  Bruno Haible  <bruno@clisp.org>
66337
66338         * modules/unistr/base: New file.
66339         * lib/unistr.h: New file.
66340
66341         * modules/unistr/u8-to-u16: New file.
66342         * lib/unistr/u8-to-u16.c: New file.
66343
66344         * modules/unistr/u8-to-u32: New file.
66345         * lib/unistr/u8-to-u32.c: New file.
66346
66347         * modules/unistr/u16-to-u8: New file.
66348         * lib/unistr/u16-to-u8.c: New file.
66349
66350         * modules/unistr/u16-to-u32: New file.
66351         * lib/unistr/u16-to-u32.c: New file.
66352
66353         * modules/unistr/u32-to-u8: New file.
66354         * lib/unistr/u32-to-u8.c: New file.
66355
66356         * modules/unistr/u32-to-u16: New file.
66357         * lib/unistr/u32-to-u16.c: New file.
66358
66359         * modules/unistr/u8-check: New file.
66360         * modules/unistr/u16-check: New file.
66361         * modules/unistr/u32-check: New file.
66362         * lib/unistr/u8-check.c: New file.
66363         * lib/unistr/u16-check.c: New file.
66364         * lib/unistr/u32-check.c: New file.
66365
66366         * modules/unistr/u8-chr: New file.
66367         * modules/unistr/u16-chr: New file.
66368         * modules/unistr/u32-chr: New file.
66369         * lib/unistr/u8-chr.c: New file.
66370         * lib/unistr/u16-chr.c: New file.
66371         * lib/unistr/u32-chr.c: New file.
66372
66373         * modules/unistr/u8-cmp: New file.
66374         * modules/unistr/u16-cmp: New file.
66375         * modules/unistr/u32-cmp: New file.
66376         * lib/unistr/u8-cmp.c: New file.
66377         * lib/unistr/u16-cmp.c: New file.
66378         * lib/unistr/u32-cmp.c: New file.
66379
66380         * modules/unistr/u8-cpy: New file.
66381         * modules/unistr/u16-cpy: New file.
66382         * modules/unistr/u32-cpy: New file.
66383         * lib/unistr/u8-cpy.c: New file.
66384         * lib/unistr/u16-cpy.c: New file.
66385         * lib/unistr/u32-cpy.c: New file.
66386         * lib/unistr/u-cpy.h: New file.
66387
66388         * modules/unistr/u8-cpy-alloc: New file.
66389         * modules/unistr/u16-cpy-alloc: New file.
66390         * modules/unistr/u32-cpy-alloc: New file.
66391         * lib/unistr/u8-cpy-alloc.c: New file.
66392         * lib/unistr/u16-cpy-alloc.c: New file.
66393         * lib/unistr/u32-cpy-alloc.c: New file.
66394         * lib/unistr/u-cpy-alloc.h: New file.
66395
66396         * modules/unistr/u8-endswith: New file.
66397         * modules/unistr/u16-endswith: New file.
66398         * modules/unistr/u32-endswith: New file.
66399         * lib/unistr/u8-endswith.c: New file.
66400         * lib/unistr/u16-endswith.c: New file.
66401         * lib/unistr/u32-endswith.c: New file.
66402         * lib/unistr/u-endswith.h: New file.
66403
66404         * modules/unistr/u8-mblen: New file.
66405         * modules/unistr/u16-mblen: New file.
66406         * modules/unistr/u32-mblen: New file.
66407         * lib/unistr/u8-mblen.c: New file.
66408         * lib/unistr/u16-mblen.c: New file.
66409         * lib/unistr/u32-mblen.c: New file.
66410
66411         * modules/unistr/u8-mbtouc: New file.
66412         * modules/unistr/u16-mbtouc: New file.
66413         * modules/unistr/u32-mbtouc: New file.
66414         * lib/unistr/u8-mbtouc.c: New file.
66415         * lib/unistr/u16-mbtouc.c: New file.
66416         * lib/unistr/u32-mbtouc.c: New file.
66417
66418         * modules/unistr/u8-mbtouc-safe: New file.
66419         * modules/unistr/u16-mbtouc-safe: New file.
66420         * modules/unistr/u32-mbtouc-safe: New file.
66421         * lib/unistr/u8-mbtouc-safe.c: New file.
66422         * lib/unistr/u16-mbtouc-safe.c: New file.
66423         * lib/unistr/u32-mbtouc-safe.c: New file.
66424
66425         * modules/unistr/u8-move: New file.
66426         * modules/unistr/u16-move: New file.
66427         * modules/unistr/u32-move: New file.
66428         * lib/unistr/u8-move.c: New file.
66429         * lib/unistr/u16-move.c: New file.
66430         * lib/unistr/u32-move.c: New file.
66431         * lib/unistr/u-move.h: New file.
66432
66433         * modules/unistr/u8-next: New file.
66434         * modules/unistr/u16-next: New file.
66435         * modules/unistr/u32-next: New file.
66436         * lib/unistr/u8-next.c: New file.
66437         * lib/unistr/u16-next.c: New file.
66438         * lib/unistr/u32-next.c: New file.
66439
66440         * modules/unistr/u8-prev: New file.
66441         * modules/unistr/u16-prev: New file.
66442         * modules/unistr/u32-prev: New file.
66443         * lib/unistr/u8-prev.c: New file.
66444         * lib/unistr/u16-prev.c: New file.
66445         * lib/unistr/u32-prev.c: New file.
66446
66447         * modules/unistr/u8-set: New file.
66448         * modules/unistr/u16-set: New file.
66449         * modules/unistr/u32-set: New file.
66450         * lib/unistr/u8-set.c: New file.
66451         * lib/unistr/u16-set.c: New file.
66452         * lib/unistr/u32-set.c: New file.
66453         * lib/unistr/u-set.h: New file.
66454
66455         * modules/unistr/u8-startswith: New file.
66456         * modules/unistr/u16-startswith: New file.
66457         * modules/unistr/u32-startswith: New file.
66458         * lib/unistr/u8-startswith.c: New file.
66459         * lib/unistr/u16-startswith.c: New file.
66460         * lib/unistr/u32-startswith.c: New file.
66461         * lib/unistr/u-startswith.h: New file.
66462
66463         * modules/unistr/u8-stpcpy: New file.
66464         * modules/unistr/u16-stpcpy: New file.
66465         * modules/unistr/u32-stpcpy: New file.
66466         * lib/unistr/u8-stpcpy.c: New file.
66467         * lib/unistr/u16-stpcpy.c: New file.
66468         * lib/unistr/u32-stpcpy.c: New file.
66469         * lib/unistr/u-stpcpy.h: New file.
66470
66471         * modules/unistr/u8-stpncpy: New file.
66472         * modules/unistr/u16-stpncpy: New file.
66473         * modules/unistr/u32-stpncpy: New file.
66474         * lib/unistr/u8-stpncpy.c: New file.
66475         * lib/unistr/u16-stpncpy.c: New file.
66476         * lib/unistr/u32-stpncpy.c: New file.
66477         * lib/unistr/u-stpncpy.h: New file.
66478
66479         * modules/unistr/u8-strcat: New file.
66480         * modules/unistr/u16-strcat: New file.
66481         * modules/unistr/u32-strcat: New file.
66482         * lib/unistr/u8-strcat.c: New file.
66483         * lib/unistr/u16-strcat.c: New file.
66484         * lib/unistr/u32-strcat.c: New file.
66485         * lib/unistr/u-strcat.h: New file.
66486
66487         * modules/unistr/u8-strchr: New file.
66488         * modules/unistr/u16-strchr: New file.
66489         * modules/unistr/u32-strchr: New file.
66490         * lib/unistr/u8-strchr.c: New file.
66491         * lib/unistr/u16-strchr.c: New file.
66492         * lib/unistr/u32-strchr.c: New file.
66493
66494         * modules/unistr/u8-strcmp: New file.
66495         * modules/unistr/u16-strcmp: New file.
66496         * modules/unistr/u32-strcmp: New file.
66497         * lib/unistr/u8-strcmp.c: New file.
66498         * lib/unistr/u16-strcmp.c: New file.
66499         * lib/unistr/u32-strcmp.c: New file.
66500
66501         * modules/unistr/u8-strcpy: New file.
66502         * modules/unistr/u16-strcpy: New file.
66503         * modules/unistr/u32-strcpy: New file.
66504         * lib/unistr/u8-strcpy.c: New file.
66505         * lib/unistr/u16-strcpy.c: New file.
66506         * lib/unistr/u32-strcpy.c: New file.
66507         * lib/unistr/u-strcpy.h: New file.
66508
66509         * modules/unistr/u8-strcspn: New file.
66510         * modules/unistr/u16-strcspn: New file.
66511         * modules/unistr/u32-strcspn: New file.
66512         * lib/unistr/u8-strcspn.c: New file.
66513         * lib/unistr/u16-strcspn.c: New file.
66514         * lib/unistr/u32-strcspn.c: New file.
66515         * lib/unistr/u-strcspn.h: New file.
66516
66517         * modules/unistr/u8-strdup: New file.
66518         * modules/unistr/u16-strdup: New file.
66519         * modules/unistr/u32-strdup: New file.
66520         * lib/unistr/u8-strdup.c: New file.
66521         * lib/unistr/u16-strdup.c: New file.
66522         * lib/unistr/u32-strdup.c: New file.
66523         * lib/unistr/u-strdup.h: New file.
66524
66525         * modules/unistr/u8-strlen: New file.
66526         * modules/unistr/u16-strlen: New file.
66527         * modules/unistr/u32-strlen: New file.
66528         * lib/unistr/u8-strlen.c: New file.
66529         * lib/unistr/u16-strlen.c: New file.
66530         * lib/unistr/u32-strlen.c: New file.
66531         * lib/unistr/u-strlen.h: New file.
66532
66533         * modules/unistr/u8-strmblen: New file.
66534         * modules/unistr/u16-strmblen: New file.
66535         * modules/unistr/u32-strmblen: New file.
66536         * lib/unistr/u8-strmblen.c: New file.
66537         * lib/unistr/u16-strmblen.c: New file.
66538         * lib/unistr/u32-strmblen.c: New file.
66539
66540         * modules/unistr/u8-strmbtouc: New file.
66541         * modules/unistr/u16-strmbtouc: New file.
66542         * modules/unistr/u32-strmbtouc: New file.
66543         * lib/unistr/u8-strmbtouc.c: New file.
66544         * lib/unistr/u16-strmbtouc.c: New file.
66545         * lib/unistr/u32-strmbtouc.c: New file.
66546
66547         * modules/unistr/u8-strncat: New file.
66548         * modules/unistr/u16-strncat: New file.
66549         * modules/unistr/u32-strncat: New file.
66550         * lib/unistr/u8-strncat.c: New file.
66551         * lib/unistr/u16-strncat.c: New file.
66552         * lib/unistr/u32-strncat.c: New file.
66553         * lib/unistr/u-strncat.h: New file.
66554
66555         * modules/unistr/u8-strncmp: New file.
66556         * modules/unistr/u16-strncmp: New file.
66557         * modules/unistr/u32-strncmp: New file.
66558         * lib/unistr/u8-strncmp.c: New file.
66559         * lib/unistr/u16-strncmp.c: New file.
66560         * lib/unistr/u32-strncmp.c: New file.
66561
66562         * modules/unistr/u8-strncpy: New file.
66563         * modules/unistr/u16-strncpy: New file.
66564         * modules/unistr/u32-strncpy: New file.
66565         * lib/unistr/u8-strncpy.c: New file.
66566         * lib/unistr/u16-strncpy.c: New file.
66567         * lib/unistr/u32-strncpy.c: New file.
66568         * lib/unistr/u-strncpy.h: New file.
66569
66570         * modules/unistr/u8-strnlen: New file.
66571         * modules/unistr/u16-strnlen: New file.
66572         * modules/unistr/u32-strnlen: New file.
66573         * lib/unistr/u8-strnlen.c: New file.
66574         * lib/unistr/u16-strnlen.c: New file.
66575         * lib/unistr/u32-strnlen.c: New file.
66576         * lib/unistr/u-strnlen.h: New file.
66577
66578         * modules/unistr/u8-strpbrk: New file.
66579         * modules/unistr/u16-strpbrk: New file.
66580         * modules/unistr/u32-strpbrk: New file.
66581         * lib/unistr/u8-strpbrk.c: New file.
66582         * lib/unistr/u16-strpbrk.c: New file.
66583         * lib/unistr/u32-strpbrk.c: New file.
66584         * lib/unistr/u-strpbrk.h: New file.
66585
66586         * modules/unistr/u8-strrchr: New file.
66587         * modules/unistr/u16-strrchr: New file.
66588         * modules/unistr/u32-strrchr: New file.
66589         * lib/unistr/u8-strrchr.c: New file.
66590         * lib/unistr/u16-strrchr.c: New file.
66591         * lib/unistr/u32-strrchr.c: New file.
66592
66593         * modules/unistr/u8-strspn: New file.
66594         * modules/unistr/u16-strspn: New file.
66595         * modules/unistr/u32-strspn: New file.
66596         * lib/unistr/u8-strspn.c: New file.
66597         * lib/unistr/u16-strspn.c: New file.
66598         * lib/unistr/u32-strspn.c: New file.
66599         * lib/unistr/u-strspn.h: New file.
66600
66601         * modules/unistr/u8-strstr: New file.
66602         * modules/unistr/u16-strstr: New file.
66603         * modules/unistr/u32-strstr: New file.
66604         * lib/unistr/u8-strstr.c: New file.
66605         * lib/unistr/u16-strstr.c: New file.
66606         * lib/unistr/u32-strstr.c: New file.
66607         * lib/unistr/u-strstr.h: New file.
66608
66609         * modules/unistr/u8-strtok: New file.
66610         * modules/unistr/u16-strtok: New file.
66611         * modules/unistr/u32-strtok: New file.
66612         * lib/unistr/u8-strtok.c: New file.
66613         * lib/unistr/u16-strtok.c: New file.
66614         * lib/unistr/u32-strtok.c: New file.
66615         * lib/unistr/u-strtok.h: New file.
66616
66617         * modules/unistr/u8-uctomb: New file.
66618         * modules/unistr/u16-uctomb: New file.
66619         * modules/unistr/u32-uctomb: New file.
66620         * lib/unistr/u8-uctomb.c: New file.
66621         * lib/unistr/u16-uctomb.c: New file.
66622         * lib/unistr/u32-uctomb.c: New file.
66623
66624         * MODULES.html.sh (Unicode string functions): Add the new modules.
66625
66626 2007-01-08  Bruno Haible  <bruno@clisp.org>
66627
66628         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66629         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66630         subdirectories.
66631
66632 2007-01-08  Karl Berry  <karl@gnu.org>
66633
66634         * doc/error.texi: mention that main() fns must set program_name
66635         when progname is used.
66636
66637 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66638
66639         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66640         WCTYPE_H is empty, for the benefit of builds from non-distclean
66641         directories.  Problem reported by Eric Blake in
66642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66643
66644 2007-01-08  Bruno Haible  <bruno@clisp.org>
66645
66646         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66647         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66648         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66649         PROVIDE_CANONICALIZE_FILENAME_MODE.
66650         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66651
66652 2007-01-08  Bruno Haible  <bruno@clisp.org>
66653
66654         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66655         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66656         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66657         * lib/fts.c: Likewise.
66658         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66659
66660 2006-12-25  Bruno Haible  <bruno@clisp.org>
66661
66662         * modules/utf8-ucs4-safe: New file.
66663         * lib/utf8-ucs4-safe.h: New file.
66664         * lib/unistr/utf8-ucs4-safe.c: New file.
66665
66666         * modules/utf16-ucs4-safe: New file.
66667         * lib/utf16-ucs4-safe.h: New file.
66668         * lib/unistr/utf16-ucs4-safe.c: New file.
66669
66670         * MODULES.html.sh (Unicode string functions): Add the new modules.
66671
66672 2007-01-08  Bruno Haible  <bruno@clisp.org>
66673
66674         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66675         (Depends-on): Add unitypes.
66676         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66677         (u8_mbtouc_aux): Move out to separate file.
66678         (u8_mbtouc): Use ucs4_t, uint8_t types.
66679         * lib/unistr/utf8-ucs4.c: New file.
66680
66681         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66682         (Depends-on): Add unitypes.
66683         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66684         (u16_mbtouc_aux): Move out to separate file.
66685         (u16_mbtouc): Use ucs4_t, uint16_t types.
66686         * lib/unistr/utf16-ucs4.c: New file.
66687
66688         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66689         (Depends-on): Add unitypes.
66690         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66691         (u8_uctomb_aux): Move out to separate file.
66692         (u8_uctomb): Use ucs4_t, uint8_t types.
66693         * lib/unistr/ucs4-utf8.c: New file.
66694
66695         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66696         (Depends-on): Add unitypes.
66697         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66698         (u16_uctomb_aux): Move out to separate file.
66699         (u16_uctomb): Use ucs4_t, uint16_t types.
66700         * lib/unistr/ucs4-utf16.c: New file.
66701
66702 2006-12-25  Bruno Haible  <bruno@clisp.org>
66703
66704         * modules/unitypes: New file.
66705         * lib/unitypes.h: New file.
66706         * MODULES.html.sh (func_all_modules): New section "Unicode string
66707         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66708         this section. Add unitypes.
66709
66710 2007-01-08  Bruno Haible  <bruno@clisp.org>
66711
66712         Avoid variable names that conflict with those from libtool.
66713         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66714         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66715         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66716         library_names_spec to acl_library_names_spec, hardcode_* to
66717         acl_hardcode_*.
66718         Reported by Ralf Wildenhues.
66719
66720 2007-01-08  Bruno Haible  <bruno@clisp.org>
66721
66722         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66723         definition.
66724         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66725         definition.
66726         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66727         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66728         definition.
66729         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66730         definition.
66731         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66732         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66733         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66734         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66735         definition.
66736         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66737         definition.
66738         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66739         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66740         GC_USE_<algorithm>.
66741         * lib/gc-libgcrypt.c: Likewise.
66742         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66743         * modules/gc-arctwo (configure.ac): Likewise.
66744         * modules/gc-des (configure.ac): Likewise.
66745         * modules/gc-hmac-md5 (configure.ac): Likewise.
66746         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66747         * modules/gc-md2 (configure.ac): Likewise.
66748         * modules/gc-md4 (configure.ac): Likewise.
66749         * modules/gc-md5 (configure.ac): Likewise.
66750         * modules/gc-random (configure.ac): Likewise.
66751         * modules/gc-rijndael (configure.ac): Likewise.
66752         * modules/gc-sha1 (configure.ac): Likewise.
66753
66754 2007-01-08  Bruno Haible  <bruno@clisp.org>
66755
66756         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66757         macro definition.
66758         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66759         definition.
66760         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66761         definition.
66762         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66763         * modules/fcntl-safer (configure.ac): Likewise.
66764         * modules/fopen-safer (configure.ac): Likewise.
66765         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66766         GNULIB_FWRITEERROR macro definition.
66767
66768 2007-01-08  Bruno Haible  <bruno@clisp.org>
66769
66770         * m4/gnulib-common.m4: New file.
66771         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66772         (func_get_filelist): Add m4/gnulib-common.m4.
66773
66774 2007-01-08  Bruno Haible  <bruno@clisp.org>
66775
66776         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66777         command.
66778
66779 2007-01-08  Jim Meyering  <jim@meyering.net>
66780
66781         Use a more robust test for a "can't happen" condition.
66782         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66783         narrowed the st_size value.  Presuming the "can't happen" condition
66784         is true, that narrowing could conceivably convert an invalid st_size
66785         value into a valid one.  Instead, use a change based on Matthew
66786         Woehlke's original patch.
66787
66788         Slight readability improvement: use an assert-like macro
66789         in place of literal "abort ()" uses.
66790         * lib/fts.c (fts_assert): Define.
66791         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66792         Use this macro instead of a bare 'abort'.
66793
66794 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66795
66796         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66797         simply work around them.
66798         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66799         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66800         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66801         declaring.
66802         Don't bother to define as macros, since the standard doesn't require it.
66803         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66804         longer worry about IRIX 5.3.
66805         (HAVE_WCTYPE_CTMP_BUG): Remove.
66806
66807 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66808
66809         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66810         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66811         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66812         Problems reported by Georg Schwarz for IRIX 5.3.
66813
66814         * gnulib-tool (autoconf_minversion): Take the maximum version number
66815         found, not the minimum.  Problem reported by James Youngman.
66816
66817 2007-01-03  Karl Berry  <karl@gnu.org>
66818
66819         * doc/error.texi: new file, explaining interaction with progname.
66820         * doc/gnulib.texi: include it.  Update copyright.
66821
66822 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66823
66824         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66825         AC_CANONICAL_HOST, to improve autobuild outputs.
66826
66827 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66828             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66829
66830         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66831         sockets, server sockets, and other file descriptors.  Count errors
66832         to compute the return value.  Reorder the code a bit to be easier
66833         to follow.  Don't set event bits that were not requested (except
66834         POLLERR and POLLHUP).
66835
66836 2007-01-01  Bruno Haible  <bruno@clisp.org>
66837
66838         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66839
66840 2007-01-03  Jim Meyering  <jim@meyering.net>
66841
66842         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66843
66844 2007-01-02  Bruno Haible  <bruno@clisp.org>
66845
66846         * modules/settime (Include): Require timespec.h.
66847         * modules/nanosleep (Include): Likewise.
66848
66849 2007-01-01  Bruno Haible  <bruno@clisp.org>
66850
66851         * gnulib-tool (func_emit_copyright_notice): Bump year.
66852         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66853
66854 2007-01-01  Bruno Haible  <bruno@clisp.org>
66855
66856         Improve support for OpenBSD.
66857         * build-aux/config.rpath (libname_spec): Export.
66858         (library_names_spec): New variable. Export.
66859         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66860         library_names_spec from the config.rpath output. Locate shared library
66861         through the name pattern in library_names_spec.
66862
66863 2007-01-01  Eric Blake  <ebb9@byu.net>
66864
66865         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66866
66867 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66868
66869         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66870         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66871         assume the C locale, and avoid an "eval" that could cause trouble.
66872         Problem with SORT reported by Bob Proulx.
66873
66874         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66875         Define.  Trivial patch from Henning Nielsen Lund, originally
66876         sent to bug-grep@gnu.org today.
66877
66878 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66881         struct stat.  Problem reported by Henning Nielsen Lund.
66882         * lib/acl.c: Include acl.h first, to check interface.  Don't
66883         bother to include sys/types.h and sys/stat.h again.
66884
66885 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66886
66887         Import the following change from libc; problem reported by
66888         Sven Verdoolaege.
66889
66890         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66891
66892         [BZ #1373]
66893         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66894
66895 2006-12-28  Jim Meyering  <jim@meyering.net>
66896
66897         * build-aux/announce-gen: Do not assume that the package
66898         builds any of tar.gz, tar.bz2, and .xdelta files.
66899         Suggestion from Simon Josefsson.
66900
66901 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66902
66903         * modules/announce-gen: New file.
66904
66905 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66908         handles its gotchas now.
66909         * lib/mbswidth.c: Likewise.
66910         * lib/wcwidth.h: Likewise.
66911         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66912         and iswcntrl; the wctype module does this stuff now.
66913         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66915         * modules/mbchar (Depends-on): Add wctype.
66916         * modules/mbswidth (Depends-on): Likewise.
66917         * modules/wcwidth (Depends-on): Likewise.
66918
66919 2006-12-27  Eric Blake  <ebb9@byu.net>
66920
66921         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66922         module uses more than what <wctype.h> is required to provide.
66923
66924 2006-12-26  Eric Blake  <ebb9@byu.net>
66925
66926         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66927
66928 2006-12-26  Eric Blake  <ebb9@byu.net>
66929
66930         * modules/absolute-header: New module.
66931         * modules/fcntl (Depends-on): Depend on it.
66932         * modules/inttypes (Depends-on): Likewise.
66933         * modules/stdint (Depends-on): Likewise.
66934         * modules/sys_stat (Depends-on): Likewise.
66935         * modules/wctype (Depends-on): Likewise.
66936         * MODULES.html.sh (Support for building libraries and
66937         executables): Document it.
66938
66939 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66940
66941         * gnulib-tool (SED): Remove, undoing previous change.
66942         The problem was that it broke coreutils on Solaris, because
66943         "sed --posix" leaked into a makefile.
66944         (sed): New alias, if 'alias' and GNU sed.
66945
66946 2006-12-24  Jim Meyering  <jim@meyering.net>
66947
66948         Work around an fchownat bug in glibc-2.4:
66949         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66950         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66951         in spite of the -P option.
66952         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66953         New macros.
66954         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66955         * modules/openat (Files): Add lib/fchownat.c.
66956         * lib/openat.c (fchownat): Don't define here.  Move to...
66957         * lib/fchownat.c: ...this new file.
66958
66959 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66960
66961         Fix bug reported by Bruno Haible in
66962         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66963         where quotearg.c didn't compile on Mac OS X 10.2 because it
66964         lacks <wchar.h> and wint_t.
66965         * lib/wctype_.h (__wctype_wint_t): New type.
66966         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66967         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66968         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66969         Arg is now of type __wctype_wint_t, not wint_t.
66970         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66971         substitute HAVE_WINT_T.
66972         * modules/wctype (Files): Add m4/wint_t.m4.
66973         (wctype.h): Substitute HAVE_WINT_T.
66974
66975 2006-12-23  Bruno Haible  <bruno@clisp.org>
66976
66977         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66978
66979 2006-12-23  Bruno Haible  <bruno@clisp.org>
66980
66981         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66982         S_ISLNK.
66983         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66984         mingw.
66985
66986 2006-12-22  Bruno Haible  <bruno@clisp.org>
66987
66988         * lib/copy-file.c: Include acl.h.
66989         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66990         Close the file descriptors only after being done with copy_acl.
66991         * modules/copy-file (Depends-on): Add acl.
66992
66993 2006-12-22  Bruno Haible  <bruno@clisp.org>
66994
66995         * gnulib-tool (SED): New variable.
66996         Use $SED instead of sed everywhere.
66997
66998 2006-12-22  Bruno Haible  <bruno@clisp.org>
66999
67000         * modules/no-c++: New file.
67001         * m4/no-c++.m4: New file.
67002         * MODULES.html.sh (Support for building libraries and executables):
67003         Add no-c++.
67004
67005 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67008         Include <limits.h>, and use its INT_MAX to rewrite the
67009         j loop so that it does not overflow 'int'.  Problem reported by
67010         Ralf Wildenhues in
67011         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
67012         Play it safe by shifting left by 1 rather than multiplying by 2,
67013         as GCC is less likely to optimize this away when the value
67014         is signed (when it assumes overflow leads to undefined behavior).
67015         Also, don't assume time_t uses two's complement.
67016
67017 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
67018
67019         * MODULES.html.sh: New module wctype.
67020         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
67021         * lib/fnmatch.c: Don't bother to include <wchar.h> before
67022         <wctype.h>, since the new wctype module should fix this.
67023         * lib/quotearg.c: Include <wctype.h> unconditionally, since
67024         the wctype module should arrange for it.
67025         * lib/regex_internal.h: Likewise.
67026         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
67027         since the wctype module should handle this now.
67028         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
67029         * modules/fnmatch (Depends-on): Add wctype.
67030         * modules/quotearg (Depends-on): Likewise.
67031         * modules/regex (Depends-on): Likewise.
67032
67033 2006-12-19  Bruno Haible  <bruno@clisp.org>
67034
67035         * lib/strdup.h [C++]: Wrap definitions in extern "C".
67036         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
67037
67038 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67039
67040         * modules/savewd (Depends-on): Fix dependency on fcntl.
67041
67042 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67043
67044         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67045         conforms to C99, rather than relying on the user's environment
67046         setting of STDINT_H.
67047
67048 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67049         and Eric Blake  <ebb9@byu.net>
67050
67051         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67052         This is more consistent with the other defines here.
67053         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67054         Port to z/OS.  Problem reported by Paul Gilmartin.
67055         Change local vars to use gl_ prefix rather than ac_.
67056         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67057         with other defines.
67058         * modules/double-slash-root: New module.
67059         * modules/dirname (Files): Remove m4/double-slash-root.m4.
67060         (Depends-on): Add double-slash-root.
67061         * MODULES.html.sh (File system functions): Mention new module.
67062
67063 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67064
67065         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67066         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67067         This is for the benefit of gzip, which doesn't do i18n.
67068
67069 2006-12-12  Jim Meyering  <jim@meyering.net>
67070
67071         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67072         Reported by Andreas Schwab <schwab@suse.de>.
67073
67074 2006-12-12  Bruno Haible  <bruno@clisp.org>
67075
67076         Merge these changes.
67077         2006-09-05  Bruno Haible  <bruno@clisp.org>
67078         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67079         iconv_alloc succeeded.
67080         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67081         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67082         test for " && dest " at the end - dest is always != NULL there. Call
67083         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67084         with 2xNULL arguments, also to flush the state storage. Handle the
67085         IRIX iconv behaviour. Realloc the final result, to throw away unused
67086         memory.
67087
67088 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67089
67090         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67091         and fchmodat unconditionally, since glibc 2.4 has them.
67092         Problem reported by Arkadiusz Miskiewicz.
67093
67094 2006-12-10  Bruno Haible  <bruno@clisp.org>
67095
67096         * gnulib-tool (func_import): Show the include files only for those
67097         modules that are copied and specified.
67098         Reported by Karl Berry.
67099
67100 2006-12-08  Jim Meyering  <jim@meyering.net>
67101
67102         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67103         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67104
67105         * build-aux/announce-gen: Add two new options, both optional:
67106         --bootstrap-tools=TOOL_LIST
67107               a comma-separated list of tools, e.g.,
67108               autoconf,automake,bison,gnulib
67109         --gnulib-snapshot-date=DATE
67110               if gnulib is in the bootstrap tool list,
67111               then report this as the snapshot date.
67112               If not specified, use the current date/time.
67113               If you specify a date here, be sure it's UTC.
67114
67115 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67116
67117         * tests/test-argp-2.sh: Fix test to match actual output.
67118         (func_compare): Fix sed script to be portable.
67119
67120 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67121
67122         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67123         workaround for this case.  It is not autoconfigured now; offhand
67124         it's hard to see how to autoconfigure it.
67125
67126 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67127
67128         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67129         a directory that is about to be chowned.  Such a directory's
67130         initial file permissions should permit the owner only and this
67131         should not be changed until after the chown, since the group and
67132         other bits would be incorrect if they granted permission before
67133         the chown.
67134
67135         Fix porting problem for iswctype reported by Georg Schwarz in:
67136         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67137         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67138         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67139         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67140         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67141
67142 2006-12-03  Jim Meyering  <jim@meyering.net>
67143
67144         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67145         p->fts_statp may not yet be defined.
67146         (fts_read): Instead, set it in the caller, once p->fts_statp is
67147         sure to be defined, and corresponds to a top-level directory.
67148         This bug made du -x fail.  Here's the coreutils test case:
67149         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67150         Reported by Mike Frysinger.
67151
67152 2006-12-01  Jim Meyering  <jim@meyering.net>
67153
67154         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67155         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67156         Reported by Simon Josefsson.
67157
67158 2006-11-30  Jim Meyering  <jim@meyering.net>
67159
67160         * m4/warning.m4: Use the all-permissive copyright notice
67161         recommended by RMS (rather than LGPL).
67162         * m4/vararrays.m4: Likewise.
67163         * m4/flexmember.m4: Likewise.
67164
67165 2006-11-29  Bruno Haible  <bruno@clisp.org>
67166
67167         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67168         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67169         using +=.
67170         Reported by Simon Josefsson <simon@josefsson.org>.
67171
67172 2006-11-28  James Youngman <jay@gnu.org>
67173
67174         * README: Advise users that they might find the bug-gnulib@gnu.org
67175         and autotools-announce@gnu.org mailing lists useful.
67176
67177 2006-11-28  Bruno Haible  <bruno@clisp.org>
67178
67179         * m4/ptrdiff_max.m4: Remove file.
67180
67181 2006-11-21  Bruno Haible  <bruno@clisp.org>
67182
67183         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67184         _AC_COMPUTE_INT.
67185         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67186         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67187         _AC_COMPUTE_INT.
67188         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67189         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67190         _AC_COMPUTE_INT.
67191         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67192
67193 2006-11-28  Jim Meyering  <jim@meyering.net>
67194
67195         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67196         warning from "gcc -Wshadow" about shadowing the builtin.
67197
67198 2006-11-27  Bruno Haible  <bruno@clisp.org>
67199
67200         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67201         _AC_COMPUTE_INT.
67202         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67203
67204 2006-11-27  Bruno Haible  <bruno@clisp.org>
67205             Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67208
67209 2006-11-26  Bruno Haible  <bruno@clisp.org>
67210
67211         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67212         noinst_LTLIBRARIES.
67213
67214 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67215             Bruno Haible  <bruno@clisp.org>
67216
67217         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67218         if compiling with "gcc -ansi".
67219
67220 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67221
67222         Fix some incompatibilities with gcc -ansi -pedantic.
67223         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67224         if compiling pedantically with GCC, unless it's C99 or later.
67225         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67226         it mishandles gcc -ansi -pedantic as well.
67227         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67228         if gcc -pedantic.
67229         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67230         initializers for struct if -pedantic, unless it's C99 or later.
67231
67232 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67233
67234         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67235         Don't close an fd more than once. Identical atimes indicate
67236         success, not failure.
67237
67238 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67239
67240         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67241
67242 2006-11-23  Jim Meyering  <jim@meyering.net>
67243
67244         * build-aux/announce-gen: New file.  From coreutils.
67245
67246 2006-11-22  Jim Meyering  <jim@meyering.net>
67247
67248         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67249         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67250         (fts_read): Use a temporary to narrow the overused st_size member
67251         before using it in a switch statement.  Reported by Matthew Woehlke.
67252
67253         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67254         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67255
67256 2006-11-20  Bruno Haible  <bruno@clisp.org>
67257
67258         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67259         changequote instead of pairs of brackets.
67260         Reported by Andreas Schwab <schwab@suse.de>.
67261
67262 2006-11-21  Jim Meyering  <jim@meyering.net>
67263
67264         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67265         so as to remain compatible with older compilers.
67266         Patch from Michael Deutschmann.
67267
67268 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67269
67270         * MODULES.html.sh (File system functions): Add openat.
67271
67272         * lib/openat.h (rpl_fstatat): New macro, if
67273         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67274         (fstatat): Define to rpl_fstatat under the same conditions,
67275         unless COMPILING_FSTATAT.
67276         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67277         seems to have the bug.
67278         * lib/fstatat.c: New file.
67279         * modules/openat (Files): Add it.
67280
67281 2006-11-20  Bruno Haible  <bruno@clisp.org>
67282
67283         * Makefile: New file.
67284
67285 2006-11-20  Jim Meyering  <jim@meyering.net>
67286
67287         The beginnings of syntax-related checks for gnulib.
67288         * lib/Makefile: New file.
67289         * lib/t-idcache: New script.  Ensure that the two halves of
67290         idcache.c stay in sync.
67291
67292         * lib/idcache.c: Adjust comments in user- and group- portions to
67293         be more accurate, and to be consistent with one another.
67294
67295 2006-11-20  Jim Meyering  <jim@meyering.net>
67296
67297         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67298         continue using the flexible array member (thus, this module performs
67299         half as many malloc calls), with the addition that...
67300         (getgroup, getuser): Consistently record a non-match via an empty
67301         "name" string, and map an empty string match to a NULL return value.
67302         * modules/idcache (Depends-on): Re-add flexmember.
67303
67304         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67305         (getuidbyname, getgroup, getgidbyname): Likewise.
67306
67307         Use cleaner syntax: NULL rather than 0.
67308         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67309
67310 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67311
67312         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67313         It mishandled the case where the group was missing.
67314         Problem reported by Greg Schafer.
67315         * modules/idcache: Likewise.
67316
67317 2006-11-18  Jim Meyering  <jim@meyering.net>
67318
67319         * check-module (%exempt_header): Add exception for some
67320         conditionally-included headers.
67321
67322         * modules/i-ring (Depends-on): Add verify.
67323         (License): Change to LGPL.
67324
67325 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67326
67327         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67328         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67329         and inttostr.h.  Use snprintf rather than uinttostr, so that
67330         LGPLed code doesn't depend on GPLed.
67331
67332 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67333
67334         * modules/inline (License): Change from GPL to LGPL.
67335
67336 2006-11-17  Jim Meyering  <jim@meyering.net>
67337
67338         * modules/d-type (License): Switch to LGPL.
67339
67340 2006-11-15  Bruno Haible  <bruno@clisp.org>
67341
67342         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67343
67344 2006-11-15  Eric Blake  <ebb9@byu.net>
67345
67346         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67347         the module dependency.
67348
67349 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67350             Bruno Haible  <bruno@clisp.org>
67351
67352         * gnulib-tool (func_create_testdir): Add license consistency check.
67353
67354 2006-11-15  Eric Blake  <ebb9@byu.net>
67355
67356         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67357         random "(cached)" in configure output.
67358
67359 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67360
67361         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67362         test for conforming inttypes.h is both announced and cached.
67363
67364         * MODULES.html.sh (seen_modules, seen_files): New variables.
67365         (func_module): Rewrite to use a few less gnulib-tool and sed
67366         invocations.  Avoid a couple of quadratic algorithms for ...
67367         (missed_modules, missed_files): ... these, with ...
67368         (func_append, func_tmpdir): ... these new functions, from
67369         gnulib-tool.  Analogously, install traps for cleanup.
67370
67371         * tests/test-gc.c (main): Remove unused variables.
67372         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67373
67374 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67375
67376         * modules/inttostr (License): Change to LGPL.
67377
67378 2006-11-14  Eric Blake  <ebb9@byu.net>
67379
67380         * modules/tempname (License): Change to LGPL.
67381
67382 2006-11-14  Eric Blake  <ebb9@byu.net>
67383
67384         * doc/functions.texi (Function Portability): *printf functions on
67385         Cygwin now understand all POSIX size specifiers.
67386
67387 2006-11-14  Bruno Haible  <bruno@clisp.org>
67388
67389         * modules/c-ctype (License): Change to LGPL.
67390
67391 2006-11-12  Bruno Haible  <bruno@clisp.org>
67392
67393         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67394         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67395         for GNOME libraries, for which the include files are installed in
67396         subdirectories of $prefix/include.
67397
67398 2006-11-12  Bruno Haible  <bruno@clisp.org>
67399
67400         * m4/lib-link.m4: Require at least autoconf-2.54.
67401         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67402         name to underscores for the --with option.
67403
67404 2006-11-13  Bruno Haible  <bruno@clisp.org>
67405
67406         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67407         the tests directory.
67408         Reported by Ralf Wildenhues.
67409
67410 2006-11-13  Bruno Haible  <bruno@clisp.org>
67411
67412         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67413         (func_emit_initmacro_end): Undo the override here.
67414         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67415         Works around the famous automake error in coreutils.
67416
67417 2006-11-13  Eric Blake  <ebb9@byu.net>
67418
67419         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67420         element, not its node.
67421
67422 2006-11-12  Bruno Haible  <bruno@clisp.org>
67423
67424         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67425         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67426
67427 2006-11-12  Bruno Haible  <bruno@clisp.org>
67428
67429         * gnulib-tool: New option --local-symlink.
67430         (func_usage): Document it.
67431         (lsymbolic): New variable.
67432         (func_import, func_create_testdir): If --symlink was not specified,
67433         test whether --local-symlink was specified and the file comes from
67434         the local_gnulib_dir.
67435
67436 2006-11-12  Bruno Haible  <bruno@clisp.org>
67437
67438         * gnulib-tool (func_ln): New function.
67439         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67440
67441 2006-11-12  Bruno Haible  <bruno@clisp.org>
67442
67443         Finish support for source files in subdirectories.
67444         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67445         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67446         AUTOMAKE_OPTIONS.
67447         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67448
67449 2006-11-12  Bruno Haible  <bruno@clisp.org>
67450
67451         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67452         EXTRA_lib_SOURCES augmentation.
67453         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67454
67455 2006-11-12  Jim Meyering  <jim@meyering.net>
67456
67457         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67458         file descriptors.  This also averts a failure on systems with
67459         native openat support when a traversed directory lacks "x" access.
67460         * lib/fts_.h: Include "i-ring.h"
67461         (struct FTS) [fts_fd_ring]: New member.
67462         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67463         (FCHDIR): Add parentheses.
67464         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67465         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67466         When descending, rather than simply closing the previous
67467         fts_cwd_fd value, push that file descriptor onto the ring.
67468         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67469         (fts_open): Initialize the new fd_ring member.
67470         (fts_close): Clear the ring.
67471         (fts_safe_changedir): When possible, use our new fd_ring to skip
67472         the diropen and fstat and dev/ino comparison that would normally
67473         accompany a virtual `chdir ("..")'.
67474
67475         * modules/fts (Depends-on): Add i-ring.
67476         * modules/i-ring: New module.
67477         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67478         * m4/i-ring.m4: New file.
67479
67480 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67481
67482         * gnulib-tool (func_create_testdir): Fix replacement of
67483         `build-aux' in configure.ac.  Run autotools in gltests
67484         subdirectory.
67485         (func_create_testdir, func_create_megatestdir, test): There is
67486         no need for '--force' in most autotool invocations in a new
67487         tree.  Actually fail the whole test if any of the tools, or the
67488         configure or make stages fail.
67489
67490         Sync from Automake.
67491         * build-aux/gnupload: Revert last change.  Add pointer to upload
67492         instructions of the GNU Maintenance Instructions.
67493         Suggestion by Karl Berry.
67494
67495 2006-11-10  Jim Meyering  <jim@meyering.net>
67496
67497         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67498
67499 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67500
67501         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67502         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67503         (bind_textdomain_codeset) [! ENABLE_NLS]:
67504         Evaluate all the arguments.  That way, callers get compatible behavior
67505         if the arguments have side effects.  Also, it avoids some GCC
67506         diagnostics in some cases; Joel E. Denny reported problems when Bison
67507         was configured with --enable-gcc-warnigs.
67508
67509 2006-11-10  Jim Meyering  <jim@meyering.net>
67510
67511         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67512         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67513         account.
67514
67515 2006-11-10  Jim Meyering  <jim@meyering.net>
67516
67517         * modules/inline: New file/module.
67518         * modules/xalloc (Files): Remove m4/inline.m4.
67519         (Depends-on): Add inline, instead.
67520         * modules/oset: Likewise.
67521         * modules/list: Likewise.
67522
67523 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67526         Problem reported by Matthew Woehlke.
67527
67528 2006-11-09  Bruno Haible  <bruno@clisp.org>
67529
67530         * lib/tempname.c (gen_tempname): Remove variant that invokes
67531         __gen_tempname.
67532         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67533         __gen_tempname.
67534
67535 2006-11-08  Bruno Haible  <bruno@clisp.org>
67536
67537         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67538         to 'yes' instead of 'cross-compiling'.
67539
67540 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67541
67542         * lib/quotearg.h (quotearg_free): New decl.
67543         * lib/quotearg.c (quotearg_free): New function.
67544         (slot0, nslots, slotvec0, slotvec):
67545         Now file-scope so that quotearg_free can get at them.
67546
67547 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67548
67549         Sync from Automake.
67550         * build-aux/gnupload: Add missing 'gnu' to example URL.
67551         Report by Karl Berry.
67552
67553 2006-11-08  Bruno Haible  <bruno@clisp.org>
67554
67555         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67556         Suggested by Paul Eggert.
67557
67558 2006-11-08  Jim Meyering  <jim@meyering.net>
67559
67560         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67561         It's already included if !_LIBC.
67562         (fts_safe_changedir): Add a comment.
67563
67564 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67565
67566         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67567         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67568         Matthew Woehlke.
67569
67570         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67571         definitions up, to avoid colliding with change below.
67572         (static_inline) [HAVE_INLINE]: New macro.
67573         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67574         Provide extern decls when !HAVE_INLINE.  Do not define unless
67575         static_inline is defined, either by us or by xmalloc.c.  Use
67576         static_inline rather than static inline.
67577         (XCALLOC): Optimize sizeof(T) = 1 case.
67578         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67579
67580 2006-11-07  Bruno Haible  <bruno@clisp.org>
67581
67582         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67583         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67584         AC_C_INLINE.
67585         * modules/xalloc (Files): Add m4/inline.m4.
67586
67587 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67588
67589         * README: Fix typo.
67590         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67591         (Miscellanous Notes): ...from this.
67592
67593 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67594
67595         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67596         Mention that offsetof should be used instead of sizeof.
67597         From Bruno Haible.
67598
67599 2006-11-07  Bruno Haible  <bruno@clisp.org>
67600
67601         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67602
67603 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67604
67605         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67606         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67607         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67608         (gl_tree_add_before, gl_tree_add_after):
67609         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67610         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67611         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67612         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67613         (gl_linked_add_after, gl_linked_add_at): Likewise.
67614         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67615         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67616         (gl_tree_add_before, gl_tree_add_after): Likewise.
67617         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67618         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67619         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67620
67621 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67622
67623         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67624
67625 2006-11-06  Bruno Haible  <bruno@clisp.org>
67626
67627         * m4/inline.m4: New file.
67628         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67629         * modules/list (Files): Add m4/inline.m4.
67630         * modules/oset (Files): Likewise.
67631
67632 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         * lib/idcache.c: Include <stddef.h>, for offsetof.
67635         (struct userid.name): Change from char * to a flexible array member.
67636         All uses changed.
67637         * modules/idcache (Depends-on): Add flexmember.
67638
67639         * MODULES.html.sh (Core language properties): New module flexmember.
67640         * modules/flexmember, m4/flexmember.m4: New files.
67641
67642         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67643         inline functions that are identical with the old xnmalloc_inline,
67644         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67645         that we can avoid some unnecessary integer multiplications and
67646         divisions in the common case where the element size is known at
67647         compile time.
67648         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67649         needed.
67650         (xnboundedmalloc): Remove.
67651         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67652         arguments, for consistency with rest of this header.
67653         (xcharalloc): Rewrite using XNMALLOC.
67654         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67655         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67656         versions have been moved to lib/xalloc.h and renamed to be the
67657         non-*_inline versions.
67658         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67659         and xnrealloc functions, since those functions are now inline and
67660         now call us.
67661         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67662         renaming described above.
67663         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67664         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67665         captures the dependency in AC_C_INLINE.
67666
67667         New module canonicalize-lgpl, proposed by Charles Wilson in
67668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67669         with a few small changes afterwards.
67670         * MODULES.html.sh (File system functions): New module
67671         canonicalize-lgpl.
67672         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67673         and canonicalize_file_name.
67674         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67675         * modules/canonicalize-lgpl: New files.
67676
67677 2006-11-05  Bruno Haible  <bruno@clisp.org>
67678
67679         * gnulib-tool (func_import, func_create_testdir): Create directories
67680         also for files in subdirectories of lib/.
67681
67682 2006-11-05  Bruno Haible  <bruno@clisp.org>
67683
67684         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67685         ANSI C compliant.
67686
67687 2006-11-03  Bruno Haible  <bruno@clisp.org>
67688
67689         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67690         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67691         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67692         (xnboundedmalloc): New inline function.
67693         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67694         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67695         xmalloc.
67696         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67697         xmalloc.
67698         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67699         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67700         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67701         xmalloc.
67702         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67703         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67704         xmalloc.
67705         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67706         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67707         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67708         xmalloc.
67709         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67710         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67711         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67712         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67713         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67714         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67715         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67716
67717 2006-11-03  Bruno Haible  <bruno@clisp.org>
67718
67719         * lib/c-ctype.h [C++]: Define functions without name mangling.
67720         * lib/fwriteerror.h [C++]: Likewise.
67721         * lib/gcd.h [C++]: Likewise.
67722         * lib/linebreak.h [C++]: Likewise.
67723
67724 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67725
67726         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67727         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67728         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67729         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67730         Check for functions and headers just once.
67731         Check for declaration of canonicalize_file_name.
67732         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67733
67734 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67735
67736         * gnulib-tool (func_import): Fix typo in actioncmd.
67737
67738 2006-11-02  Bruno Haible  <bruno@clisp.org>
67739
67740         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67741         newline sequence in the Makefile.am snippet as a space, like "make"
67742         does.
67743         Reported by Roger Persson <perrog@gmail.com>.
67744
67745 2006-11-01  Bruno Haible  <bruno@clisp.org>
67746
67747         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67748         already declared in <string.h>.
67749         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67750
67751 2006-11-01  Bruno Haible  <bruno@clisp.org>
67752
67753         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67754         * lib/strcase.h: Include <string.h>.
67755         (strcasecmp): Define to rpl_strcasecmp here.
67756
67757 2006-11-01  Bruno Haible  <bruno@clisp.org>
67758
67759         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67760
67761 2006-11-01  Eric Blake  <ebb9@byu.net>
67762
67763         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67764
67765         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67766
67767 2006-10-29  Bruno Haible  <bruno@clisp.org>
67768
67769         Make it compile in C++ mode.
67770         * lib/full-write.c (full_rw): Add a cast.
67771
67772 2006-11-01  Bruno Haible  <bruno@clisp.org>
67773
67774         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67775         be POSIX compliant.
67776         Reported by Roger Persson <perrog@gmail.com>.
67777
67778 2006-11-01  Eric Blake  <ebb9@byu.net>
67779
67780         * lib/getopt_.h: Fix comments.
67781
67782 2006-10-31  Eric Blake  <ebb9@byu.net>
67783
67784         * modules/tmpdir (Depends-on): Add sys_stat.
67785         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67786         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67787         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67788         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67789         tempname.
67790
67791 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67792
67793         Avoid some C++ diagnostics reported by Bruno Haible.
67794         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67795         xmalloc.
67796         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67797         (struct slotvec): Move to top level.
67798         (quotearg_n_options): Rewrite to avoid xmalloc.
67799         * lib/xalloc.h (xcharalloc): New function.
67800         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67801         [defined __cplusplus]: Add function template that provides result
67802         type propagation.  This part of the change is from Bruno Haible.
67803
67804 2006-10-29  Bruno Haible  <bruno@clisp.org>
67805
67806         Make it compile in C++ mode.
67807         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67808         * lib/strnlen1.c (strnlen1): Cast memchr result.
67809         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67810         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67811         (create_temp_dir): Rename local variable 'template'.
67812         (compile_csharp_using_sscli): Add cast.
67813         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67814         * lib/findprog.c (find_in_path): Likewise.
67815         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67816         * lib/wait-process.c (register_slave_subprocess): Likewise.
67817
67818 2006-10-22  Bruno Haible  <bruno@clisp.org>
67819
67820         * modules/tsearch: New file.
67821         * lib/tsearch.h: New file.
67822         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67823         * m4/tsearch.m4: New file.
67824         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67825
67826 2006-10-29  Eric Blake  <ebb9@byu.net>
67827
67828         * lib/arcfour.c: Assume config.h.
67829         * lib/arctwo.c: Likewise.
67830         * lib/base64.c: Likewise.
67831         * lib/check-version.c: Likewise.
67832         * lib/crc.c: Likewise.
67833         * lib/des.c: Likewise.
67834         * lib/gc-gnulib.c: Likewise.
67835         * lib/gc-libgcrypt.c: Likewise.
67836         * lib/gc-pbkdf2-sha1.c: Likewise.
67837         * lib/getaddrinfo.c: Likewise.
67838         * lib/getdelim.c: Likewise.
67839         * lib/getline.c: Likewise.
67840         * lib/hmac-md5.c: Likewise.
67841         * lib/hmac-sha1.c: Likewise.
67842         * lib/iconvme.c: Likewise.
67843         * lib/md2.c: Likewise.
67844         * lib/md4.c: Likewise.
67845         * lib/memxor.c: Likewise.
67846         * lib/read-file.c: Likewise.
67847         * lib/readline.c: Likewise.
67848         * lib/rijndael-alg-fst.c: Likewise.
67849         * lib/rijndael-api-fst.c: Likewise.
67850         * lib/xgetdomainname.c: Likewise.
67851
67852 2006-10-28  Eric Blake  <ebb9@byu.net>
67853
67854         * lib/xstrndup.c: Assume config.h.
67855
67856 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67857
67858         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67859         stat-macros.h is now for our own macros, whereas stat_h is for
67860         macros in the <sys/stat.h> name space.
67861         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67862         (STAT_MACROS_H): Remove.
67863         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67864         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67865         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67866         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67867         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67868         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67869         Move these macros to ...
67870         * lib/stat_.h: here.  Don't include stat-macros.h.
67871         * lib/canonicalize.c: Don't include stat-macros.h.
67872         * lib/chown.c: Likewise.
67873         * lib/euidaccess.c: Likewise.
67874         * lib/file-type.c: Likewise.
67875         * lib/filemode.c: Likewise.
67876         * lib/glob.c: Likewise.
67877         * lib/isapipe.c: Likewise.
67878         * lib/lchown.c: Likewise.
67879         * lib/lstat.c: Likewise.
67880         * lib/mkdir-p.c: Likewise.
67881         * lib/rmdir.c: Likewise.
67882         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67883         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67884         unless mkdir isn't declared, to speed up 'configure'.
67885         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67886         would define all the S_* symbols.
67887         * modules/canonicalize (Depends-on):
67888         Depend on sys_stat, not stat-macros.
67889         * modules/chown: Likewise.
67890         * modules/euidaccess: Likewise.
67891         * modules/filemode: Likewise.
67892         * modules/file-type: Likewise.
67893         * modules/glob: Likewise.
67894         * modules/isapipe: Likewise.
67895         * modules/lchown: Likewise.
67896         * modules/lstat: Likewise.
67897         * modules/mkancesdirs: Likewise.
67898         * modules/rmdir: Likewise.
67899         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67900         * modules/modechange: Likewise.
67901         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67902         (configure.ac): Remove gl_STAT_MACROS.
67903         * modules/sys_stat (Depends-on): Remove stat-macros.
67904
67905 2006-10-27  Bruno Haible  <bruno@clisp.org>
67906
67907         * m4/signed.m4: Remove file.
67908         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67909         invocation.
67910         * modules/vasnprintf (Files): Remove m4/signed.m4.
67911
67912 2006-10-27  Bruno Haible  <bruno@clisp.org>
67913
67914         Update to GNU gettext 0.16.
67915         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67916         m4/inttypes-h.m4, m4/signed.m4.
67917         * m4/gettext.m4: Update to GNU gettext 0.16.
67918         * m4/intl.m4: New file, from GNU gettext.
67919         * m4/intldir.m4: New file, from GNU gettext.
67920         * config/srclist.txt: Update
67921
67922 2006-10-27  Eric Blake  <ebb9@byu.net>
67923
67924         * MODULES.html.sh: Document tempname.
67925         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67926         dependencies.
67927         (Files): Move lib/tempname.c...
67928         * modules/tempname: ...to this new module.
67929         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67930         (gl_PREREQ_TEMPNAME): Move...
67931         * m4/tempname.m4: ...to this new file.
67932         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67933         * modules/sys_stat (Depends-on): Add stat-macros.
67934         * lib/stat_.h (includes): Pick up stat macros.
67935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67936         if stat macros are broken.
67937         * lib/tempname.c (includes): No need to include "stat-macros.h".
67938         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67939         (direxists, __path_search) [!_LIBC]: Don't compile these in
67940         gnulib; the tmpdir module covers that.
67941         * lib/tempname.h: New file.
67942
67943 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         * COPYING: Explain how gnulib-tool converts licence headers.
67946         Almost all wording by Eric Blake.
67947
67948 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67949
67950         * lib/mbchar.h (is_basic_table): Make read-only.
67951         * lib/mbchar.c (is_basic_table): Likewise.
67952         Reported by John Darrington.
67953
67954 2006-10-25  Bruno Haible  <bruno@clisp.org>
67955
67956         * lib/progname.h (set_program_name): Undefine before defining.
67957
67958 2006-10-25  Bruno Haible  <bruno@clisp.org>
67959
67960         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67961         false for non-gcc C++ compilers.
67962         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67963
67964 2006-10-24  Bruno Haible  <bruno@clisp.org>
67965
67966         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67967         iconv implementations like Irix iconv.
67968
67969 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67970
67971         * modules/vararrays: New file.
67972         * m4/vararrays.m4: New file, taken from diffutils.
67973         * MODULES.html.sh: New module vararrays.
67974
67975 2006-10-24  Karl Berry  <karl@gnu.org>
67976
67977         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67978         Don't call GNU Unix.
67979
67980 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67981
67982         * users.txt: Add Libtool.
67983
67984         Sync from Libtool:
67985
67986         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67989         to gnulib's policy of including config.h unconditionally.
67990
67991 2006-10-24  Bruno Haible  <bruno@clisp.org>
67992
67993         * modules/wcwidth (Files): Add m4/wint_t.m4.
67994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67995         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67996
67997 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67998
67999         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
68000         to pacify GCC with some -W flags enabled.  Problem reported by
68001         Bruno Haible.
68002
68003 2006-10-24  Jim Meyering  <jim@meyering.net>
68004
68005         * MODULES.html.sh: Remove uinttostr.  It's not a module.
68006         Reported by Karl Berry.
68007
68008 2006-10-23  Bruno Haible  <bruno@clisp.org>
68009
68010         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
68011
68012 2006-10-24  Bruno Haible  <bruno@clisp.org>
68013
68014         * lib/gl_list.h: Use C comment style, not C++ comment style.
68015
68016 2006-10-23  Eric Blake  <ebb9@byu.net>
68017
68018         * lib/getaddrinfo.c (includes): Add missing include.
68019
68020 2006-10-23  Bruno Haible  <bruno@clisp.org>
68021             Paul Eggert  <eggert@cs.ucla.edu>
68022
68023         Ability to rename obstack_free.
68024         * lib/obstack.h (__obstack_free): New macro. Declare instead of
68025         obstack_free.
68026         (obstack_free): Invoke the __obstack_free macro.
68027         * lib/obstack.c (obstack_free): Use __obstack_free macro.
68028
68029 2006-10-23  Bruno Haible  <bruno@clisp.org>
68030             Paul Eggert  <eggert@cs.ucla.edu>
68031
68032         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
68033         __argc, __argv from the declaration. (They are defined as macros on
68034         mingw.)
68035
68036 2006-10-22  Bruno Haible  <bruno@clisp.org>
68037
68038         * doc/gnulib-intro.texi: New file.
68039         * doc/gnulib.texi: Include it.
68040
68041 2006-10-21  Bruno Haible  <bruno@clisp.org>
68042
68043         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68044         "Introduction", "Miscellanous Notes", "Particular Modules".
68045
68046 2006-10-21  Bruno Haible  <bruno@clisp.org>
68047
68048         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68049         Change mostlyclean-local rule to avoid sh syntax error from bash
68050         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68051
68052 2006-10-23  Jim Meyering  <jim@meyering.net>
68053
68054         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68055         in place of snprintf.
68056
68057         * modules/inttostr (Files): Add lib/uinttostr.c.
68058         * lib/uinttostr.c (inttostr): New file/function.
68059         * lib/inttostr.h (uinttostr): Declare.
68060         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
68061         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68062         Add uinttostr.
68063         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68064
68065 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68066
68067         * lib/canonicalize.c (ELOOP): Define if not already defined.
68068         Problem reported by Bruno Haible in
68069         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68070
68071 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68072
68073         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68074         Problem reported by Perry Smith and Ville Laurikari.
68075
68076         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68077         uses.
68078
68079 2006-10-19  Bruno Haible  <bruno@clisp.org>
68080
68081         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68082         for mingw.
68083
68084 2006-10-19  Bruno Haible  <bruno@clisp.org>
68085
68086         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68087         Needed for mingw.
68088
68089 2006-10-19  Bruno Haible  <bruno@clisp.org>
68090
68091         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68092
68093 2006-10-19  Bruno Haible  <bruno@clisp.org>
68094
68095         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68096         it.
68097
68098 2006-10-19  Bruno Haible  <bruno@clisp.org>
68099
68100         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68101         invocation.
68102
68103 2006-10-19  Bruno Haible  <bruno@clisp.org>
68104
68105         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68106         mountlist by default.
68107
68108 2006-10-16  Bruno Haible  <bruno@clisp.org>
68109
68110         * lib/c-strstr.c: Include c-strstr.h.
68111
68112 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68113
68114         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68115         in a slash.
68116
68117 2006-10-18  Bruno Haible  <bruno@clisp.org>
68118
68119         * lib/lock.h [C++]: Wrap definitions in extern "C".
68120
68121 2006-10-18  Bruno Haible  <bruno@clisp.org>
68122
68123         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68124         gl_LIBOBJS list.
68125
68126 2006-10-18  Bruno Haible  <bruno@clisp.org>
68127
68128         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68129
68130 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         * lib/xstrtol.h: Include gettext.h.
68133         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68134         Problem reported by Eric Blake.
68135         * modules/xstrtol (Depends-on): Add gettext-h.
68136
68137 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68138
68139         * lib/strftime.c (advance): New macro.
68140         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68141         incomplete type, so you can't add 0 to it.  Problem and patch
68142         reported by Eelco Dolstra for dietlibc.
68143
68144 2006-10-18  Jim Meyering  <jim@meyering.net>
68145
68146         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68147         type for a local, and rename it: s/up/user_proc/.
68148
68149 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68150
68151         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68152         READ_UTMP_USER_PROCESS.
68153         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68154
68155 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68156
68157         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68158         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68159
68160 2006-10-17  Eric Blake  <ebb9@byu.net>
68161
68162         * lib/sigprocmask.c (sigprocmask): Fix typo.
68163
68164         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68165
68166         * modules/clean-temp (Makefile.am): Don't add to make output...
68167         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68168         config.h.
68169
68170 2006-10-17  Bruno Haible  <bruno@clisp.org>
68171
68172         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68173         differently if DEFAULT_TEXT_DOMAIN is set.
68174
68175 2006-10-16  Bruno Haible  <bruno@clisp.org>
68176
68177         * lib/clean-temp.c: Include fwriteerror.h.
68178
68179 2006-10-16  Bruno Haible  <bruno@clisp.org>
68180
68181         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68182
68183 2006-10-16  Bruno Haible  <bruno@clisp.org>
68184
68185         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68186         * lib/sigprocmask.h: Include <sys/types.h>.
68187         (sigset_t): Use the system's definition if present.
68188
68189 2006-10-17  Eric Blake  <ebb9@byu.net>
68190
68191         * lib/xvasprintf.c (includes): Assume config.h.
68192         * lib/xasprintf.c (includes): Likewise.
68193
68194 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68195
68196         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68197         at least as wide as intmax_t.
68198
68199 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68200
68201         (Imported from Automake.)
68202         * build-aux/gnupload: Update to version 1.1 of directive file.
68203
68204 2006-10-16  Eric Blake  <ebb9@byu.net>
68205
68206         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68207         match Automake 1.10a.
68208
68209 2006-10-14  Bruno Haible  <bruno@clisp.org>
68210
68211         * modules/sigprocmask: New file.
68212         * lib/sigprocmask.h: New file.
68213         * lib/sigprocmask.c: New file.
68214         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68215         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68216         request sigprocmask.o.
68217         (gl_PREREQ_SIGPROCMASK): New macro.
68218         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68219         (Depends-on): Add sigprocmask.
68220         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68221         gt_SIGNALBLOCKING. Test for 'raise' only once.
68222         * lib/fatal-signal.c: Include sigprocmask.h.
68223         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68224         unblock_fatal_signals): Define always.
68225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68226         sigprocmask.
68227
68228 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68229
68230         Sync from Automake.
68231         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68232         which incorrectly sets the mode of an existing destination
68233         directory.  In some cases the unpatched install-sh could do the
68234         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68235         system.  We hope this is rare in practice, but it's clearly worth
68236         fixing.  Problem reported by Alex Unleashed in
68237         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68238         Also, don't bother to check for -m bugs unless we're using -m;
68239         suggested by Stepan Kasal.
68240
68241 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68242
68243         Sync from Automake.
68244         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68245         `-c' flag, so they appear at the same position as in %FASTDEP%
68246         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68247         which ignores unknown options only after the first non-option.
68248         Bug report against M4 by Nelson H. F. Beebe.
68249
68250 2006-10-13  Jim Meyering  <jim@meyering.net>
68251
68252         Fix a bug in yesterday's change.
68253         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68254         p->fts_statp->st_dev would be used uninitialized.
68255         Ensures that we always call fts_stat on the very first entry.
68256         Miklos Szeredi reported that find -xdev stopped working.
68257
68258 2006-10-12  Bruno Haible  <bruno@clisp.org>
68259
68260         * gnulib-tool (func_get_automake_snippet): Append an automatically
68261         computed EXTRA_DIST augmentation.
68262         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68263         * modules/alloca-opt (Makefile.am): Likewise.
68264         * modules/allocsa (Makefile.am): Likewise.
68265         * modules/arcfour (Makefile.am): Likewise.
68266         * modules/arctwo (Makefile.am): Likewise.
68267         * modules/argmatch (Makefile.am): Likewise.
68268         * modules/argz (Makefile.am): Likewise.
68269         * modules/atexit (Makefile.am): Likewise.
68270         * modules/backupfile (Makefile.am): Likewise.
68271         * modules/byteswap (Makefile.am): Likewise.
68272         * modules/c-strtod (Makefile.am): Likewise.
68273         * modules/c-strtold (Makefile.am): Likewise.
68274         * modules/calloc (Makefile.am): Likewise.
68275         * modules/canon-host (Makefile.am): Likewise.
68276         * modules/canonicalize (Makefile.am): Likewise.
68277         * modules/chdir-long (Makefile.am): Likewise.
68278         * modules/chdir-safer (Makefile.am): Likewise.
68279         * modules/check-version (Makefile.am): Likewise.
68280         * modules/chown (Makefile.am): Likewise.
68281         * modules/cloexec (Makefile.am): Likewise.
68282         * modules/close-stream (Makefile.am): Likewise.
68283         * modules/closeout (Makefile.am): Likewise.
68284         * modules/crc (Makefile.am): Likewise.
68285         * modules/csharpexec (Makefile.am): Likewise.
68286         * modules/cycle-check (Makefile.am): Likewise.
68287         * modules/des (Makefile.am): Likewise.
68288         * modules/dev-ino (Makefile.am): Likewise.
68289         * modules/dirfd (Makefile.am): Likewise.
68290         * modules/dirname (Makefile.am): Likewise.
68291         * modules/dup2 (Makefile.am): Likewise.
68292         * modules/eealloc (Makefile.am): Likewise.
68293         * modules/error (Makefile.am): Likewise.
68294         * modules/euidaccess (Makefile.am): Likewise.
68295         * modules/exclude (Makefile.am): Likewise.
68296         * modules/exitfail (Makefile.am): Likewise.
68297         * modules/fcntl-safer (Makefile.am): Likewise.
68298         * modules/fcntl (Makefile.am): Likewise.
68299         * modules/file-type (Makefile.am): Likewise.
68300         * modules/fileblocks (Makefile.am): Likewise.
68301         * modules/filemode (Makefile.am): Likewise.
68302         * modules/filenamecat (Makefile.am): Likewise.
68303         * modules/fnmatch (Makefile.am): Likewise.
68304         * modules/fopen-safer (Makefile.am): Likewise.
68305         * modules/fpending (Makefile.am): Likewise.
68306         * modules/fprintftime (Makefile.am): Likewise.
68307         * modules/free (Makefile.am): Likewise.
68308         * modules/fsusage (Makefile.am): Likewise.
68309         * modules/ftruncate (Makefile.am): Likewise.
68310         * modules/fts (Makefile.am): Likewise.
68311         * modules/gc-arcfour (Makefile.am): Likewise.
68312         * modules/gc-des (Makefile.am): Likewise.
68313         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68314         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68315         * modules/gc-md4 (Makefile.am): Likewise.
68316         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68317         * modules/gc-sha1 (Makefile.am): Likewise.
68318         * modules/gc (Makefile.am): Likewise.
68319         * modules/getaddrinfo (Makefile.am): Likewise.
68320         * modules/getcwd (Makefile.am): Likewise.
68321         * modules/getdelim (Makefile.am): Likewise.
68322         * modules/getdomainname (Makefile.am): Likewise.
68323         * modules/getgroups (Makefile.am): Likewise.
68324         * modules/gethostname (Makefile.am): Likewise.
68325         * modules/gethrxtime (Makefile.am): Likewise.
68326         * modules/getline (Makefile.am): Likewise.
68327         * modules/getloadavg (Makefile.am): Likewise.
68328         * modules/getlogin_r (Makefile.am): Likewise.
68329         * modules/getndelim2 (Makefile.am): Likewise.
68330         * modules/getopt (Makefile.am): Likewise.
68331         * modules/getpagesize (Makefile.am): Likewise.
68332         * modules/getpass-gnu (Makefile.am): Likewise.
68333         * modules/getpass (Makefile.am): Likewise.
68334         * modules/getsubopt (Makefile.am): Likewise.
68335         * modules/gettime (Makefile.am): Likewise.
68336         * modules/gettimeofday (Makefile.am): Likewise.
68337         * modules/getugroups (Makefile.am): Likewise.
68338         * modules/getusershell (Makefile.am): Likewise.
68339         * modules/glob (Makefile.am): Likewise.
68340         * modules/group-member (Makefile.am): Likewise.
68341         * modules/hard-locale (Makefile.am): Likewise.
68342         * modules/hash (Makefile.am): Likewise.
68343         * modules/hmac-md5 (Makefile.am): Likewise.
68344         * modules/hmac-sha1 (Makefile.am): Likewise.
68345         * modules/human (Makefile.am): Likewise.
68346         * modules/idcache (Makefile.am): Likewise.
68347         * modules/imaxabs (Makefile.am): Likewise.
68348         * modules/imaxdiv (Makefile.am): Likewise.
68349         * modules/inet_ntop (Makefile.am): Likewise.
68350         * modules/inet_pton (Makefile.am): Likewise.
68351         * modules/intprops (Makefile.am): Likewise.
68352         * modules/inttostr (Makefile.am): Likewise.
68353         * modules/inttypes (Makefile.am): Likewise.
68354         * modules/isapipe (Makefile.am): Likewise.
68355         * modules/javaversion (Makefile.am): Likewise.
68356         * modules/lchmod (Makefile.am): Likewise.
68357         * modules/lchown (Makefile.am): Likewise.
68358         * modules/localcharset (Makefile.am): Likewise.
68359         * modules/long-options (Makefile.am): Likewise.
68360         * modules/lstat (Makefile.am): Likewise.
68361         * modules/malloc (Makefile.am): Likewise.
68362         * modules/mathl (Makefile.am): Likewise.
68363         * modules/mbchar (Makefile.am): Likewise.
68364         * modules/md2 (Makefile.am): Likewise.
68365         * modules/md4 (Makefile.am): Likewise.
68366         * modules/md5 (Makefile.am): Likewise.
68367         * modules/memcasecmp (Makefile.am): Likewise.
68368         * modules/memchr (Makefile.am): Likewise.
68369         * modules/memcmp (Makefile.am): Likewise.
68370         * modules/memcoll (Makefile.am): Likewise.
68371         * modules/memcpy (Makefile.am): Likewise.
68372         * modules/memmem (Makefile.am): Likewise.
68373         * modules/memmove (Makefile.am): Likewise.
68374         * modules/mempcpy (Makefile.am): Likewise.
68375         * modules/memrchr (Makefile.am): Likewise.
68376         * modules/memset (Makefile.am): Likewise.
68377         * modules/memxor (Makefile.am): Likewise.
68378         * modules/mkancesdirs (Makefile.am): Likewise.
68379         * modules/mkdir-p (Makefile.am): Likewise.
68380         * modules/mkdir (Makefile.am): Likewise.
68381         * modules/mkdtemp (Makefile.am): Likewise.
68382         * modules/mkstemp (Makefile.am): Likewise.
68383         * modules/mktime (Makefile.am): Likewise.
68384         * modules/modechange (Makefile.am): Likewise.
68385         * modules/mountlist (Makefile.am): Likewise.
68386         * modules/nanosleep (Makefile.am): Likewise.
68387         * modules/obstack (Makefile.am): Likewise.
68388         * modules/openat (Makefile.am): Likewise.
68389         * modules/pagealign_alloc (Makefile.am): Likewise.
68390         * modules/pathmax (Makefile.am): Likewise.
68391         * modules/physmem (Makefile.am): Likewise.
68392         * modules/poll (Makefile.am): Likewise.
68393         * modules/posixtm (Makefile.am): Likewise.
68394         * modules/posixver (Makefile.am): Likewise.
68395         * modules/putenv (Makefile.am): Likewise.
68396         * modules/quote (Makefile.am): Likewise.
68397         * modules/quotearg (Makefile.am): Likewise.
68398         * modules/raise (Makefile.am): Likewise.
68399         * modules/read-file (Makefile.am): Likewise.
68400         * modules/readline (Makefile.am): Likewise.
68401         * modules/readlink (Makefile.am): Likewise.
68402         * modules/readtokens (Makefile.am): Likewise.
68403         * modules/readutmp (Makefile.am): Likewise.
68404         * modules/realloc (Makefile.am): Likewise.
68405         * modules/regex (Makefile.am): Likewise.
68406         * modules/rename-dest-slash (Makefile.am): Likewise.
68407         * modules/rename (Makefile.am): Likewise.
68408         * modules/rijndael (Makefile.am): Likewise.
68409         * modules/rmdir (Makefile.am): Likewise.
68410         * modules/rpmatch (Makefile.am): Likewise.
68411         * modules/safe-read (Makefile.am): Likewise.
68412         * modules/safe-write (Makefile.am): Likewise.
68413         * modules/same-inode (Makefile.am): Likewise.
68414         * modules/same (Makefile.am): Likewise.
68415         * modules/save-cwd (Makefile.am): Likewise.
68416         * modules/savedir (Makefile.am): Likewise.
68417         * modules/setenv (Makefile.am): Likewise.
68418         * modules/settime (Makefile.am): Likewise.
68419         * modules/sha1 (Makefile.am): Likewise.
68420         * modules/sig2str (Makefile.am): Likewise.
68421         * modules/snprintf (Makefile.am): Likewise.
68422         * modules/stat-macros (Makefile.am): Likewise.
68423         * modules/stat-time (Makefile.am): Likewise.
68424         * modules/stdbool (Makefile.am): Likewise.
68425         * modules/stdint (Makefile.am): Likewise.
68426         * modules/stdlib-safer (Makefile.am): Likewise.
68427         * modules/stpcpy (Makefile.am): Likewise.
68428         * modules/stpncpy (Makefile.am): Likewise.
68429         * modules/strcase (Makefile.am): Likewise.
68430         * modules/strcasestr (Makefile.am): Likewise.
68431         * modules/strchrnul (Makefile.am): Likewise.
68432         * modules/strcspn (Makefile.am): Likewise.
68433         * modules/strdup (Makefile.am): Likewise.
68434         * modules/strerror (Makefile.am): Likewise.
68435         * modules/strftime (Makefile.am): Likewise.
68436         * modules/strndup (Makefile.am): Likewise.
68437         * modules/strnlen (Makefile.am): Likewise.
68438         * modules/strpbrk (Makefile.am): Likewise.
68439         * modules/strsep (Makefile.am): Likewise.
68440         * modules/strstr (Makefile.am): Likewise.
68441         * modules/strtod (Makefile.am): Likewise.
68442         * modules/strtoimax (Makefile.am): Likewise.
68443         * modules/strtok_r (Makefile.am): Likewise.
68444         * modules/strtol (Makefile.am): Likewise.
68445         * modules/strtoll (Makefile.am): Likewise.
68446         * modules/strtoul (Makefile.am): Likewise.
68447         * modules/strtoull (Makefile.am): Likewise.
68448         * modules/strtoumax (Makefile.am): Likewise.
68449         * modules/strverscmp (Makefile.am): Likewise.
68450         * modules/sys_socket (Makefile.am): Likewise.
68451         * modules/sys_stat (Makefile.am): Likewise.
68452         * modules/sysexits (Makefile.am): Likewise.
68453         * modules/time_r (Makefile.am): Likewise.
68454         * modules/timegm (Makefile.am): Likewise.
68455         * modules/timespec (Makefile.am): Likewise.
68456         * modules/tmpfile-safer (Makefile.am): Likewise.
68457         * modules/trim (Makefile.am): Likewise.
68458         * modules/unistd-safer (Makefile.am): Likewise.
68459         * modules/unlinkdir (Makefile.am): Likewise.
68460         * modules/unlocked-io (Makefile.am): Likewise.
68461         * modules/userspec (Makefile.am): Likewise.
68462         * modules/utime (Makefile.am): Likewise.
68463         * modules/utimecmp (Makefile.am): Likewise.
68464         * modules/utimens (Makefile.am): Likewise.
68465         * modules/vasnprintf (Makefile.am): Likewise.
68466         * modules/vasprintf (Makefile.am): Likewise.
68467         * modules/vsnprintf (Makefile.am): Likewise.
68468         * modules/xalloc (Makefile.am): Likewise.
68469         * modules/xgetcwd (Makefile.am): Likewise.
68470         * modules/xnanosleep (Makefile.am): Likewise.
68471         * modules/xreadlink (Makefile.am): Likewise.
68472         * modules/xstrtod (Makefile.am): Likewise.
68473         * modules/xstrtol (Makefile.am): Likewise.
68474         * modules/xstrtold (Makefile.am): Likewise.
68475         * modules/yesno (Makefile.am): Likewise.
68476         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68477
68478 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68479
68480         * modules/error (Makefile.am): Distribute files through
68481         EXTRA_DIST, not lib_SOURCES.
68482
68483 2006-10-12  Eric Blake  <ebb9@byu.net>
68484
68485         * modules/error (Makefile.am): Distribute files in /lib.
68486         * modules/obstack (Makefile.am): Likewise.
68487
68488 2006-10-12  Bruno Haible  <bruno@clisp.org>
68489
68490         * modules/acl (Makefile.am): Distribute all files in lib/ through
68491         EXTRA_DIST.
68492         * modules/arcfour (Makefile.am): Likewise.
68493         * modules/arctwo (Makefile.am): Likewise.
68494         * modules/argmatch (Makefile.am): Likewise.
68495         * modules/argz (Makefile.am): Likewise.
68496         * modules/atexit (Makefile.am): Likewise.
68497         * modules/backupfile (Makefile.am): Likewise.
68498         * modules/c-strtod (Makefile.am): Likewise.
68499         * modules/c-strtold (Makefile.am): Likewise.
68500         * modules/calloc (Makefile.am): Likewise.
68501         * modules/canon-host (Makefile.am): Likewise.
68502         * modules/canonicalize (Makefile.am): Likewise.
68503         * modules/chdir-long (Makefile.am): Likewise.
68504         * modules/chdir-safer (Makefile.am): Likewise.
68505         * modules/check-version (Makefile.am): Likewise.
68506         * modules/chown (Makefile.am): Likewise.
68507         * modules/cloexec (Makefile.am): Likewise.
68508         * modules/close-stream (Makefile.am): Likewise.
68509         * modules/closeout (Makefile.am): Likewise.
68510         * modules/crc (Makefile.am): Likewise.
68511         * modules/cycle-check (Makefile.am): Likewise.
68512         * modules/des (Makefile.am): Likewise.
68513         * modules/dirfd (Makefile.am): Likewise.
68514         * modules/dirname (Makefile.am): Likewise.
68515         * modules/dup2 (Makefile.am): Likewise.
68516         * modules/euidaccess (Makefile.am): Likewise.
68517         * modules/exclude (Makefile.am): Likewise.
68518         * modules/exitfail (Makefile.am): Likewise.
68519         * modules/fcntl-safer (Makefile.am): Likewise.
68520         * modules/file-type (Makefile.am): Likewise.
68521         * modules/fileblocks (Makefile.am): Likewise.
68522         * modules/filemode (Makefile.am): Likewise.
68523         * modules/filenamecat (Makefile.am): Likewise.
68524         * modules/fnmatch (Makefile.am): Likewise.
68525         * modules/fopen-safer (Makefile.am): Likewise.
68526         * modules/fpending (Makefile.am): Likewise.
68527         * modules/fprintftime (Makefile.am): Likewise.
68528         * modules/free (Makefile.am): Likewise.
68529         * modules/fsusage (Makefile.am): Likewise.
68530         * modules/ftruncate (Makefile.am): Likewise.
68531         * modules/fts (Makefile.am): Likewise.
68532         * modules/gc (Makefile.am): Likewise.
68533         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68534         * modules/getaddrinfo (Makefile.am): Likewise.
68535         * modules/getcwd (Makefile.am): Likewise.
68536         * modules/getdelim (Makefile.am): Likewise.
68537         * modules/getdomainname (Makefile.am): Likewise.
68538         * modules/getgroups (Makefile.am): Likewise.
68539         * modules/gethostname (Makefile.am): Likewise.
68540         * modules/gethrxtime (Makefile.am): Likewise.
68541         * modules/getline (Makefile.am): Likewise.
68542         * modules/getloadavg (Makefile.am): Likewise.
68543         * modules/getlogin_r (Makefile.am): Likewise.
68544         * modules/getopt (Makefile.am): Likewise.
68545         * modules/getpass (Makefile.am): Likewise.
68546         * modules/getpass-gnu (Makefile.am): Likewise.
68547         * modules/getsubopt (Makefile.am): Likewise.
68548         * modules/gettime (Makefile.am): Likewise.
68549         * modules/gettimeofday (Makefile.am): Likewise.
68550         * modules/getugroups (Makefile.am): Likewise.
68551         * modules/getusershell (Makefile.am): Likewise.
68552         * modules/glob (Makefile.am): Likewise.
68553         * modules/group-member (Makefile.am): Likewise.
68554         * modules/hard-locale (Makefile.am): Likewise.
68555         * modules/hash (Makefile.am): Likewise.
68556         * modules/hmac-md5 (Makefile.am): Likewise.
68557         * modules/hmac-sha1 (Makefile.am): Likewise.
68558         * modules/human (Makefile.am): Likewise.
68559         * modules/idcache (Makefile.am): Likewise.
68560         * modules/imaxabs (Makefile.am): Likewise.
68561         * modules/imaxdiv (Makefile.am): Likewise.
68562         * modules/inet_ntop (Makefile.am): Likewise.
68563         * modules/inet_pton (Makefile.am): Likewise.
68564         * modules/inttostr (Makefile.am): Likewise.
68565         * modules/isapipe (Makefile.am): Likewise.
68566         * modules/lchown (Makefile.am): Likewise.
68567         * modules/long-options (Makefile.am): Likewise.
68568         * modules/lstat (Makefile.am): Likewise.
68569         * modules/malloc (Makefile.am): Likewise.
68570         * modules/mathl (Makefile.am): Likewise.
68571         * modules/mbchar (Makefile.am): Likewise.
68572         * modules/md2 (Makefile.am): Likewise.
68573         * modules/md4 (Makefile.am): Likewise.
68574         * modules/md5 (Makefile.am): Likewise.
68575         * modules/memcasecmp (Makefile.am): Likewise.
68576         * modules/memchr (Makefile.am): Likewise.
68577         * modules/memcmp (Makefile.am): Likewise.
68578         * modules/memcoll (Makefile.am): Likewise.
68579         * modules/memcpy (Makefile.am): Likewise.
68580         * modules/memmem (Makefile.am): Likewise.
68581         * modules/memmove (Makefile.am): Likewise.
68582         * modules/mempcpy (Makefile.am): Likewise.
68583         * modules/memrchr (Makefile.am): Likewise.
68584         * modules/memset (Makefile.am): Likewise.
68585         * modules/memxor (Makefile.am): Likewise.
68586         * modules/mkancesdirs (Makefile.am): Likewise.
68587         * modules/mkdir (Makefile.am): Likewise.
68588         * modules/mkdir-p (Makefile.am): Likewise.
68589         * modules/mkdtemp (Makefile.am): Likewise.
68590         * modules/mkstemp (Makefile.am): Likewise.
68591         * modules/mktime (Makefile.am): Likewise.
68592         * modules/modechange (Makefile.am): Likewise.
68593         * modules/mountlist (Makefile.am): Likewise.
68594         * modules/nanosleep (Makefile.am): Likewise.
68595         * modules/openat (Makefile.am): Likewise.
68596         * modules/pagealign_alloc (Makefile.am): Likewise.
68597         * modules/physmem (Makefile.am): Likewise.
68598         * modules/poll (Makefile.am): Likewise.
68599         * modules/posixtm (Makefile.am): Likewise.
68600         * modules/posixver (Makefile.am): Likewise.
68601         * modules/putenv (Makefile.am): Likewise.
68602         * modules/quote (Makefile.am): Likewise.
68603         * modules/quotearg (Makefile.am): Likewise.
68604         * modules/raise (Makefile.am): Likewise.
68605         * modules/read-file (Makefile.am): Likewise.
68606         * modules/readline (Makefile.am): Likewise.
68607         * modules/readlink (Makefile.am): Likewise.
68608         * modules/readtokens (Makefile.am): Likewise.
68609         * modules/readutmp (Makefile.am): Likewise.
68610         * modules/realloc (Makefile.am): Likewise.
68611         * modules/regex (Makefile.am): Likewise.
68612         * modules/rename (Makefile.am): Likewise.
68613         * modules/rename-dest-slash (Makefile.am): Likewise.
68614         * modules/rijndael (Makefile.am): Likewise.
68615         * modules/rmdir (Makefile.am): Likewise.
68616         * modules/rpmatch (Makefile.am): Likewise.
68617         * modules/safe-read (Makefile.am): Likewise.
68618         * modules/safe-write (Makefile.am): Likewise.
68619         * modules/same (Makefile.am): Likewise.
68620         * modules/save-cwd (Makefile.am): Likewise.
68621         * modules/savedir (Makefile.am): Likewise.
68622         * modules/setenv (Makefile.am): Likewise.
68623         * modules/settime (Makefile.am): Likewise.
68624         * modules/sha1 (Makefile.am): Likewise.
68625         * modules/sig2str (Makefile.am): Likewise.
68626         * modules/snprintf (Makefile.am): Likewise.
68627         * modules/stdlib-safer (Makefile.am): Likewise.
68628         * modules/stpcpy (Makefile.am): Likewise.
68629         * modules/stpncpy (Makefile.am): Likewise.
68630         * modules/strcase (Makefile.am): Likewise.
68631         * modules/strcasestr (Makefile.am): Likewise.
68632         * modules/strchrnul (Makefile.am): Likewise.
68633         * modules/strcspn (Makefile.am): Likewise.
68634         * modules/strdup (Makefile.am): Likewise.
68635         * modules/strerror (Makefile.am): Likewise.
68636         * modules/strftime (Makefile.am): Likewise.
68637         * modules/strndup (Makefile.am): Likewise.
68638         * modules/strnlen (Makefile.am): Likewise.
68639         * modules/strpbrk (Makefile.am): Likewise.
68640         * modules/strsep (Makefile.am): Likewise.
68641         * modules/strstr (Makefile.am): Likewise.
68642         * modules/strtod (Makefile.am): Likewise.
68643         * modules/strtoimax (Makefile.am): Likewise.
68644         * modules/strtok_r (Makefile.am): Likewise.
68645         * modules/strtol (Makefile.am): Likewise.
68646         * modules/strtoll (Makefile.am): Likewise.
68647         * modules/strtoul (Makefile.am): Likewise.
68648         * modules/strtoull (Makefile.am): Likewise.
68649         * modules/strtoumax (Makefile.am): Likewise.
68650         * modules/strverscmp (Makefile.am): Likewise.
68651         * modules/time_r (Makefile.am): Likewise.
68652         * modules/timegm (Makefile.am): Likewise.
68653         * modules/tmpfile-safer (Makefile.am): Likewise.
68654         * modules/unistd-safer (Makefile.am): Likewise.
68655         * modules/unlinkdir (Makefile.am): Likewise.
68656         * modules/userspec (Makefile.am): Likewise.
68657         * modules/utime (Makefile.am): Likewise.
68658         * modules/utimecmp (Makefile.am): Likewise.
68659         * modules/utimens (Makefile.am): Likewise.
68660         * modules/vasnprintf (Makefile.am): Likewise.
68661         * modules/vasprintf (Makefile.am): Likewise.
68662         * modules/vsnprintf (Makefile.am): Likewise.
68663         * modules/xalloc (Makefile.am): Likewise.
68664         * modules/xgetcwd (Makefile.am): Likewise.
68665         * modules/xnanosleep (Makefile.am): Likewise.
68666         * modules/xreadlink (Makefile.am): Likewise.
68667         * modules/xstrtod (Makefile.am): Likewise.
68668         * modules/xstrtol (Makefile.am): Likewise.
68669         * modules/xstrtold (Makefile.am): Likewise.
68670         * modules/yesno (Makefile.am): Likewise.
68671
68672 2006-10-12  Jim Meyering  <jim@meyering.net>
68673
68674         * m4/getloadavg.m4: Revert the change below.
68675
68676         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68677         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68678         fail with a symlink, which is what coreutils' ./bootstrap now
68679         creates by default.
68680
68681 2006-10-12  Bruno Haible  <bruno@clisp.org>
68682
68683         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68684         mingw.
68685         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68686         MSVC and mingw explicitly.
68687
68688 2006-10-11  Simon Josefsson  <jas@extundo.com>
68689             Bruno Haible  <bruno@clisp.org>
68690
68691         Add support for multiple gnulib-tool invocations in the scope of a
68692         single configure.ac file.
68693         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68694         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68695         with the same contents as the _LIBADD variable.
68696         (func_emit_initmacro_start, func_emit_initmacro_end,
68697         func_emit_initmacro_done): New functions.
68698         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68699         gl_LIBOBJS and gl_LTLIBOBJS.
68700
68701 2006-10-11  Bruno Haible  <bruno@clisp.org>
68702
68703         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68704         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68705         autoreconf. Instead, invoke autopoint explicitly but move back the
68706         *.m4 files from gnulib.
68707
68708 2006-10-11  Bruno Haible  <bruno@clisp.org>
68709
68710         * gnulib-tool (func_usage): Make module names after --create-testdir
68711         optional.
68712         (func_create_testdir): If no module was specified, use nearly all
68713         modules.
68714
68715 2006-10-12  Jim Meyering  <jim@meyering.net>
68716
68717         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68718         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68719         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68720         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68721         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68722         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68723         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68724         (fts_set_stat_required): New function.
68725         (fts_open): Defer the calls to fts_stat, if possible or requested.
68726         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68727         into fts_stat itself.
68728         (fts_read): Perform any required (deferred) fts_stat call.
68729         (fts_build): Likewise, for the directory we're about to open and read.
68730         In the readdir loop, carefully decide whether each entry will require
68731         an eventual call to fts_stat, using dirent.d_type info if available.
68732         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68733         a command line argument into this function.  Update all callers.
68734         Map a return value of FTS_DOT to FTS_D for a command line argument.
68735         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68736         Thanks to Miklos Szeredi for his tenacity and for the initial
68737         bug report about "find" failing on a FUSE-based file system.
68738
68739         * lib/fts.c (fts_open): Use consistent indentation.
68740
68741 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68742
68743         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68744         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68745         reported by Jim Meyering.  All uses of cache variables renamed
68746         to match Autoconf's.
68747         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68748         the other one.
68749
68750         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68751         Fix misspelling in diagnostic.
68752
68753 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68756         defined.  Problem reported by Matthew Woehlke.
68757
68758         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68759         Add support for Tandem NonStop R series.
68760         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68761         Use new macro.
68762
68763         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68764         (has_trailing_slash): Omit size arg; all callers changed.
68765         Omit 'inline', since it doesn't help performance and we'd
68766         need to configure it.
68767         Don't count //, ///, etc. as having a trailing slash.
68768         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68769         (rpl_rename_dest_slash): On failure, use rename's errno rather
68770         than (in some cases) an incorrect or junk errno.
68771         Simplify code by removing need to compute length; this does
68772         cause it to make two passes instead of one over the file name,
68773         but it's worth it.
68774
68775         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68776         change, since Autoconf's version may no longer be appropriate now
68777         that we are using CVS Autoconf's version.  Add support for Tandem.
68778
68779 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68780             Bruno Haible  <bruno@clisp.org>
68781
68782         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68783         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68784         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68785         gl_AC_TYPE_LONG_LONG.
68786
68787         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68788         instead of HAVE_LONG_LONG.
68789         * lib/printf-args.c (printf_fetchargs): Likewise.
68790         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68791         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68792         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68793         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68794         gl_AC_TYPE_LONG_LONG.
68795
68796 2006-10-11  Bruno Haible  <bruno@clisp.org>
68797
68798         * m4/longlong.m4: Add comments.
68799         * m4/ulonglong.m4: Likewise.
68800
68801 2006-10-10  Bruno Haible  <bruno@clisp.org>
68802
68803         Make it possible to #define stpcpy, strdup to aliases.
68804         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68805         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68806
68807 2006-10-10  Bruno Haible  <bruno@clisp.org>
68808
68809         Make it possible to #define gcd to an alias.
68810         * lib/gcd.c: Include config.h.
68811
68812 2006-10-10  Bruno Haible  <bruno@clisp.org>
68813
68814         Make it possible to #define c_isascii to an alias.
68815         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68816         defined. Undefine the macros before defining them, to avoid gcc
68817         warnings.
68818         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68819         define NO_C_CTYPE_MACROS early.
68820
68821 2006-10-10  Bruno Haible  <bruno@clisp.org>
68822
68823         Make it possible to #define set_program_name to an alias.
68824         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68825         ENABLE_RELOCATABLE early.
68826
68827 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68828
68829         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68830         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68831         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68832         More generally, don't assume that 64-bit signed int is available
68833         if unsigned int is, and vice versa.
68834         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68835         unsigned symbols, not on their signed counterparts.
68836         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68837         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68838         (UINT64_C, UINTMAX_C):
68839         Likewise.
68840         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68841         unsigned counterparts.
68842         (Have_long_long, Unsigned): New macros.
68843         (Int): Renamed from INT.
68844         (strtoimax): Use the new macros.
68845         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68846         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68847         * modules/inttypes (inttypes.h): Substitute
68848         HAVE_UNSIGNED_LONG_LONG_INT.
68849         * modules/stdint (stdint.h): Likewise.
68850         (Files): Add m4/ulonglong.m4.
68851
68852 2006-10-10  Bruno Haible  <bruno@clisp.org>
68853
68854         Fix a gcc -Wshadow warning.
68855         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68856         to 'bucket'.
68857         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68858         gl_linked_indexof_from_to): Likewise.
68859         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68860         Likewise.
68861         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68862         Likewise.
68863         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68864         Reported by Eric Blake.
68865
68866 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68867
68868         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68869         for NetBSD.  Problem reported by Bruno Haible.
68870
68871 2006-10-09  Jim Meyering  <jim@meyering.net>
68872
68873         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68874         Patch from Bruno Haible.
68875
68876 2006-10-09  Jim Meyering  <jim@meyering.net>
68877
68878         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68879         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68880         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68881
68882 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68883
68884         Don't include <config.h> twice; this doesn't work in some cases,
68885         e.g., when config.h has "#define intmax_t long long int" and
68886         we include <config.h>, <inttypes.h>, <config.h> in that order.
68887         Problem reported by Matthew Woehlke in:
68888         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68889         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68890         * lib/fts-cycle.c: Don't include config.h.
68891         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68892         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68893         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68894         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68895         inttypes.h.
68896         * lib/xstrtoumax.c: Likewise.
68897         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68898         __strtol and the like, so that this module is more like its siblings.
68899         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68900         Remove; no longer needed now that we assume gnulib inttypes.h.
68901
68902 2006-10-08  Bruno Haible  <bruno@clisp.org>
68903
68904         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68905         option.
68906
68907 2006-10-07  Jim Meyering  <jim@meyering.net>
68908
68909         * modules/inttypes (inttypes.h): Revert what seems to have been
68910         an inadvertent part of today's change: use "|", not "/" in the
68911         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68912
68913 2006-10-07  Bruno Haible  <bruno@clisp.org>
68914
68915         * modules/sublist: New file.
68916
68917 2006-10-07  Bruno Haible  <bruno@clisp.org>
68918
68919         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68920         * modules/argz (argz.h): Likewise.
68921         * modules/arpa_inet (arpa/inet.h): Likewise.
68922         * modules/byteswap (byteswap.h): Likewise.
68923         * modules/configmake (configmake.h): Likewise.
68924         * modules/fcntl (fcntl.h): Likewise.
68925         * modules/fnmatch (fnmatch.h): Likewise.
68926         * modules/getopt (getopt.h): Likewise.
68927         * modules/glob (glob.h): Likewise.
68928         * modules/inttypes (inttypes.h): Likewise.
68929         * modules/netinet_in (netinet/in.h): Likewise.
68930         * modules/poll (poll.h): Likewise.
68931         * modules/stdbool (stdbool.h): Likewise.
68932         * modules/stdint (stdint.h): Likewise.
68933         * modules/sys_select (sys/select.h): Likewise.
68934         * modules/sys_socket (sys/socket.h): Likewise.
68935         * modules/sys_stat (sys/stat.h): Likewise.
68936         * modules/sysexits (sysexits.h): Likewise.
68937         * modules/unistd (unistd.h): Likewise.
68938         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68939         Add a "DO NOT EDIT" comment to the generated file.
68940         (func_import): Likewise for gnulib-comp.m4.
68941
68942 2006-10-07  Bruno Haible  <bruno@clisp.org>
68943
68944         * lib/gl_sublist.h: New file.
68945         * lib/gl_sublist.c: New file.
68946
68947 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68948
68949         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68950         name (relative to the original working directory) and the file
68951         name component (relative to the temporary working directory).  All
68952         callers changed.
68953         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68954         * lib/mkdir-p.c (make_dir_parents): Likewise.
68955         * lib/mkdir-p.h (make_dir_parents): Likewise.
68956
68957 2006-10-06  Eric Blake  <ebb9@byu.net>
68958
68959         Define several macros for use by the clean-temp module.
68960         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68961         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68962         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68963
68964         * lib/clean-temp.h (close_stream_temp): New declaration.
68965         * lib/clean-temp.c (includes): Pull in headers according to what
68966         other modules are in use.
68967         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68968
68969 2006-10-06  Bruno Haible  <bruno@clisp.org>
68970
68971         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68972         instead of fopen, fwriteerror.
68973
68974 2006-10-06  Bruno Haible  <bruno@clisp.org>
68975
68976         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68977         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68978         int.
68979         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68980         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68981         Return an error indicator.
68982         Suggested by Eric Blake.
68983
68984 2006-10-06  Bruno Haible  <bruno@clisp.org>
68985
68986         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68987         Reported by Eric Blake.
68988
68989 2006-10-06  Bruno Haible  <bruno@clisp.org>
68990
68991         * modules/closeout (Description): Mention stderr too.
68992
68993 2006-10-06  Bruno Haible  <bruno@clisp.org>
68994         and Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         * lib/closeout.c (close_stdout): Also close stderr.
68997         * lib/closeout.h: Update comment.
68998
68999 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69000
69001         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
69002         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
69003         * lib/dirchownmod.c: Include lchown.h.
69004         * lib/lchown.c: Don't include files that lchown.h now includes.
69005         Don't declare chown, since lchown.h now does that.
69006         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
69007         (lchown): Define to rpl_chown if lchown is declared but
69008         does not exist.  Declare using a prototype if lchown is not
69009         declared.  Add a copyright notice.
69010         * lib/mkstemp.h: Include <unistd.h>.
69011         * lib/openat.c: Include lchown.h.
69012
69013         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
69014         we now test for that separately.
69015         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
69016         rather than O_NOFOLLOW, when testing whether it's possible to
69017         avoid a race condition reliably.
69018         * lib/savewd.c (savewd_chdir): Likewise.
69019
69020         Remove macros that are no longer needed now that stdint.h is
69021         reliable.
69022         * lib/fsusage.c (UINTMAX_MAX): Remove.
69023         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
69024         * lib/utimecmp.c (SIZE_MAX): Remove.
69025
69026         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
69027
69028         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
69029         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
69030         O_NOATIME works.
69031
69032 2006-10-05  Bruno Haible  <bruno@clisp.org>
69033
69034         * lib/gl_list.h (gl_sortedlist_search_from_to,
69035         gl_sortedlist_indexof_from_to): New declarations.
69036         (gl_list_implementation): New fields sortedlist_search_from_to,
69037         sortedlist_indexof_from_to.
69038         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
69039         inline functions.
69040         * lib/gl_list.c (gl_sortedlist_search_from_to,
69041         gl_sortedlist_indexof_from_to): New functions.
69042         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69043         function.
69044         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69045         (gl_array_sortedlist_search_from_to): New function.
69046         (gl_array_list_implementation): Update.
69047         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69048         function.
69049         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69050         (gl_carray_sortedlist_search_from_to): New function.
69051         (gl_carray_list_implementation): Update.
69052         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69053         gl_linked_sortedlist_indexof_from_to): New functions.
69054         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69055         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69056         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69057         gl_tree_sortedlist_indexof_from_to): New functions.
69058         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69059         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69060         Update.
69061         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69062         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69063         Update.
69064
69065 2006-10-05  Bruno Haible  <bruno@clisp.org>
69066
69067         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69068         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69069         (struct gl_list_implementation): Add fields search_from_to,
69070         indexof_from_to. Remove fields search, indexof.
69071         (gl_list_search): Use the search_from_to method.
69072         (gl_list_search_from, gl_list_search_from_to): New functions.
69073         (gl_list_indexof): Use the indexof_from_to method.
69074         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69075         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69076         (gl_list_search_from, gl_list_search_from_to): New functions.
69077         (gl_list_indexof): Use the indexof_from_to method.
69078         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69079         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69080         gl_array_indexof. Add start_index, end_index arguments.
69081         (gl_array_search_from_to): Renamed from gl_array_search. Add
69082         start_index, end_index arguments.
69083         (gl_array_remove, gl_array_list_implementation): Update.
69084         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69085         gl_carray_indexof. Add start_index, end_index arguments.
69086         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69087         start_index, end_index arguments.
69088         (gl_carray_remove, gl_carray_list_implementation): Update.
69089         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69090         gl_linked_search. Add start_index, end_index arguments.
69091         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69092         start_index, end_index arguments.
69093         (gl_linked_remove): Update.
69094         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69095         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69096         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69097         field to 'size_t'.
69098         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69099         gl_tree_search. Add start_index, end_index arguments.
69100         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69101         start_index, end_index arguments.
69102         (gl_tree_remove): Update.
69103         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69104         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69105         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69106         function.
69107         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69108         gl_tree_search. Add start_index, end_index arguments.
69109         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69110         start_index, end_index arguments.
69111         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69112         Update.
69113         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69114
69115 2006-10-05  Bruno Haible  <bruno@clisp.org>
69116
69117         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69118
69119         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69120         fwriteerror_temp): New declarations.
69121         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69122         (descriptors): New variable.
69123         (cleanup): First, close the descriptors.
69124         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69125         fclose_temp, fwriteerror_temp): New functions.
69126
69127 2006-10-04  Jim Meyering  <jim@meyering.net>
69128
69129         * lib/fts.c (fts_open): Tiny comment change.
69130
69131 2006-10-04  Bruno Haible  <bruno@clisp.org>
69132
69133         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69134         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69135         gl_LOCK_BODY.
69136         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69137         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69138         gl_LOCK_EARLY_BODY.
69139         (gl_LOCK): Require gl_LOCK_BODY.
69140
69141 2006-10-04  Bruno Haible  <bruno@clisp.org>
69142
69143         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69144         (gl_oset_search_atleast): New declaration.
69145         (struct gl_oset_implementation): Add field 'search_atleast'.
69146         (gl_oset_search_atleast): New inline function.
69147         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69148         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69149         (gl_array_oset_implementation): Update.
69150         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69151         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69152         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69153
69154 2006-10-04  Bruno Haible  <bruno@clisp.org>
69155
69156         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69157
69158 2006-10-03  Bruno Haible  <bruno@clisp.org>
69159
69160         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69161         from gl_avltreehash_list_implementation.
69162
69163 2006-10-03  Bruno Haible  <bruno@clisp.org>
69164
69165         * lib/gl_oset.c (gl_oset_add): Fix return type.
69166
69167 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69168
69169         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69170
69171 2006-10-02  Eric Blake  <ebb9@byu.net>
69172
69173         * modules/strnlen (Depends-on): Add extensions.
69174
69175 2006-10-02  Eric Blake  <ebb9@byu.net>
69176
69177         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69178         definition in 2.60+.
69179
69180 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69181
69182         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69183         checks.
69184
69185 2006-10-02  Bruno Haible  <bruno@clisp.org>
69186
69187         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69188         to the AUTOMAKE_OPTIONS.
69189         Reported by Jim Meyering.
69190
69191 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69192
69193         Work around bug in Solaris 10 /proc file system:
69194         /proc/self/fd/NNN/.. isn't the parent directory of
69195         the directory whose file descriptor is NNN.  This needs to
69196         be worked around at run time, not compile time, since a
69197         program might be built on Solaris 8, where things work, and
69198         run on Solaris 10.
69199         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69200         to use the following interface instead:
69201         (OPENAT_BUFFER_SIZE): New macro.
69202         (openat_proc_name): New function.
69203         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69204         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69205         Likewise.
69206         * lib/openat-proc.c: New file.
69207         * modules/openat (Files): Add lib/openat-proc.c.
69208         (Depends-on): Add same-inode, stdbool.
69209         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69210
69211 2006-09-29  Bruno Haible  <bruno@clisp.org>
69212
69213         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69214         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69215         argument. Set stdout_closed before testing for ferror, not after.
69216         (fwriteerror, fwriteerror_no_ebadf): New functions.
69217
69218 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69219
69220         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69221
69222 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69223
69224         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69225         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69226
69227 2006-09-28  Jim Meyering  <jim@meyering.net>
69228
69229         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69230         Include <unistd.h>.
69231
69232 2006-09-28  Bruno Haible  <bruno@clisp.org>
69233
69234         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69235         * modules/linkedhash-list (Depends-on): Likewise.
69236         * modules/rbtreehash-list (Depends-on): Likewise.
69237
69238 2006-09-28  Bruno Haible  <bruno@clisp.org>
69239
69240         * lib/strndup.h: Simplify the redefinition of strndup.
69241         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69242         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69243
69244 2006-09-28  Bruno Haible  <bruno@clisp.org>
69245
69246         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69247         * lib/gl_linkedhash_list.c: Likewise.
69248         * lib/gl_rbtreehash_list.c: Likewise.
69249
69250 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69251
69252         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69253         getaddrinfo.
69254
69255         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69256         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69257         it causes <stdio_ext.h> to cause a compile-time error.
69258         Problem reported by Nelson H. F. Beebe.
69259         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69260         of HAVE_DECL___PENDING.
69261
69262         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69263         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69264         declaration.
69265
69266 2006-09-27  Jim Meyering  <jim@meyering.net>
69267
69268         This file could end up with a definition for a function
69269         named __strndup, rather than rpl_strndup on a system with
69270         incomplete weak_alias support.
69271         * lib/strndup.c (strndup): Rename from __strndup.
69272         Remove #defines that used to map __strndup to strndup.
69273         Don't use K&R prototypes.
69274         Remove LIBC-related code, since this file is not sync'd with glibc.
69275         * lib/strndup.h: Revamp, accordingly.
69276         * m4/strndup.m4: Modernize.
69277
69278 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69279
69280         * modules/savewd (Depends-on): Add 'raise'.
69281         * lib/savewd.c: Include <signal.h>, for 'raise'.
69282
69283 2006-09-26  Jim Meyering  <jim@meyering.net>
69284
69285         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69286         when we detect Darwin 8.7.0's acl_get_file bug.
69287         Rearrange to perform the new (below) run-test while $LIBS
69288         contains any acl-related library.  Set USE_ACL at the end.
69289         (gl_ACL_GET_FILE): New function.
69290
69291 2006-09-26  Eric Blake  <ebb9@byu.net>
69292
69293         * lib/verror.c: Include <config.h> unconditionally.
69294
69295 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         * modules/clock-time (Maintainer): Add self.
69298         * modules/getlogin_r (Depends-on): Add extensions.
69299
69300 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69301
69302         * modules/clock-time: New module.
69303         * modules/nanosleep (Depends-on): Add clock-time.
69304         * modules/gethrxtime (Depends-on): Likewise.
69305         * modules/gettime (Depends-on): Likewise.
69306         * modules/settime (Depends-on): Likewise.
69307
69308         * modules/fts-lgpl: Depend on openat.
69309         * modules/mkancesdirs: Depend on savewd.
69310         * modules/mkdir-p: Likewise.
69311
69312 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69313
69314         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69315
69316         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69317         `gl_have_arbitrary_file_name_length_limit' to
69318         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69319         actually works between configure runs.
69320
69321 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69322             Bruno Haible  <bruno@clisp.org>
69323
69324         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69325
69326 2006-09-25  Jim Meyering  <jim@meyering.net>
69327
69328         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69329         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69330
69331 2006-09-25  Eric Blake  <ebb9@byu.net>
69332
69333         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69334         exec's in 2006-09-18 patch when shuffling fds.
69335
69336 2006-09-25  Bruno Haible  <bruno@clisp.org>
69337
69338         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69339         Reported by Jim Meyering.
69340
69341 2006-09-24  Jim Meyering  <jim@meyering.net>
69342
69343         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69344         compare a pointer against a literal "0".  That caused failures with
69345         at least HP-UX's hpcc.
69346
69347 2006-09-22  Simon Josefsson  <jas@extundo.com>
69348
69349         * modules/gc-sha1:
69350         * modules/gc-md4:
69351         * modules/gc-hmac-sha1:
69352         * modules/gc-hmac-md5:
69353         * modules/gc-des:
69354         * modules/gc-arcfour: Distribute more files.
69355
69356 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69357
69358         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69359         (gl_linked_iterator_from_to): Initialize struct completely.
69360         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69361         (gl_tree_iterator_from_to): Likewise
69362         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69363         * lib/gl_array_list.c [lint] (gl_array_iterator)
69364         (gl_array_iterator_from_to): Likewise.
69365         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69366         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69367         (gl_carray_iterator_from_to): Likewise.
69368
69369         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69370         * lib/md4.c (md4_process_block): Remove unused variable.
69371         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69372         parentheses for clarity.
69373
69374 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69375
69376         * modules/bison-i18n (Depends-on): Add gettext.
69377
69378 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69379
69380         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69381         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69382         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69383         also add missing comma that caused broken test.
69384         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69385         stdlib.h, for `abort'.
69386         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69387         variables.
69388         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69389         include unistd.h if present, for `rmdir'.
69390         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69391         variables.
69392         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69393         in the process include standard headers for prototypes.
69394         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69395         gets declared on GNU/Linux.
69396         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69397         unistd.h, for `rmdir'.
69398         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69399
69400         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69401         always true.
69402         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69403
69404         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69405
69406 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69407
69408         * gnulib-tool (func_version): Create output all at once.  This
69409         may help avoid triggering unnecessary SIGPIPEs, and at any
69410         rate it doesn't hurt.
69411
69412 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69413             Bruno Haible  <bruno@clisp.org>
69414
69415         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69416         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69417         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69418
69419         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69420         (gl_FUNC_VASPRINTF): Invoke it.
69421
69422 2006-09-22  Bruno Haible  <bruno@clisp.org>
69423
69424         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69425         getloadavg.c as first argument.
69426
69427 2006-09-22  Bruno Haible  <bruno@clisp.org>
69428
69429         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69430         at the beginning of the gl_INIT macro.
69431         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69432         gl_GETLOADAVG.
69433
69434 2006-09-22  Bruno Haible  <bruno@clisp.org>
69435
69436         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69437         module.
69438         Suggested by Ralf Wildenhues.
69439
69440 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         Import this patch from libc:
69443
69444         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69445
69446         * lib/regex_internal.c (re_string_reconstruct): Handle
69447         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69448         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69449         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69450         re_string_context_at.
69451
69452         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69453         now requires it.
69454         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69455         gl_REGEX now does it for us.
69456         (gl_REGEX): Add test taken from
69457         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69458
69459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69460         Check that large offsets work.  Modernize Autoconf usages.
69461         Prefer "yes" to mean a good thing rather than a bad.
69462         Don't put "#define mkstemp" in config.h, as this might interfere
69463         with standard system headers that "#define mkstemp mkstemp64".
69464
69465         * modules/mkstemp (Depends-on): Add extensions, so that
69466         mkstemp is visible on some platforms.
69467         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69468         (Include): Change to "mkstemp.h" from <stdlib.h>.
69469         (Files): Add mkstemp.h.
69470
69471         * lib/mkstemp.h: New file, since some standard headers
69472         #define mkstemp.
69473         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69474         Include "mkstemp.h".
69475         Make the _LIBC code resemble glibc original more,
69476         e.g., use K&R style.
69477         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69478         (mkstemp): Remove, since mkstemp.h does this for us.
69479         * lib/stdlib--.h: Include mkstemp.h.
69480
69481         Import this patch from libc:
69482
69483         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69484
69485         * lib/tempname.c (__gen_tempname): Change attempts_min
69486         into a macro.  Use preprocessor to decide how to initialize
69487         attempts [Coverity CID 67].
69488
69489 2006-09-20  Bruno Haible  <bruno@clisp.org>
69490
69491         * lib/mkdtemp.c: Import from libc.
69492         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69493                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69494                 attempts_min into a macro.  Use preprocessor to decide how to
69495                 initialize attempts [Coverity CID 67].
69496         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69497                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69498                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69499
69500 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69501
69502         * gnulib-tool (func_exit): New function, to allow to pass the
69503         exit status portably through the trap.  Use everywhere.
69504         (--help, --version): Signal a write error.
69505         (trap): catch SIGPIPE, for write errors.
69506         Exit at the end of the trap, with the correct exit status.
69507
69508 2006-09-19  Karl Berry  <karl@gnu.org>
69509
69510         * doc/gnulib.texi: note about the license texinfo files.
69511
69512 2006-09-19  Eric Blake  <ebb9@byu.net>
69513
69514         * gnulib-tool: Avoid space-tab.
69515
69516 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69517
69518         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69519         that prevented coreutils 6.1 from building.  Problem reported
69520         by Petter Reinholdtsen.
69521
69522 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69523
69524         * gnulib-tool (avoidlist): Fix typo that broke options like
69525         --avoid=lock that are used by coreutils bootstrap.
69526
69527 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69528
69529         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69530         more systematically.
69531
69532 2006-09-18  Jim Meyering  <jim@meyering.net>
69533
69534         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69535
69536 2006-09-18  Bruno Haible  <bruno@clisp.org>
69537
69538         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69539
69540 2006-09-18  Bruno Haible  <bruno@clisp.org>
69541
69542         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69543         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69544         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69545         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69546         * m4/gettext.m4: Require autoconf >= 2.52.
69547         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69548         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69549         of gl_cv_header_inttypes_h.
69550
69551 2006-09-18  Bruno Haible  <bruno@clisp.org>
69552
69553         * lib/javaversion.c: Include configmake.h.
69554
69555 2006-09-18  Bruno Haible  <bruno@clisp.org>
69556
69557         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69558         avoid that the while loops be executed in a subshell.
69559
69560 2006-09-18  Bruno Haible  <bruno@clisp.org>
69561
69562         * MODULES.html.sh (func_module): Break long lines.
69563         Suggested by Bruce Korb <bkorb@gnu.org>.
69564
69565 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69566
69567         Speed up by a factor of 1.12.
69568         * gnulib-tool (nl): New variable.
69569         (func_import): Rewrite include directive extraction to only read each
69570         directive once.
69571
69572 2006-09-17  Bruno Haible  <bruno@clisp.org>
69573
69574         * modules/javaversion (Makefile.am): Remove DEFS setting.
69575         (Depends-on): Add configmake, for PKGDATADIR definition.
69576
69577 2006-09-17  Bruno Haible  <bruno@clisp.org>
69578
69579         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69580
69581 2006-09-17  Bruno Haible  <bruno@clisp.org>
69582
69583         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69584         (func_modules_transitive_closure, func_modules_add_dummy,
69585         func_modules_to_filelist, func_import, func_create_testdir,
69586         func_create_megatestdir, ...): Use it wherever possible.
69587         Suggested by Ralf Wildenhues.
69588
69589 2006-09-16  Karl Berry  <karl@gnu.org>
69590
69591         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69592         to avoid sectioning errors.
69593         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69594         [ifinfo]: blank line after @center-ed titles.
69595         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69596         Spell FSF address consistently with others.
69597         (These changes approved by rms.)
69598
69599 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69600
69601         Speed up by a factor of 1.61.
69602         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69603         already checked module names again.
69604
69605 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69606
69607         Speed up by a factor of 1.13.
69608         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69609         for new_files, and the input to func_add_or_update.
69610
69611 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69612
69613         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69614         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69615
69616 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69617
69618         * modules/mkancesdirs (Depends-on): Add fcntl.
69619         * modules/savewd: New file.
69620         * MODULES.html.sh (File system functions): Add savewd.
69621
69622         * modules/configmake (Makefile.am): Add support for the
69623         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69624
69625 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69626
69627         * m4/savewd.m4: New file.
69628
69629 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69630
69631         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69632         (dirchownmod): New arg FD.  All callers changed.
69633         Use FD rather than opening the directory ourself, as opening is
69634         now the caller's responsibility.
69635         * lib/dirchownmod.h: Likewise.
69636         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69637         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69638         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69639         (test_dir): Remove.
69640         (mkancesdirs): Return length of prefix of FILE that has already
69641         been made, or -2 if there is a child doing the work.  Redo
69642         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69643         ".", and treat ".." specially since it might stray back into
69644         already-created areas.  Use a subprocess if necessary.  New arg
69645         WD; all users changed.  MAKE_DIR function should now return 1
69646         if it creates a directory that is not readable.  Return -2 if
69647         a child process is spun off.
69648         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69649         Adjust signature to match code.
69650         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69651         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69652         all users changed.
69653         * lib/savewd.c, lib/savewd.h: New files.
69654
69655 2006-09-15  Jim Meyering  <jim@meyering.net>
69656
69657         * modules/rename-dest-slash: New module.
69658         * MODULES.html.sh (posix_compat): Add it here.
69659
69660         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69661
69662 2006-09-15  Jim Meyering  <jim@meyering.net>
69663
69664         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69665         file.
69666
69667         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69668
69669 2006-09-15  Jim Meyering  <jim@meyering.net>
69670
69671         * lib/rename-dest-slash.c (has_trailing_slash): Use
69672         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69673         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69674         test before testing whether SRC is a directory.
69675         Suggestions from Bruno Haible.
69676
69677         Avoid a warning about an unused variable.
69678         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69679         into the #ifdef block where it's used.
69680
69681         * lib/rename-dest-slash.c: New file.
69682
69683 2006-09-14  Bruno Haible  <bruno@clisp.org>
69684
69685         * lib/allocsa.c: Include <config.h> unconditionally.
69686         * lib/asnprintf.c: Likewise.
69687         * lib/asprintf.c: Likewise.
69688         * lib/c-strcasecmp.c: Likewise.
69689         * lib/c-strcasestr.c: Likewise.
69690         * lib/c-strncasecmp.c: Likewise.
69691         * lib/c-strstr.c: Likewise.
69692         * lib/classpath.c: Likewise.
69693         * lib/clean-temp.c: Likewise.
69694         * lib/concatpath.c: Likewise.
69695         * lib/copy-file.c: Likewise.
69696         * lib/csharpcomp.c: Likewise.
69697         * lib/csharpexec.c: Likewise.
69698         * lib/execute.c: Likewise.
69699         * lib/fatal-signal.c: Likewise.
69700         * lib/findprog.c: Likewise.
69701         * lib/fwriteerror.c: Likewise.
69702         * lib/gl_array_list.c: Likewise.
69703         * lib/gl_array_oset.c: Likewise.
69704         * lib/gl_avltree_list.c: Likewise.
69705         * lib/gl_avltree_oset.c: Likewise.
69706         * lib/gl_avltreehash_list.c: Likewise.
69707         * lib/gl_carray_list.c: Likewise.
69708         * lib/gl_linked_list.c: Likewise.
69709         * lib/gl_linkedhash_list.c: Likewise.
69710         * lib/gl_list.c: Likewise.
69711         * lib/gl_oset.c: Likewise.
69712         * lib/gl_rbtree_list.c: Likewise.
69713         * lib/gl_rbtree_oset.c: Likewise.
69714         * lib/gl_rbtreehash_list.c: Likewise.
69715         * lib/imaxabs.c: Likewise.
69716         * lib/imaxdiv.c: Likewise.
69717         * lib/javacomp.c: Likewise.
69718         * lib/javaexec.c: Likewise.
69719         * lib/javaversion.c: Likewise.
69720         * lib/linebreak.c: Likewise.
69721         * lib/localcharset.c: Likewise.
69722         * lib/lock.c: Likewise.
69723         * lib/mbchar.c: Likewise.
69724         * lib/mbswidth.c: Likewise.
69725         * lib/mkdtemp.c: Likewise.
69726         * lib/pipe.c: Likewise.
69727         * lib/printf-args.c: Likewise.
69728         * lib/printf-parse.c: Likewise.
69729         * lib/progname.c: Likewise.
69730         * lib/progreloc.c: Likewise.
69731         * lib/readlink.c: Likewise.
69732         * lib/sh-quote.c: Likewise.
69733         * lib/stpcpy.c: Likewise.
69734         * lib/stpncpy.c: Likewise.
69735         * lib/strcasecmp.c: Likewise.
69736         * lib/strcasestr.c: Likewise.
69737         * lib/strcspn.c: Likewise.
69738         * lib/striconv.c: Likewise.
69739         * lib/strncasecmp.c: Likewise.
69740         * lib/strnlen1.c: Likewise.
69741         * lib/strstr.c: Likewise.
69742         * lib/strtok_r.c: Likewise.
69743         * lib/tls.c: Likewise.
69744         * lib/tmpdir.c: Likewise.
69745         * lib/unicodeio.c: Likewise.
69746         * lib/unsetenv.c: Likewise.
69747         * lib/vasnprintf.c: Likewise.
69748         * lib/vasprintf.c: Likewise.
69749         * lib/wait-process.c: Likewise.
69750         * lib/xallocsa.c: Likewise.
69751         * lib/xsetenv.c: Likewise.
69752         * lib/xstriconv.c: Likewise.
69753
69754 2006-09-13  Simon Josefsson  <jas@extundo.com>
69755
69756         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69757         that internally, suggested by Ralf Wildenhues
69758         <Ralf.Wildenhues@gmx.de>.
69759
69760 2006-09-13  Simon Josefsson  <jas@extundo.com>
69761
69762         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69763         @LIBOBJS@.
69764         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69765
69766 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69767
69768         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69769         longer worry about uses that don't define HAVE_CONFIG_H.
69770         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69771         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69772         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69773         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69774         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69775         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69776         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69777         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69778         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69779         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69780         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69781         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69782         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69783         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69784         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69785         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69786         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69787         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69788         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69789         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69790         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69791         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69792         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69793         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69794         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69795         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69796         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69797         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69798         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69799         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69800         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69801         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69802         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69803         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69804         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69805         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69806         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69807         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69808         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69809         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69810         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69811         Likewise.
69812
69813 2006-09-13  Eric Blake  <ebb9@byu.net>
69814
69815         * lib/getopt.c: Fix typo in last commit.
69816
69817 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69818
69819         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69820         dgettext.
69821
69822 2006-09-12  Jim Meyering  <jim@meyering.net>
69823
69824         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69825         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69826         Reported by Nelson H. F. Beebe.
69827
69828 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69829
69830         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69831         program_invocation_name and program_invocation_short_name are
69832         initialized.
69833         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69834         and program_invocation_short_name to argp.h, so they are visible
69835         to user programs.
69836         * lib/argp.h: Likewise
69837
69838 2006-09-10  Bruno Haible  <bruno@clisp.org>
69839
69840         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69841         m4/inttypes_h.m4, m4/uintmax_t.m4.
69842
69843 2006-09-10  Bruno Haible  <bruno@clisp.org>
69844
69845         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69846         gl_AC_TYPE_UINTMAX_T.
69847
69848 2006-09-10  Bruno Haible  <bruno@clisp.org>
69849
69850         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69851
69852 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69853
69854         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69855         convention.  Text proposed by Bruno Haible.
69856         (struct argp_option): Document the use of N_() wrappers.
69857
69858         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69859         '\v', and translate the two parts separately, instead of feeding
69860         the whole string to gettext.  This allows to exclude
69861         '\v' from the strings visible to the translator by writing doc
69862         strings as N_("..") "\v" N_("..").
69863
69864 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69865
69866         * config/srclist.txt: Undo latest change; the bug was fixed.
69867
69868 2006-09-09  Bruno Haible  <bruno@clisp.org>
69869
69870         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69871         assignments if building a library without libtool.
69872         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69873         in func_emit_lib_Makefile_am.
69874         (func_import): When building a static library libfoo.a, arrange to
69875         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69876         (func_create_testdir): Likewise.
69877         * modules/gc (configure.ac, Makefile.am): If building statically,
69878         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69879         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69880         * modules/striconv (configure.ac, Makefile.am): Likewise.
69881         Based on a suggestion by Ralf Wildenhues.
69882
69883 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69886         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69887         Also:
69888
69889         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69890         Add year_2050_test to catch glibc bug 2821
69891         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69892
69893         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69894         Prefer #ifdef to #if.
69895
69896         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69897         Return from 'main' instead of calling 'exit'.
69898
69899 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69900
69901         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69902         returned the maximum time_t value rather than (time_t) -1.
69903         Problem originally reported by William Bardwell
69904         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69905
69906         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69907         Moved to here ...
69908         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69909         ... from here.
69910
69911 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69914         2821 is fixed.
69915
69916 2006-09-08  Jim Meyering  <jim@meyering.net>
69917
69918         Don't make generated files read-only.  That would bother too many
69919         people.  However, do retain the ability to work when targets are
69920         read-only: remove the destination and temporary files before writing
69921         them (when generated via sed or echo), or by using the -f option for
69922         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69923         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69924         * modules/byteswap, modules/configmake, modules/fcntl:
69925         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69926         * modules/localcharset, modules/netinet_in, modules/poll:
69927         * modules/stdbool, modules/stdint, modules/sys_select:
69928         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69929
69930 2006-09-08  Jim Meyering  <jim@meyering.net>
69931
69932         Avoid new build failure on FreeBSD 6.0.
69933         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69934         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69935         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69936
69937 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69938
69939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69940
69941 2006-09-07  Jim Meyering  <jim@meyering.net>
69942
69943         Fix global typo in last change: use chmod u-w, not chmod u-x.
69944         Spotted by Paul Eggert and Bruce Korb.
69945         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69946         * modules/byteswap, modules/configmake, modules/fcntl:
69947         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69948         * modules/localcharset, modules/netinet_in, modules/poll:
69949         * modules/stdbool, modules/stdint, modules/sys_select:
69950         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69951
69952 2006-09-06  Jim Meyering  <jim@meyering.net>
69953
69954         Make generated files be read-only.
69955         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69956         Ensure that each generated file is now read-only.
69957         * modules/argz: Likewise.
69958         * modules/arpa_inet: Likewise.
69959         * modules/byteswap: Likewise.
69960         * modules/configmake: Likewise.
69961         * modules/fcntl: Likewise.
69962         * modules/fnmatch: Likewise.
69963         * modules/getopt: Likewise.
69964         * modules/glob: Likewise.
69965         * modules/inttypes: Likewise.
69966         * modules/netinet_in: Likewise.
69967         * modules/poll: Likewise.
69968         * modules/stdbool: Likewise.
69969         * modules/stdint: Likewise.
69970         * modules/sys_select: Likewise.
69971         * modules/sys_socket: Likewise.
69972         * modules/sys_stat: Likewise.
69973         * modules/sysexits: Likewise.
69974         * modules/localcharset: Same as above, but continue using temporary
69975         file named "t-$@" (why different?) rather than the "$@-t" used
69976         everywhere else.
69977
69978         * modules/sysexits (Makefile.am): Replace literal occurrences
69979         of "sysexit.h" more readable, and more consistent, "$@".
69980
69981 2006-09-06  Bruno Haible  <bruno@clisp.org>
69982
69983         * modules/striconv: New file.
69984         * modules/xstriconv: New file.
69985         * MODULES.html.sh (Internationalization functions): Add striconv,
69986         xstriconv.
69987
69988 2006-09-06  Bruno Haible  <bruno@clisp.org>
69989
69990         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69991         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69992         not using libtool correctly.
69993
69994 2006-09-06  Bruno Haible  <bruno@clisp.org>
69995
69996         * lib/striconv.h: New file.
69997         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69998         iconvstring.c.
69999         * lib/xstriconv.h: New file.
70000         * lib/xstriconv.c: New file.
70001
70002 2006-09-06  Bruno Haible  <bruno@clisp.org>
70003
70004         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70005         lib_..._LDFLAGS.
70006
70007 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70008
70009         * lib/argz_.h: Sync from Libtool.
70010
70011         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
70012                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70013
70014         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
70015
70016 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70017
70018         * modules/trim: New file.
70019
70020 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70021
70022         * lib/trim.h: New file.
70023         * lib/trim.c: New file.
70024
70025 2006-09-05  Bruno Haible  <bruno@clisp.org>
70026
70027         * MODULES.html.sh (String handling): Add trim.
70028
70029 2006-09-04  Karl Berry  <karl@gnu.org>
70030
70031         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
70032         until next release.
70033
70034 2006-09-03  Bruno Haible  <bruno@clisp.org>
70035
70036         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
70037         correctly.
70038
70039 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70042         not gl_GETLOADAVG.  Omit unneeded semicolons.
70043         Problems reported by Ralf Wildenhues in
70044         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70045         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70046         at the end, which is the usual gnulib style.
70047
70048         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70049         of doing all the work ourselves.
70050         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70051         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70052
70053 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70054
70055         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70056         Problem reported by Ralf Wildenhues in
70057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70058
70059         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
70060         HAVE_STRUCT_STATFS_F_FSTYPENAME.
70061
70062 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70063
70064         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70065         yesterday's patch by changing test -n to test -z.
70066
70067 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70068
70069         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70070         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70071         the former is now obsolescent.
70072
70073         * modules/chdir-long (Depends-on): Add fcntl.
70074
70075 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70076
70077         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70078         obsolescent, and programs should use gnulib instead.
70079         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70080         but with prefixes changed.
70081
70082 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70083
70084         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70085         or stdbool.h, because they might not exist while configuring.
70086
70087         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70088         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70089         does that for us.
70090         (O_DIRECTORY): Remove.
70091
70092 2006-08-31  Eric Blake  <ebb9@byu.net>
70093
70094         * gnulib-tool: Don't let emacs change spaces to TAB.
70095
70096 2006-08-31  Bruno Haible  <bruno@clisp.org>
70097
70098         * gnulib-tool: When calling func_import more than once, do it in a
70099         subshell.
70100         Reported by Eric Blake <ebb9@byu.net>.
70101
70102 2006-08-31  Bruno Haible  <bruno@clisp.org>
70103
70104         * gnulib-tool (nl): Remove variable.
70105         (sed_transform_lib_file): Use more robust test for config-h module.
70106         (func_import): Fix typo in 2006-08-25 patch.
70107
70108 2006-08-31  Bruno Haible  <bruno@clisp.org>
70109
70110         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70111         specified, augment Makefile.am variables instead of assigning them.
70112
70113 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70114
70115         Work around a bug in both the Linux and SunOS 64-bit kernels:
70116         nanosleep mishandles sleeps for longer than 2**31 seconds.
70117         Problem reported by Frank v Waveren in
70118         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70120         Check for nanosleep bug.
70121         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70122
70123 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70124
70125         Work around a bug in both the Linux and SunOS 64-bit kernels:
70126         nanosleep mishandles sleeps for longer than 2**31 seconds.
70127         Problem reported by Frank v Waveren in
70128         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70129         * lib/nanosleep.c (BILLION): New constant.
70130         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70131         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70132         implementation.
70133
70134 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70135
70136         * modules/nanosleep (Depends-on): Add gettime.
70137
70138 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70139         and Simon Josefsson  <jas@extundo.com>
70140         and Oskar Liljeblad  <oskar@osk.mine.nu>
70141
70142         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70143         * gnulib-tool (func_import): New license type 'unmodifiable license
70144         text'.
70145         * modules/fdl: Use it.  Longer description.
70146         * module/gpl, module/lgpl: New files.
70147
70148 2006-08-30  Jim Meyering  <jim@meyering.net>
70149
70150         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70151         shadowing the parameter.
70152
70153 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70154
70155         Sync from Libtool:
70156
70157         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70158
70159         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70160         sharing with gnulib.  Report by Eric Blake.
70161
70162 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70163
70164         * modules/isapipe: New file.
70165         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70166
70167 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70168
70169         * modules/configmake (Makefile.am): Add a comment, and omit
70170         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70171         by Bruno Haible.
70172
70173 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70174
70175         * m4/isapipe.m4: New file.
70176
70177 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70178
70179         * lib/isapipe.c, lib/isapipe.h: New files.
70180
70181 2006-08-29  Jim Meyering  <jim@meyering.net>
70182
70183         * modules/configmake (Makefile.am): Make configmake.h depend on
70184         Makefile.  Otherwise, a stale configmake.h could hang around.
70185
70186 2006-08-29  Eric Blake  <ebb9@byu.net>
70187
70188         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70189         resolution of upstream bug 3044.
70190
70191 2006-08-29  Bruno Haible  <bruno@clisp.org>
70192
70193         * modules/localcharset (Depends-on): Add configmake.
70194         (Makefile.am): Remove setting of LIBDIR through DEFS.
70195
70196 2006-08-29  Bruno Haible  <bruno@clisp.org>
70197
70198         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70199         defined.
70200
70201 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70202
70203         * modules/fcntl: New file.
70204         * modules/chdir-safer (Depends-on): Add fcntl.
70205         * modules/fts: Likewise.
70206         * modules/mkdir-p: Likewise.
70207
70208         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70209         This undoes the most recent change, since we're now addressing the
70210         problem in a different way.
70211
70212         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70213         into output, since the output might be called Makefile.am even
70214         if $makefile_name is something different.
70215         (func_import): Use $makefile_am rather than
70216         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70217         empty.
70218
70219         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70220
70221 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70222
70223         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70224         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70225         recent change to stdint.m4, since we're now addressing the problem in a
70226         different way.
70227
70228 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70229
70230         * m4/fcntl_h.m4: New file.
70231
70232 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70233
70234         * lib/fcntl_.h: New file.
70235         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70236         the fcntl module.
70237         * lib/dirchownmod.c: Likewise.
70238         * lib/fts.c: Likewise.
70239
70240         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70241         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70242         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70243         just before including <inttypes.h>, to avoid circular inclusion.
70244
70245 2006-08-28  Jim Meyering  <jim@meyering.net>
70246
70247         * doc/visibility.texi: Actually read and correct the grammar of the
70248         sentence affected by yesterday's change.
70249
70250 2006-08-28  Eric Blake  <ebb9@byu.net>
70251
70252         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70253         needs wrapper.
70254
70255 2006-08-28  Eric Blake  <ebb9@byu.net>
70256
70257         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70258
70259 2006-08-28  Eric Blake  <ebb9@byu.net>
70260
70261         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70262
70263 2006-08-28  Bruno Haible  <bruno@clisp.org>
70264
70265         * modules/c-strstr: New file, from GNU gettext.
70266         * MODULES.html.sh (String handling): Add c-strstr.
70267
70268 2006-08-28  Bruno Haible  <bruno@clisp.org>
70269
70270         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70271         macros.
70272         Reported by Eric Blake.
70273
70274 2006-08-28  Bruno Haible  <bruno@clisp.org>
70275
70276         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70277         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70278         * lib/vasprintf.c: Include errno.h, limits.h.
70279         (EOVERFLOW): New fallback definition.
70280         (vasprintf): Test here whether the string length is > INT_MAX.
70281         * lib/vsnprintf.c: Include errno.h, limits.h.
70282         (EOVERFLOW): New fallback definition.
70283         (vsnprintf): Fix bug when generated string was too long for the buffer.
70284         Test here whether the string length is > INT_MAX.
70285
70286 2006-08-28  Bruno Haible  <bruno@clisp.org>
70287
70288         * lib/inttypes_.h (SCNX*): Remove definitions.
70289         Reported by Eric Blake.
70290
70291 2006-08-28  Bruno Haible  <bruno@clisp.org>
70292
70293         * lib/c-strstr.h: New file, from GNU gettext.
70294         * lib/c-strstr.c: New file, from GNU gettext.
70295
70296 2006-08-28  Bruno Haible  <bruno@clisp.org>
70297
70298         * gnulib-tool: Reorder some statements.
70299
70300 2006-08-28  Bruno Haible  <bruno@clisp.org>
70301
70302         * gnulib-tool: New option --makefile-name.
70303         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70304         $makefile_name.
70305         (func_import): Write $makefile_name to the cache file, and read it from
70306         there unless explicitly specified. Use $makefile_name as file name
70307         instead of Makefile.am. Adjust the recommendations accordingly.
70308
70309 2006-08-28  Bruno Haible  <bruno@clisp.org>
70310
70311         * gnulib-tool (func_verify_module): Check against misapplying patch.
70312
70313 2006-08-28  Bruno Haible  <bruno@clisp.org>
70314
70315         * gnulib-tool (func_relativize, func_relconcat): New functions.
70316         Give an error if --local-dir is given with --update.
70317         Remove trailing slashes from $local_gnulib_dir.
70318         (func_import): Store the relativized $local_gnulib_dir in
70319         gnulib-cache.m4, and read it from there if not specified explicitly.
70320
70321 2006-08-28  Bruno Haible  <bruno@clisp.org>
70322
70323         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70324         is the current directory. Respect also $local_gnulib_dir.
70325
70326 2006-08-28  Bruno Haible  <bruno@clisp.org>
70327             Simon Josefsson  <jas@extundo.com>
70328
70329         BeOS portability.
70330         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70331
70332 2006-08-27  Jim Meyering  <jim@meyering.net>
70333
70334         * doc/visibility.texi: Remove duplicate word: "pointer".
70335
70336 2006-08-26  Bruno Haible  <bruno@clisp.org>
70337
70338         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70339         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70340         (Makefile.am): Create inttypes.h from inttypes_.h.
70341         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70342
70343         * modules/imaxabs: New file.
70344
70345         * modules/imaxdiv: New file.
70346
70347 2006-08-26  Bruno Haible  <bruno@clisp.org>
70348
70349         * m4/inttypes.m4: New file.
70350         * m4/_inttypes_h.m4: Remove file.
70351         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70352         PRI_MACROS_BROKEN.
70353         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70354
70355         * m4/imaxabs.m4: New file.
70356
70357         * m4/imaxdiv.m4: New file.
70358
70359 2006-08-26  Bruno Haible  <bruno@clisp.org>
70360
70361         * lib/inttypes_.h: New file.
70362         * lib/inttypes.h: Remove file.
70363         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70364
70365         * lib/imaxabs.c: New file.
70366
70367         * lib/imaxdiv.c: New file.
70368
70369 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70370
70371         New config-h module, so that "make" output needn't be cluttered
70372         by -DHAVE_CONFIG_H.
70373         * MODULES.html.sh (Support for building libraries and executables):
70374         Add config-h.
70375         * modules/config-h: New file.
70376         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70377         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70378         the config-h module is used.
70379
70380         New configmake module, so that "make" output needn't be cluttered
70381         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70382         * MODULES.html.sh (Support for building libraries and executables):
70383         Add configmake.
70384         * modules/configmake: New file.
70385
70386 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70387
70388         * m4/config-h.m4: New file.
70389
70390 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70391
70392         * config/srclist.txt: Add elisp-comp.
70393
70394 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70395
70396         * MODULES.html.sh (Support for building libraries and executables):
70397         Add elisp-comp.
70398         * build-aux/elisp-comp: New file.
70399         * modules/elisp-comp: New file.
70400
70401 2006-08-24  Bruno Haible  <bruno@clisp.org>
70402
70403         * gnulib-tool (func_create_testdir): Use non-default values of
70404         sourcebase and m4base.
70405
70406 2006-08-24  Bruno Haible  <bruno@clisp.org>
70407
70408         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70409         HTML structure.
70410
70411 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70412
70413         * modules/openat (Depends-on): Add lchown.
70414
70415 2006-08-23  Bruno Haible  <bruno@clisp.org>
70416
70417         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70418         of gl_LOCK_EARLY instead of gl_LOCK.
70419
70420 2006-08-23  Bruno Haible  <bruno@clisp.org>
70421
70422         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70423         on OSF/1 to no.
70424         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70425
70426 2006-08-23  Bruno Haible  <bruno@clisp.org>
70427
70428         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70429         as unusable.
70430
70431         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70432         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70433         (gl_LOCK): New macro.
70434
70435 2006-08-22  Simon Josefsson  <jas@extundo.com>
70436
70437         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70438         to md5 module.
70439
70440 2006-08-22  Simon Josefsson  <jas@extundo.com>
70441
70442         * MODULES.html.sh: Add "Support for maintaining and release
70443         projects".
70444
70445         * build-aux/gnupload: New file, from coreutils.
70446
70447 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         Avoid the need for AC_LIBSOURCES in m4 macros.
70450         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70451         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70452         * modules/check-version (EXTRA_DIST): Add check-version.h.
70453         * modules/crc (EXTRA_DIST): Add crc.h.
70454         * modules/des (EXTRA_DIST): Add des.h.
70455         * modules/gc (EXTRA_DIST): Add gc.h.
70456         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70457         * modules/getline (EXTRA_DIST): Add getline.h.
70458         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70459         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70460         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70461         * modules/md2 (EXTRA_DIST): Add md2.h.
70462         * modules/md4 (EXTRA_DIST): Add md4.h.
70463         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70464         * modules/read-file (EXTRA_DIST): Add read-file.h.
70465         * modules/readline (EXTRA_DIST): Add readline.h.
70466         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70467         rijndael-api-fst.h.
70468
70469 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70470
70471         * m4/rijndael.m4 (gl_ARCFOUR):
70472         * m4/arctwo.m4 (gl_ARCTWO):
70473         * m4/check-version.m4 (gl_CHECK_VERSION):
70474         * m4/crc.m4 (gl_CRC):
70475         * m4/des.m4 (gl_DES):
70476         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70477         * m4/gc.m4 (gl_GC):
70478         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70479         * m4/getline.m4 (gl_FUNC_GETLINE):
70480         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70481         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70482         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70483         * m4/md2.m4 (gl_MD2):
70484         * m4/md4.m4 (gl_MD4):
70485         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70486         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70487         * m4/readline.m4 (gl_FUNC_READLINE):
70488         * m4/rijndael.m4 (gl_RIJNDAEL):
70489         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70490         to get the necessary .h files and whatnot.
70491
70492 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70495         gnulib rather than the other way around.
70496         * config/srclistvars.sh (COREUTILS): Remove.
70497
70498 2006-08-22  Jim Meyering  <jim@meyering.net>
70499
70500         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70501
70502         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70503
70504 2006-08-22  Eric Blake  <ebb9@byu.net>
70505
70506         * modules/regexprops-generic: New file.
70507         * MODULES.html.sh (Support for building documentation): List it.
70508
70509 2006-08-22  Eric Blake  <ebb9@byu.net>
70510
70511         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70512         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70513         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70514         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70515
70516 2006-08-22  Bruno Haible  <bruno@clisp.org>
70517
70518         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70519         and lib_LTLIBRARIES like the other lib_* variables.
70520
70521 2006-08-22  Bruno Haible  <bruno@clisp.org>
70522
70523         * build-aux/x-to-1.in: New file, from GNU gettext.
70524
70525 2006-08-22  Bruno Haible  <bruno@clisp.org>
70526
70527         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70528         <utmpx.h> exists.
70529
70530 2006-08-22  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70533         <utmpx.h> exists.
70534
70535 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70536
70537         BeOS portability.
70538         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70539         exist.
70540         Problem reported by Bruno Haible.
70541
70542 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70543
70544         Avoid the need for AC_LIBSOURCES in m4 macros.
70545         * modules/acl (EXTRA_DIST): Add acl.h.
70546         * modules/argmatch (Files): Add m4/argmatch.m4.
70547         (configure.ac): Add gl_ARGMATCH.
70548         (EXTRA_DIST): Renamed from lib_SOURCES, for
70549         consistency with the other modules.  Remove argmatch.c.
70550         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70551         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70552         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70553         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70554         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70555         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70556         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70557         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70558         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70559         * modules/closeout (EXTRA_DIST): Add closeout.h.
70560         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70561         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70562         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70563         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70564         dirname.h; remove basename.c and stripslash.c.
70565         * modules/exclude (EXTRA_DIST): Add exclude.h.
70566         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70567         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70568         * modules/file-type (EXTRA_DIST): Add file-type.h.
70569         * modules/filemode (EXTRA_DIST): Add filemode.h.
70570         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70571         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70572         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70573         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70574         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70575         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70576         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70577         * modules/getdate (EXTRA_DIST): Add getdate.c.
70578         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70579         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70580         * modules/getpass (EXTRA_DIST): Add getpass.h.
70581         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70582         * modules/group-member (EXTRA_DIST): Add group-member.h.
70583         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70584         * modules/hash (EXTRA_DIST): Add hash.h.
70585         * modules/human (EXTRA_DIST): Add human.h.
70586         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70587         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70588         * modules/lchown (EXTRA_DIST): Add lchown.h.
70589         * modules/long-options (EXTRA_DIST): Add long-options.h.
70590         * modules/lstat (EXTRA_DIST): Add lstat.h.
70591         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70592         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70593         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70594         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70595         * modules/memxor (EXTRA_DIST): Add memxor.h.
70596         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70597         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70598         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70599         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70600         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70601         * modules/physmem (EXTRA_DIST): Add physmem.h.
70602         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70603         * modules/posixver (EXTRA_DIST): Add posixver.h.
70604         * modules/quote (EXTRA_DIST): Add quote.h.
70605         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70606         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70607         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70608         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70609         regex_internal.h regexec.c.
70610         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70611         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70612         * modules/same (EXTRA_DIST): Add same.h.
70613         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70614         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70615         * modules/savedir (EXTRA_DIST): Add savedir.h.
70616         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70617         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70618         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70619         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70620         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70621         * modules/strdup (EXTRA_DIST): Add strdup.h.
70622         * modules/strftime (EXTRA_DIST): Add strftime.h.
70623         * modules/strndup (EXTRA_DIST): Add strndup.h.
70624         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70625         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70626         * modules/time_r (EXTRA_DIST): Add time_r.h.
70627         * modules/timespec (EXTRA_DIST): Add timespec.h.
70628         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70629         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70630         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70631         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70632         * modules/userspec (EXTRA_DIST): Add userspec.h.
70633         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70634         * modules/utimens (EXTRA_DIST): Add utimens.h.
70635         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70636         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70637         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70638         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70639         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70640         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70641         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70642         * modules/yesno (EXTRA_DIST): Add yesno.h.
70643
70644 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70645
70646         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70647
70648         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70649         * m4/dev-ino.m4, same-inode.m4: Remove.
70650
70651         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70652         * m4/acl.m4 (AC_FUNC_ACL):
70653         * m4/backupfile.m4 (gl_BACKUPFILE):
70654         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70655         * m4/canon-host.m4 (gl_CANON_HOST):
70656         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70657         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70658         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70659         * m4/cloexec.m4 (gl_CLOEXEC):
70660         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70661         * m4/closeout.m4 (gl_CLOSEOUT):
70662         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70663         * m4/dirname.m4 (gl_DIRNAME):
70664         * m4/exclude.m4 (gl_EXCLUDE):
70665         * m4/exitfail.m4 (gl_EXITFAIL):
70666         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70667         * m4/file-type.m4 (gl_FILE_TYPE):
70668         * m4/filemode.m4 (gl_FILEMODE):
70669         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70670         * m4/fpending.m4 (gl_FUNC_FPENDING):
70671         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70672         * m4/fts.m4 (gl_FUNC_FTS):
70673         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70674         * m4/getdate.m4 (gl_GETDATE):
70675         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70676         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70677         * m4/getpass.m4 (gl_FUNC_GETPASS):
70678         * m4/gettime.m4 (gl_GETTIME):
70679         * m4/getugroups.m4 (gl_GETUGROUPS):
70680         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70681         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70682         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70683         * m4/hash.m4 (gl_HASH):
70684         * m4/idcache.m4 (gl_IDCACHE):
70685         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70686         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70687         * m4/long-options.m4 (gl_LONG_OPTIONS):
70688         * m4/lstat.m4 (gl_FUNC_LSTAT):
70689         * m4/md5.m4 (gl_MD5):
70690         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70691         * m4/memcoll.m4 (gl_MEMCOLL):
70692         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70693         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70694         * m4/memxor.m4 (gl_MEMXOR):
70695         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70696         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70697         * m4/modechange.m4 (gl_MODECHANGE):
70698         * m4/mountlist.m4 (gl_MOUNTLIST):
70699         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70700         * m4/openat.m4 (gl_FUNC_OPENAT):
70701         * m4/pathmax.m4 (gl_PATHMAX):
70702         * m4/physmem.m4 (gl_PHYSMEM):
70703         * m4/posixtm.m4 (gl_POSIXTM):
70704         * m4/posixver.m4 (gl_POSIXVER):
70705         * m4/quote.m4 (gl_QUOTE):
70706         * m4/quotearg.m4 (gl_QUOTEARG):
70707         * m4/readtokens.m4 (gl_READTOKENS):
70708         * m4/readutmp.m4 (gl_READUTMP):
70709         * m4/regex.m4 (gl_REGEX):
70710         * m4/safe-read.m4 (gl_SAFE_READ):
70711         * m4/safe-write.m4 (gl_SAFE_WRITE):
70712         * m4/same.m4 (gl_SAME):
70713         * m4/save-cwd.m4 (gl_SAVE_CWD):
70714         * m4/savedir.m4 (gl_SAVEDIR):
70715         * m4/settime.m4 (gl_SETTIME):
70716         * m4/sha1.m4 (gl_SHA1):
70717         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70718         * m4/stat-macros.m4 (gl_STAT_MACROS):
70719         * m4/stat-time.m4 (gl_STAT_TIME):
70720         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70721         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70722         * m4/strdup.m4 (gl_FUNC_STRDUP):
70723         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70724         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70725         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70726         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70727         * m4/time_r.m4 (gl_TIME_R):
70728         * m4/timespec.m4 (gl_TIMESPEC):
70729         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70730         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70731         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70732         * m4/userspec.m4 (gl_USERSPEC):
70733         * m4/utimecmp.m4 (gl_UTIMECMP):
70734         * m4/utimens.m4 (gl_UTIMENS):
70735         * m4/xalloc.m4 (gl_XALLOC):
70736         * m4/xgetcwd.m4 (gl_XGETCWD):
70737         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70738         * m4/xreadlink.m4 (gl_XREADLINK):
70739         * m4/xstrtod.m4 (gl_XSTRTOD):
70740         * m4/yesno.m4 (gl_YESNO):
70741         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70742         to get the necessary .h files and whatnot.
70743
70744 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70745             Bruno Haible  <bruno@clisp.org>
70746
70747         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70748         /bin/sh understanding of '!' conditional negation.
70749
70750 2006-08-21  Jim Meyering  <jim@meyering.net>
70751
70752         * modules/openat (Depends-on): Really alphabetize.
70753
70754         * modules/acl (Depends-on): Add error and quote.
70755
70756         * check-module (find_included_lib_files): Add at-func.c to the
70757         ok-to-include-more-than-once white list.
70758
70759         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70760
70761 2006-08-21  Bruno Haible  <bruno@clisp.org>
70762
70763         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70764         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70765         Reported by Martin Lambers <marlam@marlam.de>.
70766
70767 2006-08-21  Bruno Haible  <bruno@clisp.org>
70768
70769         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70770         specify an installation location, don't emit a noinst_LIBRARIES or
70771         noinst_LTLIBRARIES assignment.
70772
70773 2006-08-21  Bruno Haible  <bruno@clisp.org>
70774
70775         BeOS portability.
70776         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70777         BeOS has mbrtowc() but no <wctype.h>.
70778
70779 2006-08-21  Bruno Haible  <bruno@clisp.org>
70780
70781         BeOS portability.
70782         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70783         exist.
70784
70785 2006-08-21  Bruno Haible  <bruno@clisp.org>
70786
70787         BeOS portability.
70788         * lib/mbchar.h: Include <wctype.h> only if it exists.
70789
70790 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         Remove files that are no longer needed by their respective modules.
70793         * m4/obstack.m4: Remove.
70794         * m4/strerror_r.m4: Remove.
70795         * m4/uint32_t.m4: Remove.
70796         * m4/uintptr_t.m4: Remove.
70797         * m4/ullong_max.m4: Remove.
70798         * m4/xstrtoimax.m4: Remove.
70799         * m4/xstrtoumax.m4: Remove.
70800
70801         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70802         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70803         dependencies now capture this.
70804
70805         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70806         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70807         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70808         * m4/human.m4 (gl_HUMAN): Likewise.
70809         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70810         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70811
70812         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70813
70814         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70815         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70816         stdint.
70817         * m4/human.m4 (gl_HUMAN): Likewise.
70818         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70819         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70820         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70821         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70822         * m4/xstrtol (gl_XSTRTOL): Likewise.
70823
70824         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70825         AC_TYPE_LONG_LONG_INT.
70826         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70827         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70828         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70829         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70830
70831         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70832         on stdbool.
70833
70834         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70835         (gl_PREREQ_XSTRTOUL): Remove.
70836
70837         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70838
70839         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70840         mode.
70841
70842 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         Add and change modules to make it easier for coreutils to use
70845         gnulib-tool.
70846         * modules/backupfile (Files): Remove m4/d-ino.m4.
70847         (Depends-on): Add d-ino.
70848         * modules/cycle-check (Depends-on): Add stdint.
70849         (lib_SOURCES): Add cycle-check.h.
70850         * modules/d-ino: New module.
70851         * modules/d-type: New module.
70852         * modules/error (Files): Remove m4/strerror_r.m4.
70853         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70854         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70855         m4/inttypes_h.m4, m4/uintmax_t.m4.
70856         (Depends-on): Add stdint.
70857         (lib_SOURCES): Add fsusage.h.
70858         * modules/getcwd (Files): Remove d-ino.m4.
70859         (Depends-on): Add d-ino.
70860         * modules/getndelim2 (Depends-on): Add stdint.
70861         * modules/glob (Files): Remove m4/d-type.m4.
70862         (Depends-on): Add d-type.
70863         * modules/host-os: New module.
70864         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70865         m4/inttypes_h.m4, m4/uintmax_t.m4.
70866         * Depends-on: Add stdint.
70867         (lib_SOURCES): Add human.h.
70868         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70869         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70870         m4/uintmax_t.m4, m4/ulonglong.m4.
70871         (Depends-on): Add stdint.
70872         (EXTRA_DIST): Add inttostr.h.
70873         * modules/lchmod: New module.
70874         * modules/link-follow: New module.
70875         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70876         (Depends-on): Add lchmod.
70877         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70878         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70879         (Depends-on): Add stdint.
70880         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70881         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70882         (Depends-on): Add stdint.
70883         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70884         * modules/perl: New module.
70885         * modules/regex (Depends-on): Add stdint.
70886         * modules/rmdir-errno: New module.
70887         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70888         m4/intmax_t.m4.
70889         (Depends-on): Add stdint.
70890         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70891         m4/uintmax_t.m4.
70892         (Depends-on): Add stdint.
70893         * modules/unlink-busy: New module.
70894         * modules/utimecmp (Depends-on): Add stdint.
70895         * modules/uptime: New module.
70896         * modules/winsz-ioctl: New module.
70897         * modules/winsz-termios: New module.
70898         * modules/xnanosleep (Depends-on): Add nanosleep.
70899         * modules/ullong_max: Remove.
70900         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70901         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70902         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70903         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70904         (Depends-on): Add inttypes.
70905         (lib_SOURCES): Add xstrtol.h.
70906         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70907         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70908         * MODULES.html.sh: Move 'assert' into the assert section.
70909         Move 'dummy' into the linking section.
70910         Remove ullong_max.
70911         Add section for compatibility checks for POSIX:2001 functions,
70912         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70913         winsz-ioctl, and winsz-termios into it.
70914         Add lchmod.
70915         Add top-level Misc section and put host-os, perl, and uptime
70916         into it.
70917
70918 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70919
70920         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70921         now assume the stdint module.  Do not include inttypes.h.
70922         * lib/fsusage.h: Likewise.
70923         * lib/getndelim2.c: Likewise.
70924         * lib/human.h: Likewise.
70925         * lib/inttostr.h: Likewise.
70926         * lib/obstack.c: Likewise.
70927         * lib/regex_internal.h: Likewise.
70928         * lib/tempname.c: Likewise.
70929         * lib/utimecmp.c: Likewise.
70930         * lib/xstrtol.h: Likewise.
70931
70932         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70933
70934         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70935         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70936         * lib/xtime.h: Likewise.
70937
70938 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         * modules/openat (Files): Add lib/fchmodat.c.
70941         Fixes problem reported by Jay Youngman.
70942
70943 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70946         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70947
70948 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70949             Bruno Haible  <bruno@clisp.org>
70950
70951         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70952         and is a script that invokes bison. Tighten the code. Add comments.
70953
70954 2006-08-18  Jim Meyering  <jim@meyering.net>
70955
70956         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70957         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70958         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70959         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70960
70961 2006-08-18  Bruno Haible  <bruno@clisp.org>
70962
70963         * modules/bison-i18n: New file.
70964         * MODULES.html.sh (Internationalization functions): Add it.
70965
70966 2006-08-18  Bruno Haible  <bruno@clisp.org>
70967
70968         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70969         sys/statvfs.h. When getmntinfo was found, check its declaration and
70970         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70971
70972 2006-08-18  Bruno Haible  <bruno@clisp.org>
70973
70974         * m4/bison-i18n.m4: New file, from bison.
70975
70976 2006-08-18  Bruno Haible  <bruno@clisp.org>
70977
70978         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70979         (ME_DUMMY): Treat "kernfs" as a dummy.
70980         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70981
70982 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         Update from coreutils.
70985
70986         2006-08-15  Jim Meyering  <jim@meyering.net>
70987
70988         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70989
70990         2006-01-17  Jim Meyering  <jim@meyering.net>
70991
70992         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70993
70994         2006-01-11  Jim Meyering  <jim@meyering.net>
70995
70996         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70997         Check for the lchmod function.
70998
70999 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         Update from coreutils.
71002
71003         * lib/__fpending.h: Add copyright notice.
71004         * lib/fprintftime.h: Likewise.
71005         * lib/savedir.c: Use (C) in copyright notice.
71006         * lib/savedir.h: Likewise.
71007
71008         2006-08-15  Jim Meyering  <jim@meyering.net>
71009
71010         * lib/at-func.c: New file, with the logic of all emulated at-functions.
71011         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
71012         in support of the EXPECTED_ERRNO macro.
71013         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
71014         definitions.  Instead, define the appropriate symbols and include
71015         "at-func.c".
71016         * lib/mkdirat.c (mkdirat): Likewise.
71017         * lib/fchmodat.c (fchmodat): Likewise.
71018         (ENOSYS): Remove definition.
71019         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
71020         it.  Don't include "unistd--.h" -- it wasn't ever used.
71021
71022         2006-01-17  Jim Meyering  <jim@meyering.net>
71023
71024         Rewrite fts.c not to change the current working directory,
71025         by using openat, fstatat, fdopendir, etc..
71026
71027         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
71028         (HAVE_OPENAT_SUPPORT): Define.
71029         [_LIBC] (fchdir): Don't undef or define; no longer used.
71030         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
71031         Now, this `function' always succeeds, and consumes its file descriptor
71032         parameter -- so callers must not close such FDs.  Update callers.
71033         (diropen_fd, opendirat, cwd_advance_fd): New functions.
71034         (diropen): Add parameter, SP.  Adjust all callers.
71035         Implement using diropen_fd, rather than open.
71036         (fts_open): Initialize new member, fts_cwd_fd.
71037         Remove fts_rft-setting code.
71038         (fts_close): Close fts_cwd_fd, if necessary.
71039         (__opendir2): Define in terms of opendir or opendirat,
71040         depending on whether the FST_NOCHDIR flag is set.
71041         (fts_build): Since fts_safe_changedir consumes its FD, and since
71042         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71043         and close the dup'd file descriptor upon failure.
71044         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71045         (fts_safe_changedir): Tweak semantics to reflect that this function
71046         now calls cwd_advance_fd and hence consumes its FD argument.
71047         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71048         [struct FTS] (fts_rft): Remove now-unused member.
71049         [struct FTS] (fts_cycle.state): Improve comment.
71050
71051         * lib/openat.c (openat_needs_fchdir): New function.
71052         * lib/openat.h (openat_needs_fchdir): Declare it.
71053
71054 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71055
71056         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71057         Problem and fix reported by Pádraig Brady in
71058         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
71059
71060 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71061
71062         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71063
71064 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * lib/memcoll.c (memcoll): Optimize for the common case where the
71067         arguments are bytewise equal.
71068
71069 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71070
71071         * doc/regexprops-generic.texi: Add a copyright notice.
71072
71073 2006-08-15  Bruno Haible  <bruno@clisp.org>
71074
71075         * modules/tmpdir (License): Change to LGPL.
71076
71077 2006-08-15  Bruno Haible  <bruno@clisp.org>
71078
71079         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71080         module.
71081
71082 2006-08-14  Simon Josefsson  <jas@extundo.com>
71083
71084         * config/srclist.txt: Add gnupload.
71085
71086 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71087
71088         Change copyright notice from LGPL 2 to GPL 2, since that's the
71089         standard form used in the gnulib repository.
71090         * tests/test-lock.c: Likewise.
71091         * tests/test-stdint.c: Likewise.
71092         * tests/test-tls.c: Likewise.
71093
71094         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71095         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71096         Add copyright notice.
71097
71098         * check-module: Add copyright notice.  Output a copyright
71099         notice if "--version" is specified.
71100         * modules/COPYING: New file.
71101         * tests/test-getaddrinfo.c: Add copyright notice.
71102         * tests/test-verify.c: Likewise.
71103
71104 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         Change copyright notice from LGPL 2 to GPL 2, since that's the
71107         standard form used in the gnulib repository.
71108         * lib/lock.c: LGPL -> GPL.
71109         * lib/lock.h: Likewise.
71110         * lib/strnlen1.c: Likewise.
71111         * lib/strnlen1.h: Likewise.
71112         * lib/tls.c: Likewise.
71113         * lib/tls.h: Likewise.
71114         * lib/tmpdir.c: Likewise.
71115
71116         * lib/TODO: Remove; this belongs only in coreutils.
71117
71118 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         Add copyright notices to long-enough files that lack them, since
71121         otherwise the files aren't clearly free.  Use the same notice that
71122         getdate.texi already uses.
71123         * doc/alloca-opt.texi: Add copyright notice.
71124         * doc/alloca.texi: Likewise.
71125         * doc/ctime.texi: Likewise.
71126         * doc/functions.texi: Likewise.
71127         * doc/gcd.texi: Likewise.
71128         * doc/gnulib-tool.texi: Likewise.
71129         * doc/inet_ntoa.texi: Likewise.
71130         * doc/visibility.texi: Likewise.
71131
71132         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71133         * doc/quote.texi: Add copyright notice.
71134
71135         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71136         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71137         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71138         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71139         is now obsolete, and give a pointer to the Sun list.
71140         Add copyright notice.
71141
71142 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         * config/srclistvars.sh: Add copyright notice.
71145
71146 2006-08-14  Eric Blake  <ebb9@byu.net>
71147
71148         Import the following change from libc:
71149
71150         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71151
71152         Upstream bug 2997.
71153         * lib/misc/error.c: Add space between program name and message if file
71154         name is missing.
71155
71156 2006-08-12  Karl Berry  <karl@gnu.org>
71157
71158         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71159         remove, these originate in gnulib now.
71160
71161 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71162
71163         * doc/Makefile (standards.info standards.html standards.dvi):
71164         Also depend on make-stds.texi.
71165
71166 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71169         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71170
71171         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71172         in wchar_t.  Problem reported by Eric Blake.
71173
71174         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71175         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71176         Also, help the compiler to keep LEN in a register.
71177
71178 2006-08-11  Eric Blake  <ebb9@byu.net>
71179
71180         * users.txt: Sort.  Add tar.
71181
71182 2006-08-11  Bruno Haible  <bruno@clisp.org>
71183
71184         * users.txt: New file.
71185
71186 2006-08-11  Bruno Haible  <bruno@clisp.org>
71187
71188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71189         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71190
71191 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71192
71193         * modules/snprintf (Depends-on): Remove minmax.
71194         (Maintainer): Add self and Bruno.
71195
71196 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71197
71198         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71199         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71200         (EOVERFLOW): Define if the system does not.
71201         Do not include "minmax.h"; it wasn't used.
71202         (snprintf): Don't assume size_t promotes to an unsigned type.
71203         Fix bug when generated string was too long for the buffer: the
71204         buffer's contents are supposed to be the initial prefix of the
71205         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71206         exceeds INT_MAX; do the check ourselves.
71207
71208         Import the following changes from libc:
71209
71210         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71211
71212         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71213         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71214         set wc to the byte which couldn't be converted.
71215         (re_string_reconstruct): Don't clear valid_raw_len before calling
71216         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71217         tip_context using re_string_context_at.
71218
71219         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71220
71221         * lib/posix/regex.h: g++ still cannot handled [restrict].
71222
71223         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71224
71225         * lib/posix/regex.h: Remove special handling for VMS.
71226
71227 2006-08-10  Jim Meyering  <jim@meyering.net>
71228
71229         * modules/same-inode: New module.
71230         * modules/dev-ino: New module.
71231         * modules/cycle-check: Depend on these modules, rather than simply
71232         including their .h files.
71233         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71234         required via m4/cycle-check.m4.
71235         * modules/same: Depend on new same-inode module, rather than
71236         including same-inode.h.
71237         * modules/chdir-safer: New file.
71238
71239         * modules/chown (Depends-on): Add stat-macros.
71240
71241 2006-08-10  Jim Meyering  <jim@meyering.net>
71242
71243         * m4/cycle-check.m4: New file.
71244         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71245         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71246
71247 2006-08-10  Eric Blake  <ebb9@byu.net>
71248
71249         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71250         in from original proposal.
71251
71252 2006-08-10  Eric Blake  <ebb9@byu.net>
71253         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71254
71255         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71256         namespace.
71257
71258 2006-08-10  Bruno Haible  <bruno@clisp.org>
71259
71260         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71261         as well.
71262
71263 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71264
71265         Sync from coreutils.
71266
71267         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71268
71269         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71270         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71271
71272 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71273
71274         * modules/restrict: Remove; no longer needed now that we assume
71275         Autoconf 2.59 or later.
71276         * MODULES.html.sh: Remove 'restrict'.
71277         * modules/argp (Depends-on): Remove 'restrict'.
71278         * modules/base64 (Depends-on): Likewise.
71279         * modules/gc (Depends-on): Likewise.
71280         * modules/getaddrinfo (Depends-on): Likewise.
71281         * modules/glob (Depends-on): Likewise.
71282         * modules/inet_ntop (Depends-on): Likewise.
71283         * modules/inet_pton (Depends-on): Likewise.
71284         * modules/memxor (Depends-on): Likewise.
71285         * modules/regex (Depends-on): Likewise.
71286         * modules/strtok_r (Depends-on): Likewise.
71287         * modules/time_r (Depends-on): Likewise.
71288
71289 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71290
71291         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71292         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71293         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71294         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71295         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71296         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71297         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71298         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71299
71300         Merge from coreutils.
71301         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71302         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71303         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71304         * m4/time_r.m4 (gl_TIME_R): Likewise.
71305
71306 2006-08-09  Karl Berry  <karl@gnu.org>
71307
71308         * config/srclist.txt: no more gettext-tools, per Bruno.
71309
71310 2006-08-08  Eric Blake  <ebb9@byu.net>
71311
71312         * modules/verror: New module.
71313         * MODULES.html.sh: Document it.
71314
71315 2006-08-08  Eric Blake  <ebb9@byu.net>
71316
71317         * lib/verror.h, lib/verror.c: New files.
71318
71319 2006-08-08  Eric Blake  <ebb9@byu.net>
71320
71321         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71322         verror_at_line output complies with GNU Coding Standards even when
71323         file is NULL.
71324
71325 2006-08-07  Bruno Haible  <bruno@clisp.org>
71326
71327         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71328         versions of AIX.
71329         Reported by Ralf Wildenhues.
71330
71331 2006-08-07  Bruno Haible  <bruno@clisp.org>
71332
71333         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71334         in an AC_DEFUN. Needed so that the autoconf snippets can use
71335         AC_REQUIRE.
71336
71337 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71338
71339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71340         Initialize pkgdata_DATA.
71341         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71342         overriding it.
71343
71344 2006-08-06  Eric Blake  <ebb9@byu.net>
71345
71346         * lib/error.h: Fold in some upstream changes from glibc.
71347         * lib/error.c: Likewise.
71348
71349 2006-08-04  Bruno Haible  <bruno@clisp.org>
71350
71351         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71352         Make the mostlyclean-local rule depend on mostlyclean-generic.
71353         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71354
71355 2006-07-31  Bruno Haible  <bruno@clisp.org>
71356
71357         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71358         <stdlib.h>, <string.h>.
71359
71360 2006-07-30  Bruno Haible  <bruno@clisp.org>
71361
71362         * modules/readlink (License): Change to LGPL.
71363
71364 2006-07-30  Bruno Haible  <bruno@clisp.org>
71365
71366         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71367         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71368         set PKGDATADIR to point to it.
71369
71370 2006-07-30  Bruno Haible  <bruno@clisp.org>
71371
71372         * modules/csharpexec (configure.ac): Comment out macro invocation.
71373         * modules/javaexec (configure.ac): Likewise.
71374         * modules/javacomp-script (configure.ac): Likewise.
71375
71376         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71377
71378 2006-07-30  Bruno Haible  <bruno@clisp.org>
71379
71380         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71381         linked-list.
71382
71383 2006-07-30  Bruno Haible  <bruno@clisp.org>
71384
71385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71386
71387 2006-07-30  Bruno Haible  <bruno@clisp.org>
71388
71389         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71390         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71391         get removed.
71392
71393 2006-07-29  Bruno Haible  <bruno@clisp.org>
71394
71395         Make it possible for gnulib-tool to work with locally modified or
71396         augmented gnulib repositories.
71397         * gnulib-tool (func_usage): Document --local-dir option.
71398         (local_gnulib_dir): New variable.
71399         Handle --local-dir option.
71400         (func_lookup_file): New function.
71401         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71402         (func_get_description, func_get_filelist, func_get_description,
71403         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71404         func_get_automake_snippet, func_get_include_directive,
71405         func_get_license, func_get_maintainer): Use func_lookup_file.
71406         (func_import, func_create_testdir): Use func_lookup_file.
71407
71408 2006-07-29  Bruno Haible  <bruno@clisp.org>
71409
71410         * modules/setenv (Depends-on): Add unistd.
71411
71412 2006-07-29  Bruno Haible  <bruno@clisp.org>
71413
71414         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71415
71416 2006-07-29  Bruno Haible  <bruno@clisp.org>
71417
71418         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71419
71420 2006-07-29  Bruno Haible  <bruno@clisp.org>
71421
71422         * gnulib-tool (import, update): If there is no Makefile.am, look at
71423         aclocal.m4, instead of bailing out.
71424
71425 2006-07-29  Bruno Haible  <bruno@clisp.org>
71426
71427         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71428         Categorize the options by when they are useful.
71429
71430 2006-07-29  Bruno Haible  <bruno@clisp.org>
71431
71432         * gnulib-tool (func_usage): Document option --no-libtool.
71433         Handle option --no-libtool.
71434         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71435         for changed semantics of $libtool variable.
71436         (func_import): Likewise. If libtool is not used, show this through
71437         an option --no-libtool.
71438         (func_create_testdir): Update.
71439
71440 2006-07-29  Bruno Haible  <bruno@clisp.org>
71441
71442         * gnulib-tool (func_import): Extend error message about missing
71443         --doc-base.
71444
71445 2006-07-29  Bruno Haible  <bruno@clisp.org>
71446
71447         * gnulib-tool (func_import): Don't create the $docbase directory if
71448         there is no file to store there.
71449
71450 2006-07-29  Bruno Haible  <bruno@clisp.org>
71451
71452         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71453         relevant, look for configure.ac there, not in the current directory.
71454         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71455
71456 2006-07-29  Bruno Haible  <bruno@clisp.org>
71457
71458         * gnulib-tool (SORT): New variable.
71459         (func_usage): Undocument --assume-autoconf option.
71460         Remove --assume-autoconf option handling.
71461         (autoconf_minversion): Determine from the contents of configure.ac.
71462         (func_import): Remove autoconf_minversion handling.
71463         Suggested by Eric Blake.
71464
71465 2006-07-29  Bruno Haible  <bruno@clisp.org>
71466
71467         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71468
71469 2006-07-29  Bruno Haible  <bruno@clisp.org>
71470
71471         * config/srclist.txt (*setenv.[ch]): Remove rules.
71472
71473 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71474
71475         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71476
71477 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71478
71479         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71480         arpa/inet.h.
71481
71482 2006-07-28  Simon Josefsson  <jas@extundo.com>
71483
71484         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71485         * modules/inet_pton (Depends-on): Likewise.
71486
71487 2006-07-28  Simon Josefsson  <jas@extundo.com>
71488
71489         * m4/netinet_in_h.m4: New file.
71490
71491 2006-07-28  Simon Josefsson  <jas@extundo.com>
71492
71493         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71494         #include's.
71495
71496 2006-07-28  Simon Josefsson  <jas@extundo.com>
71497
71498         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71499         #include's.
71500
71501 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71502
71503         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71504         setgid on directories only if they set these bits.
71505         * lib/modechange.h: Remove obsolete comment about masks.
71506
71507 2006-07-28  Eric Blake  <ebb9@byu.net>
71508
71509         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71510         macro expansion.
71511
71512 2006-07-28  Bruno Haible  <bruno@clisp.org>
71513
71514         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71515
71516 2006-07-28  Bruno Haible  <bruno@clisp.org>
71517
71518         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71519
71520 2006-07-28  Bruno Haible  <bruno@clisp.org>
71521
71522         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71523         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71524         Define fallbacks.
71525         Avoids link error on FreeBSD 4.x.
71526         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71527
71528         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71529         encoding.
71530         * lib/mbswidth.c (iswcntrl): Likewise.
71531
71532 2006-07-27  Bruno Haible  <bruno@clisp.org>
71533
71534         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71535         test.
71536
71537 2006-07-27  Bruno Haible  <bruno@clisp.org>
71538
71539         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71540         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71541         defined.
71542
71543 2006-07-26  Eric Blake  <ebb9@byu.net>
71544
71545         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71546
71547 2006-07-26  Eric Blake  <ebb9@byu.net>
71548
71549         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71550         like mingw that lack mkstemp.
71551         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71552         avoid compilation warning on mingw.
71553
71554 2006-07-26  Bruno Haible  <bruno@clisp.org>
71555
71556         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71557         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71558         INT_FAST*_MIN, INTPTR_MIN.
71559
71560 2006-07-25  Bruno Haible  <bruno@clisp.org>
71561
71562         * modules/version-etc (Depends-on): Add stdarg.
71563
71564 2006-07-25  Bruno Haible  <bruno@clisp.org>
71565
71566         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71567         complex commands.
71568
71569 2006-07-25  Bruno Haible  <bruno@clisp.org>
71570
71571         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71572         defined in <stdarg.h> or config.h.
71573
71574 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71577         (gl_STDIO_SAFER): Remove.
71578
71579 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         * MODULES.html.sh (File stream based Input/Output):
71582         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71583         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71584         * modules/fopen-safer, modules/tmpfile-safer: New files.
71585         * modules/stdio-safer: Remove.
71586
71587 2006-07-24  Bruno Haible  <bruno@clisp.org>
71588
71589         * modules/tmpdir: New file.
71590         * MODULES.html.sh (File system functions): Add it.
71591
71592 2006-07-24  Bruno Haible  <bruno@clisp.org>
71593
71594         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71595         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71596
71597 2006-07-24  Bruno Haible  <bruno@clisp.org>
71598
71599         * modules/clean-temp: New file.
71600
71601 2006-07-24  Bruno Haible  <bruno@clisp.org>
71602
71603         * m4/tmpdir.m4: New file, from GNU gettext.
71604
71605 2006-07-24  Bruno Haible  <bruno@clisp.org>
71606
71607         * lib/tmpdir.h: New file, from GNU gettext.
71608         * lib/tmpdir.c: New file, from GNU gettext.
71609
71610 2006-07-24  Bruno Haible  <bruno@clisp.org>
71611
71612         * lib/clean-temp.h: New file, from GNU gettext.
71613         * lib/clean-temp.c: New file, from GNU gettext.
71614
71615 2006-07-23  Eric Blake  <ebb9@byu.net>
71616
71617         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71618         (Depends-on): Add binary-io.
71619
71620 2006-07-23  Eric Blake  <ebb9@byu.net>
71621
71622         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71623
71624 2006-07-23  Eric Blake  <ebb9@byu.net>
71625
71626         * lib/tmpfile-safer.c: New file.
71627         * lib/stdio-safer.h (fopen_safer): Add prototype.
71628         * lib/stdio--.h (tmpfile): Make safer.
71629
71630 2006-07-23  Bruno Haible  <bruno@clisp.org>
71631
71632         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71633         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71634         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71635         gl_linked_remove_at): Use it.
71636
71637 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71638         and Simon Josefsson <jas@extundo.com>
71639
71640         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71641
71642         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71643
71644 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71645
71646         * modules/close-stream: New file.
71647         * modules/closeout (Description): Make it clear that it exits
71648         with a diagnostic on error.
71649         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71650         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71651
71652 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71653
71654         * m4/close-stream.m4: New file.
71655
71656 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71657
71658         * lib/close-stream.c, lib/close-stream.h: New files.
71659
71660 2006-07-22  Bruno Haible  <bruno@clisp.org>
71661
71662         Merge from GNU gettext 0.15.
71663
71664         2006-05-01  Bruno Haible  <bruno@clisp.org>
71665
71666                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71667
71668         2006-07-22  Bruno Haible  <bruno@clisp.org>
71669
71670                 * modules/javaversion: New file.
71671                 * MODULES.html.sh (Java): Add javaversion.
71672
71673         2006-03-12  Bruno Haible  <bruno@clisp.org>
71674
71675                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71676
71677         2005-12-04  Bruno Haible  <bruno@clisp.org>
71678
71679                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71680                 (untested).
71681
71682         2006-06-21  Bruno Haible  <bruno@clisp.org>
71683
71684                 Avoid warnings from recent versions of mcs.
71685                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71686                 -o, -L, -r any more. Use options documented since mcs-1.0
71687                 instead. Similarly for -g.
71688
71689         2005-12-04  Bruno Haible  <bruno@clisp.org>
71690
71691                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71692                 .resources, not .resource.
71693
71694         2005-07-09  Bruno Haible  <bruno@clisp.org>
71695
71696                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71697                 add a .dll suffix.
71698                 Reported by Mark Junker <mjscod@gmx.de>.
71699
71700         2006-07-22  Bruno Haible  <bruno@clisp.org>
71701
71702                 * modules/gettext: Upgrade to gettext-0.15.
71703                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71704                 m4/visibility.m4.
71705                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71706
71707 2006-07-22  Bruno Haible  <bruno@clisp.org>
71708
71709         Merge from GNU gettext 0.15.
71710
71711         2006-03-25  Bruno Haible  <bruno@clisp.org>
71712
71713                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71714
71715         2006-07-21  Bruno Haible  <bruno@clisp.org>
71716
71717                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71718                 "1.1".
71719
71720         2006-05-09  Bruno Haible  <bruno@clisp.org>
71721
71722                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71723                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71724                 for the conftestver execution.
71725
71726         2006-05-01  Bruno Haible  <bruno@clisp.org>
71727
71728                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71729                 optional target-version argument. Verify that the compiler
71730                 groks source of the specified source-version, or add -source
71731                 option as necessary. Verify that the compiler produces
71732                 bytecode in the specified target-version, or add -target and
71733                 -source options as necessary. Make the result of the test
71734                 available as variable CONF_JAVAC. Also log error output in
71735                 config.log.
71736
71737         2006-03-11  Bruno Haible  <bruno@clisp.org>
71738
71739                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71740
71741         2006-05-09  Bruno Haible  <bruno@clisp.org>
71742
71743                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71744                 CLASSPATH_SEPARATOR to a semicolon.
71745
71746         2006-03-12  Bruno Haible  <bruno@clisp.org>
71747
71748                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71749                 available as variable CONF_JAVA, for subsequent autoconf
71750                 tests. Also log error output in config.log.
71751
71752         2006-07-19  Bruno Haible  <bruno@clisp.org>
71753
71754                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71755                 that getline works on glibc2 systems. Needed to avoid trouble
71756                 in relocatable.c.
71757                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71758
71759         2005-12-04  Bruno Haible  <bruno@clisp.org>
71760
71761                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71762                 launcher (untested).
71763
71764         2005-12-04  Bruno Haible  <bruno@clisp.org>
71765
71766                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71767
71768         2006-07-22  Bruno Haible  <bruno@clisp.org>
71769
71770                 * gettext.m4: Update from GNU gettext-0.15.
71771                 * nls.m4: Likewise.
71772                 * po.m4: Likewise.
71773                 * inttypes-pri.m4: Likewise.
71774                 * inttypes-h.m4: Renamed from inttypes.m4.
71775                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71776
71777 2006-07-22  Bruno Haible  <bruno@clisp.org>
71778
71779         Merge from GNU gettext 0.15.
71780
71781         2005-07-05  Bruno Haible  <bruno@clisp.org>
71782
71783                 * printf-args.c (printf_fetchargs): Work around broken
71784                 definition of wint_t on mingw.
71785
71786         2005-02-12  Bruno Haible  <bruno@clisp.org>
71787
71788                 * xallocsa.h: Add extern "C" for C++.
71789
71790         2006-05-17  Bruno Haible  <bruno@clisp.org>
71791
71792                 Cygwin portability.
71793                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71794
71795         2006-04-30  Bruno Haible  <bruno@clisp.org>
71796
71797                 * progreloc.c: Include <mach-o/dyld.h> if available.
71798                 (find_executable): Use _NSGetExecutablePath when possible.
71799
71800         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71801
71802                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71803                 function.
71804
71805         2005-12-29  Bruno Haible  <bruno@clisp.org>
71806
71807                 * progreloc.c (set_program_name_and_installdir): Fix
71808                 compilation error.
71809
71810         2005-12-04  Bruno Haible  <bruno@clisp.org>
71811
71812                 Cygwin portability.
71813                 * progreloc.c: Include <windows.h> also on Cygwin.
71814                 (find_executable): Add support for Cygwin.
71815                 (set_program_name_and_installdir): Handle also platforms with
71816                 nonempty EXEEXT.
71817
71818         2006-07-11  Bruno Haible  <bruno@clisp.org>
71819
71820                 * javacomp.c: Fix a comment.
71821                 Reported by Jim Meyering.
71822
71823         2006-04-30  Bruno Haible  <bruno@clisp.org>
71824
71825                 * javacomp.h (compile_java_class): Add source_version,
71826                 target_version arguments.
71827                 * javacomp.c: Rewritten to choose only a compiler that
71828                 respects the specified source_version and target_version.
71829
71830         2006-06-27  Bruno Haible  <bruno@clisp.org>
71831
71832                 Assume correct S_ISDIR macro.
71833                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71834
71835         2006-07-22  Bruno Haible  <bruno@clisp.org>
71836
71837                 * javaversion.h: New file, from GNU gettext.
71838                 * javaversion.c: New file, from GNU gettext.
71839                 * javaversion.java: New file, from GNU gettext.
71840                 * javaversion.class: New file, from GNU gettext.
71841
71842         2006-05-17  Bruno Haible  <bruno@clisp.org>
71843
71844                 Cygwin portability.
71845                 * javaexec.c (execute_java_class): Test for jview program
71846                 also on Cygwin.
71847
71848         2006-04-09  Bruno Haible  <bruno@clisp.org>
71849
71850                 * fatal-signal.c: Don't include string.h.
71851                 (at_fatal_signal): Use a copying loop instead of memcpy.
71852
71853         2005-12-04  Bruno Haible  <bruno@clisp.org>
71854
71855                 * csharpexec.c: Add support for 'clix' launcher (untested).
71856                 (execute_csharp_using_sscli): New function.
71857                 (execute_csharp_program): Call it.
71858
71859         2006-06-21  Bruno Haible  <bruno@clisp.org>
71860
71861                 Avoid warnings from recent versions of mcs.
71862                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71863                 -o, -L, -r any more. Use options documented since mcs-1.0
71864                 instead. Similarly for -g.
71865
71866         2005-07-09  Bruno Haible  <bruno@clisp.org>
71867
71868                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71869                 add a .dll suffix.
71870                 Reported by Mark Junker <mjscod@gmx.de>.
71871
71872         2006-06-17  Bruno Haible  <bruno@clisp.org>
71873
71874                 * config.charset: Update for NetBSD 3.0.
71875
71876         2006-05-17  Bruno Haible  <bruno@clisp.org>
71877
71878                 Cygwin portability.
71879                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71880
71881         2006-05-16  Bruno Haible  <bruno@clisp.org>
71882
71883                 * localcharset.c [CYGWIN]: Include <windows.h>.
71884                 (get_charset_aliases): For Cygwin, return the same CPxxx
71885                 aliases list as under WIN32.
71886                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71887                 the environment variables. Fall back to GetACP().
71888
71889         2006-04-05  Bruno Haible  <bruno@clisp.org>
71890
71891                 * config.charset: Update Juan Manuel Guerrero's address.
71892
71893         2005-02-12  Bruno Haible  <bruno@clisp.org>
71894
71895                 * allocsa.h: Add extern "C" for C++.
71896
71897         2005-02-10  Bruno Haible  <bruno@clisp.org>
71898
71899                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71900                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71901
71902         2006-07-22  Bruno Haible  <bruno@clisp.org>
71903
71904                 * gettext.h: Update to GNU gettext-0.15.
71905
71906 2006-07-22  Bruno Haible  <bruno@clisp.org>
71907
71908         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71909         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71910         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71911
71912 2006-07-21  Eric Blake  <ebb9@byu.net>
71913
71914         * modules/stdlib-safer: New file.
71915         * MODULES.html.sh (File stream based Input/Output): Add
71916         stdlib-safer.
71917
71918 2006-07-21  Eric Blake  <ebb9@byu.net>
71919
71920         * lib/stdlib-safer.h: New file from coreutils, required by
71921         stdlib--.h.
71922
71923 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71924
71925         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71926
71927 2006-07-20  Bruno Haible  <bruno@clisp.org>
71928
71929         * gnulib-tool: Recognize new option --assume-autoconf.
71930         (autoconf_minversion): New variable.
71931         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71932
71933 2006-07-20  Bruno Haible  <bruno@clisp.org>
71934
71935         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71936
71937 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71938
71939         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71940         Reindent and repaginate.
71941
71942 2006-07-19  Derek Price  <derek@ximbiot.com>
71943
71944         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71945         Correct grammar.
71946
71947 2006-07-17  Bruno Haible  <bruno@clisp.org>
71948
71949         * modules/list: New file.
71950         * modules/array-list: New file.
71951         * modules/carray-list, modules/carray-list-tests: New files.
71952         * modules/linked-list, modules/linked-list-tests: New files.
71953         * modules/avltree-list, modules/avltree-list-tests: New files.
71954         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71955         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71956         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71957         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71958         * modules/oset: New file.
71959         * modules/array-oset: New file.
71960         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71961         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71962         * tests/test-carray_list.c: New file.
71963         * tests/test-linked_list.c: New file.
71964         * tests/test-avltree_list.c: New file.
71965         * tests/test-rbtree_list.c: New file.
71966         * tests/test-linkedhash_list.c: New file.
71967         * tests/test-avltreehash_list.c: New file.
71968         * tests/test-rbtreehash_list.c: New file.
71969         * tests/test-avltree_oset.c: New file.
71970         * tests/test-rbtree_oset.c: New file.
71971         * MODULES.html.sh (Container data structures): New section.
71972
71973 2006-07-17  Bruno Haible  <bruno@clisp.org>
71974
71975         * m4/gl_list.m4: New file.
71976
71977 2006-07-17  Bruno Haible  <bruno@clisp.org>
71978
71979         * lib/gl_list.h: New file.
71980         * lib/gl_list.c: New file.
71981         * lib/gl_array_list.h: New file.
71982         * lib/gl_array_list.c: New file.
71983         * lib/gl_carray_list.h: New file.
71984         * lib/gl_carray_list.c: New file.
71985         * lib/gl_linked_list.h: New file.
71986         * lib/gl_linked_list.c: New file.
71987         * lib/gl_anylinked_list1.h: New file.
71988         * lib/gl_anylinked_list2.h: New file.
71989         * lib/gl_avltree_list.h: New file.
71990         * lib/gl_avltree_list.c: New file.
71991         * lib/gl_anyavltree_list1.h: New file.
71992         * lib/gl_anyavltree_list2.h: New file.
71993         * lib/gl_rbtree_list.h: New file.
71994         * lib/gl_rbtree_list.c: New file.
71995         * lib/gl_anyrbtree_list1.h: New file.
71996         * lib/gl_anyrbtree_list2.h: New file.
71997         * lib/gl_anytree_list1.h: New file.
71998         * lib/gl_anytree_list2.h: New file.
71999         * lib/gl_linkedhash_list.h: New file.
72000         * lib/gl_linkedhash_list.c: New file.
72001         * lib/gl_anyhash_list1.h: New file.
72002         * lib/gl_anyhash_list2.h: New file.
72003         * lib/gl_avltreehash_list.h: New file.
72004         * lib/gl_avltreehash_list.c: New file.
72005         * lib/gl_rbtreehash_list.h: New file.
72006         * lib/gl_rbtreehash_list.c: New file.
72007         * lib/gl_anytreehash_list1.h: New file.
72008         * lib/gl_anytreehash_list2.h: New file.
72009
72010         * lib/gl_oset.h: New file.
72011         * lib/gl_oset.c: New file.
72012         * lib/gl_array_oset.h: New file.
72013         * lib/gl_array_oset.c: New file.
72014         * lib/gl_avltree_oset.h: New file.
72015         * lib/gl_avltree_oset.c: New file.
72016         * lib/gl_rbtree_oset.h: New file.
72017         * lib/gl_rbtree_oset.c: New file.
72018         * lib/gl_anytree_oset.h: New file.
72019
72020 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72021
72022         * m4/mkancesdirs.m4: New file.
72023         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
72024         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
72025         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
72026         it.
72027
72028 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72029
72030         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
72031         * lib/mkancesdirs.h: New files.
72032         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
72033         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
72034         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
72035         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
72036         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
72037         callers changed.  Revamp internals significantly, by not
72038         attempting to create directories that are temporarily more
72039         permissive than the final results.  Do not attempt to use
72040         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72041         This removes some race conditions, fixes some bugs, and simplifies
72042         things.  Use new dirchownmod function to do owner and mode changes.
72043         * lib/mkdir-p.h: Likewise.
72044         * lib/modechange.c (octal_to_mode): New function.
72045         (struct mode_change): New member mentioned.
72046         (make_node_op_equals): New arg mentioned.  All callers changed.
72047         (mode_compile): Keep track of which mode bits the user has explicitly
72048         mentioned.
72049         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72050         New arg PMODE_BITS, to keep track of which mode bits the user
72051         mentioned; it treats S_ISUID and S_ISGID speciall.
72052         All callers changed.
72053         * lib/modechange.h: Likewise.
72054
72055 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72056
72057         * MODULES.html.sh: Add mkancestors.
72058         * modules/mkancesdirs: New module.
72059         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
72060         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
72061         The chdir-safer and afs files are now orphans; I'll remove them
72062         unless someone speaks up.
72063         Add lib/dirchownmod.c, lib/dirchownmod.h.
72064         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72065         Add lchown, mkancesdirs.
72066         (Maintainer): Add self.
72067
72068 2006-07-15  Karl Berry  <karl@gnu.org>
72069
72070         * gnulib-tool: help message wording/arrangement.
72071
72072 2006-07-14  Simon Josefsson  <jas@extundo.com>
72073
72074         * doc/gnulib.texi (Libtool and Windows): New section.
72075
72076 2006-07-12  Simon Josefsson  <jas@extundo.com>
72077
72078         * modules/gendocs (License): Fix license, approved by Karl.
72079
72080 2006-07-12  Eric Blake  <ebb9@byu.net>
72081
72082         * MODULES.html.sh: Add gendocs.
72083
72084 2006-07-11  Eric Blake  <ebb9@byu.net>
72085
72086         * modules/fdl: New module, to install doc/fdl.texi.
72087         * MODULES.html.sh: Add new section for documentation modules.
72088         * gnulib-tool: Avoid space-tab.
72089         (--doc-base): New option, to manage files from doc.
72090
72091 2006-07-11  Eric Blake  <ebb9@byu.net>
72092
72093         * m4/absolute-header.m4: Fix comments to match recent change.
72094
72095 2006-07-11  Eric Blake  <ebb9@byu.net>
72096
72097         * gnulib-tool: List --doc-base before --tests-base.
72098
72099 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72100
72101         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72102
72103 2006-07-11  Bruno Haible  <bruno@clisp.org>
72104
72105         * README: Mention where to put documentation.
72106
72107 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72108
72109         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72110
72111 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72112
72113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72114         to stdint.m4.
72115
72116 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72117
72118         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72119         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72120         "no/such/file/stdint.h" when there is no such file, so that
72121         the resulting C code can be parsed by dodgy compilers.
72122         Problems reported by Bob Proulx.
72123
72124 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72125
72126         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72127         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72128         macros into the GNU _D_EXACT_NAMLEN.
72129         * lib/savedir.c:  Likewise.
72130         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72131
72132 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72133         and Paul Eggert  <eggert@cs.ucla.edu>
72134
72135         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72136         * m4/savedir.m4:
72137         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72138         macros into the GNU _D_EXACT_NAMLEN.
72139
72140 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72143         around the absolute name, to work around a problem with the HP-UX
72144         11.23 native C compiler, reported by Bob Proulx.
72145
72146 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72147
72148         * doc/maintain.texi, make-stds.texi: Sync from
72149         <http://savannah.gnu.org/projects/gnustandards>.
72150
72151 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72152
72153         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72154
72155 2006-07-09  Jim Meyering  <jim@meyering.net>
72156
72157         * m4/glob.m4: Remove a doubled word in a comment.
72158
72159 2006-07-09  Jim Meyering  <jim@meyering.net>
72160
72161         * lib/argp-pv.c: Remove a doubled word in a comment.
72162         * lib/check-version.c (check_version): Likewise.
72163         * lib/javacomp.c (compile_java_class): Likewise.
72164
72165 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72168         for the benefit of people using Autoconf 2.60.  If you want to
72169         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72170         (or m4/onceonly.m4, if pre-2.57) manually.
72171
72172 2006-07-08  Jim Meyering  <jim@meyering.net>
72173
72174         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72175         comment.
72176         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72177         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72178         comment.
72179
72180 2006-07-08  Jim Meyering  <jim@meyering.net>
72181
72182         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72183
72184 2006-07-07  Simon Josefsson  <jas@extundo.com>
72185
72186         * tests/test-crc.c: Change expected crc value, the test vector
72187         were probably computed using the old broken crc.c?
72188
72189 2006-07-06  Simon Josefsson  <jas@extundo.com>
72190
72191         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72192         now the canonical place for the M4 file).
72193
72194         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72195         from the sys_socket dependency now.
72196
72197         * modules/inet_pton (Files): Ditto.
72198
72199         * modules/inet_ntop (Files): Ditto.
72200
72201 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72202
72203         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72204         not gl_PREREQ_GETUSERSHELL.
72205
72206 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72207
72208         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72209         with only one argument, for Autoconf 2.60.
72210         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72211         expand to nothing, so add a shell command to avoid syntax error.
72212         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72213
72214 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72215
72216         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72217
72218 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72219
72220         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72221         no longer needed.  Check for isblank decl.
72222         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72223         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72224         of existence.
72225
72226 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72227
72228         * lib/getloadavg.c: Use __VMS, not VMS.
72229         * lib/getopt.c: Likewise.
72230         * lib/getpagesize.h: Likewise.
72231         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72232         and probably does not work.
72233
72234 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72235
72236         * lib/.cppi-disable: Add wcwidth.
72237         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72238         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72239         (ISGRAPH): Remove.  All uses changed to isgraph.
72240         (FOLD) [!defined _LIBC]: Remove special case.
72241         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72242         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72243         HAVE_ISBLANK.
72244         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72245         case.
72246
72247 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72248
72249         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72250         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72251         brackets.  Other minor changes to suppress some compiler
72252         warnings.
72253
72254 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72255         and Paul Eggert  <eggert@cs.ucla.edu>
72256
72257         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72258         of invoking obsolescent AC_HEADER_DIRENT macro.
72259         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72260         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72261         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72262         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72263         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72264         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72265         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72266         * m4/readdir.m4: Remove; no longer needed.
72267
72268 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72269         and Paul Eggert  <eggert@cs.ucla.edu>
72270
72271         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72272         Don't worry about this obsolete case any more.
72273         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72274         directories.
72275         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72276         worry about this obsolete case any more.
72277         * lib/fts.c: Likewise.
72278         * lib/getcwd.c: Likewise.
72279         * lib/glob.h: Likewise.
72280         * lib/savedir.c: Likewise.
72281
72282 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72283
72284         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72285         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72286         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72287         needed.
72288         All uses removed.
72289         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72290         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72291         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72292         needed.
72293         * m4/getdate.m4 (gl_GETDATE): Likewise.
72294         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72295         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72296         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72297         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72298         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72299         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72300         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72301         needed.
72302
72303 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72304
72305         * lib/memcasecmp.c: Include <limits.h>.
72306         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72307         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72308         Don't assume isdigit succeeds only on '0' through '9'.
72309
72310 2006-07-05  Eric Blake  <ebb9@byu.net>
72311
72312         * modules/getaddrinfo (Depends-on): Add snprintf.
72313
72314 2006-07-05  Eric Blake  <ebb9@byu.net>
72315
72316         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72317         to avoid 'header present but could not be compiled' on cygwin.
72318
72319 2006-07-05  Eric Blake  <ebb9@byu.net>
72320
72321         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72322         missing from netdb.h.
72323         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72324
72325 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72326
72327         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72328         no longer needed.
72329         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72330         * m4/getdate.m4 (gl_GETDATE): Likewise.
72331         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72332         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72333         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72334         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72335         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72336
72337 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72338
72339         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72340         All uses of is_space replaced by isspace.
72341         * lib/exit.h: Don't talk about STDC_HEADERS.
72342         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72343         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72344         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72345         replaced by isprint etc.
72346         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72347         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72348         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72349         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72350         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72351         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72352
72353 2006-07-05  Bruno Haible  <bruno@clisp.org>
72354
72355         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72356         the function exists, before testing against AIX.
72357         Reported by Martin Lambers <marlam@marlam.de>.
72358
72359 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72360
72361         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72362         From Mark D. Baushke.
72363
72364 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72365
72366         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72367         to the absolute name, not just one, to bypass Sun C 5.8's
72368         "warning: #include of /usr/include/... may be non-portable".
72369
72370 2006-07-04  Eric Blake  <ebb9@byu.net>
72371
72372         * modules/dirname-tests: New test module.
72373         * tests/test-dirname.c: New file, replacing dirname.c
72374         TEST_DIRNAME section that was recently deleted.
72375
72376 2006-07-04  Bruno Haible  <bruno@clisp.org>
72377
72378         Assume ANSI C header files and <ctype.h> functions.
72379         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72380         (mbsnwidth): Use isprint, iscntrl instead.
72381
72382 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72383
72384         Merge from coreutils.
72385         * MODULES.html.sh: Add xstrtold.
72386         * modules/xstrtold: New file.
72387         * modules/cycle-check (Files): Add lib/same-inode.h.
72388         * modules/dirname (Files): Add m4/double-slash-root.m4.
72389         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72390         * modules/mkdir-p (Files): Add lib/same-inode.h.
72391         * modules/same (Files): Add lib/same-inode.h.
72392
72393 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72394
72395         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72396         This is to keep the terminology clean; POSIX talks about
72397         "absolute pathnames", not "full pathnames", but the GNU
72398         Coding Standards say to use "path" for something else;
72399         so use "absolute" to keep both sides happy.
72400         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72401         Set gl_absolute_header, not gl_full_header_path.
72402         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72403         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72404         All uses changed.
72405
72406         Merge from coreutils.
72407
72408         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72411         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72412         want to require the building of c-strtod.o.
72413         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72414         needs -lm directly.
72415         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72416
72417         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72418
72419         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72420         --as-needed option if available.  Problem reported by Albert Chin in
72421         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72422         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72423         cc merely issues a bunch of annoying warnings for --as-needed
72424         (this problem was reported by Bob Proulx).  Also, try linking with
72425         -lm to detect a bug in binutils 2.16 (this problem was reported
72426         by Ralf Wildenhues).
72427
72428         2006-06-18  Jim Meyering  <jim@meyering.net>
72429
72430         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72431         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72432         macro.
72433         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72434         also check for glibc-2.4's abort-inducing bug.
72435
72436         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72437         Low-probability clean-up should be to use rmdir to get rid of
72438         the just-created directory, not unlink.
72439
72440         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72441         configure fail, and request a bug report to inform us about it.
72442         Add a comment that, barring reports to the contrary, in 2007 we'll
72443         assume ftruncate is universally available.
72444
72445         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72446
72447         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72448
72449         2006-03-12  Jim Meyering  <jim@meyering.net>
72450
72451         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72452         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72453         * m4/same.m4 (gl_SAME): Likewise.
72454         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72455
72456         2006-03-11  Eric Blake  <ebb9@byu.net>
72457
72458         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72459         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72460         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72461         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72462
72463 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72466         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72467         reported by Mark D. Baushke, one in
72468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72469
72470         Merge from coreutils.
72471
72472         * lib/.cppi-disable: Add stdint_.h.
72473         * lib/.cvsignore: Add stdint.h.
72474
72475         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72476
72477         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72478         both double and long double versions.
72479         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72480         * lib/xstrtold.c: New file.
72481         * lib/xstrtod.h (xstrtold): New decl.
72482
72483         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72484
72485         * lib/filemode.c (setst): Remove.
72486         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72487         (arguably) clearer, and the generated code is a bit smaller on my
72488         Debian GNU/Linux stable x86 host.
72489
72490         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72493         Assume that filemode.h includes sys/types.h and sys/stat.h.
72494         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72495         (ftypelet): Reorder to put common cases first, for efficiency.
72496         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72497         to do 'M'.
72498         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72499         of 10, for compatibility with FreeBSD.  All callers changed.
72500         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72501         types that can't be deduced solely from st_mode.  First arg is now a
72502         const pointer.
72503         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72504         (strmode): Renamed from mode_string.
72505         (filemodestring): New decl.
72506         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72507         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72508         needed.
72509         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72510
72511         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72512
72513         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72514         fsusage.h now does that.  Include fsusage.h first, to test interface.
72515         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72516         at most one method (the old code could have generated decls that
72517         didn't conform to C89, not that this was ever exercised).
72518         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72519
72520         2006-03-19  Jim Meyering  <jim@meyering.net>
72521
72522         Work even in a chroot where d_ino values for entries in "/"
72523         don't match the stat.st_ino values for the same names.
72524         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72525         number, iterate through all entries again, using lstat instead.
72526         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72527         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72528
72529         * lib/getcwd.c (__getcwd): Clarify a comment.
72530         Use memcpy in place of a call to strcpy.
72531
72532         2006-03-12  Jim Meyering  <jim@meyering.net>
72533
72534         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72535         matches that of the current directory (which we're about to chdir ".."
72536         out of), then save the dev-ino of the parent, instead.
72537
72538         * lib/same-inode.h (SAME_INODE): New file/macro.
72539         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72540         Include "same-inode.h", instead.
72541         * lib/same.c: Likewise.
72542         * lib/cycle-check.h: Include "same-inode.h".
72543         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72544         * lib/cycle-check.c (SAME_INODE): Remove definition.
72545         * lib/root-dev-ino.h: Include "same-inode.h".
72546
72547         2006-03-11  Eric Blake  <ebb9@byu.net>
72548
72549         * lib/same.c (same_name): s/base_name/last_component/
72550         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72551         * lib/filenamecat.c (file_name_concat): Likewise.
72552
72553         2006-03-11  Eric Blake  <ebb9@byu.net>,
72554                     Paul Eggert  <eggert@cs.ucla.edu>
72555
72556         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72557         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72558         drive prefix.
72559         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72560         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72561         (last_component): New method.
72562         * lib/dirname.c (dir_len): Determine when drive letters need a
72563         subsequent slash.  Preserve // when it is special.
72564         (dir_name): Don't append dot when drive letter is absolute.
72565         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72566         * lib/basename.c (base_name): New semantics - malloc the result.
72567         Preserve // when it is special.  Preserve relative files that look
72568         like drive letters.
72569         (base_len): Preserve // when it is special.
72570         (last_component): New method, similar to old base_name semantics.
72571         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72572         base_name.  Strip redundant slashes from ///.
72573
72574 2006-07-03  Jim Meyering  <jim@meyering.net>
72575
72576         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72577         macro is used before the first cycle_check call.
72578
72579 2006-07-03  Eric Blake  <ebb9@byu.net>
72580
72581         * modules/dirname (Depends-on): Add xstrndup.
72582
72583 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72584
72585         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72586         test cases, so that config.log is a bit easier to follow.
72587
72588 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72589
72590         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72591         both are 64 bits, since this seems to be the tradition, and this
72592         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72593         we ever run into a host that prefers long long to long in this
72594         case, we'll need another configure-time test.  Problem reported by
72595         Jim Meyering.
72596
72597 2006-07-02  Eric Blake  <ebb9@byu.net>
72598
72599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72600
72601 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72602
72603         * modules/inttypes (Depends-on): No longer depends on stdint.
72604         * modules/stdint (Description): Say more about assumptions.
72605         Say that the fast types might differ.  Say macros are used.
72606         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72607         (Makefile.am): Revise list of substituted symbols to match
72608         new stdint.m4.
72609         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72610         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72611         * tests/test-stdint.c (verify_same_types)
72612         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72613         the code conforms to C99/C89.
72614         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72615         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72616
72617 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72618
72619         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72620         but fix a bug, by requiring at least 64 bits.
72621         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72622         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72623         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72624         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72625
72626         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72627         changes.  Make 2.59 a prerequisite.  Check and substitute for
72628         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72629         inttypes.h.  Do not use special include files; just use the
72630         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72631         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72632         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72633         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72634         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72635         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72636         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72637         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72638         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72639         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72640         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72641         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72642         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72643         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72644         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72645         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72646         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72647         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72648         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72649         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72650         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72651         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72652         not check for things that C99 does not require, e.g., int8_t.  If
72653         a test isn't needed unless <stdint.h> isn't working, and is
72654         unlikely to be needed for any other reason, then don't do it
72655         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72656         size_t, since we assume C89 freestanding at least.  Do not check
72657         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72658         the right thing even if the types are not defined.  Instead use:
72659         (gl_STDINT_TYPE_PROPERTIES): New macro.
72660         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72661         testing whether <sys/types.h> clashes, as Autoconf does this for
72662         us now.  All uses removed.
72663         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72664         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72665         (gl_CHECK_TYPE_SAME):
72666         Remove; no longer needed.
72667         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72668         exists, since we'll return 0 anyway in that case.
72669         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72670
72671 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72672
72673         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72674         possible collision with system files.
72675         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72676         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72677         WCHAR_MIN and WCHAR_MAX in this case.
72678         (<stddef.h>): Do not include; no longer needed.
72679         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72680         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72681         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72682         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72683         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72684         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72685         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72686         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72687         !defined(__c99))]: Include in this case too, since it's harmless
72688         now.
72689         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72690         dangerous to do so.
72691         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72692         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72693         (_STDINT_MIN, _STDINT_MAX): New macros.
72694         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72695         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72696         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72697         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72698         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72699         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72700         macros, not typedefs; this simplifies things quite a bit.
72701         Use long int for all types narrower than int64_t.
72702         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72703         Define in terms of long long int or int64_t or long int,
72704         not int64_t or int32_t.  This saves some compile-time testing.
72705         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72706         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72707         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72708         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72709         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72710         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72711         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72712         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72713         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72714         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72715         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72716         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72717         undef any previous version and define our own version, for
72718         simplicity and consistency with the new macros for types.
72719         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72720         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72721         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72722         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72723         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72724         @WINT_T_SUFFIX@ to keep things simple here.
72725         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72726         Simplify by assuming typical 8/16/32/64 host, since we're
72727         already doing that elsewhere anyway.
72728         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72729         and assume long long int is 64 bits if available.  This
72730         speeds up 'configure'.
72731
72732 2006-07-01  Eric Blake  <ebb9@byu.net>
72733
72734         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72735         Reported by Andreas Buening.
72736
72737 2006-07-01  Eric Blake  <ebb9@byu.net>
72738
72739         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72740
72741 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72742
72743         * lib/getaddrinfo.c: fixed typo
72744
72745 2006-06-29  Jim Meyering  <jim@meyering.net>
72746
72747         * modules/strftime (Maintainer): Add my name, since with the
72748         FPRINTFTIME changes strftime.c has forked from glibc.
72749
72750 2006-06-29  Eric Blake  <ebb9@byu.net>
72751
72752         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72753
72754 2006-06-29  Eric Blake  <ebb9@byu.net>
72755
72756         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72757
72758 2006-06-29  Eric Blake  <ebb9@byu.net>
72759
72760         * lib/stat_.h: New file.
72761
72762 2006-06-29  Eric Blake  <ebb9@byu.net>
72763
72764         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72765         unused static function.
72766
72767 2006-06-29  Eric Blake  <ebb9@byu.net>
72768
72769         * doc/functions.texi (Function Portability): Document missing lstat
72770         on mingw.
72771
72772 2006-06-29  Eric Blake  <ebb9@byu.net>
72773
72774         * MODULES.html.sh: Add sys_stat.
72775         * modules/sys_stat: New module.
72776         * modules/mkstemp (Depends-on): Add sys_stat.
72777
72778 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72779
72780         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72781
72782 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72783
72784         * m4/c-bs-a.m4: Removed.
72785
72786 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72787
72788         * lib/strftime.c: Assume strftime() exists.
72789
72790 2006-06-29  Derek Price  <derek@ximbiot.com>
72791
72792         * modules/c-bs-a: Removed - \a is C89.
72793         * MODULES.html.sh: Remove c-bs-a.
72794
72795 2006-06-29  Bruno Haible  <bruno@clisp.org>
72796
72797         * modules/wcwidth (License): Change to LGPL.
72798
72799 2006-06-28  Simon Josefsson  <jas@extundo.com>
72800
72801         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72802         on _WIN32.
72803
72804         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72805         getnameinfo.
72806
72807 2006-06-28  Simon Josefsson  <jas@extundo.com>
72808
72809         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72810
72811 2006-06-28  Simon Josefsson  <jas@extundo.com>
72812
72813         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72814         functions there.  It will succeed on Windows XP, but on Windows
72815         2000 and (presumably) earlier, it will fail, and use the internal
72816         re-implementation.
72817         (use_win32_p): New function.
72818         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72819         Support AI_NUMERICSERV to disable getservbyname.
72820         (getnameinfo): New function, only supports
72821         NI_NUMERICHOST|NI_NUMERICSERV for now.
72822
72823         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72824         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72825         getnameinfo.
72826
72827 2006-06-28  Eric Blake  <ebb9@byu.net>
72828
72829         * modules/wcwidth: New file.
72830         * modules/mbchar (Depends-on): Add wcwidth.
72831         * modules/mbswidth (Depends-on): Add wcwidth.
72832         * MODULES.html.sh: Add wcwidth.
72833
72834 2006-06-28  Eric Blake  <ebb9@byu.net>
72835
72836         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72838
72839 2006-06-28  Eric Blake  <ebb9@byu.net>
72840
72841         * lib/xvasprintf.h: Fix comments.
72842
72843 2006-06-28  Eric Blake  <ebb9@byu.net>
72844
72845         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72846         * lib/mbswidth.c (wcwidth): Move from here...
72847         * lib/wcwidth.h: ...to this new file.
72848
72849 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72850
72851         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72852
72853         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72854         it's obsolete.
72855         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72856
72857 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72858
72859         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72860         Autoconf 2.60 says this stuff was obsolete.
72861
72862 2006-06-28  Bruno Haible  <bruno@clisp.org>
72863
72864         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72865
72866 2006-06-28  Bruno Haible  <bruno@clisp.org>
72867
72868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72869         gt_TYPE_WCHAR_T.
72870
72871 2006-06-28  Bruno Haible  <bruno@clisp.org>
72872
72873         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72874         declaration for wcwidth.
72875         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72876
72877 2006-06-28  Bruno Haible  <bruno@clisp.org>
72878
72879         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72880         (mkdir): Define using _mkdir.
72881
72882 2006-06-28  Bruno Haible  <bruno@clisp.org>
72883
72884         * lib/getaddrinfo.h: Fix POSIX URL.
72885         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72886         _WIN32.
72887         (use_win32_p): Make static.
72888         (getaddrinfo): Reject service name if it is empty or does not consist
72889         solely of decimal digits, or if its value is > 65535.
72890         (getnameinfo): Remove useless casts.
72891
72892 2006-06-27  Simon Josefsson  <jas@extundo.com>
72893
72894         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72895         Eggert and Martin Lambers.
72896
72897 2006-06-27  Simon Josefsson  <jas@extundo.com>
72898
72899         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72900         Eggert and Martin Lambers.
72901
72902 2006-06-27  Bruno Haible  <bruno@clisp.org>
72903
72904         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72905         result to 0, not to empty.
72906         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72907
72908 2006-06-27  Bruno Haible  <bruno@clisp.org>
72909
72910         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72911
72912 2006-06-26  Simon Josefsson  <jas@extundo.com>
72913
72914         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72915         present.
72916
72917 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72918
72919         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72920         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72921         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72922
72923 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72924
72925         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72926
72927 2006-06-26  Bruno Haible  <bruno@clisp.org>
72928
72929         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72930
72931 2006-06-26  Bruno Haible  <bruno@clisp.org>
72932
72933         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72934
72935 2006-06-26  Bruno Haible  <bruno@clisp.org>
72936
72937         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72938         SGI C compiler in pre-C99 mode.
72939         Suggested by Mark D. Baushke and Larry Jones.
72940
72941 2006-06-26  Bruno Haible  <bruno@clisp.org>
72942
72943         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72944         WCHAR_MAX.
72945         Reported by Mark D. Baushke and Larry Jones.
72946
72947 2006-06-26  Bruno Haible  <bruno@clisp.org>
72948
72949         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72950         in pre-C99 mode.
72951         Suggested by Mark D. Baushke and Larry Jones.
72952
72953 2006-06-23  Simon Josefsson  <jas@extundo.com>
72954             Bruno Haible  <bruno@clisp.org>
72955
72956         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72957         Emit mostlyclean-local rule.
72958         (func_emit_tests_Makefile_am): Likewise.
72959         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72960
72961 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72962
72963         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72964
72965 2006-06-23  Bruno Haible  <bruno@clisp.org>
72966
72967         * tests/test-stdint.c: Update to match ISO C 99 Technical
72968         Corrigendum 1.
72969
72970 2006-06-23  Bruno Haible  <bruno@clisp.org>
72971
72972         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72973
72974 2006-06-23  Bruno Haible  <bruno@clisp.org>
72975
72976         * lib/stdint_.h: Treat IRIX like OpenBSD.
72977
72978 2006-06-23  Bruno Haible  <bruno@clisp.org>
72979
72980         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72981         ISO C 99 Technical Corrigendum 1.
72982
72983 2006-06-22  Simon Josefsson  <jas@extundo.com>
72984
72985         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72986         MinGW.
72987
72988 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72989
72990         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72991         needed.  Some compiler complained about some of them.  Problem reported
72992         by Larry Jones in
72993         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72994
72995 2006-06-21  Simon Josefsson  <jas@extundo.com>
72996
72997         * tests/test-getaddrinfo.c: New file.
72998
72999         * modules/getaddrinfo-tests: New file.
73000
73001         * MODULES.html.sh: Add inet_pton.
73002
73003         * modules/inet_pton: New file.
73004
73005 2006-06-21  Simon Josefsson  <jas@extundo.com>
73006
73007         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
73008         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
73009         of using the (limited) gnulib implementation on Windows XP.
73010
73011         * m4/inet_pton.m4: New file.
73012
73013 2006-06-21  Simon Josefsson  <jas@extundo.com>
73014
73015         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
73016         variable.
73017
73018         * lib/socket_.h: Don't define WINVER.
73019
73020         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
73021         slightly modified to work in gnulib.
73022
73023 2006-06-21  Simon Josefsson  <jas@extundo.com>
73024
73025         * doc/gnulib.texi (Windows sockets): Add.
73026
73027 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
73028
73029         * lib/read-file.c (fread_file): Start with buffer allocation of
73030         0 bytes rather than 1 byte; this simplifies the code.
73031         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
73032         code to free buffer and save/restore errno.
73033         (internal_read_file): Remove unused local.
73034
73035 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
73036
73037         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
73038         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
73039         Problem reported by Denis Excoffier in
73040         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73041
73042 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73043
73044         * modules/sys_socket, modules/socklen: Include sys/types since
73045         FreeBSD 4.x's sys/socket.h needs it.
73046
73047 2006-06-19  Simon Josefsson  <jas@extundo.com>
73048
73049         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73050
73051 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73052
73053         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73054
73055 2006-06-19  Bruno Haible  <bruno@clisp.org>
73056
73057         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
73058         and FULL_PATH_INTTYPES_H in angle brackets.
73059         Reported by Mark D. Baushke <mdb@gnu.org>.
73060
73061 2006-06-17  Eric Blake  <ebb9@byu.net>
73062
73063         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73064         errno.
73065
73066 2006-06-17  Bruno Haible  <bruno@clisp.org>
73067
73068         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73069         <sys/inttypes.h>.
73070
73071 2006-06-17  Bruno Haible  <bruno@clisp.org>
73072
73073         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73074         whether errno is declared. Assume <errno.h> declares errno.
73075
73076 2006-06-17  Bruno Haible  <bruno@clisp.org>
73077
73078         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73079
73080 2006-06-17  Bruno Haible  <bruno@clisp.org>
73081
73082         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73083         problem on Solaris 2.5.1.
73084
73085 2006-06-16  Eric Blake  <ebb9@byu.net>
73086
73087         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73088         * lib/unicodeio.c [!defined errno]: Likewise.
73089         * lib/strtol.c [!defined errno]: Likewise.
73090         * lib/strtod.c [!defined errno]: Likewise.
73091
73092 2006-06-15  Eric Blake  <ebb9@byu.net>
73093
73094         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73095
73096 2006-06-15  Eric Blake  <ebb9@byu.net>
73097
73098         * config/srclist.txt (ssize_t.m4): Lose sync.
73099
73100 2006-06-15  Bruno Haible  <bruno@clisp.org>
73101
73102         * modules/stdint (Files): Include m4/full-header-path.m4,
73103         m4/size_max.m4, m4/wchar_t.m4.
73104         (Makefile.am): Many more substitutions.
73105         * modules/stdint-tests: New file.
73106         * tests/test-stdint.c: New file.
73107
73108 2006-06-15  Bruno Haible  <bruno@clisp.org>
73109
73110         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73111         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73112         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73113         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73114         gl_CHECK_TYPE_SAME): New macros.
73115
73116 2006-06-15  Bruno Haible  <bruno@clisp.org>
73117
73118         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73119
73120 2006-06-15  Bruno Haible  <bruno@clisp.org>
73121
73122         * lib/stdint_.h: Rewritten to be fully auto-configured.
73123         Fixes bug on HP-UX/IA64.
73124
73125 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73126
73127         * lib/getdate.y (__attribute__): Don't define if already defined.
73128         Problem reported by Larry Jones.
73129         * lib/utimens.c (__attribute__): Likewise.
73130
73131 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73132
73133         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73134         reported by Andreas Schwab.
73135
73136 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73137             Bruno Haible  <bruno@clisp.org>
73138
73139         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73140         check for the declaration of strnlen and a run test that exposes the
73141         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73142         rpl_strndup.
73143
73144 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73145             Bruno Haible  <bruno@clisp.org>
73146
73147         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73148
73149 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73150
73151         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73152         compile test, for Tru64 4.0D.
73153
73154 2006-05-28  Karl Berry  <karl@gnu.org>
73155
73156         * config/srclist.txt (printf-args.c): lose sync.
73157
73158 2006-05-26  Martin Lambers  <marlam@marlam.de>
73159
73160         * lib/getpass.c: Updates the test for the native W32 API, and adds
73161         missing includes, thus fixing compilation warnings.
73162
73163 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73164
73165         * lib/exclude.c (exclude_fnmatch): New function.
73166         (excluded_file_name): Call exclude_fnmatch.
73167         * lib/exclude.h (excluded_file_name): New prototype
73168
73169 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73170
73171         * lib/tempname.c (small_open, large_open): New macros.
73172         (__open, __open64) [!_LIBC]: Remove.
73173         (__gen_tempname): Use small_open and large_open instead of __open
73174         and __open64.  This fixes a portability bug on HP-UX 11.11i
73175         reported by Simon Wing-Tang in
73176         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73177
73178 2006-05-24  Bruno Haible  <bruno@clisp.org>
73179
73180         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73181         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73182         Reported by Thorsten Maerz <torte@netztorte.de> via
73183         Aaron Stone <aaron@serendipity.cx>.
73184
73185 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73186
73187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73188         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73189         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73190         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73191         not really conditional on the cache.
73192         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73193
73194 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73195
73196         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73197         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73198         (my_usleep): Don't mishandle maximum value.
73199
73200 2006-05-19  Jim Meyering  <jim@meyering.net>
73201
73202         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73203
73204 2006-05-17  Bruno Haible  <bruno@clisp.org>
73205
73206         Cygwin portability.
73207         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73208
73209 2006-05-17  Bruno Haible  <bruno@clisp.org>
73210
73211         * lib/stdint_.h: Fix recognition of Cygwin.
73212
73213 2006-05-15  Bruno Haible  <bruno@clisp.org>
73214
73215         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73216         on libtool patch by Ralf Wildenhues.
73217
73218 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73219
73220         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73221         test for C99 conformance; (bool) 0.5 is an integer constant
73222         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73223         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73224
73225 2006-05-11  Simon Josefsson  <jas@extundo.com>
73226
73227         * m4/xvasprintf.m4: Fix obvious typo.
73228
73229 2006-05-11  Jim Meyering  <jim@meyering.net>
73230
73231         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73232         James Lemley.
73233
73234 2006-05-10  Simon Josefsson  <jas@extundo.com>
73235
73236         * lib/md4.c: Typo fix, update copyright years.
73237         (K1, K2): Don't use L because it turn computations into 64-bit on
73238         64-bit platforms.
73239
73240 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73241
73242         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73243         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73244         unwanted sign propagation, e.g., on hosts with 64-bit int.
73245         There still are some problems with reeelly weird theoretical hosts
73246         (e.g., 33-bit int) but it's not worth worrying about now.
73247         * lib/sha1.c (rol): Likewise.
73248         (K1, K2, K3, K4): Remove unnecessary L suffix.
73249
73250 2006-05-10  Bruno Haible  <bruno@clisp.org>
73251
73252         * lib/des.c: Cast to avoid warnings.
73253
73254 2006-05-09  Bruno Haible  <bruno@clisp.org>
73255
73256         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73257         (Depends-on): Depend also on xsize, stdarg.
73258         (configure.ac): Add gl_XVASPRINTF.
73259
73260 2006-05-09  Bruno Haible  <bruno@clisp.org>
73261
73262         * m4/xvasprintf.m4: New file.
73263
73264 2006-05-09  Bruno Haible  <bruno@clisp.org>
73265
73266         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73267         (EOVERFLOW): Define fallback value.
73268         (xstrcat): New function.
73269         (xvasprintf): Recognize the special case of a string concatenation.
73270
73271 2006-05-08  Eric Blake  <ebb9@byu.net>
73272
73273         * gnulib-tool (func_version): Base copyright year on CVS date.
73274         (func_emit_copyright_notice): New function.
73275         (func_emit_lib_Makefile_am): Use it.
73276         (func_emit_tests_Makefile_am): Likewise.
73277         (func_import): Likewise.
73278
73279 2006-05-08  Bruno Haible  <bruno@clisp.org>
73280
73281         * modules/stdarg: New file.
73282         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73283
73284 2006-05-08  Bruno Haible  <bruno@clisp.org>
73285
73286         * m4/stdarg.m4: New file, from GNU gettext.
73287
73288 2006-05-08  Bruno Haible  <bruno@clisp.org>
73289
73290         * config/srclist.txt (build-aux/config.rpath): different from latest
73291         release.
73292
73293 2006-05-08  Bruno Haible  <bruno@clisp.org>
73294
73295         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73296
73297 2006-05-05  Jim Meyering  <jim@meyering.net>
73298
73299         * m4/warning.m4: New file, derived from bison's file by the same name.
73300
73301 2006-05-03  Bruno Haible  <bruno@clisp.org>
73302
73303         * lib/stdint_.h: Shorter URL.
73304         * lib/inttypes.h: Likewise.
73305
73306 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73309
73310 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73311
73312         * lib/verify.h: Document the internals better.  Most of this change
73313         was written by Bruno Haible.
73314
73315 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73316
73317         * doc/verify.texi: New file, partly based on a proposal by
73318         Bruno Haible.
73319
73320 2006-05-02  Bruno Haible  <bruno@clisp.org>
73321
73322         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73323         test from here...
73324         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73325
73326 2006-04-29  Bruno Haible  <bruno@clisp.org>
73327
73328         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73329         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73330
73331 2006-04-29  Bruno Haible  <bruno@clisp.org>
73332
73333         * gnulib-tool: Make --update option actually work.
73334
73335 2006-04-29  Bruno Haible  <bruno@clisp.org>
73336
73337         * doc/gcd.texi: New file.
73338         * doc/gnulib.texi: Include it.
73339
73340 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73341
73342         * lib/getdate.y (get_date): When adding relative date, start with the
73343         initial time, not with the result of the first mktime call.
73344
73345 2006-04-25  Bruno Haible  <bruno@clisp.org>
73346
73347         * gnulib-tool (func_import): Output the include directives in three
73348         blocks, sorted separately.
73349         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73350
73351 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73352
73353         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73354         to define main with arguments, for C++.  Reported by Eric Blake.
73355         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73356         Prefer 'int main ()' to 'int main (void)', for C++.
73357         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73358         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73359         for 'main', for C99 and C++.
73360
73361 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73362
73363         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73364         Don't assume that exit status -1 is valid.
73365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73366         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73367         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73368         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73369         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73370         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73371         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73372         functions can be used without declaring them, or that you can
73373         exit with status -1.
73374         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73375
73376 2006-04-24  Karl Berry  <karl@gnu.org>
73377
73378         * config/srclist.txt (longdouble.m4): sync lost.
73379
73380 2006-04-24  Eric Blake  <ebb9@byu.net>
73381
73382         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73383
73384 2006-04-24  Bruno Haible  <bruno@clisp.org>
73385
73386         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73387         poll() implementation in AIX.
73388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73389
73390 2006-04-24  Bruno Haible  <bruno@clisp.org>
73391
73392         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73393         assigned exactly once.
73394
73395 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73396             Bruno Haible  <bruno@clisp.org>
73397
73398         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73399         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73400         for AM_CPPFLAGS.
73401
73402 2006-04-23  Bruno Haible  <bruno@clisp.org>
73403
73404         * modules/copy-file: Depend on unistd.
73405         * modules/execute: Likewise.
73406         * modules/fatal-signal: Likewise.
73407         * modules/findprog: Likewise.
73408         * modules/mkdtemp : Likewise.
73409         * modules/pipe: Likewise.
73410         * modules/wait-process: Likewise.
73411
73412 2006-04-23  Bruno Haible  <bruno@clisp.org>
73413
73414         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73415         condition was already detected.
73416         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73417
73418 2006-04-23  Bruno Haible  <bruno@clisp.org>
73419
73420         * lib/copy-file.c: Include <unistd.h> unconditionally.
73421         * lib/execute.c: Likewise.
73422         * lib/fatal-signal.c: Likewise.
73423         * lib/findprog.c: Likewise.
73424         * lib/mkdtemp.c: Likewise.
73425         * lib/pipe.h: Likewise.
73426         * lib/pipe.c: Likewise.
73427         * lib/wait-process.h: Likewise.
73428
73429 2006-04-23  Bruno Haible  <bruno@clisp.org>
73430
73431         * gnulib-tool (func_usage): Fix --import description. Document
73432         --update.
73433         (func_import): Create temporary file in a temporary directory, if
73434         --dry-run is specified. Silence errors from 'grep' when there are no
73435         m4 files in $m4dir.
73436         (func_create_testdir): Silence errors from 'grep' when there are no
73437         m4 files in $m4dir.
73438         Reported by Karl Berry <karl@freefriends.org>.
73439
73440 2006-04-20  Bruno Haible  <bruno@clisp.org>
73441
73442         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73443         one argument, so that the code will be portable to Autoconf 2.60.
73444         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73445         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73446         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73447
73448 2006-04-19  Derek Price  <derek@ximbiot.com>
73449             Eric Blake  <ebb9@byu.net>
73450
73451         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73452         rather than "/full/path.h".  Update comment to match.  Shorten &
73453         generalize m4_translit call via AS_TR_CPP.
73454
73455 2006-04-19  Derek Price  <derek@ximbiot.com>
73456             Eric Blake  <ebb9@byu.net>
73457
73458         * lib/inttypes.h: Correct grammar in comment.
73459
73460 2006-04-18  Derek Price  <derek@ximbiot.com>
73461             Paul Eggert  <eggert@cs.ucla.edu>
73462
73463         * modules/inttypes: New file.
73464         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73465
73466 2006-04-18  Derek Price  <derek@ximbiot.com>
73467             Paul Eggert  <eggert@cs.ucla.edu>
73468
73469         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73470         New files.
73471
73472 2006-04-18  Derek Price  <derek@ximbiot.com>
73473             Paul Eggert  <eggert@cs.ucla.edu>
73474
73475         * lib/inttypes.h: New file.
73476         * lib/strtoimax.c: Assume <inttypes.h>.
73477
73478 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73481         isn't mounted.  Problem reported by Kir Kolyshkin.
73482
73483 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73484
73485         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73486         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73487         Derek R. Price.
73488         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73489         implementation.
73490
73491 2006-04-12  Eric Blake  <ebb9@byu.net>
73492
73493         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73494         is now done automatically by the corresponding Autoconf macro.
73495
73496 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73497
73498         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73499         time_r.h.
73500
73501 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73502
73503         Merge regex changes from libc, removing some of our
73504         POSIX-conformance changes that were rejected and redoing them in a
73505         less-intrusive way.
73506
73507         * lib/regcomp.c (re_compile_internal, init_dfa):
73508         Length arg is now size_t, not Idx.  All uses changed.
73509         (peek_token): Forward decl now says internal_function.
73510         (__re_error_msgid, __re_error_msgid_idx):
73511         Now static rather than extern with attribute_hidden.
73512         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73513         For some reason libc prefers K&R style defns for external functions.
73514         (regerror) [!defined _LIBC]: Likewise.
73515         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73516         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73517         (build_range_exp, build_collating_symbol):
73518         Use K&R-style defn.
73519         (re_compile_fastmap): Use '\0' to memset, not 0.
73520         (utf8_sb_map): Make the calculations more obvious.
73521         (init_dfa, parse_bracket_exp, build_charclass_op):
73522         Call calloc and cast result, as glibc does.
73523         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73524         (build_range_exp, build_collating_symbol):
73525         Now internal functions.
73526
73527         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73528
73529         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73530         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73531         Don't depend on VMS; depend on __VMS instead, for POSIX
73532         namespace cleanness.
73533         (regoff_t): Define to ssize_t, not long int.
73534
73535         Remove the REG_ macros named below.  Instead, make the old names
73536         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73537         __USE_GNU_REGEX.
73538         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73539         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73540         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73541         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73542         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73543         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73544         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73545         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73546         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73547         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73548         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73549         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73550         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73551         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73552         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73553         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73554         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73555         (REG_NREGS):
73556         Remove.  All uses replaced by the old RE_* names.
73557         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73558         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73559         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73560         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73561         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73562         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73563         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73564         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73565         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73566         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73567         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73568         Don't bother having these macros be independent of each others'
73569         values, since they no longer exist in the POSIX name space.
73570
73571         Rename the following member names back to their old names,
73572         unless !__USE_GNU_REGEX.  All uses changed back.
73573         (buffer): Renamed from re_buffer.
73574         (allocated): Renamed from re_allocated.
73575         (used): Renamed from re_used.
73576         (syntax): Renamed from re_syntax.
73577         (fastmap): Renamed from re_fastmap.
73578         (translate): Renamed from re_translate.
73579         (can_be_null): Renamed from re_can_be_null.
73580         (regs_allocated): Renamed from re_regs_allocated.
73581         (fastmap_accurate): Renamed from re_fastmap_accurate.
73582         (no_sub): Renamed from re_no_sub.
73583         (not_bol): Renamed from re_not_bol.
73584         (not_eol): Renamed from re_not_eol.
73585         (newline_anchor): Renamed from re_newline_anchor.
73586         (num_regs): Renamed from rm_num_regs.
73587         (start): Renamed from rm_start.
73588         (end): Renamed from rm_end.
73589
73590         (free_state): Move up a bit.
73591
73592         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73593         #define to be empty.
73594         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73595         when that is what is intended.
73596         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73597         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73598         (MAX): New macro.
73599         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73600         All uses changed back to re_malloc, etc.  It's now the caller's
73601         responsibility to check for overflow; all callers changed.
73602         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73603         (re_x2nrealloc): Remove.
73604         (free_state): Remove decl.
73605
73606         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73607         (re_set_registers, re_exec):
73608         Use K&R-style defn.
73609
73610         2006-01-31  Roland McGrath  <roland@redhat.com>
73611
73612         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73613         Reported by Mike Frysinger <vapier@gentoo.org>.
73614
73615         2006-01-15  Andreas Jaeger  <aj@suse.de>
73616
73617         [BZ #1950]
73618         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73619         build_wcs_upper_buffer change.
73620         (build_wcs_upper_buffer): Change return type.
73621
73622         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73623
73624         * lib/regex_internal.h: Include <stdint.h> if available.
73625
73626         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73627
73628         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73629
73630         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73631
73632         * lib/regcomp.c: Adjust for changed secondary hash function.
73633
73634         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73635
73636         * lib/regex.h: Pretty printing.
73637         Clean up namespace a bit.
73638
73639         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73640
73641         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73642         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73643
73644         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73645                     Ulrich Drepper  <drepper@redhat.com>
73646
73647         [BZ #1302]
73648         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73649         changed.
73650         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73651
73652         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73653
73654         [BZ #281]
73655         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73656         * lib/regcomp.c: Remove unnecessary uses of
73657         unsigned RE_TRANSLATE_TYPE.
73658         * lib/regex_internal.h: Likewise.
73659         * lib/regex_internal.c: Likewise.
73660         * lib/regexec.c: Likewise.
73661         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73662
73663         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73664
73665         * lib/regexec.c (find_recover_state): Remove unnecessary
73666         initialization.
73667         (transit_state_bkref): Make DFA a const pointer.
73668         (get_subexp): Likewise.
73669         (check_arrival): Likewise.
73670         (update_cur_sifted_state): Likewise.
73671         (re_search_internal): Likewise.
73672         (prune_impossible_nodes): Likewise.
73673         (acquire_init_state_context): Likewise.
73674         (proceed_next_node): Likewise.
73675         (set_regs): Likewise.
73676         (free_fail_stack_return): Likewise.
73677         (check_arrival_expand_ecl): Mark DFA parameter as const.
73678         (check_arrival_expand_ecl_sub): Likewise.
73679         (check_subexp_limits): Likewise.
73680         (sub_epsilon_src_nodes):  Likewise.
73681         (add_epsilon_src_nodes):  Likewise.
73682         (merge_state_array): Likewise.
73683         (update_regs): Likewise.
73684         (build_trtable): Likewise.
73685         (sift_states_backward): Mark MCTX parameter as const.
73686         (build_sifted_states): Likewise.
73687         (update_cur_sifted_state): Likewise.
73688         (sift_states_mkref): Likewise.
73689         (check_arrival_expand_ecl): Mark eclosure as const.
73690         (check_dst_limits_calc_pos_1): Likewise.
73691         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73692         pointer.
73693
73694         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73695
73696         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73697         (transit_state_sb): Likewise.
73698         (transit_state_mb): Likewise.
73699         (sift_states_iter_mb): Likewise.
73700         (check_arrival_add_next_nodes): Likewise.
73701         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73702         [_LIBC] (re_search_2_stub): Use mempcpy.
73703
73704         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73705         mbrtowc for very simple UTF-8 case.
73706
73707         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73708         a pointer-to-const.
73709         (re_acquire_state_context): Likewise.
73710         * lib/regex_internal.h: Adjust prototypes.
73711
73712         * lib/regex.c: Prevent using C++ compilers.
73713
73714         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73715         (re_acquire_state_context): Likewise.
73716
73717 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73718
73719         * modules/regex (Depends-on): Add ssize_t.
73720
73721 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73724         translation table.
73725
73726 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73727
73728         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73729
73730 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73731             Bruno Haible  <bruno@clisp.org>
73732
73733         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73734         <sys/types.h> and <inttypes.h>.
73735
73736 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73737
73738         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73739         `__error_t_defined', so argp.h will not typedef the former.
73740
73741 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73742
73743         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73744         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73745         glibc names.  Even if glibc is changed to conform to POSIX, the
73746         traditional names will be available anyway, since regex depends on
73747         the extensions module.  Also, fix a longstanding typo in the
73748         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73749         reported by Emanuele Giaquinta.  Also, change sense of cached
73750         variable, so that the message makes sense.
73751
73752 2006-03-24  Simon Josefsson  <jas@extundo.com>
73753
73754         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73755         including some doc fixes.
73756         (base64_encode_alloc): Fix +1 bug on allocation failures.
73757
73758 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73759
73760         * lib/base64.c (base64_encode): Do not read past end of array with
73761         unsanitized input on systems with CHAR_BIT > 8.
73762
73763 2006-03-24  Eric Blake  <ebb9@byu.net>
73764
73765         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73766
73767 2006-03-22  Karl Berry  <karl@gnu.org>
73768
73769         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73770         * config/srclistvars.sh (COREUTILS): new var.
73771
73772 2006-03-17  Jim Meyering  <jim@meyering.net>
73773
73774         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73775         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73776
73777 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73778
73779         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73780         no longer needs it.  Instead, check that regoff_t is as least
73781         as wide as ptrdiff_t.
73782
73783         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73784         so that our regex.h stays compatible with the installed regex.
73785         This is helpful for installers who configure --without-included-regex.
73786         Problem reported by Emanuele Giaquinta.
73787
73788 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73789
73790         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73791         Typedef to long int, not to off_, as POSIX will likely change
73792         in that direction.
73793
73794 2006-03-15  Eric Blake  <ebb9@byu.net>
73795
73796         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73797
73798 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73799
73800         * lib/argp-help.c (validate_uparams): Fix typo
73801         * lib/argp-parse.c (argp_default_options): Consistently begin help
73802         messages with a lowercase letter.
73803
73804 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73805
73806         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73807         overrun buffers and shouldn't be used (much as gets shouldn't be
73808         used).
73809         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73810
73811 2006-03-08  Simon Josefsson  <jas@extundo.com>
73812
73813         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73814         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73815
73816 2006-03-08  Simon Josefsson  <jas@extundo.com>
73817
73818         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73819         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73820
73821 2006-03-08  Simon Josefsson  <jas@extundo.com>
73822
73823         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73824         signal that configure disabled the device.
73825
73826 2006-03-08  Simon Josefsson  <jas@extundo.com>
73827
73828         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73829         languages.
73830
73831 2006-03-07  Simon Josefsson  <jas@extundo.com>
73832
73833         * modules/getopt (Depends-on): Add unistd.
73834
73835         * modules/unistd: New file.
73836
73837 2006-03-07  Simon Josefsson  <jas@extundo.com>
73838
73839         * modules/gc-random: New file.
73840
73841 2006-03-07  Simon Josefsson  <jas@extundo.com>
73842
73843         * m4/unistd_h.m4: New file.
73844
73845 2006-03-07  Simon Josefsson  <jas@extundo.com>
73846
73847         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73848         test to be side-effect free by storing the result in the cache
73849         variable gl_cv_lib_readline, and moving the assignment of
73850         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73851         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73852
73853 2006-03-07  Simon Josefsson  <jas@extundo.com>
73854
73855         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73856         error on missing devices (the functions will return an error).
73857
73858         * m4/gc.m4: Move random stuff to gc-random.m4
73859
73860 2006-03-07  Simon Josefsson  <jas@extundo.com>
73861
73862         * lib/unistd_.h: New file.
73863
73864 2006-03-07  Simon Josefsson  <jas@extundo.com>
73865
73866         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73867
73868 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73869
73870         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73871         Problem reported by Juan Manuel Guerrero.
73872
73873 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73876         the unistd module.
73877         * lib/getlogin_r.c: Likewise.
73878         * lib/getlogin_r.h: Likewise.
73879         * lib/glob.c: Likewise.
73880         * lib/pagealign_alloc.c: Likewise.
73881         * lib/unistd_.h: Remove; no longer needed.
73882
73883 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73886         Add unistd.
73887         * modules/c-stack (Depends-on): Add unistd.
73888         * modules/getlogin_r: Likewise.
73889         * modules/glob: Likewise.
73890         * modules/pagealign_alloc: Likewise.
73891         * modules/unistd (Files): Remove lib/unistd_.h.
73892         (EXTRA_DIST): Remove.
73893         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73894         need unistd_.h.
73895         (MOSTLYCLEANFILES): Remove unistd.h-t.
73896
73897 2006-03-03  Simon Josefsson  <jas@extundo.com>
73898
73899         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73900
73901 2006-03-03  Simon Josefsson  <jas@extundo.com>
73902
73903         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73904         libidn and bison.
73905
73906 2006-03-03  Simon Josefsson  <jas@extundo.com>
73907
73908         * build-aux/maint.mk: Add indent target.
73909
73910 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73911
73912         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73913         our replacement poll.h in any case, to avoid a differing
73914         declaration from a system header.  Seen on AIX.
73915
73916 2006-03-01  Simon Josefsson  <jas@extundo.com>
73917
73918         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73919         <kasal@ucw.cz>.
73920
73921 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         * modules/gettime (Depends-on): Add extensions module.
73924         * modules/nanosleep (Depends-on): Likewise.
73925         * modules/settime (Depends-on): Likewise.
73926
73927 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73928
73929         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73930         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73931         pedantically.
73932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73933         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73934
73935         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73936         not "==".  Reported by Ralf Wildenhues.
73937
73938 2006-03-01  Karl Berry  <karl@gnu.org>
73939
73940         * doc/Copyright/request-*: new files, synced from gnuorg.
73941
73942 2006-03-01  Karl Berry  <karl@gnu.org>
73943
73944         * config/srclist.txt (Copyright/*): new entries.
73945
73946 2006-02-28  Simon Josefsson  <jas@extundo.com>
73947
73948         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73949
73950 2006-02-27  Simon Josefsson  <jas@extundo.com>
73951
73952         * lib/base64.h: Indent #define's.  From Jim Meyering
73953         <jim@meyering.net>.
73954
73955 2006-02-27  Jim Meyering  <jim@meyering.net>
73956
73957         Revert the change of 2006-02-24, so these files can continue
73958         to be sync'd from gettext.
73959         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73960         of `config.h'.
73961
73962 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73963
73964         * modules/intprops: New file.
73965         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73966         Add intprops.
73967         * modules/getloadavg (Files): Remove lib/intprops.h.
73968         (Depends-on): Add intprops.
73969         * modules/human: Likewise.
73970         * modules/inttostr: Likewise.
73971         * modules/openat: Likewise.
73972         * modules/sig2str: Likewise.
73973         * modules/userspec: Likewise.
73974         * modules/utimecmp: Likewise.
73975         * modules/xnanosleep: Likewise.
73976         * modules/xstrtol: Likewise.
73977
73978 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73979
73980         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73981         * modules/lock-tests (TESTS): Use $(EXEEXT).
73982         * modules/tls-tests: Likewise.
73983         * modules/argp-tests: Likewise.
73984         (check_PROGRAMS): New var, replacing...
73985         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73986
73987 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73988
73989         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73990         `config.h'.
73991
73992 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73993
73994         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73995
73996 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73997
73998         Sync from coreutils.
73999         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
74000         gl_CHDIR_SAFER.
74001
74002 2006-02-22  Jim Meyering  <jim@meyering.net>
74003
74004         Sync from coreutils.
74005         * m4/chdir-safer.m4: New file.
74006
74007 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74008
74009         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
74010         AT_FDCWD exceeds INT_MAX.
74011         * lib/openat.h (AT_FDCWD): Likewise.
74012
74013 2006-02-17  Eric Blake  <address@hidden>
74014
74015         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
74016
74017 2006-02-16  Simon Josefsson  <jas@extundo.com>
74018
74019         * modules/getaddrinfo (Depends-on): Add sys_socket.
74020
74021 2006-02-15  Simon Josefsson  <jas@extundo.com>
74022
74023         * build-aux/maint.mk: Add dsyntax-check rule.
74024
74025 2006-02-15  Eric Blake  <ebb9@byu.net>
74026
74027         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
74028         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
74029         'present but cannot compile' warnings on cygwin.
74030         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
74031         use ws2tcpip.h if sys/socket.h works.
74032         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
74033         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
74034
74035 2006-02-14  Simon Josefsson  <jas@extundo.com>
74036
74037         * modules/maintainer-makefile (Files): Rename.
74038
74039         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74040         and (the local) Makefile.cfg to maint-cfg.mk.
74041
74042         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74043         to the latter.
74044
74045         * modules/maintainer-makefile: New module.
74046
74047         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74048         severaly stripped to make it possible to build it up from scratch
74049         with reliable tests.
74050
74051         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74052         fixes to permit overriding the default actions when configure and
74053         makefile are not available.
74054
74055 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74056
74057         Sync from coreutils.
74058         * modules/lstat (Depends-on): Don't depend on xalloc.
74059         (License): Change from GPL to LGPL, since this is now simply a
74060         replacement for a libc function.
74061
74062 2006-02-14  Jim Meyering  <jim@meyering.net>
74063
74064         Sync from coreutils.
74065
74066         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74067         failure on deficient systems, and simplify gnulib lgpl dependencies.
74068         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74069         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74070
74071         * lib/xalloc-die.c: Remove unused definition of N_.
74072
74073 2006-02-14  Jim Meyering  <jim@meyering.net>
74074
74075         Sync from coreutils.
74076         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74077         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74078         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74079         double-quote uses of that variable, to accommodate the rare case in
74080         which getmntent is available in none of the libraries checked.  This
74081         happens at least on FreeBSD 5.0.
74082
74083 2006-02-13  Simon Josefsson  <jas@extundo.com>
74084
74085         * gnulib-tool (Usage): Fix --import, from
74086         karl@freefriends.org (Karl Berry).
74087
74088 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74089
74090         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74091
74092 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74093
74094         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74095         "autoupdate" on 2005-12-12.
74096
74097 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74098
74099         * modules/closeout (Depends-on): Remove atexit.
74100
74101 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74102
74103         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74104         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74105
74106 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74109         __EXTENSIONS__ if this causes compilation to fail.  Problem
74110         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74111         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74112
74113 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74114
74115         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74116         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74117         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74118         All uses changed.
74119
74120 2006-01-26  Simon Josefsson  <jas@extundo.com>
74121
74122         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74123         prototype is visible on mingw32.
74124
74125         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74126         for mingw32.
74127
74128         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74129         mingw32).
74130
74131 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74134         attempt to open for write; this always fails, at least on POSIX
74135         hosts.  This reinstates the 2006-01-09 change, which was
74136         inadvertently removed.
74137
74138 2006-01-26  Bruno Haible  <bruno@clisp.org>
74139
74140         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74141         Reported by Paul Eggert.
74142
74143 2006-01-26  Bruno Haible  <bruno@clisp.org>
74144             Paul Eggert  <eggert@cs.ucla.edu>
74145
74146         * lib/stdbool_.h (_Bool)
74147         [(! (defined __cplusplus || defined __BEOS__)
74148           && !defined __GNUC__
74149           && !(defined __HP_cc || defined __xlc__
74150                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74151                || defined __sgi))]:
74152         #define to signed char in these cases too; this simplifies
74153         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74154         etc., separately) and makes it more conservative.
74155
74156 2006-01-25  Simon Josefsson  <jas@extundo.com>
74157
74158         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74159         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74160         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74161
74162 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74163
74164         * lib/argp-namefrob.h: Bugfix. Remove stray #
74165
74166 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74167
74168         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74169         so that we test the test.
74170         Check for yet another HP-UX cc bug involving *bool |= bool.
74171
74172 2006-01-25  Karl Berry  <karl@gnu.org>
74173
74174         * config/srclist.txt (vasnprintf.c): sync lost.
74175
74176 2006-01-25  Jim Meyering  <jim@meyering.net>
74177
74178         Sync from the stable (b5) branch of coreutils:
74179
74180         * lib/fts.c (fts_children): Don't let close() clobber errno from
74181         failed fchdir().
74182
74183         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74184         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74185         a dangling symlink.  That can also happen at least for ELOOP.
74186         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74187         FYI, this bug predates the inclusion of fts.c in coreutils.
74188
74189         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74190         in their own block, so pre-c99 compilers don't object.
74191
74192         Avoid the double-free (first in fts_read, second in fts_close) that
74193         would occur when an `active' directory is made inaccessible (e.g.,
74194         via chmod a-x) during a traversal.
74195         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74196         before returning.  Reproduce this failure by
74197         mkdir -p a/b; cd a; chmod a-x . b
74198         Reported by Stavros Passas.
74199
74200 2006-01-25  Jim Meyering  <jim@meyering.net>
74201
74202         * lib/fileblocks.c: Remove more useless parentheses.
74203         * lib/readutmp.h: Likewise.
74204
74205 2006-01-25  Bruno Haible  <bruno@clisp.org>
74206
74207         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74208         warnings.
74209         Reported by Paul Eggert.
74210
74211 2006-01-25  Bruno Haible  <bruno@clisp.org>
74212
74213         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74214         rid of a trap command. For Solaris sh.
74215         Reported by Mark D. Baushke <mdb@gnu.org>.
74216
74217 2006-01-24  Simon Josefsson  <jas@extundo.com>
74218
74219         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74220         Bruno.
74221
74222 2006-01-24  Karl Berry  <karl@gnu.org>
74223
74224         * config/srclist.txt (argp-namefrob.h): sync lost.
74225
74226 2006-01-24  Jim Meyering  <jim@meyering.net>
74227
74228         * modules/openat (Files): Add lib/intprops.h.
74229         From Mark D. Baushke.
74230
74231 2006-01-24  Jim Meyering  <jim@meyering.net>
74232
74233         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74234         Reported by Mark D. Baushke.
74235
74236 2006-01-24  Jim Meyering  <jim@meyering.net>
74237
74238         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74239
74240 2006-01-24  Bruno Haible  <bruno@clisp.org>
74241
74242         * modules/strnlen (Maintainer): Change from glibc to all.
74243
74244 2006-01-24  Bruno Haible  <bruno@clisp.org>
74245
74246         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74247         Patch by Paul Eggert.
74248
74249 2006-01-24  Bruno Haible  <bruno@clisp.org>
74250
74251         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74252         already has it.
74253         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74254         2005-11-26.
74255
74256         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74257         'signed char' to avoid problems with the built-in _Bool type.
74258         Reported by Paul Eggert on 2005-11-26.
74259
74260 2006-01-24  Bruno Haible  <bruno@clisp.org>
74261
74262         * gnulib-tool (func_import): Avoid constructing complicated sed
74263         expressions inside backquote.
74264         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74265
74266 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74267
74268         These changes imported from libc.
74269         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74270         test and two separate function calls.
74271         * lib/strndup.c (__strndup): Add libc_hidden_def.
74272
74273 2006-01-23  Simon Josefsson  <jas@extundo.com>
74274
74275         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74276         Remove the test_*_SOURCES variable: automake infers it by default.
74277         * modules/tls-tests: Likewise.
74278
74279 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74280
74281         Work around porting bugs reported by Dieter in
74282         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74283         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74284         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74285         Include "getopt.h" first, to check interface.
74286         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74287         !HAVE_DECL_GETENV.
74288         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74289         (__strndup): Revert to K&R-style function dfns, the glibc style.
74290         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74291         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74292         Include strnlen.h first, to get prototype properly.
74293         (strnlen): Renamed from __strnlen.
74294         Remove weak alias.
74295
74296 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74297
74298         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74299
74300 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74301
74302         * config/srclist.txt: Adjust to reflect glibc reorganization.
74303         This affects only comments.
74304
74305 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74306
74307          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74308          Reported by Bruce Korb <bkorb@gnu.org>.
74309
74310 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74311
74312         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74313         to pacify gcc -Wswitch-default.
74314
74315 2006-01-22  Bruno Haible  <bruno@clisp.org>
74316
74317         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74318         temporary buffer for sprintf, take into account the precision also
74319         for 'd', 'i', 'u', 'o', 'x', 'X'.
74320
74321 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74322
74323         * modules/argp-tests: New module
74324         * tests/test-argp.c: New file
74325         * tests/test-argp-2.sh: New file
74326
74327 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74328
74329         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74330         (__argp_base_name): Removed
74331         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74332         typo.
74333         (__argp_base_name): Provide macro definition or extern declaration
74334         depending on the configuration
74335
74336 2006-01-20  Simon Josefsson  <jas@extundo.com>
74337
74338         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74339
74340 2006-01-20  Simon Josefsson  <jas@extundo.com>
74341
74342         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74343
74344 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74345
74346         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74347         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74348         Suggested by Bruno Haible.
74349
74350 2006-01-20  Karl Berry  <karl@gnu.org>
74351
74352         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74353         until changes propagate, I guess.
74354
74355 2006-01-19  Simon Josefsson  <jas@extundo.com>
74356
74357         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74358
74359 2006-01-19  Simon Josefsson  <jas@extundo.com>
74360
74361         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74362
74363 2006-01-19  Simon Josefsson  <jas@extundo.com>
74364
74365         * gnulib-tool: Set check_PROGRAMS.
74366
74367         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74368         modules/des-tests, modules/gc-arcfour-tests,
74369         modules/gc-arctwo-tests, modules/gc-des-tests,
74370         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74371         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74372         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74373         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74374         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74375         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74376         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74377         test_*_SOURCES.
74378
74379 2006-01-18  Simon Josefsson  <jas@extundo.com>
74380
74381         * modules/socklen (Depends-on): Depend on sys_socket.
74382
74383 2006-01-18  Simon Josefsson  <jas@extundo.com>
74384
74385         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74386         modules/des-tests, modules/gc-arcfour-tests,
74387         modules/gc-arctwo-tests, modules/gc-des-tests,
74388         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74389         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74390         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74391         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74392         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74393         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74394         $(EXEEXT) to automake TESTS variable, for mingw32.
74395
74396 2006-01-17  Simon Josefsson  <jas@extundo.com>
74397
74398         * modules/socklen (Include): Need sys/socket.h.
74399
74400 2006-01-17  Bruno Haible  <bruno@clisp.org>
74401
74402         * modules/ssize_t (Include): Add <sys/types.h>.
74403
74404 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74405
74406         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74407         it's not portable and it doesn't work with cross-compiles.
74408         Problem reported by Bruno Haible.  Fix missing-$ typo in
74409         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74410         -zignore from being used with Sun's C compiler.
74411
74412 2006-01-12  Simon Josefsson  <jas@extundo.com>
74413
74414         * lib/base64.c: Fix warning, reported by Bruno Haible
74415         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74416
74417 2006-01-12  Bruno Haible  <bruno@clisp.org>
74418
74419         * modules/ldd: New file.
74420         * build-aux/ldd.sh.in: New file.
74421         * MODULES.html.sh (Support for building libraries and executables): Add
74422         ldd.
74423
74424 2006-01-12  Bruno Haible  <bruno@clisp.org>
74425
74426         * m4/ldd.m4: New file.
74427
74428 2006-01-12  Bruno Haible  <bruno@clisp.org>
74429
74430         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74431         endless loop while replacing $auxdir with build-aux.
74432
74433 2006-01-11  Simon Josefsson  <jas@extundo.com>
74434
74435         * lib/stdint_.h (SIZE_MAX): Add missing (.
74436
74437 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74438
74439         Sync from coreutils.
74440         * lib/md5.c: Fix commentary typos.
74441         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74442         * lib/md5.h (__attribute__): Remove; unused.
74443         * lib/sha1.c: Fix commentary to match md5 better.
74444         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74445         so that we don't need to worry about alignment.  All uses changed.
74446         This merges the 2005-10-28 md5 change into sha1.
74447
74448 2006-01-11  Jim Meyering  <jim@meyering.net>
74449
74450         Sync from coreutils.
74451         * lib/md5.c (OP): Fix spacing.
74452
74453 2006-01-11  Bruno Haible  <bruno@clisp.org>
74454
74455         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74456         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74457         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74458
74459 2006-01-11  Bruno Haible  <bruno@clisp.org>
74460
74461         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74462         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74463         the "early" section as well.
74464
74465 2006-01-11  Bruno Haible  <bruno@clisp.org>
74466
74467         Avoid "ar: no archive members specified" error on MacOS X.
74468         * gnulib-tool (func_modules_add_dummy): New function.
74469         (func_import, func_create_testdir): Invoke it.
74470
74471 2006-01-11  Bruno Haible  <bruno@clisp.org>
74472
74473         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74474         with $auxdir in AC_CONFIG_FILES statements.
74475
74476 2006-01-11  Bruno Haible  <bruno@clisp.org>
74477
74478         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74479         Initialize also noinst_HEADERS to empty.
74480
74481 2006-01-11  Bruno Haible  <bruno@clisp.org>
74482
74483         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74484         variables.
74485         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74486         autoreconf.
74487
74488 2006-01-11  Bruno Haible  <bruno@clisp.org>
74489
74490         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74491         overridable by the user.
74492         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74493
74494 2006-01-10  Simon Josefsson  <jas@extundo.com>
74495
74496         * modules/sys_socket: New file.
74497
74498 2006-01-10  Simon Josefsson  <jas@extundo.com>
74499
74500         * m4/sys_socket_h.m4: New file.
74501
74502 2006-01-10  Simon Josefsson  <jas@extundo.com>
74503
74504         * lib/socket_.h: New file.
74505
74506 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74507
74508         * modules/readutmp (Maintainer): Add myself.
74509
74510 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74511
74512         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74513         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74514         People who are still concerned with buggy memcmp implementations
74515         can invoke gl_FUNC_MEMCMP themselves.
74516
74517 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74518
74519         * lib/regex_internal.h (BITSET_WORD_BITS):
74520         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74521         preprocessor mishandles large unsigned values as if they were signed.
74522         Problem reported by Claudio Fontana in
74523         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74524
74525 2006-01-10  Jim Meyering  <jim@meyering.net>
74526
74527         Avoid the double-free (first in fts_read, second in fts_close) that
74528         would occur when an `active' directory is made inaccessible (e.g.,
74529         via chmod a-x) during a traversal.
74530         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74531         before returning.  Reproduce this failure by
74532         mkdir -p a/b; cd a; chmod a-x . b
74533         Reported by Stavros Passas.
74534
74535         Sync from coreutils.
74536         * lib/sha1.c: Tweak grammar in a comment.
74537
74538 2006-01-10  Jim Meyering  <jim@meyering.net>
74539
74540         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74541         Patch by Joerg Sonnenberger.
74542
74543 2006-01-10  Bruno Haible  <bruno@clisp.org>
74544
74545         * modules/readutmp: Depend on module free.
74546         * modules/strtok_r: Depend on module restrict.
74547
74548 2006-01-10  Bruno Haible  <bruno@clisp.org>
74549
74550         * modules/gettext (configure.ac): Add an invocation of
74551         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74552
74553 2006-01-10  Bruno Haible  <bruno@clisp.org>
74554
74555         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74556         Reported by Werner Lemberg <wl@gnu.org>.
74557
74558 2006-01-10  Bruno Haible  <bruno@clisp.org>
74559
74560         * lib/localcharset.c: Update from GNU gettext.
74561
74562 2006-01-10  Bruno Haible  <bruno@clisp.org>
74563
74564         * lib/argp.h (__const): Remove macro. Use const instead.
74565         * lib/argp-fmtstream.h (__const): Likewise.
74566         * lib/glob_.h (__const): Remove macro.
74567         * lib/glob-libc.h: Use const instead of __const.
74568
74569 2006-01-10  Bruno Haible  <bruno@clisp.org>
74570
74571         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74572         variable.
74573         Needed to avoid an automake error regarding the 'gettext' module.
74574
74575 2006-01-09  Simon Josefsson  <jas@extundo.com>
74576
74577         * modules/inet_ntop (Depends-on): Add restrict.
74578
74579 2006-01-09  Simon Josefsson  <jas@extundo.com>
74580
74581         * modules/gc-rijndael-tests (License): Put under LGPL.
74582
74583         * modules/gc-des-tests (License): Likewise.
74584
74585         * modules/gc-arcfour-tests (License): Likewise.
74586
74587         * modules/gc-arctwo-tests (License): Likewise.
74588
74589         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74590
74591         * modules/gc-hmac-sha1-tests (Files): Likewise.
74592
74593         * modules/gc-hmac-md5-tests (License): Likewise.
74594
74595         * modules/gc-sha1-tests (License): Likewise.
74596
74597         * modules/gc-md5-tests (License): Likewise.
74598
74599         * modules/gc-md4-tests (License): Likewise.
74600
74601         * modules/gc-md2-tests (License): Likewise.
74602
74603         * modules/gc-tests (License): Likewise.
74604
74605         * modules/des-tests (License): Likewise.
74606
74607         * modules/md4-tests (License): Likewise.
74608
74609         * modules/md2-tests (License): Likewise.
74610
74611 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74612
74613         Sync from coreutils:
74614
74615         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74616         * modules/lib-ignore: New file.
74617         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74618         chdir-safer.m4, lchmod.m4.
74619         * modules/openat: Add mkdirat.c, openat-priv.h.
74620
74621 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74622
74623         Sync from coreutils.
74624         * m4/lib-ignore.m4: New file.
74625         * m4/lchmod.m4: New file.
74626
74627 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74628
74629         Sync from coreutils.
74630         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74631         for write access: POSIX says that must fail.
74632         * lib/fts.c (diropen): Likewise.
74633         * lib/save-cwd.c (save_cwd): Likewise.
74634         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74635         well, for minor improvements on hosts that lack O_DIRECTORY.
74636         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74637         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74638         Fall back on chown if open failed with EACCES.
74639
74640         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74641         Report an error at compile-time if only a 1-second nominal clock
74642         resolution is found.
74643
74644         * lib/lchmod.h: New file.
74645         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74646         (make_dir_parents): Use lchown rather than chown, and
74647         lchmod rather than chmod.
74648
74649         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74650         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74651         "proc" reported by n0dalus.
74652
74653         * lib/mountlist.c: Include <limits.h>.
74654         (dev_from_mount_options)
74655         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74656         New function.  It no longer assumes "dev=" has the System V meaning
74657         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74658         (read_file_system_list)
74659         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74660         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74661         dev= in that case.
74662
74663         * lib/posixtm.h (PDS_PRE_2000): New macro.
74664         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74665         allow_century.  All usages changed.  Reject dates outside the range
74666         1969-1999 if PDS_PRE_2000 is used.
74667
74668 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74669
74670         Sync from coreutils.
74671         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74672         (Time of day items): Mention the possibility of leap seconds.
74673         Problem reported by Dr. David Alan Gilbert.
74674
74675 2006-01-09  Jim Meyering  <jim@meyering.net>
74676
74677         Sync from coreutils.
74678
74679         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74680
74681         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74682
74683         * lib/modechange.c (mode_compile): Reject an invalid mode string
74684         that starts with an octal digit.  From Andreas Gruenbacher.
74685
74686         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74687         and dup to open_safer and dup_safer, respectively.
74688         (openat_permissive): Fix typo in comment.
74689
74690         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74691         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74692         (_): Remove; no longer needed.
74693         (openat): Renamed from rpl_openat; no need for rpl_openat
74694         since openat.h renames openat for us.
74695         Replace most of the body with a call to openat_permissive,
74696         to avoid duplicate code.
74697         Port to (probably hypothetical) environments were mode_t is
74698         wider than int.
74699         (openat_permissive): Require mode arg, so that we can check
74700         types better.  Put it just after flags.  Change cwd failure
74701         indicator from pointer-to-bool to pointer-to-errno-value.
74702         All callers changed.
74703         Invoke openat_save_fail and/or openat_restore_fail if
74704         cwd_errno is null, so that openat can call us.
74705         (openat_permissive, fdopendir, fstatat, unlinkat):
74706         Simplify errno handling to avoid some duplicate code,
74707         as it's OK to set errno on success.
74708         * lib/openat.h: Revamp code so that function macros depend on
74709         __OPENAT_PREFIX only, not also on AT_FDCWD.
74710         (openat_ro): Remove.  Caller changed to use openat_permissive.
74711         (openat_permissive): Now a macro, if not a function.
74712         (openat_restore_fail, openat_save_fail): Now always functions,
74713         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74714
74715         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74716         and openat.c.
74717         * lib/mkdirat.c: Include openat-priv.h.
74718         Remove definitions of macros defined therein.
74719         * lib/openat.c: Likewise.
74720
74721         * lib/mkdirat.c (mkdirat): New file and function.
74722         * lib/openat.h (mkdirat): Declare.
74723
74724         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74725
74726         * lib/openat.h (openat_permissive): Declare.
74727         (openat_ro): Define.
74728
74729         * lib/openat.c (EXPECTED_ERRNO): New macro.
74730         (openat_permissive): New function -- used in remove.c rewrite.
74731         (all functions): Set errno just before returning, only if there
74732         was an actual failure.
74733         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74734
74735         Emulate openat-family functions using Linux's procfs, if possible.
74736         Idea and some code based on Ulrich Drepper's glibc changes.
74737
74738         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74739         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74740         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74741         before falling back on save_cwd and restore_cwd.
74742         (fdopendir, fstatat, unlinkat): Likewise.
74743
74744         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74745         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74746
74747         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74748         as second argument to va_arg.  Otherwise, some versions of gcc
74749         warn that `if this code is reached, the program will abort'.
74750
74751 2006-01-09  Jim Meyering  <jim@meyering.net>
74752
74753         Sync from coreutils.
74754         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74755         Require openat-priv.h.
74756
74757 2006-01-09  Bruno Haible  <bruno@clisp.org>
74758
74759         * modules/strnlen (Include): Use strnlen.h.
74760
74761 2006-01-09  Bruno Haible  <bruno@clisp.org>
74762
74763         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74764
74765 2006-01-09  Bruno Haible  <bruno@clisp.org>
74766
74767         * lib/sysexit_.h (EX_OK): New macro.
74768         Suggested by Martin Lambers <marlam@marlam.de>.
74769
74770 2006-01-09  Bruno Haible  <bruno@clisp.org>
74771
74772         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74773         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74774
74775 2006-01-09  Bruno Haible  <bruno@clisp.org>
74776
74777         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74778         numbers.
74779
74780 2006-01-09  Bruno Haible  <bruno@clisp.org>
74781
74782         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74783         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74784         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74785         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74786
74787 2006-01-09  Bruno Haible  <bruno@clisp.org>
74788
74789         * build-aux/javacomp.sh.in: New file, moved from lib/.
74790         * modules/javacomp-script (Files): Update.
74791         (configure.ac): Add AC_CONFIG_FILES invocation.
74792         (EXTRA_DIST): Remove variable.
74793
74794         * build-aux/javaexec.sh.in: New file, moved from lib/.
74795         * modules/javaexec (Files): Update.
74796         (configure.ac): Add AC_CONFIG_FILES invocation.
74797         (EXTRA_DIST): Remove javaexec.sh.in.
74798
74799         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74800         * modules/csharpcomp-script (Files): Update.
74801         (configure.ac): Add AC_CONFIG_FILES invocation.
74802         (EXTRA_DIST): Remove variable.
74803
74804         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74805         * modules/csharpexec (Files): Update.
74806         (configure.ac): Add AC_CONFIG_FILES invocation.
74807         (EXTRA_DIST): Remove csharpexec.sh.in.
74808
74809 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74810
74811         Sync from coreutils.
74812
74813         Add POSIX ACL support
74814         * lib/acl.h (copy_acl, set_acl): Add declarations.
74815         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74816         systems other than Linux.
74817         (chmod_or_fchmod): New function: use fchmod when possible,
74818         and chmod otherwise.
74819         (file_has_acl): Add a POSIX ACL implementation, with a
74820         Linux-specific subcase.
74821         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74822         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74823         acls are unsupported.
74824         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74825         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74826         are unsupported.
74827
74828 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74829
74830         Sync from coreutils.
74831         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74832
74833 2006-01-07  Bruno Haible  <bruno@clisp.org>
74834
74835         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74836         gl_EARLY.
74837
74838 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74839
74840         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74841         Problem reported for Mingw by Mark Junker.
74842
74843 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74844
74845         * README: Gnulib normally doesn't generate a tarball.
74846
74847 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74850         long int, not int, for nanosecond counts, so that people who are
74851         used to POSIX struct timespec won't be surprised.  Reported by Jim
74852         Meyering.
74853
74854 2005-12-28  Bruno Haible  <bruno@clisp.org>
74855
74856         * build-aux/config.rpath: Update from GNU gettext.
74857
74858 2005-12-16  Jim Meyering  <jim@meyering.net>
74859
74860         * modules/fprintftime: New module.
74861         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74862
74863 2005-12-16  Jim Meyering  <jim@meyering.net>
74864
74865         * m4/fprintftime.m4: New file.
74866
74867 2005-12-16  Jim Meyering  <jim@meyering.net>
74868
74869         * lib/fprintftime.c, lib/fprintftime.h: New files.
74870
74871 2005-12-15  Simon Josefsson  <jas@extundo.com>
74872
74873         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74874         new m4/socklen.m4.
74875
74876 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74877
74878         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74879         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74880
74881 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74882
74883         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74884         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74885         struct uparams is valid. Fall back to the default values if it is
74886         not.
74887
74888 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74889
74890         * modules/argp (Files): Add argp-pin.c
74891         (Depends-on): dirname
74892         (lib_SOURCES): Add argp-pin.c
74893
74894 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74895
74896         * m4/argp.m4:  Check if program_invocation_name and
74897         program_invocation_short_name are declared and define appropriate
74898         macros if they are not.
74899
74900 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74901
74902         * lib/argp-help.c (__argp_base_name): New function
74903         (__argp_short_program_name): Rewrite using __argp_base_name
74904         * lib/argp-namefrob.h: Define program_invocation_name and
74905         program_invocation_short_name if requested
74906         (__argp_base_name): Add prototype
74907         * lib/argp-parse.c (argp_def): Use gettext wrappers
74908         (argp_default_parser): Use __argp_base_name
74909         * lib/argp-pin.c: New file. Defines program_invocation_name and
74910         program_invocation_short_name on systems that lack them.
74911
74912 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74913
74914         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74915         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74916         porting problem reported by Georg Schwarz in
74917         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74918
74919 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74920
74921         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74922         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74923         porting problem reported by Georg Schwarz in
74924         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74925
74926 2005-12-05  Bruno Haible  <bruno@clisp.org>
74927
74928         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74929         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74930         Reported by Mark Junker <mjscod@gmx.de>.
74931
74932 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74933
74934         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74935         Use implementation from Albert Chin, with some
74936         comments/corrections by Stepan Kasal and myself.
74937
74938 2005-12-02  Bruno Haible  <bruno@clisp.org>
74939
74940         * gnulib-tool (func_import): Accept GPLed build tool modules when
74941         --lgpl is given.
74942         * modules/csharpcomp-script: New file.
74943         * modules/csharpcomp: Depend on it.
74944         * modules/javacomp-script: New file.
74945         * modules/javacomp: Depend on it.
74946         Suggested by Simon Josefsson.
74947
74948 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74949
74950         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74951         statement, to work around an HP-UX 10.20 compiler bug reported by
74952         Peter O'Gorman.
74953
74954 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         * modules/savedir (Depends-on): Add openat.
74957
74958 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74959
74960         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74961         (uintmax_t) [defined uintmax_t]: Do not declare.
74962         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74963         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74964         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74965         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74966         sake of portability to weird hosts that C allows (though we don't
74967         know of any practical examples).
74968
74969         * lib/savedir.h (fdsavedir): New decl.
74970         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74971         contains most of the former guts of savedir.
74972         (savedir): Use savedirstream.
74973         Include "openat.h".
74974
74975 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74976
74977         * modules/obstack (Files): Add m4/ulonglong.m4.
74978         Problem reported by Davide Angelocola.
74979
74980 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74983         coreutils no longer futzes with rounding modes.
74984
74985 2005-11-14  Jim Meyering  <jim@meyering.net>
74986
74987         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74988         replacement of mkstemp.
74989
74990 2005-11-10  Simon Josefsson  <jas@extundo.com>
74991
74992         * lib/readline.c: Remove EOL.
74993
74994 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74995
74996         * modules/gethrxtime (Depends-on): Add gettime.
74997
74998 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74999
75000         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
75001         or gettimeofday; no longer needed.
75002
75003 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75004
75005         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
75006         time business.
75007         (gethrxtime) [! (HAVE_NANOUPTIME
75008         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
75009         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
75010         our own approximation.
75011
75012 2005-11-08  Eric Blake  <ebb9@byu.net>
75013
75014         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75015
75016 2005-11-08  Eric Blake  <ebb9@byu.net>
75017
75018         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75019
75020 2005-11-04  Bruno Haible  <bruno@clisp.org>
75021
75022         * gnulib-tool: Implement --update mode.
75023
75024 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75025
75026         Fix porting problem reported by Theodoros V. Kalamatianos.
75027         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
75028         Don't assume that futimes failing means we must fail.
75029
75030 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75031
75032         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
75033         variables to suggest the intended function of the PATH_MAX check.
75034
75035 2005-10-30  Kean Johnston  <jkj@sco.com>
75036
75037         Trivial changes to support SCO systems.
75038         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
75039         as PATH_MAX.
75040         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75041         where __ptr is null when no I/O is pending.
75042
75043 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75044
75045         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75046         leave errno alone.  Problem reported by Dmitry V. Levin.
75047
75048 2005-10-28  Simon Josefsson  <jas@extundo.com>
75049
75050         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75051         Test more.
75052
75053         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75054
75055         * modules/md2, modules/md2-tests: New files.
75056
75057 2005-10-28  Simon Josefsson  <jas@extundo.com>
75058
75059         * m4/inet_ntop.m4: More tests.
75060
75061         * m4/gc-md2.m4, md2.m4: New file.
75062
75063 2005-10-28  Simon Josefsson  <jas@extundo.com>
75064
75065         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75066         "restrict" keywords, as per POSIX.  Protect the function
75067         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75068         Don't use K&R prototypes.  Check the sprintf return values.
75069         Re-define EAFNOSUPPORT if not present.  Indent.
75070
75071         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75072         suggested by Bruno Haible <bruno@clisp.org>.
75073
75074         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75075
75076         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75077
75078         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75079         libgcrypt).
75080
75081         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75082
75083         * lib/md2.h, lib/md2.c: New files.
75084
75085 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75086
75087         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75088         errno alone.  Problem reported by Frederic Jolliton.
75089
75090 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75091
75092         * modules/verify (License): Change from GPL to LGPL.  This is a
75093         tiny module and there are apparently near-equivalents that are
75094         under the BSD license.
75095
75096 2005-10-24  Simon Josefsson  <jas@extundo.com>
75097
75098         * modules/sha1: Relicense to LGPL.
75099
75100 2005-10-24  Simon Josefsson  <jas@extundo.com>
75101
75102         * lib/md4.h: Shrink buffer size, now that we changed the type.
75103
75104 2005-10-23  Simon Josefsson  <jas@extundo.com>
75105
75106         * gnulib-tool (func_import): Fix --tests-base.
75107
75108 2005-10-22  Simon Josefsson  <jas@extundo.com>
75109
75110         * modules/arcfour (Depends-on): Need stdint.
75111
75112 2005-10-22  Simon Josefsson  <jas@extundo.com>
75113
75114         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75115         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75116
75117 2005-10-22  Simon Josefsson  <jas@extundo.com>
75118
75119         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75120         suggested by Bruno Haible <bruno@clisp.org>.
75121
75122 2005-10-22  Simon Josefsson  <jas@extundo.com>
75123
75124         * lib/crc.h: Include stddef.h, for size_t.
75125
75126 2005-10-22  Simon Josefsson  <jas@extundo.com>
75127
75128         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75129         arcfour_context struct (simplify test vector testing in GNU
75130         Shishi).
75131
75132 2005-10-21  Simon Josefsson  <jas@extundo.com>
75133
75134         * modules/des, modules/des-tests: New files.
75135
75136         * modules/gc-des, modules/gc-des-tests: New files.
75137
75138         * tests/test-des.c, tests/test-gc-des.c: New file.
75139
75140 2005-10-21  Simon Josefsson  <jas@extundo.com>
75141
75142         * modules/arctwo, modules/arctwo-tests: New files.
75143
75144         * tests/test-arctwo.c: New file.
75145
75146         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75147
75148         * tests/test-gc-arctwo.c: New file.
75149
75150 2005-10-21  Simon Josefsson  <jas@extundo.com>
75151
75152         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75153         Bruno Haible <bruno@clisp.org>.
75154
75155         * m4/gc-des.m4: New file.
75156
75157 2005-10-21  Simon Josefsson  <jas@extundo.com>
75158
75159         * m4/arctwo.m4: New file.
75160
75161         * m4/gc-arctwo.m4: New file.
75162
75163 2005-10-21  Simon Josefsson  <jas@extundo.com>
75164
75165         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75166         block.
75167
75168 2005-10-21  Simon Josefsson  <jas@extundo.com>
75169
75170         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75171         <bruno@clisp.org>.
75172
75173         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75174
75175         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75176         Bruno Haible <bruno@clisp.org>.
75177
75178         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75179         <bruno@clisp.org>.
75180
75181 2005-10-21  Simon Josefsson  <jas@extundo.com>
75182
75183         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75184
75185 2005-10-21  Simon Josefsson  <jas@extundo.com>
75186
75187         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75188
75189 2005-10-21  Simon Josefsson  <jas@extundo.com>
75190
75191         * lib/des.h, lib/des.c: New files.
75192
75193         * lib/gc-gnulib.c: Support DES.c
75194
75195 2005-10-21  Simon Josefsson  <jas@extundo.com>
75196
75197         * lib/arctwo.h, lib/arctwo.c: New files.
75198
75199         * lib/gc-gnulib.c: Support ARCTWO.
75200
75201 2005-10-21  Simon Josefsson  <jas@extundo.com>
75202
75203         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75204         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75205
75206 2005-10-21  Simon Josefsson  <jas@extundo.com>
75207
75208         * gnulib-tool (func_import, func_create_testdir): Define automake
75209         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75210         Makefile.am snippet),
75211         suggested by Bruno Haible <bruno@clisp.org>.
75212
75213         * modules/gc (Makefile.am): Use it.
75214
75215 2005-10-21  Bruno Haible  <bruno@clisp.org>
75216
75217         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75218         patch.
75219
75220 2005-10-19  Simon Josefsson  <jas@extundo.com>
75221
75222         * tests/test-gc-rijndael.c: New file.
75223
75224         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75225
75226 2005-10-19  Simon Josefsson  <jas@extundo.com>
75227
75228         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75229         interface too.
75230
75231 2005-10-19  Simon Josefsson  <jas@extundo.com>
75232
75233         * tests/test-gc-arcfour.c: New file.
75234
75235         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75236
75237 2005-10-19  Simon Josefsson  <jas@extundo.com>
75238
75239         * modules/gc-md4, modules/gc-md4-tests: New file.
75240
75241         * tests/test-gc-md4.c: New file.
75242
75243 2005-10-19  Simon Josefsson  <jas@extundo.com>
75244
75245         * m4/gc-md4.m4: New file.
75246
75247 2005-10-19  Simon Josefsson  <jas@extundo.com>
75248
75249         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75250         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75251         <kasal@ucw.cz>.
75252
75253 2005-10-19  Simon Josefsson  <jas@extundo.com>
75254
75255         * m4/gc-arcfour.m4: New file.
75256
75257         * m4/gc-rijndael.m4: New file.
75258
75259 2005-10-19  Simon Josefsson  <jas@extundo.com>
75260
75261         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75262
75263 2005-10-19  Simon Josefsson  <jas@extundo.com>
75264
75265         * lib/gc-gnulib.c: Support ARCFOUR.
75266
75267 2005-10-19  Simon Josefsson  <jas@extundo.com>
75268
75269         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75270         support.
75271
75272         * lib/gc.h: Add ECB enum type.
75273
75274         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75275
75276 2005-10-18  Simon Josefsson  <jas@extundo.com>
75277
75278         * tests/test-md5.c: New file.
75279
75280         * modules/md5-tests: New file.
75281
75282 2005-10-18  Simon Josefsson  <jas@extundo.com>
75283
75284         * tests/test-md4.c: New file.
75285
75286         * modules/md4, modules/md4-tests: New files.
75287
75288 2005-10-18  Simon Josefsson  <jas@extundo.com>
75289
75290         * m4/md4.m4: New file.
75291
75292 2005-10-18  Simon Josefsson  <jas@extundo.com>
75293
75294         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75295
75296 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75297
75298         * gnulib-tool (func_create_testdir): Omit the second check whether
75299         BUILT_SOURCES in nonempty.
75300
75301 2005-10-17  Simon Josefsson  <jas@extundo.com>
75302
75303         * tests/test-rijndael.c: New file.
75304
75305 2005-10-17  Simon Josefsson  <jas@extundo.com>
75306
75307         * modules/sha1: Depend on stdint instead of md5.
75308
75309         * modules/md5: Depend on stdint, remove uint32_t.
75310
75311 2005-10-17  Simon Josefsson  <jas@extundo.com>
75312
75313         * modules/gc-sha1-tests: New file.
75314
75315         * tests/test-gc-sha1.c: New file.
75316
75317 2005-10-17  Simon Josefsson  <jas@extundo.com>
75318
75319         * m4/md5.m4: Remove call to uint32_t.m4.
75320
75321 2005-10-17  Simon Josefsson  <jas@extundo.com>
75322
75323         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75324
75325         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75326         md5.h.
75327
75328         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75329
75330         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75331
75332 2005-10-17  Simon Josefsson  <jas@extundo.com>
75333
75334         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75335
75336 2005-10-17  Simon Josefsson  <jas@extundo.com>
75337
75338         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75339
75340 2005-10-17  Simon Josefsson  <jas@extundo.com>
75341
75342         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75343
75344         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75345
75346 2005-10-17  Bruno Haible  <bruno@clisp.org>
75347
75348         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75349         that it can also be used in a test.
75350
75351 2005-10-16  Bruno Haible  <bruno@clisp.org>
75352
75353         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75354         TESTS_ENVIRONMENT, so that individual tests can augment it.
75355
75356         * gnulib-tool (func_create_testdir): Use an intermediate target for
75357         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75358         macros, like $(ALLOCA_H), which cannot be passed through the command
75359         line.
75360
75361 2005-10-15  Simon Josefsson  <jas@extundo.com>
75362
75363         * modules/rijndael-tests: New file.
75364
75365         * modules/rijndael: New file.
75366
75367 2005-10-15  Simon Josefsson  <jas@extundo.com>
75368
75369         * m4/rijndael.m4: New file.
75370
75371 2005-10-15  Simon Josefsson  <jas@extundo.com>
75372
75373         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75374
75375         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75376
75377 2005-10-14  Simon Josefsson  <jas@extundo.com>
75378
75379         * tests/test-arcfour.c: New file.
75380
75381         * modules/arcfour, modules/arcfour-tests: New files.
75382
75383 2005-10-14  Simon Josefsson  <jas@extundo.com>
75384
75385         * m4/arcfour.m4: New file.
75386
75387 2005-10-14  Simon Josefsson  <jas@extundo.com>
75388
75389         * lib/arcfour.h, lib/arcfour.c: New files.
75390
75391 2005-10-14  Roland McGrath  <roland@redhat.com>
75392
75393         Import from libc.  [BZ #1331]
75394         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75395         macro argument.
75396         Reported by Matej Vela <vela@debian.org>.
75397
75398 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75399
75400         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75401         include <wchar.h>; no longer needed.
75402
75403 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75404
75405         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75406
75407 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75408         and  Ulrich Drepper  <drepper@redhat.com>
75409
75410         Import from libc.
75411         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75412         instead of inline stream orientation test and two separate
75413         function calls.  Pay no attention to USE_IN_LIBIO.
75414
75415 2005-10-13  Simon Josefsson  <jas@extundo.com>
75416
75417         * modules/gc-hmac-md5-tests: New file.
75418
75419         * tests/test-gc-hmac-sha1.c: New file.
75420
75421         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75422
75423         * modules/gc-hmac-md5-tests: New file.
75424
75425         * tests/test-gc-md5.c: New file.
75426
75427         * modules/gc-md5-tests: New file.
75428
75429 2005-10-13  Simon Josefsson  <jas@extundo.com>
75430
75431         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75432         Move memory allocation outside of loop.
75433
75434 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75435
75436         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75437         intermediate directory is in a read-only file system.  Problem
75438         reported by Eric Blake.
75439
75440 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75441
75442         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75443
75444 2005-10-12  Simon Josefsson  <jas@extundo.com>
75445
75446         * tests/test-hmac-sha1.c: New file.
75447
75448         * modules/hmac-sha1-tests: New file.
75449
75450         * modules/hmac-sha1: New file.
75451
75452 2005-10-12  Simon Josefsson  <jas@extundo.com>
75453
75454         * modules/gc-sha1: New file.
75455
75456 2005-10-12  Simon Josefsson  <jas@extundo.com>
75457
75458         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75459
75460         * tests/test-gc-pbkdf2-sha1.c: New file.
75461
75462 2005-10-12  Simon Josefsson  <jas@extundo.com>
75463
75464         * modules/gc-md5, modules/gc-hmac-md5: New files.
75465
75466         * modules/gc (Files): Remove md5, memxor and hmac files.
75467
75468 2005-10-12  Simon Josefsson  <jas@extundo.com>
75469
75470         * m4/gc-pbkdf2-sha1.m4: New file.
75471
75472         * m4/gc-hmac-sha1.m4: New file.
75473
75474         * m4/gc-sha1: New file.
75475
75476         * m4/hmac-sha1.m4: New file.
75477
75478 2005-10-12  Simon Josefsson  <jas@extundo.com>
75479
75480         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75481
75482         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75483
75484 2005-10-12  Simon Josefsson  <jas@extundo.com>
75485
75486         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75487         suggested by Bruno Haible <bruno@clisp.org>.
75488
75489 2005-10-12  Simon Josefsson  <jas@extundo.com>
75490
75491         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75492
75493 2005-10-12  Simon Josefsson  <jas@extundo.com>
75494
75495         * lib/gc-pbkdf2-sha1.c: New file.
75496
75497         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75498
75499 2005-10-12  Simon Josefsson  <jas@extundo.com>
75500
75501         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75502
75503         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75504
75505 2005-10-12  Simon Josefsson  <jas@extundo.com>
75506
75507         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75508         GC_USE_HMAC_MD5, respectively.
75509
75510         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75511         (gc_md5): Fix typo.
75512
75513         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75514
75515         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75516
75517         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75518
75519 2005-10-12  Bruno Haible  <bruno@clisp.org>
75520
75521         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75522         Reported by Stepan Kasal <kasal@ucw.cz>.
75523
75524 2005-10-11  Simon Josefsson  <jas@extundo.com>
75525
75526         * tests/test-crc.c: New file.
75527
75528         * modules/crc, modules/crc-tests: New files.
75529
75530 2005-10-11  Simon Josefsson  <jas@extundo.com>
75531
75532         * m4/crc.m4: New file.
75533
75534 2005-10-11  Simon Josefsson  <jas@extundo.com>
75535
75536         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75537
75538         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75539
75540         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75541
75542 2005-10-11  Simon Josefsson  <jas@extundo.com>
75543
75544         * lib/crc.h, lib/crc.c: New files.
75545
75546         * lib/gc.h (gc_hash_buffer): Add doc.
75547
75548 2005-10-11  Bruno Haible  <bruno@clisp.org>
75549
75550         * modules/c-strcasestr: New file.
75551         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75552
75553 2005-10-11  Bruno Haible  <bruno@clisp.org>
75554
75555         * modules/c-strcase: New file.
75556         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75557
75558 2005-10-11  Bruno Haible  <bruno@clisp.org>
75559
75560         * lib/strcasecmp.c: Include limits.h.
75561         (strcasecmp): Avoid integer overflow on exotic platforms.
75562         * lib/strncasecmp.c: Include limits.h.
75563         (strncasecmp): Avoid integer overflow on exotic platforms.
75564         Reported by Paul Eggert.
75565
75566 2005-10-11  Bruno Haible  <bruno@clisp.org>
75567
75568         * lib/c-strcasestr.h: New file, from GNU gettext.
75569         * lib/c-strcasestr.c: New file, from GNU gettext.
75570
75571 2005-10-11  Bruno Haible  <bruno@clisp.org>
75572
75573         * lib/c-strcase.h: New file, from GNU gettext.
75574         * lib/c-strcasecmp.c: New file, from GNU gettext.
75575         * lib/c-strncasecmp.c: New file, from GNU gettext.
75576
75577 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75578
75579         * modules/mempcpy (License): GPL -> LGPL.
75580         * modules/strchrnul (License): Likewise.
75581         * modules/sysexits (License): Likewise.
75582
75583 2005-10-08  Simon Josefsson  <jas@extundo.com>
75584
75585         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75586
75587 2005-10-07  Simon Josefsson  <jas@extundo.com>
75588
75589         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75590
75591 2005-10-06  Simon Josefsson  <jas@extundo.com>
75592
75593         * tests/test-hmac-md5.c: New file.
75594
75595         * modules/hmac-md5-tests: New file.
75596
75597         * modules/hmac-md5: New file.
75598
75599 2005-10-06  Simon Josefsson  <jas@extundo.com>
75600
75601         * m4/hmac-md5.m4: New file.
75602
75603         * m4/memxor.m4: Require gl_C_RESTRICT.
75604
75605 2005-10-06  Simon Josefsson  <jas@extundo.com>
75606
75607         * lib/memxor.c (memxor): Avoid casts and warnings.
75608
75609 2005-10-06  Simon Josefsson  <jas@extundo.com>
75610
75611         * lib/hmac-md5.c: New file.
75612
75613         * lib/hmac.h: New file.
75614
75615 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75616
75617         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75618         promotes to int, not unsigned int, to catch the AIX 5.3
75619         compiler bug.
75620
75621 2005-10-05  Simon Josefsson  <jas@extundo.com>
75622
75623         * modules/memxor: New file.
75624
75625         * modules/iconv (Files): Move config.rpath to havelib, it is used
75626         there.
75627
75628         * modules/havelib (Files): Add config.rpath.
75629
75630 2005-10-05  Simon Josefsson  <jas@extundo.com>
75631
75632         * m4/memxor.m4: New file.
75633
75634 2005-10-05  Simon Josefsson  <jas@extundo.com>
75635
75636         * lib/memxor.c (memxor): Fix compiler error.
75637
75638         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75639         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75640
75641         * lib/memxor.h, lib/memxor.c: New files.
75642
75643         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75644         we assume all systems have it, suggested by Jim Meyering
75645         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75646         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75647         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75648         same reasons.
75649
75650 2005-10-05  Simon Josefsson  <jas@extundo.com>
75651
75652         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75653
75654 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75655
75656         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75657         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75658         needed, since the source code now assumes these .h files.
75659
75660 2005-10-05  Derek Price  <derek@ximbiot.com>
75661
75662         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75663
75664 2005-10-05  Bruno Haible  <bruno@clisp.org>
75665
75666         * modules/stdint (License): Change to LGPL.
75667
75668 2005-10-04  Simon Josefsson  <jas@extundo.com>
75669
75670         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75671         D. Baushke" <mdb@gnu.org>.
75672
75673 2005-10-04  Bruno Haible  <bruno@clisp.org>
75674
75675         * lib/verify.h (verify_true): Provide alternative definition for C++.
75676
75677 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75680         (SSIZE_MAX): New macro, if not already defined.
75681         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75682         than 2 GiB.
75683
75684 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         Sync from coreutils.
75687         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75688         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75689         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75690         ULLONG_MAX doesn't work with 2.7.2.1.
75691
75692 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75693
75694         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75695         From Ben Pfaff.
75696
75697         * modules/exclude (Depends-on): Depend on verify.
75698         * modules/strtoimax (Depends-on): Likewise.
75699         * modules/utimecmp (Depends-on): Likewise.
75700
75701 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75702
75703         * lib/exclude.c: Include verify.h.
75704         (verify): Remove.  All callers changed to use verify.h's version.
75705         * lib/strtoimax.c: Likewise.
75706         * lib/utimecmp.c: Likewis.e
75707
75708         Sync from coreutils.
75709         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75710         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75711         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75712         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75713         bother returning ENOSYS if settimeofday or stime fails; just let
75714         them return whatever errno they want to return.
75715         * lib/utimens.c: Include unistd.h, for dup2.
75716         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75717         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75718
75719 2005-10-02  Jim Meyering  <jim@meyering.net>
75720
75721         Sync from coreutils.
75722         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75723         from glibc-2.2.5 that fails for read-only files.
75724
75725 2005-10-02  Jim Meyering  <jim@meyering.net>
75726
75727         Sync from coreutils.
75728         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75729         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75730         `#if HAVE_CONFIG_H'.
75731         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75732         Remove AT_FDCWD test.
75733         Do not consume the fd unless successful.
75734         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75735         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75736         block, so that we don't even try to compile it if settimeofday is
75737         available.  This works around a compilation failure on OSF1 V5.1,
75738         due to stime requiring a `long int*' while tv_sec is `int'.
75739
75740 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75741
75742         Sync from coreutils.
75743         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75744         against `yes', rather than just testing for nonempty.
75745
75746 2005-10-01  Simon Josefsson  <jas@extundo.com>
75747
75748         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75749         and Darwin.
75750
75751         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75752         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75753         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75754         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75755         Check if struct addrinfo is declared.
75756
75757 2005-10-01  Simon Josefsson  <jas@extundo.com>
75758
75759         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75760         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75761         AI_* and EAI_* definitions.  Protect function declarations.
75762
75763 2005-10-01  Jim Meyering  <jim@meyering.net>
75764
75765         Sync from coreutils.
75766
75767         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75768         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75769         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75770         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75771         in the inet and nsl libraries.  Required on Solaris 5.7.
75772
75773 2005-10-01  Jim Meyering  <jim@meyering.net>
75774
75775         Sync from coreutils.
75776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75777         in the inet and nsl libraries.  Required on Solaris 5.7.
75778
75779 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75780
75781         * lib/getdelim.c (getdelim): Remove unused variables.
75782
75783 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75784
75785         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75786         so that the code works even with ancient cpp.  Portability problem
75787         with GCC 2.7.2.1 reported by Thomas M.Ott.
75788
75789 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75790
75791         * modules/regex (Depends-on): Add strcase.
75792
75793         * modules/gethostname (Licence): Change from GPL to LGPL, since
75794         gethostname.c is a trivial implementation of a standard library
75795         function.
75796         * modules/poll (License): Change from GPL to LGPL, since it's
75797         derived from LGPL code.
75798
75799 2005-09-27  Jim Meyering  <jim@meyering.net>
75800
75801         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75802         HAVE_CONFIG_H.
75803
75804         * lib/intprops.h (signed_type_or_expr__): Define.
75805         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75806         for unsigned types.
75807
75808 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         * lib/verify.h (verify_expr): Remove, replacing with:
75811         (verify_true): New macro that returns true instead of void.
75812         (verify_type__): Remove.
75813         (verify): Use verify_true rather than verify_type__.
75814
75815 2005-09-26  Bruno Haible  <bruno@clisp.org>
75816
75817         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75818         is necessary.
75819         (lib_SOURCES): Remove mbchar.c.
75820         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75821         (Files): Add m4/mbrtowc.m4.
75822         * modules/mbiter: Likewise.
75823         * modules/mbuiter: Likewise.
75824
75825 2005-09-26  Bruno Haible  <bruno@clisp.org>
75826
75827         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75828         compile mbchar.c if they are not both present.
75829         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75830         * m4/mbiter.m4 (gl_MBITER): Likewise.
75831         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75832         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75833         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75834
75835 2005-09-25  Jim Meyering  <jim@meyering.net>
75836
75837         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75838         also uses socklen_t.
75839
75840 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75841
75842         * lib/utimens.c (ENOSYS): Define if not already defined.
75843         (futimens): Support having a null PATH if the file descriptor
75844         is nonnegative.
75845
75846         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75847         Remove.
75848         (__attribute): Define to empty unless GCC 3.1 or later.
75849         This works around a core dump on OpenBSD 3.4, which has GCC
75850         2.95.3, which dumps core when given __attribute__(()).  It also
75851         simplifies other tests, since we really don't want to bother with
75852         worrying about which ancient version of GCC supported what.
75853         Original problem reported by Yoann Vandoorselaere, with part of
75854         the fix suggested by Derek Price.
75855
75856 2005-09-24  Jim Meyering  <jim@meyering.net>
75857
75858         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75859         so we can once again use a positive bitfield width of 1 -- now we
75860         don't have to explain why we were using a bitfield width of 2.
75861
75862 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75863
75864         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75865         and similarly for the other external symbols.  Problem reported
75866         by James Gallager.
75867
75868         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75869         bug reported by Jim Meyering.
75870
75871         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75872         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75873         not needed, since socklen is a prerequisite module.
75874
75875 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75876
75877         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75878         Problem reported by Eric Blake.
75879         (getaddrinfo): Initialize se so that it's not garbage.
75880         Redo internal storage allocation so that it doesn't make unportable
75881         assumptions about alignment.
75882         Fix a memory leak.
75883
75884         * lib/utimens.c (futimens): Use futimesat if available.
75885         Prefer it to futimes since it doesn't have the futimes bug.
75886
75887         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75888         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75889         Instead, declare a function that returns a pointer to an array,
75890         and use verify_type__ to declare the size of the array.
75891         Problem and germ of a solution reported by Bruno Haible.
75892         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75893         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75894
75895 2005-09-23  Jim Meyering  <jim@meyering.net>
75896
75897         Sync from coreutils.
75898         Correct build failure (socklen_t not defined) on at least
75899         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75900         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75901
75902 2005-09-23  Jim Meyering  <jim@meyering.net>
75903
75904         * modules/getaddrinfo (Depends-on): Add socklen.
75905
75906 2005-09-23  Bruno Haible  <bruno@clisp.org>
75907
75908         * tests/test-verify.c: New file.
75909
75910 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         Sync from coreutils.
75913
75914         * modules/argmatch (Depends-on): Add verify.
75915         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75916         unistd-safer.
75917         * modules/save-cwd (Depends-on): Likewise.
75918
75919         * modules/openat (Files): Add lib/openat-die.c.
75920         (Depends-on): Remove error, exitfail.
75921         Add dirname.
75922
75923         * modules/verify: New file.
75924         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75925         with "verify" module.
75926
75927 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         Sync from coreutils.
75930
75931         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75932         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75933         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75934         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75935         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75936         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75937         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75938         Don't bother checking for string.h, stdlib.h, unistd.h.
75939         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75940         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75941         module's job.
75942         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75943         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75944
75945         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75946         (gl_GETDATE): Use it.
75947
75948         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75949
75950 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75951
75952         Sync from coreutils.
75953
75954         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75955         stat-time.h.
75956         * lib/argmatch.h: Include verify.h
75957         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75958         (ARGMATCH_ASSERT): Remove; unused.
75959         * lib/canonicalize.c: Assume STDC_HEADERS.
75960         * lib/exclude.c: Include "strcase.h".
75961         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75962         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75963         and stdio-safer.h.
75964         (getusershell): Call fopen, not fopen_safer.
75965         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75966         Do not include unistd-safer.h.
75967         (save_cwd): Don't call fd_safer; no longer needed
75968         now that we include fcntl--.h.
75969
75970         * lib/getdate.y (relative_time): New type.
75971         (RELATIVE_TIME_0): New constant.
75972         (parser_control): Use relative_time instead of doing it ourselves.
75973         (%union): Add new relative_time rel member.
75974         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75975         Now typeless.
75976         (relunit, relunit_snumber): Now of type rel.
75977         (zone, rel, relunit, get_date): Adjust to above changes.
75978
75979         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75980         Do not include unistd-safer.h.
75981         (getloadavg): Don't call fd_safer; no longer needed
75982         now that we include fcntl--.h.
75983
75984         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75985         (make_dir_parents): Treat ENOSYS like EEXIST.
75986
75987         Improve quality of diagnostics on restore_cwd failure.
75988         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75989         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75990         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75991         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75992         each time through the loop.  Do not diagnose restore_cwd failure;
75993         that is the caller's job (and perhaps the caller does not care).
75994
75995         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75996         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75997         If the file already exists but is not a directory, don't bother
75998         to try to make its parents.
75999         Close potential file descriptor leak if we can't chdir("/") (!).
76000         Don't always return true if chdir($PWD) fails; return true only
76001         if the requested action was done successfully (except for the
76002         chdir($PWD)).
76003         Don't log final directory unless we actually made it.
76004         Refactor to avoid duplicate code to fix up permissions.
76005         Don't attempt to fix up parent permissions if chdir($PWD) fails.
76006
76007         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
76008         to make it a bit faster and (I hope) clearer.
76009         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
76010         Fix bug in formats like %2N.
76011
76012         * lib/verify.h: New file.
76013
76014 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76015
76016         Sync from coreutils.
76017         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
76018
76019 2005-09-22  Jim Meyering  <jim@meyering.net>
76020
76021         Sync from coreutils.
76022
76023         * m4/lstat.m4 (gl_FUNC_LSTAT):
76024         Use AC_LIBSOURCES to require lstat.c and lstat.h.
76025         Remove obsolete comment.
76026         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
76027         * m4/xstrtod.m4: Likewise.
76028
76029         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
76030
76031 2005-09-22  Jim Meyering  <jim@meyering.net>
76032
76033         Sync from coreutils.
76034
76035         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
76036
76037         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
76038         the .tm_year member, since otherwise gcc-4.0 would now warn about
76039         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76040
76041         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76042         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76043
76044         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76045         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76046         when run in a time zone for which daylight savings time is in effect
76047         for the starting date.
76048
76049         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76050         stop us from restricting permissions of just-created absolute-named
76051         directories.
76052         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76053         to restore initial working directory.
76054         * lib/mkdir-p.c (make_dir_parents): New parameter:
76055         different_working_dir, to tell caller if/when we change the working
76056         directory and are unable to return to the initial one.
76057         * lib/mkdir-p.h (make_dir_parents): Update prototype.
76058         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
76059         `return false'.  This fixes a bug introduced on 2004-07-30.
76060
76061         * lib/openat.c (fdopendir): Be sure to close the supplied
76062         file descriptor before returning.  This makes our replacement
76063         implementation a little closer to Solaris's, where fdopendir
76064         ties the file descriptor to the returned DIR* pointer.
76065         * lib/openat.c (unlinkat): New function.
76066         * lib/openat.h (unlinkat): Add prototype.
76067         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76068         (openat_restore_fail): Rename from openat_restore_die.
76069         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76070
76071         Provide an alternative to exiting immediately upon save_cwd or
76072         restore_cwd failure.  Now, an application can arrange e.g.,
76073         to perform a longjump in that case.
76074         * lib/openat.c: Include dirname.h.
76075         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76076         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76077         and openat_restore_die rather than calling error directly.
76078         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76079
76080         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76081         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76082         define.
76083
76084         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76085         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76086                             int utc, int nanoseconds);
76087         Background:
76088         date should not have to allocate a megabyte of virtual memory to
76089         handle a format argument like +%1048575T.  When implemented with
76090         strftime, it must allocate such a buffer, use strftime to fill it
76091         in, print it, then free it.
76092         With fprintftime, it simply prints everything and exits.
76093         With no need for memory allocation, that's one fewer way to fail.
76094         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76095         optional field width, not before, so we accept %9:z, not %:9z.
76096         (my_strftime): Be sure to use L_('x') for literals.
76097
76098         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76099         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76100         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76101         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76102         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76103         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76104         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76105         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76106         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76107         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76108         * lib/xgethostname.c, lib/xreadlink.c:
76109         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76110
76111         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76112         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76113         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76114         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76115         and don't include <sys/file.h>).
76116
76117 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76118
76119         Sync from coreutils.
76120
76121         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76122         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76123         [!LDAV_DONE]: Avoid unused variable warning.
76124
76125 2005-09-21  Bruno Haible  <bruno@clisp.org>
76126
76127         * lib/unicodeio.h (unicode_to_mb): New declaration.
76128
76129 2005-09-20  Derek Price  <derek@ximbiot.com>
76130
76131         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76132         getaddrinfo.h.
76133
76134 2005-09-20  Bruno Haible  <bruno@clisp.org>
76135
76136         * gnulib-tool: Remove trailing slashes from the values specified for
76137         --source-base, --m4-base, --tests-base, --aux-dir.
76138         Suggested by Simon Josefsson <jas@extundo.com>.
76139
76140 2005-09-20  Bruno Haible  <bruno@clisp.org>
76141
76142         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76143         func_modules_to_filelist, func_import, func_create_testdir): Make all
76144         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76145         change when gnulib-tool is invoked in a different locale.
76146
76147 2005-09-19  Simon Josefsson  <jas@extundo.com>
76148
76149         * m4/socklen.m4: Fix typo.
76150
76151 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76152
76153         Use a consistent style for including <config.h>.
76154         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76155         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76156         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76157         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76158         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76159         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76160         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76161         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76162         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76163         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76164         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76165         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76166         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76167         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76168         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76169         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76170         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76171         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76172         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76173         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76174         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76175         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76176         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76177         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76178         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76179         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76180         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76181         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76182         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76183         lib/xstrtoumax.c, lib/yesno.c:
76184         Standardize inclusion of config.h.
76185         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76186         lib/inttostr.h:  Removed inclusion of config.h from header files.
76187         * lib/inttostr.c:  Adjusted in-tree users.
76188         * lib/timespec.h: Remove superfluous warning to include config.h.
76189         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76190         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76191         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76192         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76193         config.h with HAVE_CONFIG_H.
76194
76195 2005-09-19  Jim Meyering  <jim@meyering.net>
76196
76197         * modules/pathmax (License): Change to LGPL.
76198
76199 2005-09-19  Derek Price  <derek@ximbiot.com>
76200
76201         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76202
76203 2005-09-19  Bruno Haible  <bruno@clisp.org>
76204
76205         * gnulib-tool (import): Provide default for --tests-base.
76206
76207 2005-09-19  Bruno Haible  <bruno@clisp.org>
76208
76209         * doc/quote.texi: New file, extracted from gnulib.texi.
76210         * doc/ctime.texi: New file, extracted from gnulib.texi.
76211         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76212         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76213         * doc/gnulib.texi: Include them.
76214
76215 2005-09-18  Bruno Haible  <bruno@clisp.org>
76216
76217         Portability fix.
76218         * gnulib-tool (func_readlink): New function.
76219         (func_ln_if_changed): Use it.
76220
76221 2005-09-18  Bruno Haible  <bruno@clisp.org>
76222
76223         * gnulib-tool: Support --with-tests also with --import.
76224         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76225         (func_import): Use variables $testsbase and $inctests. Emit a
76226         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76227         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76228         SUBDIRS += $testsdir.
76229         (func_create_testdir): Update.
76230
76231 2005-09-18  Bruno Haible  <bruno@clisp.org>
76232
76233         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76234         instead of $dry_run.
76235         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76236         (func_ln_if_changed): Don't handle dry-run here.
76237         (func_import): In dry-run mode, detect more precisely which actions
76238         would be performed, and don't use "...ing" verbs.
76239
76240 2005-09-18  Bruno Haible  <bruno@clisp.org>
76241
76242         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76243         (func_import): Use join on two temporary files instead of three nested
76244         loops, in order to determine which files are new or old.
76245
76246 2005-09-18  Bruno Haible  <bruno@clisp.org>
76247
76248         * gnulib-tool (func_import): Comment out code that spits out the
76249         new files with --dry-run.
76250
76251 2005-09-18  Bruno Haible  <bruno@clisp.org>
76252
76253         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76254
76255 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76256
76257         * lib/stat-time.h: New file.
76258         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76259         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76260         in a different way.
76261         (timespec_cmp): New function.
76262         * lib/utimecmp.c: Include stat-time.h.
76263         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76264         members exist, not on the obsolescent ST_MTIM_NSEC.
76265         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76266
76267 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76268
76269         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76270
76271 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76272
76273         * MODULES.html.sh (File system functions): Add stat-time.
76274         * modules/stat-time: New file.
76275         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76276         is now done in a different way, by the stat-time module.
76277         * modules/utimecmp (Depends-on): Add stat-time.
76278
76279 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76280
76281         * m4/st_mtim.m4: Remove.  Superseded by...
76282         * m4/stat-time.m4: New file.
76283         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76284         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76285
76286 2005-09-15  Derek Price  <derek@ximbiot.com>
76287
76288         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76289
76290 2005-09-15  Derek Price  <derek@ximbiot.com>
76291
76292         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76293         * lib/regex_internal.c: Ditto, using this...
76294         (__GNUC_PREREQ): ...new macro.
76295         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76296         using...
76297         (__GNUC_PREREQ): ...this new macro.
76298
76299         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76300
76301 2005-09-15  Derek Price  <derek@ximbiot.com>
76302             Paul Eggert  <eggert@cs.ucla.edu>
76303
76304         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76305         changes, consolidating in...
76306         * lib/regex_internal.h: ...this file.
76307
76308 2005-09-13  Jim Meyering  <jim@meyering.net>
76309
76310         * lib/canon-host.c: Filter through gnu indent and reword comments
76311         slightly.
76312         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76313
76314 2005-09-13  Derek Price  <derek@ximbiot.com>
76315
76316         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76317         failure.
76318         Reported by Jim Meyering  <jim@meyering.net>.
76319
76320 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76321
76322         * lib/base64.c: Typo.
76323         (base64_encode): Put b64str in initialized data section.
76324
76325 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76326
76327         Merge glibc and coreutils changes into gnulib, plus a few
76328         extra fixes.
76329         * lib/md5.c: Use #error rather than a string.
76330         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76331         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76332         (__attribute__): Define to empty for non recent-GCC.
76333         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76334         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76335         Renamed from their non-__ counterparts, with new macros replacing
76336         them if not _LIBC.  Add __THROW attribute.
76337         (rol): Remove.
76338         (struct md5_ctx): Align buffer if using GCC.
76339         * lib/sha1.h (struct sha1_ctx): Likewise.
76340         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76341         The old name was backwards.
76342         (NOTSWAP): Remove; not used.
76343         (rol): New macro, moved here from md5.h.
76344         (sha1_process_block): Remove a FIXME that doesn't make sense.
76345
76346 2005-09-12  Derek Price  <derek@ximbiot.com>
76347
76348         Return usable errors from canon-host.
76349         * lib/canon-host.h: New file.
76350         * lib/canon-host.c (canon_host): Wrap...
76351         (canon_host_r): ...this new function, which now relies exclusively on
76352         getaddrinfo.
76353         (ch_strerror): New function.
76354         (last_cherror): New global.
76355         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76356         interface.
76357         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76358         void *.
76359         (freeaddrinfo): Free ai->ai_canonname when set.
76360
76361 2005-09-12  Derek Price  <derek@ximbiot.com>
76362
76363         Make canon-host require getaddrinfo.
76364         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76365         AC_LIBSOURCE canon-host.h.  Call...
76366         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76367         gl_GETADDRINFO.
76368         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76369
76370 2005-09-12  Derek Price  <derek@ximbiot.com>
76371
76372         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76373         LGPL.
76374         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76375
76376 2005-09-12  Derek Price  <derek@ximbiot.com>
76377
76378         * lib/gai_strerror.c: Include config.h when available.  Include
76379         getaddrinfo.h before other headers to test interface.
76380         Reported by Larry Jones <lawrence.jones@ugs.com>.
76381
76382 2005-09-12  Derek Price  <derek@ximbiot.com>
76383             Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * modules/glob (Files): Add glob-libc.h.
76386
76387 2005-09-12  Derek Price  <derek@ximbiot.com>
76388             Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76391         glob_.h, glob-libc.h.
76392         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76393
76394 2005-09-12  Derek Price  <derek@ximbiot.com>
76395             Paul Eggert  <eggert@cs.ucla.edu>
76396
76397         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76398         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76399         protecting things that should be done only in gnulib contexts.
76400         * lib/glob_.h: New file, containing only the glob things needed for
76401         gnulib.
76402         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76403         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76404         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76405         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76406         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76407         and to respect the namespace rules better.
76408
76409 2005-09-08  Simon Josefsson  <jas@extundo.com>
76410
76411         * modules/socklen: New file.
76412
76413 2005-09-08  Simon Josefsson  <jas@extundo.com>
76414
76415         * m4/socklen.m4: New file.
76416
76417 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76418
76419         * modules/utimens (Files): Add m4/utimbuf.m4, since
76420         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76421         Reported by Sergey Poznyakoff.
76422
76423 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76424
76425         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76426         definitions, since that's the preferred style in glibc.
76427         Fix a minor spacing issue, and update copyright notice to match
76428         glibc's.
76429
76430 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76431
76432         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76433
76434 2005-09-06  Simon Josefsson  <jas@extundo.com>
76435
76436         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76437         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76438
76439 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76440
76441         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76442         warning.
76443
76444 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76445
76446         * config/srclist.txt: Add glibc bug 1302.
76447
76448 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76449
76450         Change bitset word type from unsigned int to unsigned long int,
76451         as this has better performance on typical 64-bit hosts.
76452         Port bitset code to hosts with unusual word sizes.
76453         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76454         (build_collating_symbol):
76455         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76456         argument is a bitset.  This is merely a style issue, but it makes
76457         it clearer that an entire array is expected.
76458         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76459         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76460         Port to the case where bitset_word is not the same as unsigned int.
76461         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76462         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76463         Likewise.
76464         * lib/regexec.c (check_dst_limits_calc_pos_1,
76465         check_subexp_matching_top):
76466         (build_trtable, group_nodes_into_DFAstates):
76467         Likewise.
76468         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76469         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76470         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76471         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76472         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76473         * lib/regcomp.c (optimize_subexps, lower_subexp):
76474         Work even if bitset_word has holes in its bitwise representation.
76475         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76476         * lib/regexec.c (check_dst_limits_calc_pos_1,
76477         check_subexp_matching_top):
76478         Likewise.
76479         * lib/regex_internal.c (re_string_reconstruct):
76480         Don't assume UCHAR_MAX == 255.
76481         * lib/regex_internal.h (bitset_set_all): Likewise.
76482         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76483         All uses changed.
76484         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76485         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76486         All uses changed.
76487         (BITSET_WORD_MAX): New macro.
76488         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76489         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76490         (bitset_empty, bitset_copy):
76491         Prefer sizeof (bitset) to multiplying it out ourselves.
76492         (bitset_not_merge): Remove; unused.
76493         (bitset_contain): Return bool, not unsigned int with one bit on.
76494         All callers changed.
76495         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76496         alignment than re_node_set; do this by defining a new internal
76497         type struct dests_alloc and using it to allocate memory.
76498
76499 2005-09-05  Bruno Haible  <bruno@clisp.org>
76500
76501         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76502         links.
76503
76504 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76505
76506         * modules/size_max (Makefile.am): Add size_max.h
76507
76508 2005-09-04  Derek Price  <derek@ximbiot.com>
76509
76510         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76511
76512 2005-09-03  Simon Josefsson  <jas@extundo.com>
76513
76514         * gnulib-tool: Fix typo.
76515
76516 2005-09-03  Simon Josefsson  <jas@extundo.com>
76517
76518         * config/srclist.txt: Add glibc bug 1293.
76519
76520 2005-09-03  Derek Price  <derek@ximbiot.com>
76521
76522         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76523         From Larry Jones <lawrence.jones@ugs.com>.
76524
76525 2005-09-02  Simon Josefsson  <jas@extundo.com>
76526
76527         * modules/socklen: New file.
76528
76529 2005-09-02  Simon Josefsson  <jas@extundo.com>
76530
76531         * modules/havelib: New module.
76532
76533         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76534         Use havelib.
76535
76536 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76537
76538         Check for arithmetic overflow when calculating sizes, to prevent
76539         some buffer-overflow issues.  These patches are conservative, in the
76540         sense that when I couldn't determine whether an overflow was possible,
76541         I inserted a run-time check.
76542         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76543         macros.
76544         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76545         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76546         (re_xnrealloc, re_x2nrealloc): New inline functions.
76547         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76548         parse_bracket_exp):
76549         (build_equiv_class, build_charclass): Check for arithmetic overflow
76550         in size expression calculations.
76551         * lib/regex_internal.c (re_string_realloc_buffers):
76552         (build_wcs_upper_buffer, re_node_set_add_intersect):
76553         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76554         (re_dfa_add_node, register_state): Likewise.
76555         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76556         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76557         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76558         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76559
76560 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76561
76562         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76563         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76564
76565 2005-09-02  Bruno Haible  <bruno@clisp.org>
76566
76567         Support for lib vs. lib64 distinction on biarch platforms.
76568         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76569         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76570         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76571
76572 2005-09-02  Bruno Haible  <bruno@clisp.org>
76573
76574         * gnulib-tool (import): In the other first-use case, provide defaults
76575         as well.
76576
76577 2005-09-02  Bruno Haible  <bruno@clisp.org>
76578
76579         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76580         patches not yet found in the latest gettext release.
76581
76582 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76583
76584         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76585         to avoid a collision with bits/local_lim.h in glibc.
76586         All uses changed.  Problem reported by Dmitry V. Levin in
76587         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76588
76589         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76590         bugs in int versus size_t comparisons.
76591         (re_string_context_at): Fix bug where the code assumed that
76592         Idx is signed.
76593
76594         Use bool where appropriate.
76595         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76596         All callers changed.
76597         (calc_eclosure_iter): Likewise, for ROOT arg.
76598         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76599         (build_charclass_op): Likewise, for NON_MATCH arg.
76600         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76601         (re_string_construct_common): Likewise, for ICASE arg.
76602         * lib/regexec.c (re_search_2_stub, re_search_stub):
76603         Likewise, for RET_LEN arg.
76604         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76605         (set_regs): Likewise, for FL_BACKTRACK arg.
76606         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76607         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76608         (calc_eclosure_iter, parse_bracket_exp):
76609         Use bool for internal variables that are booleans.
76610         * lib/regexec.c (re_search_internal, check_matching,
76611         proceed_next_node):
76612         (set_regs, build_sifted_states, sift_states_bkref):
76613         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76614         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76615         (find_collation_sequence_value):
76616         Likewise.
76617         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76618         (re_node_set_compare):
76619         Return bool, not int. All callers changed.
76620         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76621         (build_trtable, check_node_accept): Likewise.
76622         * lib/regex_internal.h: Include stdbool.h.
76623
76624         Fix bugs uncovered when converting to bool.
76625         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76626         failure instead of charging ahead blindly.
76627         * lib/regex_internal.c (register_state): Likewise.
76628         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76629         for freeing internal storage.
76630         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76631         bitset pieces used as boolean, to avoid undefined behavior
76632         on hosts that do int overflow checking.
76633
76634 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76635
76636         * config/srclist.txt: Add glibc bugs 1285-1287.
76637
76638 2005-09-01  Jim Meyering  <jim@meyering.net>
76639
76640         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76641         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76642         Require gl_STAT_MACROS, too.
76643
76644 2005-09-01  Bruno Haible  <bruno@clisp.org>
76645
76646         * gnulib-tool (import): In the first-use case, provide defaults.
76647
76648 2005-09-01  Bruno Haible  <bruno@clisp.org>
76649
76650         * gnulib-tool (func_import): Remove the .tmp files.
76651
76652 2005-09-01  Bruno Haible  <bruno@clisp.org>
76653
76654         * gnulib-tool (func_import): Fix handling of symbolic links.
76655
76656 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76657
76658         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76659         old glibc regex code mishandles strings longer than 2**31 bytes.
76660         This patch fixes this when the regex code is used in gnulib
76661         (i.e., outside glibc).
76662
76663         This patch should not affect the use of the regex code inside
76664         glibc.  No doubt this problem also needs to be handled for glibc
76665         as well, but the result will be an incompatible change to the
76666         glibc ABI, and the old ABI will have to be supported too.  That
76667         can be the the subject for another patch.
76668
76669         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76670         governing whether the rest of this patch is active.  By default,
76671         the macro is disabled and the patch has no effect.
76672         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76673         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76674         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76675         (re_match_2, re_set_registers): Use the new types.
76676         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76677         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76678         New macros.
76679         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76680         (re_string_context_at, bin_tree_t, re_dfastate_t):
76681         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76682         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76683         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76684         (re_string_char_size_at, re_string_wchar_at):
76685         (re_string_elem_size_at):
76686         Use the new types and macros to port to 64-bit hosts.
76687         Use unsigned types for internal values, so that the code
76688         mostly works even for arrays larger than SSIZE_MAX.
76689         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76690         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76691         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76692         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76693         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76694         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76695         (calc_inveclosure, parse_dup_op, build_range_exp):
76696         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76697         (fetch_number, create_token_tree, mark_opt_subexp):
76698         Likewise.
76699         * lib/regex_internal.c (re_string_construct_common,
76700         create_ci_newstate):
76701         (create_cd_newstate, re_string_allocate, re_string_construct):
76702         (re_string_realloc_buffers, build_wcs_upper_buffer):
76703         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76704         (re_string_reconstruct, re_string_peek_byte_case):
76705         (re_string_fetch_byte_case, re_string_context_at):
76706         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76707         (re_node_set_init_copy, re_node_set_add_intersect):
76708         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76709         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76710         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76711         (re_acquire_state, re_acquire_state_context, register_state):
76712         Likewise.
76713         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76714         search_cur_bkref_entry):
76715         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76716         (re_search_internal, re_search_2_stub, re_search_stub)
76717         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76718         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76719         (update_cur_sifted_state, check_dst_limits):
76720         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76721         (check_subexp_limits, sift_states_bkref, merge_state_array):
76722         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76723         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76724         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76725         (expand_bkref_cache, check_node_accept_bytes):
76726         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76727         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76728         (acquire_init_state_context, check_halt_node_context):
76729         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76730         (sift_states_backward, clean_state_log_if_needed):
76731         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76732         (find_recover_state, transit_state_sb, transit_state_mb):
76733         (transit_state_bkref, build_trtable, match_ctx_clean):
76734         Likewise.
76735         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76736         to work around an assumption that REG_MISSING is negative.
76737
76738         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76739         (seek_collating_symbol_entry) [defined _LIBC]:
76740         (lookup_collation_sequence_value) [defined _LIBC]:
76741         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76742         Use prototypes rather than old-style function definitions.
76743         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76744         (transit_state_sb) [0]:
76745         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76746
76747         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76748         rm_eo.
76749
76750         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76751         (optimize_subexps, lower_subexp):
76752         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76753         since the signed shift might overflow.  Use 1u<<31 instead.
76754         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76755         Likewise.
76756         * lib/regexec.c (check_dst_limits_calc_pos_1,
76757         check_subexp_matching_top): Likewise.
76758
76759         * lib/regcomp.c (optimize_subexps, lower_subexp):
76760         Use CHAR_BIT rather than 8, for clarity.
76761         * lib/regexec.c (check_dst_limits_calc_pos_1):
76762         (check_subexp_matching_top): Likewise.
76763         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76764         have to worry about portability issues when shifting it left.
76765         Remove no-longer-needed test for table_size > 0.
76766         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76767         in a word, as the resulting behavior is undefined.
76768         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76769         in one case, a <= should have been an <, and in another case the
76770         whole test was missing.
76771         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76772         the standard name CHAR_BIT.
76773         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76774         this is not true on one's complement and signed-magnitude hosts.
76775
76776         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76777         next_last_offset.
76778         (struct re_dfa_t): Remove unused member states_alloc.
76779         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76780
76781 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76782
76783         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76784         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76785         and large-file glibc and in 32-bit large-file Solaris.
76786
76787 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76788
76789         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76790         lengths fit in regoff_t; this isn't true if regoff_t is the same
76791         width as size_t.
76792         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76793         (= START + RANGE) instead of RANGE.  This avoids overflow
76794         problems when regoff_t is the same width as size_t.
76795         All callers changed.
76796         (re_search_2_stub): Check for overflow when adding the
76797         sizes of the two strings.
76798         (re_search_stub): Check for overflow when adding START
76799         to RANGE; if it occurs, substitute the extreme value.
76800
76801 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76802
76803         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76804
76805 2005-08-31  Jim Meyering  <jim@meyering.net>
76806
76807         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76808         a pointer-to-const.
76809         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76810         (register_state): Likewise.
76811         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76812         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76813         (group_nodes_into_DFAstates): Likewise.
76814
76815 2005-08-31  Jim Meyering  <jim@meyering.net>
76816
76817         * check-module: Add a FIXME comment.
76818
76819 2005-08-31  Eric Blake  <ebb9@byu.net>
76820
76821         * modules/unistd-safer (Files): Add unistd--.h.
76822         * modules/stdio-safer (Files): Add stdio--.h.
76823
76824 2005-08-31  Derek Price  <derek@ximbiot.com>
76825
76826         * lib/getdelim.c (getdelim): Return EOF on EOF.
76827         Reported by Larry Jones <lawrence.jones@ugs.com>.
76828
76829 2005-08-31  Bruno Haible  <bruno@clisp.org>
76830
76831         Avoid unnecessary diffs in the generated lib/Makefile.am.
76832         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76833         the generated files.
76834         (func_import): Don't set cmd.
76835
76836 2005-08-31  Bruno Haible  <bruno@clisp.org>
76837
76838         * lib/strstr.c: Include <stddef.h>, for NULL.
76839         * lib/strcasestr.c: Likewise.
76840         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76841
76842 2005-08-31  Bruno Haible  <bruno@clisp.org>
76843
76844         * gnulib-tool: New option --macro-prefix.
76845         (func_import): Use macro_prefix.
76846         (import): Handle option --macro-prefix.
76847
76848 2005-08-31  Bruno Haible  <bruno@clisp.org>
76849
76850         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76851         Also use new variables cached_lgpl, cached_libtool.
76852
76853 2005-08-31  Bruno Haible  <bruno@clisp.org>
76854
76855         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76856         always instantiating them.
76857
76858 2005-08-31  Bruno Haible  <bruno@clisp.org>
76859
76860         * gnulib-tool (func_import): Read the previous cached settings
76861         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76862         earlier added by gnulib but are now dropped. Warn when a gnulib file
76863         overwrites a non-gnulib file.
76864
76865 2005-08-31  Bruno Haible  <bruno@clisp.org>
76866
76867         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76868         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76869         projects that don't keep autogenerated files in CVS. Put into
76870         actioncmd only the specified modules, not the transitive closure.
76871
76872 2005-08-31  Bruno Haible  <bruno@clisp.org>
76873
76874         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76875         Create directories that shall be filled.
76876         (import): Don't look for gl_* macros in configure.ac. Recurse across
76877         all directories containing a gnulib-cache.m4 files, if meaningful.
76878
76879 2005-08-31  Bruno Haible  <bruno@clisp.org>
76880
76881         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76882         (import): Set seen_libtool when we see gl_LIBTOOL.
76883
76884 2005-08-31  Bruno Haible  <bruno@clisp.org>
76885
76886         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76887         declaration macro definitions from generated gnulib.m4.
76888
76889 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76890
76891         * lib/iconvme.h: Add prototype for iconv_alloc.
76892
76893 2005-08-29  Simon Josefsson  <jas@extundo.com>
76894
76895         * lib/iconvme.c: Fix errno.
76896
76897 2005-08-29  Bruno Haible  <bruno@clisp.org>
76898
76899         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76900         that it works when the directory contains spaces.
76901
76902 2005-08-29  Bruno Haible  <bruno@clisp.org>
76903
76904         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76905
76906 2005-08-29  Bruno Haible  <bruno@clisp.org>
76907
76908         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76909         Emit more advice.
76910
76911 2005-08-29  Bruno Haible  <bruno@clisp.org>
76912         and Stepan Kasal  <kasal@ucw.cz>
76913
76914         * check-module: If more parameters are given, check each of them
76915         separately; add more exceptions, as noted by Jim Meyering.
76916         (check_module): New procedure.
76917         (%exempt_header): Now contains all exceptions.
76918
76919 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76920
76921         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76922
76923 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76924
76925         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76926
76927 2005-08-28  Bruno Haible  <bruno@clisp.org>
76928
76929         * m4/gnulib-tool.m4: New file.
76930
76931 2005-08-27  Jim Meyering  <jim@meyering.net>
76932
76933         * modules/unistd-safer (Files): Add pipe-safer.c.
76934         * modules/fcntl-safer (Files): Add creat-safer.c.
76935
76936 2005-08-27  Jim Meyering  <jim@meyering.net>
76937
76938         * m4/stdlib-safer.m4: New file.  From coreutils.
76939         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76940         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76941         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76942         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76943         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76944
76945 2005-08-27  Jim Meyering  <jim@meyering.net>
76946
76947         * lib/fopen-safer.c: Merge minor changes from coreutils.
76948         * lib/dup-safer.c: Likewise.
76949         * lib/fd-safer.c: Likewise.
76950
76951         Merge from coreutils.
76952         * lib/stdio--.h: New file.
76953         * lib/stdlib--.h: New file.
76954         * lib/mkstemp-safer.c: New file.
76955
76956         GNU tar needs these.
76957         * lib/pipe-safer.c: New file.
76958         * lib/creat-safer.c: New file.
76959         * lib/fcntl--.h (creat): Define to creat_safer.
76960         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76961         * lib/unistd--.h (pipe): Define to pipe_safer.
76962         * lib/unistd-safer.h: Declare pipe_safer.
76963
76964 2005-08-26  Simon Josefsson  <jas@extundo.com>
76965
76966         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76967         Haible <bruno@clisp.org>.
76968
76969 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76970
76971         * lib/regex_internal.h: Remove all references to
76972         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76973         or better.
76974         (bitset_not, bitset_merge, bitset_not_merge):
76975         (bitset_mask, re_string_allocate, re_string_construct):
76976         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76977         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76978         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76979         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76980         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76981         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76982         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76983         (re_acquire_state_context):
76984         Remove unnecessary forward decls.
76985         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76986         Put __attribute at function definition,
76987         now that the function decl has been removed.
76988         * lib/regex_internal.c (re_string_peek_byte_case):
76989         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76990         Likewise.
76991
76992 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76993
76994         * m4/regex.m4: Add AC_PREREQ(2.50).
76995         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76996
76997 2005-08-25  Simon Josefsson  <jas@extundo.com>
76998
76999         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
77000         __fsetlocking.
77001
77002 2005-08-25  Simon Josefsson  <jas@extundo.com>
77003
77004         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
77005         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
77006         GLIBC specific code.
77007
77008 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77009
77010         Make regex safe for g++.  This fixes one real bug (an "err"
77011         that should have been "*err").  g++ problem reported by
77012         Sam Steingold.
77013         * lib/regex_internal.h (re_calloc): New macro, consistent with
77014         re_malloc etc.  All callers of calloc changed to use re_calloc.
77015         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
77016         not int.  All callers changed.
77017         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
77018         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
77019         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
77020         (find_recover_state): Change "err" to "*err"; this fixes what
77021         appears to be a real bug.
77022         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
77023         versus int.
77024
77025 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         * modules/regex (Depends-on): Add malloc, since the code
77028         assumes that !malloc(0) means failure.
77029
77030 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
77033
77034         alloca modernization/simplification for regex.
77035         * lib/regex.c: Remove portability cruft for alloca.  This no longer
77036         needs to be at the start of the file, and can be moved into
77037         regex_internal.h and simplified.
77038         * lib/regex_internal.h: Include <alloca.h>.
77039         (__libc_use_alloca) [!defined _LIBC]: New macro.
77040         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77041         now works outside glibc.
77042
77043 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77044
77045         * config/srclist.txt: Add glibc bugs 1241, 1245.
77046
77047 2005-08-25  Jim Meyering  <jim@meyering.net>
77048
77049         * lib/open-safer.c: Include <config.h>.
77050         Otherwise, we'd lose LARGEFILE support in any file using
77051         e.g. "fcntl--.h"
77052
77053 2005-08-25  Bruno Haible  <bruno@clisp.org>
77054
77055         * m4/minmax.m4: Require autoconf 2.52.
77056         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77057         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
77058         alternatives of translit over the alphabet.
77059         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
77060
77061 2005-08-24  Simon Josefsson  <jas@extundo.com>
77062
77063         * tests/test-getpass.c: New file.
77064
77065 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77066
77067         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77068         for GNU regex features.
77069
77070 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77071
77072         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77073         * lib/regex.h (regerror): Likewise.
77074
77075         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77076         requires this.  (The code never needed it.)
77077
77078         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77079         All uses of recently-renamed identifiers changed to use the new,
77080         POSIX-compliant names.  The code will build and run just fine
77081         without these changes, but it's better to eat our own dog food
77082         and use the standard-conforming names.
77083
77084         * lib/regex.h: Fix a multitude of POSIX name space violations.
77085         These changes have an effect only for programs that define
77086         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77087         do not change anything for programs compiled in the normal way.
77088         Also, there is no effect on the ABI.
77089
77090         (_REGEX_SOURCE): New macro.
77091         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77092         defined and _GNU_SOURCE is not; this fixes a name space violation.
77093
77094         Rename the following macros to obey POSIX requirements.
77095         The old names are still visible as macros if _REGEX_SOURCE is defined.
77096         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77097         RE_BACKSLASH_ESCAPE_IN_LISTS.
77098         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77099         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77100         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77101         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77102         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77103         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77104         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77105         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77106         (REG_INTERVALS): renamed from RE_INTERVALS.
77107         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77108         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77109         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77110         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77111         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77112         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77113         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77114         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77115         RE_UNMATCHED_RIGHT_PAREN_ORD.
77116         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77117         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77118         (REG_DEBUG): renamed from RE_DEBUG.
77119         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77120         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77121         unusual, since we can't clash with the POSIX REG_ICASE.
77122         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77123         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77124         (REG_NO_SUB): renamed from RE_NO_SUB.
77125         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77126         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77127         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77128         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77129         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77130         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77131         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77132         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77133         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77134         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77135         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77136         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77137         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77138         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77139         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77140         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77141         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77142         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77143         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77144         (REG_FIXED): Renamed from REGS_FIXED.
77145         (REG_NREGS): Renamed from RE_NREGS.
77146
77147         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77148         of other REG_* macros, since POSIX says the user is allowed to
77149         #undef these macros selectively.
77150
77151         (reg_errcode_t): Update comment stating what other tables need
77152         to be consistent.
77153
77154         Rename the following enum values to obey POSIX requirements.
77155         The old names are still visible as macros.
77156         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77157         is not defined, since GNU is supposed to be a superset of POSIX as
77158         much as possible, and since we want reg_errcode_t to be a signed
77159         type for implementation consistency.
77160         (_REG_NOERROR): Renamed from REG_NOERROR.
77161         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77162         (_REG_BADPAT): Renamed from REG_BADPAT.
77163         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77164         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77165         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77166         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77167         (_REG_EBRACK): Renamed from REG_EBRACK.
77168         (_REG_EPAREN): Renamed from REG_EPAREN.
77169         (_REG_EBRACE): Renamed from REG_EBRACE.
77170         (_REG_BADBR): Renamed from REG_BADBR.
77171         (_REG_ERANGE): Renamed from REG_ERANGE.
77172         (_REG_ESPACE): Renamed from REG_ESPACE.
77173         (_REG_BADRPT): Renamed from REG_BADRPT.
77174         (_REG_EEND): Renamed from REG_EEND.
77175         (_REG_ESIZE): Renamed from REG_ESIZE.
77176         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77177         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77178         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77179         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77180         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77181
77182         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77183         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77184         changed.  But support the old name if the new one is not defined
77185         and if _REGEX_SOURCE.
77186
77187         Change the following member names in struct re_pattern_buffer.
77188         The old names are still supported if !_REGEX_SOURCE.
77189         The new names are always supported, regardless of _REGEX_SOURCE.
77190         (re_buffer): Renamed from buffer.
77191         (re_allocated): Renamed from allocated.
77192         (re_used): Renamed from used.
77193         (re_syntax): Renamed from syntax.
77194         (re_fastmap): Renamed from fastmap.
77195         (re_translate): Renamed from translate.
77196         (re_can_be_null): Renamed from can_be_null.
77197         (re_regs_allocated): Renamed from regs_allocated.
77198         (re_fastmap_accurate): Renamed from fastmap_accurate.
77199         (re_no_sub): Renamed from no_sub.
77200         (re_not_bol): Renamed from not_bol.
77201         (re_not_eol): Renamed from not_eol.
77202         (re_newline_anchor): Renamed from newline_anchor.
77203
77204         Change the following member names in struct re_registers.
77205         The old names are still supported if !_REGEX_SOURCE.
77206         The new names are always supported, regardless of _REGEX_SOURCE.
77207         (rm_num_regs): Renamed from num_regs.
77208         (rm_start): Renamed from start.
77209         (rm_end): Renamed from end.
77210
77211         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77212         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77213         Prepend __ to parameter names.
77214
77215         Undo yesterday's changes.
77216
77217 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77218
77219         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77220         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77221         lib/regex.c.
77222
77223 2005-08-24  Jim Meyering  <jim@meyering.net>
77224
77225         Sync from coreutils.
77226         * m4/fcntl-safer.m4: New file.
77227
77228         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77229         and object files for this module.
77230
77231 2005-08-24  Jim Meyering  <jim@meyering.net>
77232
77233         Sync from coreutils.
77234         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77235
77236 2005-08-24  Jim Meyering  <jim@meyering.net>
77237
77238         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77239         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77240
77241 2005-08-24  Jim Meyering  <jim@meyering.net>
77242
77243         * modules/fcntl-safer: New module.
77244         * modules/fts (Depends-on): Add fcntl-safer.
77245         * MODULES.html.sh (File descriptor based Input/Output):
77246         Add fcntl-safer.
77247
77248 2005-08-24  Bruno Haible  <bruno@clisp.org>
77249
77250         Support for unit test modules.
77251         * modules/README: Mention tests modules.
77252         * modules/TEMPLATE-TESTS: New file.
77253         * gnulib-tool: New options --extract-tests-module, --with-tests and
77254         --tests-base (unused for the moment).
77255         (testsbase, inctests): New variables.
77256         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77257         (func_verify_module): Exclude TEMPLATE-TESTS.
77258         (func_verify_nontests_module, func_verify_tests_module): New functions.
77259         (func_get_dependencies): Add implicit dependency for tests modules.
77260         (func_get_tests_module): New function.
77261         (func_modules_transitive_closure): When --with-tests was specified,
77262         include the unit tests as well, unless explicitly avoided.
77263         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77264         (func_emit_tests_Makefile_am): New function.
77265         (func_create_testdir): When --with-tests was specified, emit a
77266         tests/ directory.
77267         * MODULES.html.sh (Future developments): Update.
77268
77269 2005-08-24  Bruno Haible  <bruno@clisp.org>
77270
77271         * modules/tls-tests: New file.
77272         * tests/test-tls.c: New file, from GNU gettext.
77273
77274 2005-08-24  Bruno Haible  <bruno@clisp.org>
77275
77276         * modules/lock-tests: New file.
77277         * tests/test-lock.c: New file, from GNU gettext.
77278
77279 2005-08-24  Bruno Haible  <bruno@clisp.org>
77280
77281         * lib/lock.h: Add multiple inclusion guard.
77282         * lib/tls.h: Add multiple inclusion guard.
77283
77284 2005-08-24  Bruno Haible  <bruno@clisp.org>
77285
77286         * gnulib-tool: Add support for the --aux-dir option to
77287         --create-testdir, --create-megatestdir, --test, --megatest.
77288         (func_create_testdir, func_create_megatestdir): Optionally emit a
77289         AC_CONFIG_AUX_DIR directive.
77290         (create-testdir, create-megatestdir, test, megatest): Provide a
77291         default value for $auxdir.
77292
77293 2005-08-24  Bruno Haible  <bruno@clisp.org>
77294
77295         * gnulib-tool (import): Use compound statement instead of subshell
77296         where possible.
77297
77298 2005-08-24  Bruno Haible  <bruno@clisp.org>
77299
77300         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77301
77302 2005-08-24  Bruno Haible  <bruno@clisp.org>
77303
77304         * gnulib-tool (func_version): Update.
77305
77306 2005-08-24  Bruno Haible  <bruno@clisp.org>
77307
77308         * gnulib-tool (func_import, func_create_testdir,
77309         func_create_megatestdir): Quote all autoconf macro arguments.
77310
77311 2005-08-24  Bruno Haible  <bruno@clisp.org>
77312
77313         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77314         option --force, because --force causes the aclocal.m4 of each
77315         subdirectory to be newer than the corresponding config.h.in.
77316
77317 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77318
77319         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77320         All contents moved to gl_REGEX.
77321         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77322         assume that it does.
77323
77324 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77325
77326         * lib/regex.h (REG_NOSYS)
77327         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77328         Define, since POSIX requires it as of 2001.
77329         (_REG_ENOSYS)
77330         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77331         New private symbol, used to keep the enum signed in all cases.
77332         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77333         Youngman in
77334         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77335
77336         * lib/regex_internal.c (re_string_skip_chars, register_state):
77337         (calc_state_hash):
77338         Remove forward decls; no longer needed now that we use prototypes.
77339         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77340         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77341         (clean_state_log_if_needed): Likewise.
77342
77343 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         * config/srclist.txt: Add glibc bugs 1231-1233.
77346
77347 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77348
77349         Fix problems reported by Sam Steingold in
77350         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77351         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77352         assumed that reg_errcode_t is a signed type, which is not
77353         necessarily true if _XOPEN_SOURCE is not defined.
77354         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77355         since some compilers warn about it otherwise.
77356
77357 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77358
77359         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77360         (init_word_char, create_initial_state, duplicate_node_closure):
77361         (fetch_token, peek_token_bracket, build_range_exp):
77362         (build_collating_symbol): Remove forward decls; no longer needed
77363         now that we use prototypes.
77364
77365         * lib/regcomp.c:
77366         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77367         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77368         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77369         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77370         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77371         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77372         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77373         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77374         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77375         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77376         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77377         (build_charclass, build_charclass_op, fetch_number, create_tree):
77378         (create_token_tree, mark_opt_subexp, duplicate_tree):
77379         Use prototypes rather than old-style definitions.
77380
77381         * lib/regex_internal.c:
77382         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77383         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77384         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77385         (re_string_reconstruct, re_string_peek_byte_case):
77386         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77387         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77388         (re_node_set_init_copy, re_node_set_add_intersect):
77389         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77390         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77391         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77392         (re_acquire_state, re_acquire_state_context, register_state):
77393         (create_ci_newstate, create_cd_newstate, free_state):
77394         Likewise.
77395         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77396         re_search_2):
77397         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77398         (re_search_internal, prune_impossible_nodes):
77399         (acquire_init_state_context, check_matching, static):
77400         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77401         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77402         (update_regs, sift_states_backward, build_sifted_states):
77403         (clean_state_log_if_needed, merge_state_array):
77404         (update_cur_sifted_state, add_epsilon_src_nodes):
77405         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77406         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77407         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77408         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77409         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77410         (check_arrival, check_arrival_add_next_nodes):
77411         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77412         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77413         (check_node_accept_bytes, check_node_accept, extend_buffers):
77414         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77415         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77416         (sift_ctx_init):
77417         Likewise.
77418
77419         * lib/regex_internal.h:
77420         (re_string_allocate, re_string_construct, re_string_reconstruct):
77421         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77422         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77423         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77424         (re_string_context_at, re_string_peek_byte_case):
77425         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77426         is defined, since we now use prototypes always.
77427
77428         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77429         C89 or better.  All uses removed.
77430
77431 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77432
77433         * config/srclist.txt: Add glibc bugs 1220-1227.
77434
77435 2005-08-20  Jim Meyering  <jim@meyering.net>
77436
77437         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77438         of unused local, dfa.
77439
77440 2005-08-20  Bruno Haible  <bruno@clisp.org>
77441
77442         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77443
77444 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77445
77446         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77447         (re_node_set_insert_last, re_dfa_add_node):
77448         Rename local variables to avoid GCC shadowing warnings.
77449
77450 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77451
77452         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77453         [defined lint]: Suppress bogus uninitialized-variable warnings.
77454
77455         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77456         and let the caller return REG_ESPACE if out of space.  This
77457         removes an uninitialied-variable warning with GCC 4.0.1, and also
77458         avoids taking the address of a local variable.  All callers
77459         changed.
77460
77461 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77462
77463         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77464         $LIBCSRC/posix/regexec.c.
77465         Add glibc bug 1217 for regcomp.c.
77466
77467 2005-08-19  Jim Meyering  <jim@meyering.net>
77468
77469         * lib/regexec.c (proceed_next_node): Redo local variables to
77470         avoid GCC shadowing warnings.
77471
77472 2005-08-18  Bruno Haible  <bruno@clisp.org>
77473
77474         * lib/strstr.c (strstr): Fix return value in multibyte case.
77475         * lib/strcasestr.c (strcasestr): Likewise.
77476
77477 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77478
77479         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77480
77481 2005-08-17  Jim Meyering  <jim@meyering.net>
77482
77483         Make the %s format (seconds since the epoch) work for a negative
77484         number and when used with a zero-padded field width, e.g. %015s.
77485
77486         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77487         label so that it precedes the code to set `digits'.  Otherwise,
77488         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77489         print `00-22'.  Now, it prints `-0022', as it should.
77490
77491 2005-08-17  Bruno Haible  <bruno@clisp.org>
77492
77493         * modules/strstr (Files): Add m4/mbrtowc.m4.
77494         (Depends-on): Add mbuiter.
77495
77496 2005-08-17  Bruno Haible  <bruno@clisp.org>
77497
77498         * modules/strcasestr: New file.
77499         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77500         strcasestr.
77501
77502 2005-08-17  Bruno Haible  <bruno@clisp.org>
77503
77504         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77505
77506 2005-08-17  Bruno Haible  <bruno@clisp.org>
77507
77508         * modules/mbuiter: New file.
77509         * MODULES.html.sh (Extended multibyte and wide character utilities):
77510         Add mbuiter.
77511
77512 2005-08-17  Bruno Haible  <bruno@clisp.org>
77513
77514         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77515         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77516
77517 2005-08-17  Bruno Haible  <bruno@clisp.org>
77518
77519         * m4/strcasestr.m4: New file.
77520
77521 2005-08-17  Bruno Haible  <bruno@clisp.org>
77522
77523         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77524         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77525
77526 2005-08-17  Bruno Haible  <bruno@clisp.org>
77527
77528         * lib/strcasestr.h: New file.
77529         * lib/strcasestr.c: New file.
77530
77531 2005-08-17  Bruno Haible  <bruno@clisp.org>
77532
77533         * lib/strcasecmp.c: Use mbuiter.h.
77534
77535 2005-08-17  Bruno Haible  <bruno@clisp.org>
77536
77537         * lib/mbuiter.h: New file.
77538
77539 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77540
77541         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77542         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77543         and gl_GETOPT are both invoked via different paths (as happens
77544         with GNU tar CVS because it uses both argp and getopt), the former
77545         wins.
77546
77547 2005-08-16  Bruno Haible  <bruno@clisp.org>
77548
77549         * modules/tls: New file.
77550         * MODULES.html.sh (Multithreading): Add tls.
77551
77552 2005-08-16  Bruno Haible  <bruno@clisp.org>
77553
77554         * modules/strnlen1: New file.
77555         * MODULES.html.sh (String handling): Add strnlen1.
77556
77557 2005-08-16  Bruno Haible  <bruno@clisp.org>
77558
77559         * modules/strcase (Files): Add m4/mbrtowc.m4.
77560         (Depends-on): Add strnlen1, mbchar.
77561
77562 2005-08-16  Bruno Haible  <bruno@clisp.org>
77563
77564         * modules/mbiter: New file.
77565         * MODULES.html.sh (Extended multibyte and wide character utilities):
77566         Add mbiter.
77567
77568 2005-08-16  Bruno Haible  <bruno@clisp.org>
77569
77570         * modules/mbfile: New file.
77571         * MODULES.html.sh (Extended multibyte and wide character utilities):
77572         Add mbfile.
77573
77574 2005-08-16  Bruno Haible  <bruno@clisp.org>
77575
77576         * modules/mbchar: New file.
77577         * MODULES.html.sh (Extended multibyte and wide character utilities):
77578         New section.
77579
77580 2005-08-16  Bruno Haible  <bruno@clisp.org>
77581
77582         * m4/tls.m4: New file, from GNU gettext.
77583
77584 2005-08-16  Bruno Haible  <bruno@clisp.org>
77585
77586         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77587         always.
77588         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77589
77590 2005-08-16  Bruno Haible  <bruno@clisp.org>
77591
77592         * m4/mbiter.m4: New file.
77593
77594 2005-08-16  Bruno Haible  <bruno@clisp.org>
77595
77596         * m4/mbfile.m4: New file.
77597
77598 2005-08-16  Bruno Haible  <bruno@clisp.org>
77599
77600         * m4/mbchar.m4: New file.
77601
77602 2005-08-16  Bruno Haible  <bruno@clisp.org>
77603
77604         * lib/tls.h: New file, from GNU gettext.
77605         * lib/tls.c: New file, from GNU gettext.
77606
77607 2005-08-16  Bruno Haible  <bruno@clisp.org>
77608
77609         * lib/strnlen1.h: New file.
77610         * lib/strnlen1.c: New file.
77611
77612 2005-08-16  Bruno Haible  <bruno@clisp.org>
77613
77614         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77615         (mbi_init): Update.
77616         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77617         NUL byte, not after it.
77618
77619 2005-08-16  Bruno Haible  <bruno@clisp.org>
77620
77621         * lib/strcase.h (strcasecmp): Add note in comments.
77622         * lib/strncasecmp.c: Use code from strcasecmp.c.
77623         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77624         (strcasecmp): Work correctly in multibyte locales.
77625
77626 2005-08-16  Bruno Haible  <bruno@clisp.org>
77627
77628         * lib/mbiter.h: New file.
77629
77630 2005-08-16  Bruno Haible  <bruno@clisp.org>
77631
77632         * lib/mbfile.h: New file.
77633
77634 2005-08-16  Bruno Haible  <bruno@clisp.org>
77635
77636         * lib/mbchar.h: New file.
77637         * lib/mbchar.c: New file.
77638
77639 2005-08-16  Bruno Haible  <bruno@clisp.org>
77640
77641         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77642         the valid ones. Makes the comparison operations transitive:
77643         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77644         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77645
77646 2005-08-15  Simon Josefsson  <jas@extundo.com>
77647
77648         * modules/ssize_t (License): Change to 'unlimited'.
77649
77650         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77651
77652 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77653
77654         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77655         Add comments for each pending glibc patch.
77656
77657 2005-08-15  Bruno Haible  <bruno@clisp.org>
77658
77659         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77660         __cplusplus is defined.
77661
77662 2005-08-14  Jim Meyering  <jim@meyering.net>
77663
77664         Sync from coreutils.
77665
77666         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77667         Use the hash-table-based cycle-detection code not just when
77668         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77669         Reported by James Youngman in
77670         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77671         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77672         FTS_TIGHT_CYCLE_CHECK.
77673         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77674         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77675         once again.
77676         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77677         * lib/fts.c (fd_safer): Remove decl.
77678         Include fcntl--.h rather than unistd-safer.h
77679         (fts_safe_changedir): Don't call fd_safer; no longer needed
77680         now that we include fcntl--.h.
77681
77682 2005-08-12  Simon Josefsson  <jas@extundo.com>
77683
77684         * modules/getndelim2: Use ssize_t module.
77685         * modules/getnline: Likewise.
77686         * modules/safe-read: Likewise.
77687         * modules/xreadlink: Likewise.
77688
77689         * modules/ssize_t: New file.
77690
77691 2005-08-12  Simon Josefsson  <jas@extundo.com>
77692
77693         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77694
77695 2005-08-12  Simon Josefsson  <jas@extundo.com>
77696
77697         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77698         ssize_t.
77699
77700 2005-08-12  Simon Josefsson  <jas@extundo.com>
77701
77702         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77703         readline, getdelim and check_version.
77704         (Support for systems lacking ISO C 99: Sizes of integer types):
77705         Add size_max.
77706
77707 2005-08-12  Bruno Haible  <bruno@clisp.org>
77708
77709         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77710
77711 2005-08-11  Simon Josefsson  <jas@extundo.com>
77712
77713         * modules/readline: New file.
77714
77715         * modules/strnlen (Files): Add strnlen.h.
77716
77717 2005-08-11  Simon Josefsson  <jas@extundo.com>
77718
77719         * m4/readline.m4: New file.
77720
77721 2005-08-11  Simon Josefsson  <jas@extundo.com>
77722
77723         * lib/readline.h, readline.c: New file.
77724
77725 2005-08-11  Simon Josefsson  <jas@extundo.com>
77726
77727         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77728         gl_AVOID.
77729
77730 2005-08-11  Bruno Haible  <bruno@clisp.org>
77731
77732         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77733
77734 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77735
77736         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77737
77738 2005-08-10  Simon Josefsson  <jas@extundo.com>
77739
77740         * tests/test-iconvme.c: New file.
77741
77742 2005-08-10  Simon Josefsson  <jas@extundo.com>
77743
77744         * m4/strnlen.m4: New file.
77745
77746         * m4/strndup.m4: Don't check for strnlen declaration, done in
77747         strnlen.m4.
77748
77749 2005-08-10  Simon Josefsson  <jas@extundo.com>
77750
77751         * lib/strndup.c: Use strnlen.h.
77752
77753         * lib/strnlen.h: New file.
77754
77755 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77756
77757         * README: Typos.
77758
77759 2005-08-02  Simon Josefsson  <jas@extundo.com>
77760
77761         * modules/readline: New file.
77762
77763 2005-08-02  Simon Josefsson  <jas@extundo.com>
77764
77765         * modules/getdelim: New file.
77766
77767         * modules/getline: Rewrite, don't use getndelim2.
77768
77769 2005-08-02  Simon Josefsson  <jas@extundo.com>
77770
77771         * m4/getline.m4: Separate out getdelim stuff into separate module.
77772
77773         * m4/getdelim.m4: New file.
77774
77775 2005-08-02  Simon Josefsson  <jas@extundo.com>
77776
77777         * lib/getline.h, getline.c: Rewrite.
77778
77779         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77780
77781 2005-07-31  Bruno Haible  <bruno@clisp.org>
77782
77783         * lib/lock.h (gl_lock_initializer): New macro.
77784         (gl_lock_define_initialized): Use it.
77785         (gl_rwlock_initializer): New macro.
77786         (gl_rwlock_define_initialized): Use it.
77787         (gl_recursive_lock_initializer): New macro.
77788         (gl_recursive_lock_define_initialized): Use it.
77789
77790 2005-07-30  Karl Berry  <karl@gnu.org>
77791
77792         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77793         Report from Ben Pfaff, regarding getopt.
77794
77795 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77798         normal way.
77799         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77800         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77801         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77802         (gl_GETOPT): Use the new macros.  Most of the implementation
77803         is moved to the new macros.  This is for programs like Emacs
77804         that don't want all the functionality of gl_GETOPT.
77805
77806 2005-07-26  Bruno Haible  <bruno@clisp.org>
77807
77808         * m4/lock.m4: Update from GNU gettext.
77809
77810 2005-07-26  Bruno Haible  <bruno@clisp.org>
77811
77812         * lib/lock.h: Update from GNU gettext.
77813         * lib/lock.c: Update from GNU gettext.
77814
77815 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77816
77817         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77818         obsolescent AC_TRY_RUN.  Include the default includes files, for
77819         'exit'.
77820
77821 2005-07-24  Bruno Haible  <bruno@clisp.org>
77822
77823         * modules/visibility: New file.
77824         * MODULES.html.sh (Misc): Add visibility.
77825
77826 2005-07-24  Bruno Haible  <bruno@clisp.org>
77827
77828         * m4/visibility.m4: New file.
77829
77830 2005-07-24  Bruno Haible  <bruno@clisp.org>
77831
77832         * doc/visibility.texi: New file.
77833
77834 2005-07-22  Bruno Haible  <bruno@clisp.org>
77835
77836         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77837         $(ALLOCA_H), redundant through BUILT_SOURCES.
77838         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77839         redundant through BUILT_SOURCES.
77840         * modules/byteswap (Makefile.am): Remove explicit dependency on
77841         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77842         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77843         $(FNMATCH_H), redundant through BUILT_SOURCES.
77844         * modules/getopt (Makefile.am): Remove explicit dependency on
77845         $(GETOPT_H), redundant through BUILT_SOURCES.
77846         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77847         redundant through BUILT_SOURCES.
77848         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77849         redundant through BUILT_SOURCES.
77850         * modules/stdbool (Makefile.am): Remove explicit dependency on
77851         $(STDBOOL_H), redundant through BUILT_SOURCES.
77852         * modules/stdint (Makefile.am): Remove explicit dependency on
77853         $(STDINT_H), redundant through BUILT_SOURCES.
77854         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77855         Remove explicit dependency on $(SYSEXITS_H).
77856         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77857
77858 2005-07-18  Simon Josefsson  <jas@extundo.com>
77859
77860         * lib/check-version.c (check_version): Accept identical versions too.
77861
77862 2005-07-18  Bruno Haible  <bruno@clisp.org>
77863
77864         * modules/lock: New file.
77865         * MODULES.html.sh (Multithreading): New section.
77866
77867 2005-07-18  Bruno Haible  <bruno@clisp.org>
77868
77869         * m4/lock.m4: New file, from GNU gettext.
77870
77871 2005-07-18  Bruno Haible  <bruno@clisp.org>
77872
77873         * lib/lock.h: New file, from GNU gettext.
77874         * lib/lock.c: New file, from GNU gettext.
77875
77876 2005-07-18  Bruno Haible  <bruno@clisp.org>
77877
77878         * lib/lock.h (gl_once_t): New type.
77879         (gl_once_define, gl_once): New macros.
77880         * lib/lock.c (fresh_once): New variable.
77881         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77882         functions.
77883
77884 2005-07-16  Simon Josefsson  <jas@extundo.com>
77885
77886         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77887         workaround, suggested by Bruno.
77888
77889 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77890
77891         * modules/xalloc (Depends-on): Add xalloc-die.
77892         * modules/xvasprintf (Depends-on): Add xalloc-die.
77893
77894 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77895
77896         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77897         with a minor change.
77898
77899 2005-07-15  Bruno Haible  <bruno@clisp.org>
77900
77901         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77902         When using lib/poll.c, define poll as rpl_poll.
77903
77904 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77905
77906         * modules/argp (Depends-on): Remove unlocked-io.
77907
77908 2005-07-14  Derek Price  <derek@ximbiot.com>
77909
77910         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77911         for glob symlink bug.
77912
77913 2005-07-14  Bruno Haible  <bruno@clisp.org>
77914
77915         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77916         Instead, test for *_unlocked function declarations directly.
77917
77918 2005-07-11  Simon Josefsson  <jas@extundo.com>
77919
77920         * modules/size_max: New file.
77921
77922         * modules/xsize: Depend on size_max module for size_max.m4.
77923
77924 2005-07-11  Simon Josefsson  <jas@extundo.com>
77925
77926         * lib/size_max.h: New file.
77927
77928 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77929
77930         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77931         copyright symbol and the year.
77932         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77933         (version_etc_va): Use parameterized copyright notice.
77934         Reword to conform to the current GNU coding standards.
77935
77936 2005-07-11  Karl Berry  <karl@gnu.org>
77937
77938         * doc/gnulib.texi (Quoting): new node.
77939         (Initial import): more info, from Patrice.
77940
77941 2005-07-11  Bruno Haible  <bruno@clisp.org>
77942
77943         * gnulib-tool (func_usage): Document option --avoid.
77944         (Command line options): Handle --avoid.
77945         (func_acceptable): New function.
77946         (func_modules_transitive_closure): Use it.
77947
77948 2005-07-11  Bruno Haible  <bruno@clisp.org>
77949
77950         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77951         Reported by Jim Meyering.
77952
77953 2005-07-10  Bruno Haible  <bruno@clisp.org>
77954
77955         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77956         Needed when size_t is smaller than 'unsigned int'.
77957         Reported by Paul Eggert.
77958
77959 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77960
77961         * modules/argp (Depends-on): Add unlocked-io
77962
77963 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77964
77965         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77966         block of defines.
77967
77968 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77971         fix now.
77972
77973 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77974         and Paul Eggert  <eggert@cs.ucla.edu>
77975
77976         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77977         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77978
77979 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77980
77981         * modules/regex (Files): Add lib/regex_internal.c,
77982         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77983         (Depends-on): Add extensions.
77984         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77985
77986 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77987
77988         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77989         pathconf.
77990         * m4/same.m4 (gl_SAME): Likewise.
77991         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77992
77993         * m4/regex.m4: Adjust to new libc regex implementation.
77994         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77995         all the .c and .h parts of (the new) regex.
77996         Quote the m4 stuff better.
77997         Check for RE_ICASE bug of old gnulib.
77998         Check for REG_STARTEND of recent libc.
77999         Rename local variables from jm_* to gl_*.
78000         Quote operand of "test -f".
78001         Say "recent enough" version of libc, not "version 2".
78002         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
78003         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
78004         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
78005         Remove check for btowc, isascii.
78006         Require AM_LANGINFO_CODESET.
78007
78008 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78009
78010         * lib/regex.c, regex.h: Sync from libc.
78011         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
78012         * lib/regexec.c:
78013         New files, synced from libc, except that regex_internal.h
78014         currently has a small porting fix.
78015
78016 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
78019         regex_internal.c, regexec.c.
78020         Add regex_internal.h too, but as a comment, since the libc version
78021         is currently broken in gnulib mode.
78022
78023 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78024
78025         Support programs like Emacs that use gnulib but not gettext.
78026         * MODULES.html.sh (Internationalization functions): Add gettext-h.
78027         * modules/gettext-h: New file.
78028         * modules/gettext (Files): Remove lib/gettext.h.
78029         (Depends-on): Add gettext-h.
78030         (Makefile.am): Remove lib_SOURCES.
78031         * modules/argmatch, modules/c-stack, modules/closeout:
78032         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
78033         * modules/execute, modules/file-type, modules/getaddrinfo:
78034         * modules/getopt, modules/human, modules/javacomp:
78035         * modules/javaexec, modules/mkdir-p, modules/obstack:
78036         * modules/openat, modules/pagealign_alloc, modules/pipe:
78037         * modules/quotearg, modules/regex, modules/rpmatch:
78038         * modules/unicodeio, modules/userspec, modules/version-etc:
78039         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78040         * modules/xsetenv:
78041         Depend on gettext-h, not gettext.
78042
78043 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78044
78045         * gnulib-tool (func_import): Add support for 'public domain' license.
78046         * modules/alloca, modules/atexit, modules/memmove:
78047         Now public domain, not GPL.
78048         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78049         * modules/realloc, modules/strerror, modules/strtod:
78050         Now LGPL, not GPL.
78051
78052 2005-07-05  Bruno Haible  <bruno@clisp.org>
78053
78054         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78055         autoconf CVS. Needed for mingw.
78056
78057 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78058
78059         Remove the dependency of the strftime module on the tzset module.
78060         * modules/strftime (Depends-on): Remove dependency on tzset.
78061
78062 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78063
78064         Remove the dependency of the strftime module on the tzset module.
78065         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78066         gl_FUNC_TZSET_CLOBBER.
78067
78068 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78069
78070         Remove the dependency of the strftime module on the tzset module.
78071         * lib/strftime.c (my_strftime)
78072         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78073         Copy the input structure, to work around some of the bug with
78074         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78075         Solaris releases, you should also use the tzset module, but we won't
78076         require it as a dependency any more since we don't want LGPLed code
78077         to depend on GPLed code.
78078
78079 2005-07-02  Jim Meyering  <jim@meyering.net>
78080
78081         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78082         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78083         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78084         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78085
78086 2005-07-02  Jim Meyering  <jim@meyering.net>
78087
78088         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78089
78090 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78093         declares only 'struct timespec;' (!).
78094
78095 2005-07-01  Jim Meyering  <jim@meyering.net>
78096
78097         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78098         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78099         * lib/save-cwd.c, tempname.c:
78100         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78101         and don't include <sys/file.h>).
78102
78103 2005-06-29  Jim Meyering  <jim@meyering.net>
78104
78105         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78106         type name.  Use the variable name instead.
78107         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78108         Likewise.
78109
78110 2005-06-28  Simon Josefsson  <jas@extundo.com>
78111
78112         * modules/check-version (Files): Add check-version.m4.
78113
78114 2005-06-28  Simon Josefsson  <jas@extundo.com>
78115
78116         * m4/check-version.m4: New file, suggested by Jim Meyering
78117         <jim@meyering.net>.
78118
78119 2005-06-28  Simon Josefsson  <jas@extundo.com>
78120
78121         * lib/check-version.h, lib/check-version.c: New files.
78122
78123 2005-06-28  Simon Josefsson  <jas@extundo.com>
78124
78125         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78126         collision with global variable.  Better indentation.  Don't
78127         increment buffer pointer beyond buffer end.  Based on comments
78128         from Paul Eggert <eggert@cs.ucla.edu>.
78129
78130         * lib/base64.h: Indent.
78131
78132 2005-06-28  Simon Josefsson  <jas@extundo.com>
78133
78134         * doc/gnulib.texi (Library version handling): New section.
78135
78136 2005-06-28  Jim Meyering  <jim@meyering.net>
78137
78138         * check-module (find_included_lib_files): Hard-code another
78139         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78140         but modules/fts-lgpl (correctly) does not list those files.
78141
78142         * modules/canonicalize (Files): Add lib/pathmax.h.
78143
78144 2005-06-25  Simon Josefsson  <jas@extundo.com>
78145
78146         * modules/check-version: New file.
78147
78148 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78149
78150         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78151         initializer of struct addrinfo, as an indication that we don't
78152         care how many members the structure has.
78153
78154 2005-06-24  Derek Price  <derek@ximbiot.com>
78155         and Bruno Haible  <bruno@clisp.org>
78156
78157         Remove stat module & update lstat.
78158         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78159         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78160         * m4/stat.m4: Remove this file.
78161
78162 2005-06-24  Derek Price  <derek@ximbiot.com>
78163         and Bruno Haible  <bruno@clisp.org>
78164
78165         Remove stat module & update lstat.
78166         * lib/stat.c: Remove this file...
78167         (slash_aware_lstat): ...moving this content and its support...
78168         * lib/lstat.c (rpl_lstat): ...into here.
78169         * lib/lstat.h: New file.
78170
78171 2005-06-24  Derek Price  <derek@ximbiot.com>
78172         and Bruno Haible  <bruno@clisp.org>
78173
78174         Remove stat module & update lstat.
78175         * config/srclist.txt (libc sources): Remove stat.
78176
78177 2005-06-24  Derek Price  <derek@ximbiot.com>
78178         and Bruno Haible  <bruno@clisp.org>
78179
78180         Remove stat module & update lstat.
78181         * MODULES.html.sh (stat): Remove.
78182         * MODULES.html: Regenerated.
78183         * modules/lstat (Description): Correct function name.
78184         (Files): Add "lstat.h".
78185         (Depends-on): Remove stat, add xalloc, stat-macros.
78186         * modules/stat: Remove this file.
78187         (Include): Add "lstat.h", remove <sys/stat.h>.
78188
78189 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78190
78191         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78192         (ranged_convert): Don't save conversion in a temporary struct.
78193         This causes a warning with GCC 4.0.0, and anyway in the typical
78194         case it's not worth the extra 100 bytes or so of code.
78195         (ranged_convert, __mktime_internal): When calling a function via a
78196         pointer P, use P () rather than (*P) (), as we now assume C89 or
78197         better.
78198
78199 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78200
78201         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78202         "who -r" failed to give output.  Problem reported by Tim Waugh.
78203
78204         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78205         (xcalloc): Use it to avoid needless tests.
78206         Problem reported by Jim Meyering.
78207
78208 2005-06-20  Derek Price  <derek@ximbiot.com>
78209
78210         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78211         unnecessary for Autoconfs > 2.59c.
78212
78213 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78214
78215         * lib/argp.h (__option_is_short): Check upper limit of
78216         __key. Isprint() requires its argument to have the value
78217         of an unsigned char or EOF.
78218
78219 2005-06-16  Jim Meyering  <jim@meyering.net>
78220
78221         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78222         when either N or S is zero.
78223
78224 2005-06-16  Derek Price  <derek@ximbiot.com>
78225
78226         * m4/bison.m4: Declare YACC & YFLAGS precious.
78227
78228 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78231         multibyte string or pattern, fall back on unibyte matching.
78232         Problem reported by James Youngman.
78233
78234 2005-06-08  Bruno Haible  <bruno@clisp.org>
78235
78236         * modules/csharpcomp: New file.
78237         * MODULES.html.sh (C#): Add csharpcomp.
78238
78239 2005-06-08  Bruno Haible  <bruno@clisp.org>
78240
78241         * m4/csharpcomp.m4: New file, from GNU gettext.
78242
78243 2005-06-08  Bruno Haible  <bruno@clisp.org>
78244
78245         * lib/csharpcomp.h: New file, from GNU gettext.
78246         * lib/csharpcomp.c: New file, from GNU gettext.
78247         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78248
78249 2005-06-08  Bruno Haible  <bruno@clisp.org>
78250
78251         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78252         warning on mingw.
78253
78254 2005-06-07  Derek Price  <derek@ximbiot.com>
78255
78256         Sync from CVS.
78257         * lib/glob_.h: Indent nested #ifdef.
78258
78259 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78260
78261         Sync from coreutils.
78262         Use "file name" when talking about file names, instead of "filename"
78263         or "path", as per the GNU coding standards.
78264         * lib/mkdir-p.c: Renamed from makepath.c.
78265         (make_dir_parents): Renamed from make_path.  All callers changed.
78266         * lib/mkdir-p.h: Likewise.  All includers changed.
78267         * lib/filenamecat.c: Renamed from path-concat.c.
78268         (file_name_concat): Renamed from path_concat.  All callers changed.
78269         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78270         * lib/filenamecat.h: Likewise.  All includers changed.
78271         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78272         in comments or local variable names.
78273         * lib/basename.c: Likewise.
78274         * lib/canonicalize.c, canonicalize.h: Likewise.
78275         * lib/dirname.c, dirname.h: Likewise.
78276         * lib/euidaccess.c: Likewise.
78277         * lib/exclude.c: Likewise
78278         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78279         * lib/fsusage.c, fsuage.h: Likewise.
78280         * lib/fts.c, fts_.h: Likewise.
78281         * lib/getcwd.c: Likewise.
78282         * lib/getloadavg.c: Likewise.
78283         * lib/mkstemp.c: Likewise.
78284         * lib/mountlist.c, mountlist.h: Likewise.
78285         * lib/openat.c, openat.h: Likewise.
78286         * lib/readlink-stub.c: Likewise.
78287         * lib/readutmp.c, readutmp.h: Likewise.
78288         * lib/rename.c: Likewise.
78289         * lib/rmdir.c: Likewise.
78290         * lib/same.c: Likewise.
78291         * lib/savedir.c: Likewise.
78292         * lib/stripslash.c: Likewise.
78293         * lib/tempname.c: Likewise.
78294         * lib/xreadlink.c: Likewise.
78295         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78296         All uses changed.
78297         * lib/exclude.h: Likewise.
78298
78299         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78300         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78301         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78302         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78303         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78304         files have been getting away with it for years (MORE/BSD 4.3
78305         is extinct now).
78306         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78307         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78308
78309         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78310         Define to 256, not 255, as per modern POSIX.
78311
78312 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78313
78314         Sync from coreutils.
78315         Use "file name" when talking about file names, instead of "filename"
78316         or "path", as per the GNU coding standards.
78317         * MODULES.html.sh: mkdir-p renamed from makepath.
78318         filenamecat renamed from path-concat.
78319         * modules/filenamecat: Renamed from modules/path-concat.
78320         (Files): filenamecat.h and filenamecat.c renamed from
78321         path-concat.h and path-concat.c.
78322         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78323         (Include): filenamecat.h, not path-concat.h.
78324         * modules/mkdir-p: Renamed from modules/makepath.
78325         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78326         makepath.c.
78327         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78328         (Include): mkdir-p.h, not makepath.h.
78329
78330 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78331
78332         Sync from coreutils.
78333         * m4/mkdir-p.m4: Renamed from makepath.m4.
78334         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78335         Rename files from makepath.c to mkdir-p.c, and from
78336         makepath.h to mkdir-p.h.
78337         * m4/filenamecat.m4: Renamed from path-concat.m4.
78338         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78339         Rename files from path-concat.c to filenamecat.c,
78340         and from path-concat.h to filenamecat.h.
78341         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78342         "file name" in local variables or comments.
78343         * m4/rename.m4: Likewise.
78344
78345 2005-06-01  Bruno Haible  <bruno@clisp.org>
78346
78347         * modules/csharpexec: New file.
78348         * MODULES.html.sh (C#): New section.
78349
78350 2005-06-01  Bruno Haible  <bruno@clisp.org>
78351
78352         * m4/csharp.m4: New file, from GNU gettext.
78353         * m4/csharpexec.m4: New file, from GNU gettext.
78354
78355 2005-06-01  Bruno Haible  <bruno@clisp.org>
78356
78357         * lib/csharpexec.h: New file, from GNU gettext.
78358         * lib/csharpexec.c: New file, from GNU gettext.
78359         * lib/csharpexec.sh.in: New file, from GNU gettext.
78360
78361 2005-05-31  Derek Price  <derek@ximbiot.com>
78362             Paul Eggert  <eggert@cs.ucla.edu>
78363
78364         Sync from cvs.
78365         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78366
78367 2005-05-31  Derek Price  <derek@ximbiot.com>
78368             Paul Eggert  <eggert@cs.ucla.edu>
78369
78370         Sync from cvs.
78371         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78372
78373 2005-05-29  Derek Price  <derek@ximbiot.com>
78374
78375         * config/srclist.txt (glob_.h, glob.c): Add these files.
78376
78377 2005-05-29  Derek Price  <derek@ximbiot.com>
78378
78379         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78380         * modules/glob: New file.
78381         * modules/getlogin_r: Add link to POSIX spec in description.
78382
78383 2005-05-29  Derek Price  <derek@ximbiot.com>
78384             Paul Eggert  <eggert@cs.ucla.edu>
78385
78386         * m4/glob.m4: New file.
78387
78388 2005-05-29  Derek Price  <derek@ximbiot.com>
78389             Paul Eggert  <eggert@cs.ucla.edu>
78390
78391         * lib/glob_.h, lib/glob.c: New files.
78392
78393 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78396         * modules/fts-lgpl (Depends-on): Remove gettext.
78397
78398 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78399
78400         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78401         and don't require gt_INTTYPES_PRI.
78402
78403 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78404
78405         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78406
78407         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78408         the configuration hassle isn't worth it.
78409         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78410         (LONGEST_MODIFIER, PRIuMAX): Remove.
78411
78412 2005-05-27  Bruno Haible  <bruno@clisp.org>
78413
78414         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78415
78416 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78417
78418         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78419         _POSIX_PTHREAD_SEMANTICS for Solaris.
78420
78421 2005-05-25  Derek Price  <derek@ximbiot.com>
78422
78423         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78424
78425 2005-05-25  Derek Price  <derek@ximbiot.com>
78426             Paul Eggert  <eggert@cs.ucla.edu>
78427
78428         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78429         * lib/getlogin_r.c, getlogin_r.h: New files.
78430
78431 2005-05-25  Bruno Haible  <bruno@clisp.org>
78432             Derek Price  <derek@ximbiot.com>
78433
78434         * lib/getlogin_r.h: Simplify API documentation.
78435
78436 2005-05-23  Derek Price  <derek@ximbiot.com>
78437
78438         * modules/minmax (Files): Add m4/minmax.m4.
78439         (configure.ac): Add gl_MINMAX.
78440
78441 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78442
78443         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78444         so that unistd-safer.h (GPL'ed code) need not be included.
78445
78446 2005-05-22  Bruno Haible  <bruno@clisp.org>
78447
78448         * m4/minmax.m4: New file.
78449         Based on a patch by Derek Price <derek@ximbiot.com>.
78450
78451 2005-05-22  Bruno Haible  <bruno@clisp.org>
78452
78453         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78454         (INT64_MIN): Fix definition.
78455         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78456
78457         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78458         NEED_SIGNED_INT_TYPES.
78459
78460         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78461         HAVE_SYSTEM_INTTYPES.
78462
78463 2005-05-22  Bruno Haible  <bruno@clisp.org>
78464
78465         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78466         Also include <sys/param.h> if it defines MIN, MAX.
78467         Based on a patch by Derek Price <derek@ximbiot.com>.
78468
78469 2005-05-21  Jim Meyering  <jim@meyering.net>
78470
78471         * modules/fts (Files): Add m4/inttypes-pri.m4.
78472         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78473
78474 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78475
78476         New fts module.
78477         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78478         (setup_dir, free_dir): New functions.
78479         (enter_dir, leave_dir): Define trivial
78480         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78481         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78482         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78483         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78484         Move to fts-cycle.c.
78485         (fts_open): Use setup_dir.
78486         (fts_close): Use free_dir.
78487         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78488         This adds a label and some gotos, but the alternatives were messier.
78489         Check for memory allocation failure when entering a dir.
78490         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78491         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78492         (FTS): New member fts_cycle, that is a union that contains the
78493         old active_dir_ht and cycle_state.  All uses changed to mention
78494         fts_cycle.ht and fts_cycle.state.
78495         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78496         fts.c, with the following changes:
78497         (setup_dir, free_dir): New functions.
78498         (enter_dir): Now returns bool.  Return true if successful, false
78499         if memory exhausted.  All callers changed.
78500         Do not bother partly cleaning up on
78501         memory allocation failure; that is free_dir's job.
78502         However, free ad if hash_insert fails, to avoid memory leak.
78503         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78504         fts->fts_options to see which union member to use.
78505
78506 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78507
78508         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78509         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78510
78511 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78512
78513         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78514
78515 2005-05-20  Jim Meyering  <jim@meyering.net>
78516
78517         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78518         Now a macro, to pacify GCC.
78519
78520 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78521
78522         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78523         of -1.
78524
78525 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78526
78527         * lib/chown.c (rpl_chown): Return -1 on failure.
78528
78529 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78532         Don't check for stddef.h.
78533         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78534         don't use its results.
78535         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78536         since we include them unconditionally.  Don't require
78537         AM_STDBOOL_H, since stdbool is a prerequisite.
78538         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78539         since we assume C89 or better.
78540         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78541         as we don't use their results.
78542         Don't check for fchdir, memmove, memset, strrchr, as we use
78543         them unconditionally.
78544         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78545         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78546
78547 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78550         Include <stddef.h> unconditionally, since we assume C89 now.
78551         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78552         * lib/fts.c: Include fts_.h first, to check interface.
78553         Do not include intprops.h; no longer needed.
78554         Include cycle-check.h and hash.h, since fts_.h no longer does.
78555         Remove unnecessary casts of closedir to void.
78556         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78557         decide whether to decrement nlinks.
78558         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78559         (FTS): Use struct hash_table * instead of Hash_table, so that
78560         we no longer need to include hash.h here.
78561
78562 2005-05-18  Jim Meyering  <jim@meyering.net>
78563
78564         * modules/dirfd (License): Change to LGPL.  Most of the code
78565         is already in the public domain.
78566
78567 2005-05-18  Jim Meyering  <jim@meyering.net>
78568
78569         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78570         Reported by Yoann Vandoorselaere.
78571
78572 2005-05-17  Jim Meyering  <jim@meyering.net>
78573
78574         * m4/fts.m4: New file, from coreutils.
78575
78576 2005-05-17  Jim Meyering  <jim@meyering.net>
78577
78578         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78579
78580 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78581
78582         Sync from coreutils.
78583         * m4/unlinkdir.m4: New file.
78584
78585 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78586
78587         Sync from coreutils.
78588         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78589         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78590         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78591         White space changes only.
78592         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78593         special.
78594         * lib/yesno.c: Include getline.h, not ctype.h.
78595         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78596         Use getline to remove arbitrary restriction on response length.
78597
78598 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78599
78600         * config/srclist-update: Spell out "Street" in FSF postal
78601         mail address; this is the style the FSF seems to prefer.
78602
78603         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78604         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78605         this updates FSF postal mail address.
78606
78607         Sync from coreutils.
78608         * modules/unlinkdir: New file.
78609         * modules/yesno (Depends-on): Add getline.
78610         * MODULES.html.sh (File system functions): Add unlinkdir.
78611
78612 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78613
78614         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78615         lib/strsep.h:
78616         Change the initial comment to refer to GPL, not LGPL.
78617         gnulib-tool will change it to LGPL as needed.
78618
78619         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78620         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78621         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78622         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78623         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78624         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78625         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78626         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78627         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78628         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78629         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78630         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78631         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78632         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78633         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78634         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78635         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78636         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78637         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78638         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78639         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78640         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78641         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78642         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78643         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78644         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78645         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78646         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78647         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78648         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78649         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78650         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78651         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78652         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78653         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78654         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78655         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78656         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78657         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78658         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78659         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78660         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78661         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78662         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78663         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78664         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78665         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78666         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78667         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78668         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78669         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78670         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78671         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78672         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78673         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78674         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78675         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78676         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78677         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78678         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78679         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78680         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78681         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78682         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78683         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78684         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78685         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78686         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78687         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78688         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78689         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78690         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78691         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78692         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78693         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78694         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78695         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78696         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78697         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78698         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78699         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78700         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78701         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78702         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78703         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78704         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78705         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78706         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78707         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78708         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78709         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78710         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78711         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78712         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78713         lib/yesno.c, lib/yesno.h:
78714         Update FSF postal mail address.
78715
78716 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78717
78718         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78719         tests/test-memmem.c, tests/test-stpncpy.c:
78720         Update FSF postal mail address.
78721
78722 2005-05-13  Bruno Haible  <bruno@clisp.org>
78723
78724         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78725         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78726         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78727         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78728         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78729         Add support for 64-bit integers in the MSVC compiler.
78730
78731 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78732
78733         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78734
78735 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78736
78737         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78738
78739 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78740
78741         * doc/getdate.texi (General date syntax): Don't say that date
78742         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78743         Problem reported by Nic Ferrier.
78744
78745 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78746
78747         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78748         specified in ai_socktype. Fix invalid ai_protocol
78749         check. ai_protocol is usually set to 0 or depending on
78750         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78751         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78752         ai_socktype / ai_protocol in the returned addrinfo structure.
78753
78754 2005-05-10  Simon Josefsson  <jas@extundo.com>
78755
78756         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78757         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78758
78759 2005-05-10  Karl Berry  <karl@gnu.org>
78760
78761         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78762         (from http://www.gnu.org/licenses).
78763         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78764         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78765         fdl.texi suffices.
78766
78767 2005-05-10  Karl Berry  <karl@gnu.org>
78768
78769         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78770         (COPYING.DOC): remove.
78771
78772         * config/srclist-update: new FSF address.
78773
78774 2005-05-10  Derek Price  <derek@ximbiot.com>
78775
78776         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78777         possible.
78778
78779 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78780             Bruno Haible  <bruno@clisp.org>
78781
78782         * modules/inet_ntop: New file.
78783         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78784         inet_ntop.
78785
78786 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78787             Bruno Haible  <bruno@clisp.org>
78788
78789         * m4/inet_ntop.m4: New file.
78790
78791 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78792             Bruno Haible  <bruno@clisp.org>
78793
78794         * lib/inet_ntop.h: New file.
78795         * lib/inet_ntop.c: New file, from glibc with modifications.
78796
78797 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * modules/time_r (License): Change to LGPL.
78800         * modules/extensions (License): Change to LGPL.  Actually,
78801         the license is more permissive than that, but currently gnulib-tool
78802         doesn't know how to handle more-permissive licenses.
78803
78804         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78805         Problem reported by Dave Love.
78806
78807 2005-05-08  Jim Meyering  <jim@meyering.net>
78808
78809         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78810         blank.
78811
78812 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78813
78814         * modules/argmatch (Depends-on): Add stdbool.
78815         * modules/backupfile (Depends-on): Likewise.
78816         * modules/chdir-long (Depends-on): Likewise.
78817         * modules/closeout (Depends-on): Likewise.
78818         * modules/cycle-check (Depends-on): Likewise.
78819         * modules/dirname (Depends-on): Likewise.
78820         * modules/fnmatch (Depends-on): Likewise.
78821         * modules/fsusage (Depends-on): Likewise.
78822         * modules/fwriteerror (Depends-on): Likewise.
78823         * modules/getcwd (Depends-on): Likewise.
78824         * modules/getloadavg (Depends-on): Likewise.
78825         * modules/hard-locale (Depends-on): Likewise.
78826         * modules/makepath (Depends-on): Likewise.
78827         * modules/mountlist (Depends-on): Likewise.
78828         * modules/nanosleep (Depends-on): Likewise.
78829         * modules/posixtm (Depends-on): Likewise.
78830         * modules/quotearg (Depends-on): Likewise.
78831         * modules/readtokens (Depends-on): Likewise.
78832         * modules/readtokens0 (Depends-on): Likewise.
78833         * modules/readutmp (Depends-on): Likewise.
78834         * modules/save-cwd (Depends-on): Likewise.
78835         * modules/strftime (Depends-on): Likewise.
78836         * modules/userspec (Depends-on): Likewise.
78837         * modules/utimecmp (Depends-on): Likewise.
78838         * modules/xgetcwd (Depends-on): Likewise.
78839         * modules/xnanosleep (Depends-on): Likewise.
78840         * modules/xstrtod (Depends-on): Likewise.
78841         * modules/yesno (Depends-on): Likewise.
78842
78843 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78844
78845         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78846         needless checks.
78847
78848 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78849
78850         Merge from coreutils.  Among other things,
78851         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78852         * lib/fd-safer.c: New file.
78853         * lib/fcntl-safer.h, open-safer.c: Remove.
78854         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78855         * lib/dup-safer.c: Include unistd-safer.h first.
78856         Don't include errno.h.
78857         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78858         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78859         * lib/file-type.c: Rely on file-type.h change.
78860         * lib/getloadavg.c: Include unistd-safer.h.
78861         (getloadavg): Use safer open.
78862         * lib/getusershell.c: Include "stdio-safer.h".
78863         (getusershell): Use safer fopen.
78864         * lib/long-options.c (long_options): Use NULL rather than 0.
78865         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78866         'free'.
78867         * lib/modechange.c: Likewise.
78868         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78869         (MODE_DONE): New constant.
78870         (struct mode_change): Remove 'next' member.
78871         (make_node_op_equals): New function; like the old one of the
78872         same name, except it allocates an array.
78873         (mode_compile, mode_create_from_ref): Use it.
78874         (mode_compile): Allocate result as an array, not a linked list.
78875         Parse octal string ourself, so that we catch mistakes like "+0".
78876         (mode_adjust): Arg is an array, not a linked list.
78877         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78878         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78879         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78880         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78881         Remove.  This is now stat-macros.h's job.
78882         (talloc): Remove.  All callers replaced by xalloc, so that
78883         our invokers don't have to worry about reporting memory failures.
78884         (make_node_op_equals): Remove.
78885         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78886         New constants.
78887         (struct mode_change): Moved here from modechange.h.
78888         (mode_append_entry): Remove.
78889         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78890         apps to have incorrect behavior.  Use simpler algorithm for head
78891         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78892         Detect more invalid usages rather than having somewhat-random behavior.
78893         Don't insert an "a=" action, as that leads to incorrect behavior.
78894         (mode_compile, mode_create_from_ref): Return NULL on error instead
78895         of an enum, since now there's only one way to have an error.  All
78896         callers changed.
78897         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78898         at the correct time.  Simplify calculation of "+u" and its ilk.
78899         Don't mishandle "+X".
78900         (mode_free): Remove "register" and localize decls.
78901         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78902         (struct mode_change): Move to modechange.c; callers don't
78903         need to see this stuff.
78904         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78905         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78906         (mode_change, mode_adjust): Reflect the new signatures noted above.
78907         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78908         that might redefine system include files.
78909         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78910         (my_usleep): Use NULL rather than (void *) 0.
78911         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78912         Use siginterrupt to specify that system calls should be interrupted.
78913         (rpl_nanosleep): Move initialization of suspended closer to call of
78914         my_usleep.
78915         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78916         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78917         (desirable_utmp_entry): New function.
78918         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78919         using x2nrealloc, to simplify logic.
78920         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78921         size calculation.  Do not assume utmp file is a regular file.
78922         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78923         (READ_UTMP_CHECK_PIDS): New constant.
78924         * lib/save-cwd.c: Include unistd-safer.h.
78925         (save_cwd): Use fd_safer.
78926         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78927         [!_LIBC] Include "stat-macros.h" instead.
78928         * lib/unistd-safer.h (fd_safer): New decl.
78929
78930 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78931
78932         * modules/getloadavg (Depends-on): Add unistd-safer.
78933         * modules/getusershell (Depends-on): Add stdio-safer.
78934         * modules/lstat (Depends-on): Remove xalloc.
78935         * modules/mkstemp (Depends-on): Add stat-macros.
78936         * modules/modechange (Depends-on): Remove xstrtol.
78937         Add stat-macros, xalloc.
78938         * modules/save-cwd (Depends-on): Add unistd-safer.
78939         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78940         * modules/unistd-safer (Files): Add lib/fd-safer.c
78941         (Makefile.am): Remove lib_SOURCES.
78942
78943         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78944         Remove fcntl-safer; unistd-safer supersedes it.
78945
78946 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78947
78948         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78949         AC_HEADER_STAT.
78950         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78951         (gl_PREREQ_CHOWN): Remove.
78952         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78953         it.  Don't require AC_HEADER_STAT.
78954         (gl_PREREQ_LSTAT): Remove.
78955         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78956         Don't require AC_HEADER_STAT.
78957         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78958         (gl_PREREQ_RMDIR): Remove.
78959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78960         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78961         the stat-macros module a prerequisite.
78962         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78963         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78964         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78965         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78966         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78967         variable names.
78968         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78969         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78970         variable prefixes.
78971         * m4/fcntl-safer.m4: Remove.
78972         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78973         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78974         Invoke gl_PREREQ_FD_SAFER.
78975         (gl_PREREQ_FD_SAFER): New macro.
78976         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78977         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78978         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78979         Remove duplicate call to AC_LIBOBJ(readutmp).
78980         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78981
78982         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78983         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78984
78985 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78986
78987         * MODULES.html.sh (Misc): Add byteswap.
78988
78989 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78990
78991         * modules/getcwd (Depends-on): Add extensions.
78992         * modules/openat (Depends-on): Likewise.
78993
78994 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78995
78996         * modules/byteswap: New file.
78997
78998 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78999
79000         * m4/byteswap.m4: New file.
79001
79002 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79003
79004         * lib/byteswap_.h: New file.
79005
79006 2005-04-25  Karl Berry  <karl@gnu.org>
79007
79008         * m4/gettext.m4: Update from GNU gettext 0.14.4.
79009
79010 2005-04-25  Albert Chin  <china@thewrittenword.com>
79011
79012         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
79013         Toolkit C bug.
79014
79015 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
79016
79017         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
79018         (func_ln_if_changed): Remove forcibly for no error message
79019         in case file does not exist.
79020
79021 2005-04-19  Simon Josefsson  <jas@extundo.com>
79022
79023         * gnulib-tool (Options): Make --symlink mean --symbolic.
79024
79025 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
79026
79027         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
79028
79029 2005-04-16  Simon Josefsson  <jas@extundo.com>
79030
79031         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
79032
79033 2005-04-15  Simon Josefsson  <jas@extundo.com>
79034
79035         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
79036
79037 2005-04-15  Simon Josefsson  <jas@extundo.com>
79038
79039         * gnulib-tool: Rename --symlink to --symbolic.
79040
79041 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79042
79043         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79044         symbolic links to files instead of copying/moving.  Add --aux-dir,
79045         specifying directory relative --dir where auxiliary build tools
79046         are placed.
79047
79048 2005-04-14  Bruno Haible  <bruno@clisp.org>
79049
79050         * modules/allocsa (License): Change to LGPL.
79051         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79052
79053 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79054
79055         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79056         that "UTC +1 second" continues to work.  Problem reported
79057         by Dmitry V. Levin.
79058         (relunit_snumber): New rule.
79059         (relunit): Use it.
79060
79061 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79062
79063         * lib/getdate.y (universal_time_zone_table): New constant.
79064         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79065         universal_time_zone_table.
79066         (lookup_zone): Prefer universal_time_zone_table to
79067         local_time_zone_table, so that "GMT" time stamps are allowed in
79068         London during the summer.  Problem reported by Ian Abbott.
79069
79070 2005-04-12  Jim Meyering  <jim@meyering.net>
79071
79072         * lib/human.c (humblock): Set *options even when returning due to
79073         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79074         warning from gcc-4.
79075
79076 2005-04-09  Jim Meyering  <jim@meyering.net>
79077
79078         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79079         -Wuninitialized: initialize tm0.tm_year.
79080
79081 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79082
79083         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79084         count, since there's no maximum.  All uses changed.
79085         Add member dsts_seen.
79086         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79087         not being INT_MAX.
79088         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79089         Use pc_rels_seen to decide whther a date is absolute.
79090
79091         * lib/getdate.y (number): Don't overwrite year.
79092         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79093         check.
79094
79095 2005-04-02  Simon Josefsson  <jas@extundo.com>
79096
79097         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79098         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79099
79100 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79101
79102         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79103         where no absolute path name can be longer than PATH_MAX.
79104
79105 2005-03-27  Jim Meyering  <jim@meyering.net>
79106
79107         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79108
79109 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79110
79111         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79112         "one's complement" -> "ones' complement" in comment, as per Knuth.
79113         "value of type" -> "type or expression" in comment.
79114         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79115
79116 2005-03-26  Jim Meyering  <jim@meyering.net>
79117
79118         Comment nits.
79119         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79120         Correct typos: s/or/of/.
79121
79122 2005-03-26  Jim Meyering  <jim@meyering.net>
79123
79124         * modules/check-include-files: Move to ../ and rename to...
79125         * check-module: ...this.
79126
79127 2005-03-25  Jim Meyering  <jim@meyering.net>
79128
79129         * modules/xvasprintf (Files): Add xalloc.h.
79130
79131 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79132
79133         * modules/gettext (Files): config/config.rpath ->
79134         build-aux/config.rpath
79135         * modules/iconv (Files): Likewise.
79136         Problem reported by Oskar Liljeblad.
79137
79138 2005-03-23  Jim Meyering  <jim@meyering.net>
79139
79140         * modules/check-include-files: New script to check for
79141         missing dependencies, multiple includes, etc.
79142
79143         * modules/c-strtold (Depends-on): Add xalloc.
79144         * modules/c-strtod (Depends-on): Add xalloc.
79145         * modules/hash (Depends-on): Add xalloc.
79146         (Files): Remove lib/xalloc.h.
79147
79148         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79149         * modules/userspec (Files): Add lib/inttostr.h.
79150
79151 2005-03-23  Jim Meyering  <jim@meyering.net>
79152
79153         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79154
79155 2005-03-22  Jim Meyering  <jim@meyering.net>
79156
79157         * modules/stat-macros: New module.
79158         * modules/canonicalize, modules/euidaccess, modules/file-type,
79159         * modules/filemode, modules/lchown, modules/makepath,
79160         * modules/rmdir, modules/stat: Depend on new stat-macros module
79161         rather than listing lib/stat-macros.h manually.
79162         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79163
79164 2005-03-22  Jim Meyering  <jim@meyering.net>
79165
79166         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79167
79168 2005-03-22  Bruno Haible  <bruno@clisp.org>
79169
79170         * config/srclist.txt: Replace target directory 'config' with
79171         'build-aux'.
79172         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79173         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79174         ../build-aux/.
79175
79176 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * modules/chdir-long (Depends-on): Add mempcpy.
79179
79180         * modules/acl, modules/backupfile, modules/c-strtod,
79181         modules/c-strtold, modules/canon-host, modules/canonicalize,
79182         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79183         modules/exclude, modules/exitfail, modules/file-type,
79184         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79185         modules/getdate, modules/getline, modules/getpagesize,
79186         modules/getpass, modules/getugroups, modules/group-member,
79187         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79188         modules/inttostr, modules/long-options, modules/makepath,
79189         modules/md5, modules/memcasecmp, modules/memcoll,
79190         modules/modechange, modules/mountlist, modules/path-concat,
79191         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79192         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79193         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79194         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79195         modules/strftime, modules/strndup, modules/strverscmp,
79196         modules/timespec, modules/unlocked-io, modules/userspec,
79197         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79198         modules/yesno:
79199         Remove lib_SOURCES line from Makefile.am section, as this is now
79200         done automatically by the corresponding Autoconf macro.
79201
79202 2005-03-21  Jim Meyering  <jim@meyering.net>
79203
79204         Changes imported from coreutils.
79205
79206         * lib/cycle-check.c: Don't include xalloc.h.
79207
79208         * lib/path-concat.c: Don't include assert.h.
79209         (path_concat): Remove assertion that would have triggered
79210         for ABASE starting with more than one slash.
79211         Reported by Andreas Schwab.
79212
79213         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79214         properly when ABASE is an absolute file name.
79215         Correct the description of this function.
79216         Include <assert.h>.
79217         Add an assertion and a test driver.
79218         This fixes a bug introduced on 2004-07-02.
79219         Andreas Schwab reported the resulting failure of cp --parents:
79220         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79221
79222 2005-03-21  Jim Meyering  <jim@meyering.net>
79223
79224         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79225         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79226
79227 2005-03-21  Jim Meyering  <jim@meyering.net>
79228         and  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79231         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79232         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79233         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79234         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79235         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79236         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79237         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79238         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79239         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79240         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79241         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79242         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79243         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79244         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79245         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79246         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79247         for these modules.
79248
79249 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79250
79251         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79252         (which shouldn't happen), generate nothing instead of returning 0
79253         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79254
79255 2005-03-16  Bruno Haible  <bruno@clisp.org>
79256
79257         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79258         HAVE_LONGLONG_64BIT.
79259
79260 2005-03-16  Bruno Haible  <bruno@clisp.org>
79261
79262         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79263         HAVE_LONGLONG_64BIT.
79264
79265 2005-03-16  Bruno Haible  <bruno@clisp.org>
79266
79267         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79268         HAVE_LONGLONG_64BIT.
79269
79270 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79271
79272         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79273         reliably distinguish strftime failure from empty output on POSIX
79274         hosts.
79275
79276 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79277
79278         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79279         (iconv_string): Don't guess a size-zero buffer, as that might cause
79280         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79281         result would be 'too large', where 'too large' is (heuristically)
79282         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79283         overflow concerns.  This will prevent some unwanted malloc failures
79284         when the inputs are very large.
79285
79286 2005-03-15  Karl Berry  <karl@gnu.org>
79287
79288         * config/srclist.txt (config.rpath): from gettext.
79289         * config/config.rpath: update.
79290
79291 2005-03-15  Bruno Haible  <bruno@clisp.org>
79292
79293         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79294         to 'negate'.
79295
79296         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79297         variable.
79298
79299         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79300         results.
79301
79302 2005-03-14  Simon Josefsson  <jas@extundo.com>
79303
79304         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79305         <fx@gnu.org>.
79306
79307 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79310         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79311         intprops.h.
79312         * lib/strtol.c: Likewise.
79313
79314 2005-03-14  Jim Meyering  <jim@meyering.net>
79315
79316         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79317         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79318         to be nonzero so that we (and caller) can detect the difference
79319         between a valid zero-length expansion and an error return, even
79320         when the underlying strftime fails before writing anything into
79321         that location.
79322
79323 2005-03-14  Bruno Haible  <bruno@clisp.org>
79324
79325         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79326         Update from GNU gettext 0.14.3.
79327
79328 2005-03-10  Jim Meyering  <jim@meyering.net>
79329
79330         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79331
79332 2005-03-10  Jim Meyering  <jim@meyering.net>
79333
79334         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79335         so that this module works on systems without fchdir.
79336
79337 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79338
79339         Factor int-properties macros into a single file, except for
79340         glibc-related files.
79341         * lib/intprops.h: New file.
79342         * lib/getloadavg.c: Include it instead of limits.h.
79343         (INT_STRLEN_BOUND): Remove.
79344         * lib/human.c: Include intprops.h.
79345         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79346         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79347         302/1000.
79348         * lib/inttostr.h: Include intprops.h instead of limits.h.
79349         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79350         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79351         for consistency with intprops.h.
79352         (time_t_is_integer, twos_complement_arithmetic): Use them.
79353         * lib/sig2str.h: Include <signal.h>, intprops.h.
79354         (INT_STRLEN_BOUND): Remove.
79355         * lib/strftime.c (TYPE_SIGNED): Remove.
79356         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79357         * lib/strtol.c: Adjust comments to match intprops.h.
79358         * lib/userspec.c: Include intprops.h.
79359         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79360         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79361         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79362         instead of rolling our own expressions.
79363         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79364
79365         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79366         instead of int.
79367         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79368         the right thing even if adding 1900 would overflow.  Similarly
79369         for tm_mon + 1 and tm_yday + 1.
79370         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79371         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79372         (DO_SIGNED_NUMBER): New macro.
79373         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79374
79375 2005-03-07  Bruno Haible  <bruno@clisp.org>
79376
79377         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79378
79379 2005-03-07  Bruno Haible  <bruno@clisp.org>
79380
79381         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79382
79383 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79384
79385         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79386         (func_import): Only replace files via --import when they have actually
79387         changed.
79388
79389 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79390
79391         * m4/mmap-anon.m4: New file.
79392         * m4/pagealign_alloc.m4: New file.
79393
79394 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79395             Bruno Haible  <bruno@clisp.org>
79396
79397         * modules/pagealign_alloc: New file.
79398         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79399
79400 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79401             Bruno Haible  <bruno@clisp.org>
79402
79403         * lib/pagealign_alloc.h: New file.
79404         * lib/pagealign_alloc.c: New file.
79405
79406 2005-03-03  Bruno Haible  <bruno@clisp.org>
79407
79408         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79409         Use an all-permissive copyright notice, recommended by RMS.
79410
79411 2005-03-02  Bruno Haible  <bruno@clisp.org>
79412
79413         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79414         of AIX, the replacement has to be done only after <string.h> is
79415         included, therefore not in config.h. stpncpy.h does the replacement,
79416         and stpncpy.c uses it.
79417
79418 2005-03-02  Bruno Haible  <bruno@clisp.org>
79419
79420         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79421         stpncpy.c uses it.
79422
79423 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79424
79425         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79426         The workaround isn't strictly needed for POSIX conformance, and
79427         it's too much of a pain to configure and maintain.  We'll ask
79428         people to fix their kernels instead.
79429         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79430         (NANOSLEEP_BUG_WORKAROUND): Remove.
79431         (xnanosleep): Remove the workaround.
79432
79433 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79434
79435         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79436         Reported by Derek Price.
79437         (Include): Add "timespec.h".
79438
79439         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79440
79441 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79442
79443         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79444         to detect nanosleep bug.
79445
79446 2005-03-01  Bruno Haible  <bruno@clisp.org>
79447
79448         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79449
79450 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79451
79452         * modules/gethrxtime: New file.
79453         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79454         (Depends-on): Add gethrxtime.
79455         (configure.ac): Add gl_XNANOSLEEP.
79456         (Makefile.am): Remove lib_SOURCES line.
79457
79458 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79459
79460         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79461         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79462
79463 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79464
79465         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79466         * lib/timespec.h (gettime): Return void, since it always
79467         succeeds now.  All uses changed.
79468         * lib/gettime.c (gettime): Likewise.
79469         [HAVE_NANOTIME]: Prefer nanotime.
79470         Assume gettimeofday succeeds, as POSIX requires.
79471         Assime time () succeeds, since other code already does.
79472         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79473         (timespec_subtract): Remove.
79474         (NANOSLEEP_BUG_WORKAROUND): New constant.
79475         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79476         things considerably.  Use it only on GNU/Linux hosts, since the
79477         workaround shouldn't be needed elsewhere.
79478
79479 2005-02-24  Bruno Haible  <bruno@clisp.org>
79480
79481         * modules/gettext (Files): Add m4/glibc2.m4.
79482
79483 2005-02-24  Bruno Haible  <bruno@clisp.org>
79484
79485         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79486         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79487         * m4/progtest.m4:
79488         Update from GNU gettext 0.14.2.
79489         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79490
79491 2005-02-24  Bruno Haible  <bruno@clisp.org>
79492
79493         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79494         * lib/config.charset: Update from GNU gettext 0.14.2.
79495
79496 2005-02-24  Bruno Haible  <bruno@clisp.org>
79497
79498         * lib/gettext.h: Update from GNU gettext 0.14.2.
79499
79500 2005-02-23  Simon Josefsson  <jas@extundo.com>
79501
79502         * m4/iconvme.m4: New file.
79503
79504 2005-02-23  Jim Meyering  <jim@meyering.net>
79505
79506         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79507         change.
79508         Thanks to Bruno Haible for catching it.
79509
79510 2005-02-22  Simon Josefsson  <jas@extundo.com>
79511
79512         * modules/iconvme: New file.
79513
79514         * MODULES.html.sh: Add iconvme.
79515
79516 2005-02-22  Simon Josefsson  <jas@extundo.com>
79517
79518         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79519
79520 2005-02-22  Simon Josefsson  <jas@extundo.com>
79521
79522         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79523
79524 2005-02-22  Jim Meyering  <jim@meyering.net>
79525
79526         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79527         s/ifndef/ifdef/.
79528
79529 2005-02-20  Neil Conway  <neilc@samurai.com>
79530
79531         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79532         returned by OSX/Darwin if the specified buffer is not large
79533         enough for the hostname.
79534
79535 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79536
79537         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79538         pass it to _help, otherwise the latter coredumps trying to
79539         dereference state.root_argp.
79540
79541 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79542
79543         * modules/chdir-long (Depends-on): Add memrchr.
79544         * modules/memrchr (Files): Add lib/memrchr.h.
79545         (Include): "memrchr.h".
79546
79547 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79548
79549         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79550
79551 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * lib/memrchr.h: New file.
79554         * lib/chdir-long.c: Include it.
79555         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79556         Don't bother including stddef.h.
79557
79558 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79559
79560         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79561         inclusion.
79562         Include <sys/types.h>, for dev_t.
79563         (ME_DUMMY, ME_REMOTE): Move from here....
79564         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79565         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79566         Dmitry V. Levin.
79567         Include mountlist.h first, to test the interface.
79568
79569 2005-01-29  Bruno Haible  <bruno@clisp.org>
79570
79571         * lib/progname.c (program_name): Initialize.
79572         Needed when linking statically on MacOS X.
79573
79574 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79575
79576         Sync from coreutils.
79577         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79578         (Depends-on): Add c-strtod.
79579         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79580
79581 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79582
79583         Sync from coreutils.
79584         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79585
79586         Remove files that are specific to coreutils.
79587         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79588
79589 2005-01-28  Bruno Haible  <bruno@clisp.org>
79590
79591         * modules/javacomp: New file.
79592         * MODULES.html.sh (Java): Add javacomp.
79593
79594 2005-01-28  Bruno Haible  <bruno@clisp.org>
79595
79596         * m4/javacomp.m4: New file, from GNU gettext.
79597
79598 2005-01-28  Bruno Haible  <bruno@clisp.org>
79599
79600         * lib/javacomp.sh.in: New file, from GNU gettext.
79601         * lib/javacomp.h: New file, from GNU gettext.
79602         * lib/javacomp.c: New file, from GNU gettext.
79603
79604 2005-01-26  Simon Josefsson  <jas@extundo.com>
79605
79606         * lib/gai_strerror.c: Use GPL in header.
79607
79608 2005-01-26  Bruno Haible  <bruno@clisp.org>
79609
79610         * modules/javaexec: New file.
79611         * MODULES.html.sh (Java): Add javaexec.
79612
79613 2005-01-26  Bruno Haible  <bruno@clisp.org>
79614
79615         * m4/javaexec.m4: New file, from GNU gettext.
79616
79617 2005-01-26  Bruno Haible  <bruno@clisp.org>
79618
79619         * lib/javaexec.sh.in: New file, from GNU gettext.
79620         * lib/javaexec.h: New file, from GNU gettext.
79621         * lib/javaexec.c: New file, from GNU gettext.
79622
79623 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79624
79625         * modules/lchown (Depends-on): Remove lchown.h
79626
79627 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79628
79629         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79630         must be defined if the header file was not found, in order
79631         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79632
79633 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79634
79635         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79636         initializers for struct pentry_state.
79637         (__argp_error): Check return value of __asprintf
79638         (__argp_failure): Translate error message
79639
79640         * lib/argp-parse.c: Removed braces around the expansion of N_()
79641
79642 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79643
79644         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79645         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79646         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79647         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79648         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79649         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79650         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79651         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79652         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79653         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79654         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79655         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79656         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79657         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79658         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79659         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79660         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79661         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79662         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79663         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79664         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79665         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79666         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79667         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79668         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79669         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79670         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79671         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79672         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79673         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79674         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79675         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79676         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79677         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79678         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79679         Use an all-permissive copyright notice, recommended by RMS.
79680
79681 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79682
79683         * modules/chdir-long (Depends-on): Remove mempcpy.
79684
79685 2005-01-21  Jim Meyering  <jim@meyering.net>
79686
79687         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79688         same value as for Solaris 9.
79689
79690         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79691         component length.  This included changing the parameter to be
79692         of type `char *' rather than `char const *'.
79693         * lib/chdir-long.h (chdir_long): Update prototype.
79694
79695         * lib/openat.c (fdopendir, fstatat): New functions.
79696         * lib/openat.h: Include headers required for use of DIR and struct
79697         stat.
79698         [AT_SYMLINK_NOFOLLOW]: Define.
79699         (fdopendir, fstatat): Add prototypes.
79700
79701 2005-01-21  Bruno Haible  <bruno@clisp.org>
79702
79703         * modules/classpath: New file.
79704         * MODULES.html.sh (Java): Add classpath.
79705
79706 2005-01-21  Bruno Haible  <bruno@clisp.org>
79707
79708         * lib/classpath.h: New file, from GNU gettext.
79709         * lib/classpath.c: New file, from GNU gettext.
79710
79711 2005-01-20  Simon Josefsson  <jas@extundo.com>
79712
79713         * modules/version-etc-fsf: New file.
79714
79715 2005-01-20  Simon Josefsson  <jas@extundo.com>
79716
79717         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79718         * lib/version-etc.c: Remove version_etc_copyright.
79719         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79720         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79721
79722 2005-01-20  Simon Josefsson  <jas@extundo.com>
79723
79724         * lib/base64.h (isbase64): Add.
79725
79726         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79727         using a unsigned prototype, don't inline.
79728         (base64_decode): Use it.
79729
79730 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79731
79732         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79733         it.
79734
79735 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79736
79737         * lib/save-cwd.c (save_cwd): Remove code to support the case
79738         where fchdir is missing or flaky.
79739
79740 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79741
79742         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79743
79744 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79745
79746         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79747         AC_LIBSOURCES now does this.
79748         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79749         with new ullong_max module.
79750
79751 2005-01-19  Bruno Haible  <bruno@clisp.org>
79752
79753         * modules/sh-quote: New file.
79754         * MODULES.html.sh (Executing programs): Add sh-quote.
79755
79756 2005-01-19  Bruno Haible  <bruno@clisp.org>
79757
79758         * lib/sh-quote.h: New file, from GNU gettext.
79759         * lib/sh-quote.c: New file, from GNU gettext.
79760
79761 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79762
79763         Merge from coreutils.
79764         * m4/ullong_max.m4: New file.
79765         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79766         (gl_MACROS): Assume localeconv exists.
79767
79768 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         Merge changes from coreutils, as described below in several
79771         changelogs dated today.
79772
79773         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79774         (O_DIRECTORY): Remove; not needed here, since "." must be
79775         a directory.  All uses removed.
79776         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79777         universal on Suns, and we also need to test for IRIX.
79778         Revamp code to use 'if' rather than '#if'.
79779         Avoid unnecessary comparison of cwd->desc to 0.
79780
79781         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79782         for known valid error numbers rather than observed invalid ones.
79783
79784 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79785
79786         * modules/ullong_max: New file.
79787
79788         * modules/chdir-long, modules/openat: New files.
79789         * modules/save-cwd (Depends-on): Depend on chdir-long.
79790         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79791
79792 2005-01-18  Jim Meyering  <jim@meyering.net>
79793
79794         Merge from coreutils.
79795         * m4/chdir-long.m4, m4/openat.m4: New files.
79796         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79797         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79798         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79799         is sane and DOES follow symlinks.  Besides, testing 20 different
79800         systems found no broken chown implementations.
79801         Prompted by a change in rsync's copy of this macro.
79802         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79803
79804         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79805
79806         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79807         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79808         NULL-means-set-to-current-time semantics.
79809         Remove temporary file immediately, rather than waiting
79810         for configure's at-exit trap code to do it.
79811
79812 2005-01-18  Jim Meyering  <jim@meyering.net>
79813
79814         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79815
79816         * lib/utimens.c (futimens): Account for the fact that futimes
79817         can also fail with errno == ENOSYS or errno == ENOENT.
79818         Patch from Dmitry V. Levin.
79819
79820         Change the name of the robust chdir function from chdir to chdir_long.
79821         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79822         (restore_cwd): Use chdir_long, not chdir.
79823         * lib/chdir-long.c: Renamed from chdir.c.
79824         * lib/chdir-long.h: Renamed from chdir.h.
79825         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79826         Hurd.
79827
79828 2005-01-18  Bruno Haible  <bruno@clisp.org>
79829
79830         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79831         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79832         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79833         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79834         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79835         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79836         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79837         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79838         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79839         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79840         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79841         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79842         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79843         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79844         Use an all-permissive copyright notice, recommended by RMS.
79845
79846 2005-01-18  Bob Proulx  <bob@proulx.com>
79847
79848         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79849         simplify offsetof() macro construct to avoid compile failure with
79850         native HP-UX 11.0 ANSI C compiler.
79851
79852 2005-01-17  Bruno Haible  <bruno@clisp.org>
79853
79854         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79855         redundant because stpncpy.m4 takes care of it.
79856
79857 2005-01-17  Bruno Haible  <bruno@clisp.org>
79858
79859         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79860
79861 2005-01-17  Bruno Haible  <bruno@clisp.org>
79862
79863         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79864         used.
79865
79866 2005-01-17  Bruno Haible  <bruno@clisp.org>
79867
79868         * lib/fwriteerror.h (fwriteerror): Change specification to include
79869         fclose.
79870         * lib/fwriteerror.c: Include <stdbool.h>.
79871         (fwriteerror): At the end, close the file stream. Record whether
79872         stdout was already closed.
79873
79874 2005-01-17  Bruno Haible  <bruno@clisp.org>
79875
79876         * lib/execute.c (environ): Declare if needed.
79877         * lib/pipe.c (environ): Likewise.
79878         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79879
79880 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79881
79882         * modules/argp: Depend on vsnprintf
79883
79884 2005-01-10  Jim Meyering  <jim@meyering.net>
79885
79886         * modules/closeout (Depends-on): Add atexit.
79887
79888 2005-01-06  Bruno Haible  <bruno@clisp.org>
79889
79890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79891
79892 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79895         definitions to be after all include files, to avoid collisions.
79896         Problem reported by Bob Proulx.
79897
79898 2005-01-04  Jim Meyering  <jim@meyering.net>
79899
79900         Changes imported from coreutils.
79901         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79902         as the mkstemp template, use a temporary directory and an
79903         8.3-friendly template to avoid trouble on systems like DJGPP.
79904         Reported by Juan M. Guerrero via Stepan Kasal.
79905         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79906         close. Remove the temporary directory right away, rather than waiting
79907         for configure's at-exit trap code to do it.
79908         Suggestion from Stepan Kasal.
79909
79910 2005-01-01  Simon Josefsson  <jas@extundo.com>
79911
79912         * gnulib-tool: Print #include directives when --import'ing.
79913
79914 2004-12-28  Simon Josefsson  <jas@extundo.com>
79915
79916         * tests/test-base64.c: Include required header files.  Remove
79917         unused variables.
79918
79919 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79920
79921         * modules/error (Depends-on): Remove gettext.
79922
79923 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79924
79925         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79926         not needed.  This removes a dependency on the gettext module.
79927         [defined _LIBC]: Do not include <libintl.h>; not needed.
79928
79929 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79930
79931         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79932         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79933
79934 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79935
79936         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79937         HAVE_DECL_STRTOLD.
79938
79939 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79940
79941         * modules/getdate (Depends-on): Remove alloca-opt.
79942
79943 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79944
79945         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79946
79947 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * lib/argp-parse.c: Include <stddef.h>.
79950         (alignof, alignto): New macros.
79951         (parser_init): Don't assume that void * is aligned sufficiently
79952         for struct option.
79953
79954         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79955         need to extend the stack.
79956         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79957         large.
79958
79959 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79960
79961         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79962
79963 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79964
79965         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79966         (2004-10-24) change.  Apparently this was a false alarm.
79967
79968         * modules/getdate: Depend on alloca-opt, not alloca.
79969
79970 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79971
79972         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79973         Remove now-obsolete comment about AIX.
79974         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79975         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79976         (YYMAXDEPTH): New macro.
79977
79978 2004-12-18  Simon Josefsson  <jas@extundo.com>
79979
79980         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79981
79982 2004-12-18  Bruno Haible  <bruno@clisp.org>
79983
79984         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79985
79986 2004-12-18  Bruno Haible  <bruno@clisp.org>
79987
79988         * lib/fatal-signal.c (fatal_signals): Make non-const.
79989         (init_fatal_signals): New function.
79990         (uninstall_handlers, install_handlers): Ignore signals that were set to
79991         SIG_IGN.
79992         (at_fatal_signal): Call init_fatal_signals.
79993         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79994         SIG_IGN.
79995         Reported by Paul Eggert.
79996
79997 2004-12-18  Bruno Haible  <bruno@clisp.org>
79998
79999         * doc/alloca.texi: New file.
80000         * doc/alloca-opt.texi: New file.
80001
80002 2004-12-17  Jim Meyering  <jim@meyering.net>
80003
80004         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
80005         Otherwise, install-sh could exit with improper exit status when
80006         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
80007
80008 2004-12-16  Simon Josefsson  <jas@extundo.com>
80009
80010         * tests/test-base64.c: Add license.
80011
80012 2004-12-15  Stepan Kasal  <address@hidden>
80013
80014         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
80015
80016 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
80017
80018         * modules/getcwd (Files): Add m4/d-ino.m4.
80019         Suggested by Mark D. Baushke.
80020
80021 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80022
80023         * lib/getdate.y (textint): New member "negative".
80024         (time_zone_hhmm): New function.
80025         Expect 14 shift-reduce conflicts, not 13.
80026         (o_colon_minutes): New rule.
80027         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
80028         (yylex): Set the "negative" member of signed numbers.
80029
80030 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80031
80032         * doc/getdate.texi (Time of day items, Time zone items):
80033         Describe new formats +00:00, UTC+00:00.
80034
80035 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80036
80037         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
80038         spurious "-l"s.  Problem reported by Stepan Kasal.
80039
80040 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80041
80042         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80043         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80044
80045 2004-12-04  Simon Josefsson  <jas@extundo.com>
80046
80047         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80048         Vandoorselaere <yoann@prelude-ids.org>.
80049
80050 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80051
80052         Changes imported from coreutils.
80053         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80054         exist.
80055         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80056
80057 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80058
80059         Changes imported from coreutils.
80060         * lib/hard-locale.c: Assume <locale.h> exists.
80061         Include "strdup.h".
80062         (GLIBC_VERSION): New macro.
80063         (hard_locale): Assume setlocale exists.
80064         Rewrite to avoid #ifdef.
80065         Use strdup rather than malloc + strcpy.
80066         * lib/human.c: Assume <locale.h> exists.
80067         (human_readable): Assume localeconv exists.
80068
80069 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80070
80071         * modules/hard-locale (Depends-on): Add strdup.
80072
80073 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80074
80075         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80076         convert T2, not T.  (Imported from libc.)
80077
80078 2004-11-30  Simon Josefsson  <jas@extundo.com>
80079
80080         * modules/restrict (License): Change to LGPL.
80081
80082 2004-11-30  Simon Josefsson  <jas@extundo.com>
80083
80084         * m4/restrict.m4: Add copyright and copying conditions.
80085
80086 2004-11-30  Simon Josefsson  <jas@extundo.com>
80087
80088         * m4/base64.m4: New file.
80089
80090 2004-11-30  Simon Josefsson  <jas@extundo.com>
80091
80092         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80093         base64.
80094
80095         * tests/test-base64.c: New file.
80096
80097         * modules/base64: New file.
80098
80099 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80100
80101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80102         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80103
80104         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80105
80106 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80107
80108         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80109         (__getcwd.c): Don't restore errno; glibc doesn't.
80110         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80111         first, falling back to our code only if its results look suspicious.
80112         Ensure that the resulting buffer is only as large as necessary.
80113
80114         * lib/readutmp.c: Include readutmp.h first.
80115         Include <errno.h>, since readutmp.h no longer does that.
80116         * lib/readutmp.h: Don't include <errno.h>,
80117         <sys/param.h>, <time.h>; not needed to establish interface.
80118         (errno): Remove decl.
80119         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80120         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80121         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80122
80123 2004-11-28  Simon Josefsson  <jas@extundo.com>
80124
80125         * lib/base64.h, base64.c: New file.
80126
80127 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80128
80129         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80130
80131 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80132
80133         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80134         (Depends-on): Remove pathmax, same.  Add mempcpy.
80135         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80136         (Makefile.am): Append getcwd.h to lib_SOURCES.
80137         (Include): Add getcwd.h.
80138         (Maintainer): Change from Jim Meyering to "all, glibc",
80139         since getdate now uses intended-for-glibc code.
80140         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80141         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80142
80143 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80144
80145         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80146         HP's ANSI C compiler.
80147         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80148         Declaring int functions causes warnings on some modern systems and
80149         shouldn't be needed to compile on ancient ones.
80150         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80151         defined.
80152
80153         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80154         with the following changes.
80155         (__set_errno): Parenthesize properly.
80156         Include <stdbool.h>.
80157         (MIN, MAX, MATCHING_INO): New macros.
80158         (__getcwd): Define with prototype, not K&R form.
80159         Use heuristics to allocate default buffer on stack if possible.
80160         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80161         behavior, and to avoid the PATH_MAX limit when computing
80162         ../../../../...
80163         Use MATCHING_INO to compare inode number to file.
80164         Check for arithmetic overflow in size calculations.
80165         Fix bug in reallocation of dot array that caused getcwd to fail
80166         on directories nested deeper than 75.
80167         Be more careful about saving errno on error.
80168         Do not use realloc; use only free+malloc, as this is a bit
80169         more flexible and avoids a needless copy operation.
80170         Do not inspect st_dev and st_ino for symbolic links; POSIX
80171         doesn't specify the latter.
80172         Check for closedir errors.
80173         Avoid needless casts.
80174         Use "#ifdef weak_alias" around weak_alias, to be like other
80175         glibc code.
80176         The following changes to getcwd.c have effect only when used in
80177         gnulib; they have no effect inside glibc proper.
80178         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80179         as alloca isn't used.
80180         (alloca, __alloca): Likewise.
80181         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80182         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80183         unconditionally, as gnulib assumes C89 or better.
80184         Do not include <sys/param.h>.
80185         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80186         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80187         better.
80188         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80189         Include <dirent.h> in a way that is compatible with modern Autoconf.
80190         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80191         New macros, if not already defined.
80192         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80193         Use "_LIBC", not "defined _LIBC", for consistency.
80194         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80195         a mempcpy module.
80196         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80197         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80198         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80199         credit only to Jim Meyering and adjust the copyright dates.
80200         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80201         <stdlib.h>, <unistd.h>, "pathmax.h".
80202         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80203         (INITIAL_BUFFER_SIZE): Remove.
80204         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80205
80206 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80207
80208         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80209         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80210         Use the _ONCE methods, for efficiency.
80211         Check for fcntl.h.  In test program, include <errno.h>
80212         and <fcntl.h> if available.  Remove old K&R cruft from
80213         test program.  Check for common errors in GNU/Linux,
80214         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80215         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80216         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80217         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80218         name accordingly.
80219         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80220         accommodate new getcwd.c.
80221         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80222         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80223         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80224         that's all we need now.
80225
80226 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80227
80228         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80229         argp-parse.c depends on getopt internals, that means we should
80230         always use our getopt, to be on the safe side.
80231         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80232         order not to spoil the result of an eventual previous invocation
80233         of gl_GETOPT_SUBSTITUTE.
80234
80235 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80236
80237         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80238         redefinition warnings. To avoid them, include the defines
80239         in `#if !defined __need_getopt ... #endif'. The only place
80240         where __getopt_argv_const is used is in definitions
80241         of getopt_long and getopt_long_only below, which are as well
80242         protected by `#ifndef __need_getopt'.
80243         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80244         __need_getopt after including <stdio.h> and <unistd.h> These
80245         headers might have defined it.
80246
80247 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80248
80249         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80250
80251 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80252
80253         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80254         (futimens): New function, which uses futimes if available.
80255         (futimens, utimens): Support timespec==NULL, with same semantics
80256         as utime and utimens.
80257         * lib/utimens.h (futimens): New decl.
80258
80259 2004-11-23  Jim Meyering  <jim@meyering.net>
80260
80261         * lib/getopt_.h: Remove trailing blanks.
80262
80263 2004-11-23  Jim Meyering  <jim@meyering.net>
80264
80265         * lib/__fpending.c: Add comment.
80266
80267 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80268
80269         * modules/canonicalize (Depends-on): Add xreadlink.
80270         Problem reported by James Youngman.
80271
80272 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80273
80274         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80275         New macros.
80276         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80277         optopt): Use them instead of invoking ## directly; otherwise, the
80278         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80279
80280 2004-11-19  Bruno Haible  <bruno@clisp.org>
80281
80282         * lib/strtok_r.c: Move comments from here...
80283         * lib/strtok_r.h: ... to here.
80284
80285 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80286
80287         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80288         implementations that mishandle size_t overflow.
80289
80290 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80291
80292         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80293         might fail.  Problem reported by Yoann Vandoorselaere.
80294         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80295         implementations that mishandle size_t overflow.
80296
80297 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80298
80299         * modules/canon-host (Depends-on): Add strdup.
80300
80301 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80302
80303         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80304
80305 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80306
80307         * lib/canon-host.c: Include "strdup.h".
80308         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80309         Use strdup instead of malloc/strcpy to duplicate strings.
80310
80311         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80312         (human_space_before_unit): New constant.
80313         * lib/human.c (human_readable): Support it.
80314
80315         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80316         (xgetcwd): Set errno correctly when failing.
80317         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80318         the failure is actually due to a PATH_MAX problem.
80319
80320         Further getopt changes to make it more likely that glibc will
80321         buy the changes back.
80322         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80323         (getopt): Use it, so to preserve glibc semantic
80324         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80325         when compiling for libc.
80326         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80327         (getopt_long, getopt_long_only): Use it.
80328
80329         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80330         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80331         (getopt): Argv is now char * const *, as per standard.
80332         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80333         not char *__getopt_argv_const *.
80334         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80335         _getopt_long_only_r): Likewise.
80336         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80337         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80338         _getopt_long_r, _getopt_long_only_r): Likewise.
80339         * lib/getopt_.h (__getopt_argv_const): Remove.
80340         (getopt): Argv is now char * const *, as per standard.
80341
80342         * lib/getdate.y (tORDINAL): New token.
80343         (day, relunit): Allow it for relative times.
80344         (relative_time_table): Use tORDINAL for ordinals.
80345
80346 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80347
80348         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80349         Document that "second" isn't allowed as an ordinal number.
80350
80351 2004-11-16  Jim Meyering  <jim@meyering.net>
80352
80353         * modules/closeout (Depends-on): Add fpending.
80354
80355 2004-11-15  Jim Meyering  <jim@meyering.net>
80356
80357         * lib/closeout.c: Include "__fpending.h" once again.
80358         Include <stdbool.h>.
80359         (close_stdout): Don't fail just because stdout was closed initially,
80360         since some programs don't write to stdout in the normal course of
80361         operation (other than --version and --help), and we don't want this
80362         function to make e.g. `touch file >&-' fail.
80363         But do fail if it was closed and someone has tried to write to it.
80364         E.g., `printf foo >&-' must fail.
80365
80366 2004-11-13  Jim Meyering  <jim@meyering.net>
80367
80368         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80369
80370 2004-11-12  Simon Josefsson  <jas@extundo.com>
80371
80372         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80373         small doc fix is still pending.
80374
80375 2004-11-11  Simon Josefsson  <jas@extundo.com>
80376
80377         * modules/strtok_r: New file.
80378
80379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80380         strtok_r.
80381
80382 2004-11-11  Simon Josefsson  <jas@extundo.com>
80383
80384         * m4/strtok_r.m4: New file.
80385
80386         * m4/getopt.m4: Replace opterr.
80387
80388 2004-11-11  Simon Josefsson  <jas@extundo.com>
80389
80390         * lib/strtok_r.h, strtok_r.c: New file.
80391
80392 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80393
80394         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80395         of replacing opterr, getopt, etc.  This should handle the
80396         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80397
80398 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80399
80400         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80401         we can stop lying to compilers about the constness of argv when we
80402         are compiled outside glibc.
80403         (getopt, getopt_long, getopt_long_only): Use it.
80404         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80405         _getopt_internal, getopt): Likewise.
80406         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80407         _getopt_long_only_r): Likewise.
80408         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80409         _getopt_long_r, _getopt_long_only_r): Likewise.
80410
80411         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80412         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80413         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80414         the other external symbols.
80415         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80416         declaration, since the above renaming now works around collisions.
80417
80418 2004-11-11  Jim Meyering  <jim@meyering.net>
80419
80420         * lib/linebreak.c: Remove trailing blanks.
80421         * lib/alloca_.h: Likewise.
80422         * lib/acosl.c: Likewise.
80423         * lib/euidaccess.c: Likewise.
80424         * lib/allocsa.h: Likewise.
80425
80426 2004-11-10  Simon Josefsson  <jas@extundo.com>
80427
80428         * m4/getaddrinfo.m4: New file.
80429
80430 2004-11-10  Simon Josefsson  <jas@extundo.com>
80431
80432         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80433
80434 2004-11-10  Simon Josefsson  <jas@extundo.com>
80435
80436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80437         getaddrinfo.
80438
80439         * modules/getaddrinfo: New file.
80440
80441 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80444
80445 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80446
80447         * lib/mktime.c (SHR): New macro, which is a portable
80448         substitute for >> that should work even on Crays.
80449         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80450         Problem reported by Mark D. Baushke in
80451         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80452         * lib/getdate.y (SHR): Likewise.
80453         (tm_diff): Use it.
80454         * lib/strftime.c (SHR): Likewise.
80455         (tm_diff): Use it.
80456         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80457         quote_these_too, so that right shifts are well defined.  All uses
80458         changed.
80459
80460 2004-11-10  Jim Meyering  <jim@meyering.net>
80461
80462         Ensure that no close failure goes unreported.
80463         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80464         return early when it seems there's nothing to flush.
80465         Don't include __fpending.h.
80466
80467 2004-11-10  Jim Meyering  <jim@meyering.net>
80468
80469         * modules/closeout (Depends-on): Remove fpending.
80470
80471 2004-11-10  Jim Meyering  <jim@meyering.net>
80472
80473         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80474
80475 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80476
80477         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80478         gl_FUNC_STRFTIME.
80479         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80480         and AC_REQUIRE when possible, to avoid duplicate checks.
80481         Check for <wchar.h>.
80482
80483 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80484
80485         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80486
80487 2004-11-09  Bruno Haible  <bruno@clisp.org>
80488
80489         * m4/sockpfaf.m4: New file.
80490
80491 2004-11-05  Bruno Haible  <bruno@clisp.org>
80492
80493         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80494         Reported by Mark D. Baushke <mdb@cvshome.org>.
80495
80496 2004-11-04  Bruno Haible  <bruno@clisp.org>
80497
80498         2004-09-11  Bruno Haible  <bruno@clisp.org>
80499                 * allocsa.valgrind: New file.
80500         2004-02-06  Bruno Haible  <bruno@clisp.org>
80501                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80502                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80503                 Reported by Christopher Seip <chris.seip@hp.com>.
80504
80505 2004-11-04  Bruno Haible  <bruno@clisp.org>
80506
80507         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80508         (Makefile.am): Distribute it.
80509
80510 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80511
80512         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80513         with errno == ERANGE if the buffer is too small.
80514         Problem reported by Mark D. Baushke.
80515
80516 2004-11-03  Albert Chin  <china@thewrittenword.com>
80517             Paul Eggert  <eggert@cs.ucla.edu>
80518
80519         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80520         equivalent, substitute $ac_type for equivalent type rather than
80521         blindly using uint32_t *always* which won't work if uint32_t is not
80522         available.  Define _UINT32_T to work around typedef of uint32_t if
80523         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80524         2.5.1.
80525
80526 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80527
80528         * m4/jm-macros.m4: Sync from coreutils.
80529         (gl_MACROS): Check for mbrlen, for pathchk.
80530         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80531
80532 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80533
80534         * lib/xreadlink.c (MAXSIZE): New macro.
80535         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80536         size does not exceed MAXSIZE.  Avoid cast.
80537         As suggested by Mark D. Baushke in
80538         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80539         if readlink fails with buffer size just under MAXSIZE, try again
80540         with MAXSIZE.
80541
80542 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80543
80544         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80545
80546 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80547         and  Paul Eggert  <eggert@cs.ucla.edu>
80548
80549         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80550         (get_date): Overparenthesize to avoid GCC warning.
80551
80552 2004-11-02  Bruno Haible  <bruno@clisp.org>
80553
80554         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80555         returns void.
80556
80557 2004-11-02  Bruno Haible  <bruno@clisp.org>
80558
80559         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80560         function returns void.
80561
80562 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80563
80564         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80565         fflush_unlocked, flockfile, funlockfile, funlockfile,
80566         fputs_unlocked, putc_unlocked.
80567
80568 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80569
80570         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80571         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80572         already declared.
80573
80574 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80575
80576         * modules/getdate (Files): Add doc/getdate.texi.
80577         (Depends-on): Add setenv, xalloc.
80578
80579 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80580
80581         * lib/getdate.y: Add support for TZ="foo" within a date string.
80582         Fix some bugs near time_t boundaries.  Reject dates with
80583         out-of-range components, e.g., "Sept 31".
80584         Include <stdlib.h>, "setenv.h", "xalloc.h".
80585         (ISDIGIT_LOCALE): Remove; unused.
80586         Note that the TZ and time functions used here are not reentrant.
80587         (mktime_ok, get_tz): New functions.
80588         (TZBUFSIZE): New constant.
80589         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80590         This requires that we sometimes generate our own TZ="XXX..." setting.
80591
80592 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80593
80594         * doc/getdate.texi: New file, from coreutils with modifications for
80595         the new TZ parsing.
80596
80597 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80598
80599         * lib/mktime.c (not_equal_tm): Remove redundant check.
80600
80601 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80602
80603         * modules/regex (lib_SOURCES): Add regex.c.
80604         Reported by James Youngman in
80605         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80606
80607 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80608
80609         * lib/getdate.y: Use Bison 1.875 features, and some minor
80610         code cleanups.  This change does not affect semantics.
80611         Don't include <stdlib.h>; no longer needed.
80612         Don't include unlocked-io.h; only the "#if TEST" code uses
80613         stdio, and performance isn't crucial there.
80614         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80615         Bison 1.875 features as described below.
80616         All uses of "PC." replaced by "pc->".
80617         (YYSTYPE): Add a forward declaration.
80618         (yylex, yyerror): Use full prototypes in forward decls.
80619         Use "%pure-parser" rather than obsolescent "%pure_parser".
80620         Use %parse-param and %lex-param instead of obsolescent
80621         YYPARSE_PARAM and YYLEX_PARAM.
80622         (meridian_table, month_and_day_table, time_units_table,
80623         relative_time_table, time_zone_table, military_table,
80624         lookup_zone, lookup_word, get_date):
80625         Use NULL instead of 0 where appropriate.
80626         (to_hour): Avoid abort (), to avoid a dependency on
80627         stdlib.h.
80628         (yyerror, yylex): Now accepts parser_control * arg.
80629         (main) [TEST]: Use '\0' rather than 0 for char.
80630
80631 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80632
80633         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80634
80635 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80636
80637         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80638         It's now the caller's responsibility to handle the case where
80639         !HAVE_GETPAGESIZE && !defined getpagesize.
80640
80641         * lib/mktime.c (leapyear): Arg is long int, not int.
80642
80643 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80644
80645         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80646
80647 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80648
80649         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80650         missing.  Problem reported by James Youngman.
80651
80652 2004-10-16  Simon Josefsson  <jas@extundo.com>
80653
80654         * gnulib-tool: Fix comments.  Fix parse problem.
80655         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80656
80657 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80658
80659         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80660         implementation of getopt_long.  Problem reported by Alexander Taler in:
80661         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80662
80663 2004-10-15  Bruno Haible  <bruno@clisp.org>
80664
80665         * gnulib-tool: Untabify. Initialize supplied_libname.
80666         (func_usage): More homogenous output.
80667         (func_modules_transitive_closure, func_modules_to_filelist,
80668         func_emit_lib_Makefile_am): New functions.
80669         (func_import): New function, extracted from big case statement. Use
80670         func_get_license, func_modules_transitive_closure,
80671         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80672         opt_lgpl. Don't use test -a, as it's not portable.
80673         (func_create_testdir): Use func_modules_transitive_closure,
80674         func_modules_to_filelist, func_emit_lib_Makefile_am.
80675
80676 2004-10-15  Bruno Haible  <bruno@clisp.org>
80677
80678         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80679
80680 2004-10-15  Bruno Haible  <bruno@clisp.org>
80681
80682         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80683         the portions belonging to each module.
80684         Suggested by Derek Robert Price <derek@ximbiot.com>.
80685
80686 2004-10-12  Simon Josefsson  <jas@extundo.com>
80687
80688         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80689         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80690         to real functions.
80691
80692 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80693
80694         * modules/vsnprintf: New file.
80695
80696 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80697
80698         * m4/vsnprintf.m4: New file.
80699
80700 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80701
80702         * lib/vsnprintf.h: New file.
80703         * lib/vsnprintf.c: New file.
80704
80705 2004-10-11  Bruno Haible  <bruno@clisp.org>
80706
80707         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80708         vsnprintf.
80709
80710 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80713
80714 2004-10-07  Bruno Haible  <bruno@clisp.org>
80715
80716         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80717         fits into the provided buffer.
80718
80719 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80720
80721         * lib/diacrit.c, diacrit.h: Add GPL notice.
80722
80723         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80724         notice.
80725         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80726         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80727         This avoids a potential constant-folding bug.
80728
80729 2004-10-05  Bruno Haible  <bruno@clisp.org>
80730
80731         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80732         for the declaration of strsep.
80733
80734 2004-10-05  Bruno Haible  <bruno@clisp.org>
80735
80736         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80737
80738 2004-10-04  Simon Josefsson  <jas@extundo.com>
80739
80740         * modules/memmem: New file.
80741         * tests/test-memmem.c: New file.
80742         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80743
80744 2004-10-04  Simon Josefsson  <jas@extundo.com>
80745
80746         * m4/memmem.m4: New file.
80747
80748 2004-10-04  Simon Josefsson  <jas@extundo.com>
80749
80750         * lib/memmem.h: New file.
80751         * lib/memmem.c: New file, taken from glibc.
80752
80753 2004-10-04  Simon Josefsson  <jas@extundo.com>
80754
80755         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80756         '#ifdef USE_UNLOCKED_IO'.
80757
80758 2004-10-04  Simon Josefsson  <jas@extundo.com>
80759
80760         * config/srclist.txt: Add memmem from glibc.
80761
80762 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80763
80764         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80765
80766         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80767         modules/exclude, modules/getdate, modules/getline,
80768         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80769         modules/getusershell, modules/linebuffer, modules/md5,
80770         modules/mountlist, modules/posixtm, modules/readtokens,
80771         modules/readutmp, modules/regex, modules/sha1,
80772         modules/version-etc, modules/yesno:
80773         Remove dependency on unlocked-io.
80774
80775 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80776
80777         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80778
80779         * m4/unlocked-io.m4: Add copyright notice.
80780         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80781
80782 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80783
80784         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80785         * lib/xmalloc.c (xmemdup): Likewise.
80786         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80787         XFREE): Remove these long-obsolescent macros.
80788         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80789         * lib/xstrdup.c: Remove.
80790
80791         * lib/regex.c (re_comp): Cast gettext return value to char *,
80792         Problem reported by Martin Neitzel via Mark D. Baushke.
80793
80794 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80795
80796         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80797         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80798         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80799         regex.c, sha1.c, version-etc.c, yesno.c:
80800         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80801         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80802         the includer's responsibility.
80803
80804         Sync from coreutils.
80805
80806         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80807         points to the start of a string, as the C Standard says the
80808         resulting behavior is undefined.
80809
80810         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80811         simple -> simple_backups, numbered_existing ->
80812         numbered_existing_backups, numbered -> numbered_backups
80813         to avoid shadowing problems.  All uses changed.
80814         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80815         * lib/backupfile.c (check_extension, numbered_backup):
80816         Rename locals to avoid shadowing 'basename'.
80817         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80818         once.
80819
80820         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80821         * lib/.cvsignore: Add getopt.h.
80822
80823 2004-10-04  Bruno Haible  <bruno@clisp.org>
80824
80825         * modules/README: New file.
80826         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80827         not a module.
80828
80829 2004-10-02  Jim Meyering  <jim@meyering.net>
80830
80831         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80832
80833 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80834
80835         * modules/strsep: New file.
80836
80837 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80838
80839         * m4/strsep.m4: New file.
80840
80841 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80842
80843         * lib/strsep.h: New file.
80844         * lib/strsep.c: New file.
80845
80846 2004-10-01  Simon Josefsson  <jas@extundo.com>
80847
80848         * lib/snprintf.c (snprintf): Handle size==0.
80849
80850 2004-10-01  Simon Josefsson  <jas@extundo.com>
80851             Bruno Haible  <bruno@clisp.org>
80852
80853         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80854         (snprintf): Declare 'args'.
80855
80856 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80857
80858         * lib/snprintf.c: Remove comments as to why each header is needed.
80859
80860 2004-10-01  Bruno Haible  <bruno@clisp.org>
80861
80862         * MODULES.html.sh: Add strsep.
80863
80864 2004-09-30  Simon Josefsson  <jas@extundo.com>
80865
80866         * modules/snprintf: New file.
80867
80868 2004-09-30  Simon Josefsson  <jas@extundo.com>
80869
80870         * m4/snprintf.m4: New file.
80871
80872 2004-09-30  Simon Josefsson  <jas@extundo.com>
80873
80874         * lib/snprintf.h, lib/snprintf.c: New files.
80875
80876 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80877
80878         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80879         (hol_entry_help): Never translate an empty string.
80880         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80881         * lib/argp.h (OPTION_NO_TRANS): New option.
80882
80883 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80884
80885         * modules/argp (Maintainer): Replace Simon Josefsson
80886         by Sergey Poznyakoff.
80887
80888 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80889
80890         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80891         changes merged back into glibc.
80892
80893 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80894
80895         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80896
80897 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80898
80899         * lib/xvasprintf.c: Include xalloc.h.
80900         (xvasprintf): Use xalloc_die, not xmalloc_die.
80901
80902 2004-09-29  Bruno Haible  <bruno@clisp.org>
80903
80904         * modules/alloca-opt: New file, derived from modules/alloca.
80905         * modules/allocsa: Depend on alloca-opt instead of alloca.
80906         * modules/setenv: Likewise.
80907         * modules/vasnprintf: Likewise.
80908         * MODULES.html.sh: Add alloca-opt.
80909
80910 2004-09-28  Simon Josefsson  <jas@extundo.com>
80911
80912         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80913         LGPL, and to replace license template from GPL to LGPL.
80914
80915 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80916
80917         * modules/dummy: Change license to LGPL.
80918
80919 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80920
80921         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80922
80923 2004-09-24  Simon Josefsson  <jas@extundo.com>
80924
80925         * modules/minmax (License): Change from GPL to LGPL.
80926
80927 2004-09-23  Simon Josefsson  <jas@extundo.com>
80928
80929         * gnulib-tool (--import): Typo.
80930
80931 2004-09-23  Simon Josefsson  <jas@extundo.com>
80932
80933         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80934
80935 2004-09-22  Bruno Haible  <bruno@clisp.org>
80936
80937         * modules/*: Add 'License' field.
80938         * gnulib-tool: Accept --extract-license option.
80939         (func_get_license): New function.
80940
80941 2004-09-21  Bruno Haible  <bruno@clisp.org>
80942
80943         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80944         Reported by Simon Josefsson.
80945
80946 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80947
80948         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80949         gl_AC_TYPE_LONG_LONG.
80950
80951 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80952
80953         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80954
80955 2004-09-18  Simon Josefsson  <jas@extundo.com>
80956         and  Paul Eggert  <eggert@cs.ucla.edu>
80957
80958         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80959         calls with autoreconf.  Define GL_LIB.
80960
80961 2004-09-14  Karl Berry  <karl@gnu.org>
80962
80963         * config/srclist.txt: unsync setenv.c, sigh.
80964
80965 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80966
80967         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80968         Problem reported by Bruno Haible in:
80969         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80970
80971 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80972
80973         * config/srclist.txt: Comment out argp-pvh.c.
80974
80975 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80976
80977         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80978         in case some system header has #define'd it.  Problem reported by
80979         Soeren D. Schulze in
80980         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80981
80982 2004-09-09  Karl Berry  <karl@gnu.org>
80983
80984         * regex.[ch]: delete from the root.  These were supposed to be
80985                 synced with emacs cvs, but this has not happened for about
80986                 a year, and anyway nothing else uses emacs regex.[ch].
80987                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80988                 lib/regex[.ch] is untouched.
80989
80990 2004-09-09  Bruno Haible  <bruno@clisp.org>
80991
80992         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80993
80994 2004-09-09  Bruno Haible  <bruno@clisp.org>
80995
80996         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80997         modifications.
80998         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80999
81000 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81001
81002         * modules/xvasprintf: New file.
81003         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
81004
81005 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81006
81007         * lib/xvasprintf.h: New file.
81008         * lib/xvasprintf.c: New file.
81009         * lib/xasprintf.c: New file.
81010
81011 2004-09-08  Bruno Haible  <bruno@clisp.org>
81012
81013         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
81014
81015 2004-09-08  Bruno Haible  <bruno@clisp.org>
81016
81017         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
81018         length is > INT_MAX.
81019         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
81020         more.
81021
81022 2004-09-08  Bruno Haible  <bruno@clisp.org>
81023
81024         * lib/stdint_.h: New file, taken from GNU clisp.
81025
81026 2004-09-08  Bruno Haible  <bruno@clisp.org>
81027             Oskar Liljeblad  <oskar@osk.mine.nu>
81028
81029         * modules/stdint: New file.
81030         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
81031
81032 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81033
81034         Import from coreutils.
81035         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
81036         strings on unbounded length.  alloca's performance benefits aren't
81037         that important here.
81038         (V_STRDUP): Remove.
81039         (parse_with_separator): New function, with most of the internals
81040         of the old parse_user_spec.  Allow user to omit both user and group,
81041         for compatibility with FreeBSD.
81042         Clone only the user name, not the entire spec.
81043         Do not set *uid, *gid unless entirely successful.
81044         Avoid memory leak in some failing cases.
81045         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81046         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81047         (parse_user_spec): Rewrite to use parse_with_separator.
81048
81049 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81050
81051         * modules/userspec: Don't depend on alloca.
81052
81053 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81054
81055         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81056
81057 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81058
81059         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
81060         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
81061         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81062
81063 2004-08-16  Simon Josefsson  <jas@extundo.com>
81064
81065         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81066         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81067         Add --dry-run for --import.
81068         Let user provided command line parameters override configure.ac
81069         settings.
81070
81071 2004-08-12  Simon Josefsson  <jas@extundo.com>
81072
81073         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81074         as discussed with Paul Eggert in threads rooted at
81075         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81076         and
81077         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81078         Before, the test was empty, and relied on ELIDE_CODE in source
81079         code.)
81080         (gl_PREREQ_GETOPT): New macro.
81081         (gl_GETOPT): Use them.
81082
81083 2004-08-12  Simon Josefsson  <jas@extundo.com>
81084
81085         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81086         * lib/getopt_.h: Renamed from getopt.h.
81087
81088 2004-08-12  Simon Josefsson  <jas@extundo.com>
81089
81090         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81091         Change default library name from libfoo to libgnu.
81092         Now, if you have a configure.ac that says:
81093                 gl_SOURCE_BASE(gl)
81094                 gl_M4_BASE(gl/m4)
81095                 gl_MODULES(error getopt etcetera)
81096                 gl_INIT
81097         you can import all you need by running:
81098                 ../gnulib/gnulib-tool --import
81099
81100         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81101         (Makefile.am): Rewrite, use logic from argz.
81102         (Include): Use <getopt.h> instead of "getopt.h".
81103
81104 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81105
81106         * modules/argp (Files): Add m4/unlocked-io.m4.
81107         (Depends-on): Add extensions.
81108
81109 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81110
81111         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81112         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81113         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81114         Check for program_invocation_name, program_invocation_short_name,
81115         flockfile, funlockfile, features.h, _getopt_long_only_r.
81116
81117 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81118
81119         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81120         its complicated substitute.
81121         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81122         and program_invocation_name.
81123         (__argp_basename) [!_LIBC]: Remove; the only use was
81124         replaced by its body.
81125         (__argp_short_program_name): Change condition from
81126         !defined __argp_short_program_name to
81127         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81128         to match argp-namefrob.h.
81129         (__argp_failure): Don't assume strerror_r returns char *.
81130         * lib/argp-parse.c (N_): Define unconditionally.
81131         (argp_default_options): Fill out initializers with 0 to avoid
81132         gcc warnings.
81133
81134 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81135
81136         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81137         getopt1.c.
81138
81139 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81140
81141         Merge from coreutils.
81142
81143         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81144
81145         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81146         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81147
81148 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81149
81150         Merge from coreutils.
81151
81152         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81153         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81154         for Reliant Unix 5.43.
81155
81156         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81157         (union fooround): Use uintmax_t, not long int.
81158         The rest is a merge from libc:
81159         [defined _LIBC]: Include <shlib-compat.h>.
81160         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81161
81162         * lib/settime.c (settime): Recode to avoid warning with
81163         Sun Forte C 6U2.
81164
81165         * lib/strverscmp.c: Convert to UTF-8.
81166
81167 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81168
81169         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81170         m4/uintmax_t.m4.
81171
81172 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81173
81174         * modules/xalloc-die: New file.
81175         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81176
81177         * modules/md5 (Files): Add m4/uint32_t.m4.
81178         * modules/sha1: Renamed from modules/sha.
81179         (Files):
81180         Rename lib/sha.h to lib/sha1.h.
81181         Rename lib/sha.c to lib/sha1.c.
81182         Rename m4/sha.m4 to m4/sha1.m4.
81183         (lib_SOURCES): Likewise.
81184         (configure.ac): Rename gl_SHA to gl_SHA1.
81185         (Include): sha.h -> sha1.h.
81186
81187 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81188
81189         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81190         * m4/sha1.m4: Renamed from sha.m4.
81191         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81192
81193 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81194
81195         * lib/obstack.h (obstack_empty_p):
81196         Don't assume that chunk->contents is suitably aligned.
81197         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81198         Likewise. Problem reported by Benno in
81199         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81200
81201         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81202         readable.  This could be improved further but it'd take some work.
81203
81204 2004-08-08  Simon Josefsson  <jas@extundo.com>
81205
81206         * modules/xgethostname (Depends-on): Remove exit and error (not
81207         used).
81208
81209         * modules/getpass-gnu: Add getpass.h.
81210         (Depends-on): Add stdbool.
81211         * modules/getpass: Add getpass.h.
81212
81213 2004-08-08  Simon Josefsson  <jas@extundo.com>
81214
81215         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81216         Check getpass declaration.
81217
81218 2004-08-08  Simon Josefsson  <jas@extundo.com>
81219
81220         * lib/xgethostname.c: Don't include error.h (not used).
81221
81222         * lib/getpass.h: Add.
81223         * lib/getpass.c: Include getpass.h first.
81224
81225 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81226
81227         * lib/xalloc-die.c: New file.
81228         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81229         All uses removed.
81230         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81231         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81232         xalloc-die.c.
81233         (_, N_, xalloc_die): Move to xalloc-die.c.
81234         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81235         so that we needn't mess with xalloc_msg_memory_exhausted.
81236
81237         * lib/sha1.h: Renamed from sha.h.
81238         (SHA1_H): Renamed from _SHA_H.
81239         (sha1_ctx): Renamed from sha_ctx.
81240         (sha1_init_ctx): Renamed from sha_init_ctx.
81241         (sha1_process_block): Renamed from sha_process_block.
81242         (sha1_process_bytes): Renamed from sha_process_bytes.
81243         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81244         (sha1_read_ctx): Renamed from sha_read_ctx.
81245         (sha1_stream): Renamed from sha_stream.
81246         (sha1_buffer): Renamed from sha_buffer.
81247         * lib/sha1.c: Likewise; renamed from sha.c.
81248         Do not include <sys/types.h>.
81249         Include <stddef.h> rather than <stdlib.h>.
81250
81251 2004-08-08  Bruno Haible  <bruno@clisp.org>
81252
81253         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81254         FILESYSTEM_PREFIX_LEN.
81255         * lib/progreloc.c: Likewise.
81256         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81257
81258 2004-08-06  Simon Josefsson  <jas@extundo.com>
81259
81260         * modules/progname (Depends-on): Don't depend on stdbool.
81261
81262 2004-08-06  Simon Josefsson  <jas@extundo.com>
81263
81264         * modules/getsubopt: New file.
81265         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81266         getsubopt.
81267
81268 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81269
81270         More merge from coreutils.
81271
81272         * m4/utimens.m4, m4/utimecmp.m4: New files.
81273         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81274         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81275         prereq.m4, sha.m4: Import changes from coreutils.
81276
81277 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81278
81279         More merge from coreutils.
81280         * modules/raise, modules/readtokens0, modules/utimens:
81281         * modules/utimecmp, module/xnanosleep: New files.
81282         * modules/strftime: Add lib/strftime.h.
81283         Change include from <time.h> to "strftime.h".
81284         * modules/yesno: Add lib/yesno.h.
81285         * modules/backupfile: Remove lib/addext.c.
81286         * modules/euidaccess: Add stat-macros.h.
81287         * modules/canonicalize, modules/euidaccess,
81288         modules/filemode, modules/lchown, modules/makepath,
81289         modules/rmdir, modules/stat: Likewise.
81290
81291 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81292
81293         Merge from tar.
81294         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81295         SIZE_MAX is a valid preprocessor constant.
81296         (__argp_basename): Change from "#ifndef _LIBC"
81297         to "#ifndef __argp_short_program_name", so that
81298         we don't compile these functions for tar.
81299
81300         More merges from coreutils.
81301         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81302         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81303         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81304         * lib/addext.c: Remove; no longer needed.
81305         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81306         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81307         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81308         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81309         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81310         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81311         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81312         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81313         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81314         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81315         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81316         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81317         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81318         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81319         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81320         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81321         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81322         Import changes from coreutils.
81323
81324 2004-08-05  Simon Josefsson  <jas@extundo.com>
81325
81326         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81327
81328 2004-08-05  Simon Josefsson  <jas@extundo.com>
81329
81330         * m4/getsubopt.m4: New file.
81331
81332 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         Merge from coreutils.
81335
81336         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81337         * m4/getcwd-path-max.m4: New files.
81338
81339         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81340         FILESYSTEM_PREFIX_LEN ->
81341         FILE_SYSTEM_PREFIX_LEN.
81342         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81343         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81344         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81345         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81346
81347         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81348         prerequisite modules now handle the DOS stuff.
81349         Don't check for unistd.h.
81350
81351 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81352
81353         Merge from coreutils.
81354
81355         * lib/.gdb-history: Remove; this doesn't belong here.
81356
81357         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81358         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81359         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81360         * lib/getcwd.c: New files.
81361
81362         * lib/dirname.h: Include <stdbool.h>.
81363         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81364         for consistency with POSIX terminology.  All uses changed.
81365         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81366         (strip_trailing_slashes): Use bool for booleans.
81367         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81368
81369         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81370         sometimes returns a positive errno value even when it succeeds.
81371         (print_errno_message) [!LIBC]: Fall back on strerror if
81372         __strerror_r fails.
81373
81374         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81375         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81376         (longest_relative_suffix): New function.
81377         (path_concat): Use it.  Assume first argument is not NULL.
81378         Port to DOS.  Omit redundant separators.
81379         Report an error instead of returning NULL.
81380         Use mempcpy instead of memcpy.
81381         (xpath_concat): Remove: not declared or used.
81382
81383         * lib/same.h: Include <stdbool.h>
81384         (same_name): Return bool, not int.
81385         * lib/same.c (same_name): Likewise.
81386         (errno): Don't declare; we assume C89 or better now.
81387
81388         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81389         if not already defined.
81390
81391         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81392         * lib/dup-safer.c (errno): Likewise.
81393
81394 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81395
81396         Merge from coreutils.
81397         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81398         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81399         * modules/path-concat: Don't depend on strdup.
81400
81401 2004-08-03  Simon Josefsson  <jas@extundo.com>
81402
81403         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81404         * lib/progname.h: Don't include stdbool.h.
81405
81406 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81407
81408         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81409         * MODULES.html.sh (func_all_modules): Remove fatal.
81410
81411 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81412
81413         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81414
81415 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81416
81417         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81418         working.
81419
81420 2004-08-02  Simon Josefsson  <jas@extundo.com>
81421
81422         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81423         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81424         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81425
81426 2004-08-01  Simon Josefsson  <jas@extundo.com>
81427
81428         * lib/xgetdomainname.c: Include stdlib.h, for free().
81429
81430 2004-07-19  Bruno Haible  <bruno@clisp.org>
81431
81432         * MODULES.html.sh (func_all_modules): Add dummy.
81433
81434 2004-07-16  Simon Josefsson  <jas@extundo.com>
81435
81436         * modules/dummy: New file.
81437
81438 2004-07-16  Simon Josefsson  <jas@extundo.com>
81439
81440         * lib/dummy.c: New file.
81441
81442 2004-07-16  Bruno Haible  <bruno@clisp.org>
81443
81444         * lib/backupfile.h: Add extern "C" for C++.
81445         * lib/closeout.h: Likewise.
81446         * lib/copy-file.h: Likewise.
81447         * lib/findprog.h: Likewise.
81448         * lib/full-write.h: Likewise.
81449         * lib/pathname.h: Likewise.
81450         * lib/progname.h: Likewise.
81451         * lib/stpcpy.h: Likewise.
81452         * lib/stpncpy.h: Likewise.
81453         * lib/strcase.h: Likewise.
81454         * lib/strstr.h: Likewise.
81455         * lib/xalloc.h: Likewise.
81456
81457         * lib/mbswidth.h: Add extern "C" for C++.
81458         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81459
81460 2004-07-13  Robert Millan  <robertmh@gnu.org>
81461
81462         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81463
81464 2004-07-09  Simon Josefsson  <jas@extundo.com>
81465
81466         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81467         failed without this.)
81468
81469 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81470
81471         * modules/chown (Files): Add lib/fchown-stub.c, since
81472         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81473
81474 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81475
81476         * lib/fchown-stub.c: New file.
81477
81478 2004-06-24  Jim Meyering  <jim@meyering.net>
81479
81480         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81481
81482 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81483
81484         * modules/argz: Omit "#include".
81485
81486         * MODULES.html.sh (func_all_modules): Add calloc, to match
81487         2004-06-01 addition of calloc module.
81488
81489 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81490
81491         * m4/argz.m4: New file, which is autoupdated from libtool.
81492
81493 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81494
81495         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81496         libtool.
81497
81498 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81499
81500         * config/srclist-update: Don't insist on "USA." before the
81501         close-comment, as libtool omits the period and puts the */ on a
81502         separate line.
81503         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81504         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81505
81506 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81507
81508         * modules/argz: New file.
81509         * MODULES.html.sh (func_all_modules): Add argz.
81510
81511 2004-06-12  Jim Meyering  <jim@meyering.net>
81512         and  Paul Eggert  <eggert@cs.ucla.edu>
81513
81514         * modules/hash (Files): Add lib/xalloc.h.
81515         * modules/pipe (Depends-on): Add wait-process.
81516         * modules/stat (Depends-on): Add xalloc.
81517         * modules/userspec (Files): Add lib/userspec.h.
81518         * modules/xstrto
81519
81520         Upgrade from gettext-0.13.
81521         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81522         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81523         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81524
81525 2004-06-10  Jim Meyering  <jim@meyering.net>
81526
81527         * lib/calloc.c: New file.
81528
81529 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81530
81531         * lib/getdate.y (yylex): Allow space between sign and number.
81532         Problem reported by Dan Jacobson.
81533
81534 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81535
81536         Merge from coreutils CVS.
81537
81538         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81539         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81540         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81541         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81542         xstrtol.m4: Fix copyright date and/or serial number.
81543
81544         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81545         See if we need an fchown replacement.
81546         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81547         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81548         and use the replacement function if we detect either defect.
81549
81550         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81551         gl_UTIMECMP.
81552
81553 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81554         and  Jim Meyering  <jim@meyering.net>
81555
81556         Merge from coreutils CVS.
81557
81558         * lib/stat-macros.h: New file, with contents from file-type.h
81559         and coreutils' system.h.
81560         * lib/file-type.c: Include "stat-macros.h".
81561         * lib/file-type.h (file_type): Move all macro definitions to new file,
81562         stat-macros.h.
81563
81564         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81565         Wrap old code with this conditional.
81566         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81567         function that does not dereference symlinks.
81568         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81569
81570         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81571         dependency problems.
81572         (xreadlink): Accept new arg SIZE, for efficiency.
81573         All decls and uses changed.
81574         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81575
81576         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81577         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81578
81579         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81580         sysexits.h.
81581
81582 2004-06-01  Jim Meyering  <jim@meyering.net>
81583
81584         * m4/calloc.m4: New file.
81585
81586 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81587
81588         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81589         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81590         Also, fix a typo in a diagnostic.
81591
81592 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81593
81594         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81595         or AC_FUNC_REALLOC.
81596
81597 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81598
81599         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81600         macros to be defined.
81601         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81602         the allocator returns NULL because the requested size is zero.
81603
81604 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81605
81606         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81607         var.  Add comment explaining why libc still defines it.  This
81608         merges the following patch from glibc:
81609         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81610
81611 2004-05-20  Andreas Schwab  <schwab@suse.de>
81612
81613         * m4/free.m4: Replace free if it not known to work, not the other
81614         way round.
81615
81616 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81617
81618         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81619         present in glibc since revision 1.1 of this file.
81620         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81621         obstack_alignment_mask, obstack_alloc, obstack_base,
81622         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81623         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81624         obstack_grow0, obstack_init, obstack_int_grow,
81625         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81626         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81627         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81628         nonexistent functions.
81629
81630 2004-05-18  Karl Berry  <karl@gnu.org>
81631
81632         * config/srclist.txt: break link for vasnprintf.c.
81633
81634 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81635
81636         Port obstack to the AS/400, where pointers are 16 bytes wide and
81637         you cannot cast an integer to a valid pointer.  This patch is
81638         currently waiting to be integrated into glibc; see
81639         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81640
81641         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81642         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81643         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81644         (struct obstack): temp member is now a union of a pointer and
81645         an integer, instead of an integer.  All integer uses changed.
81646         This does not affect the physical layout of struct obstack,
81647         except on hosts (like the AS/400) where the size or alignment of
81648         void * is greater than that of ptrdiff_t.
81649         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81650         __STDC__)]: Store temporary in pointer member of union, not
81651         integer member.
81652         * lib/obstack.c: Include <stddef.h>, for offsetof.
81653         (struct fooalign): Remove; it doesn't need a name.
81654         (union fooround): Change double to long double, and add void *.
81655         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81656         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81657         not a macro.  Hence the values are always int; so remove all
81658         casts-to-int in uses.
81659
81660 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81661
81662         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81663         we can get this patch merged into glibc.
81664
81665 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81666             Paul Eggert  <eggert@cs.ucla.edu>
81667
81668         * m4/argp: Depend on alloca.
81669
81670 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81671             Paul Eggert  <eggert@cs.ucla.edu>
81672
81673         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81674         freecoding.
81675
81676 2004-05-17  Bruno Haible  <bruno@clisp.org>
81677
81678         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81679         precision that consists of a '.' followed by an empty digit string.
81680         Patch by Tor Lillqvist <tml@iki.fi>.
81681
81682 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81683
81684         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81685         for backward compatibility with older code.  We need our own
81686         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81687         it under some other name, and our alloca.h will define it.
81688
81689 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81690             Derek Price  <derek@ximbiot.com>
81691
81692         * lib/alloca.c: Include <alloca.h>, to get our interface.
81693         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81694         include <alloca.h> first.  Use C89 prototype for alloca; this
81695         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81696         Use #elif for simplicity, since we can assume C89 now.
81697         Don't try to source the system alloca.h since it will not be found
81698         and to prevent recursively including its replacement.
81699         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81700         * lib/regex.c: Likewise.
81701
81702 2004-05-16  Derek Price  <derek@ximbiot.com>
81703             Paul Eggert  <eggert@cs.ucla.edu>
81704
81705         getline cleanup.  This changes the getndelim2 API: both order of
81706         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81707         no delimiter).
81708
81709         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81710         interface does that.
81711         (getline): Always use getdelim, so that we don't have two
81712         copies of this code.
81713         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81714         if available.
81715         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81716         (GETNDELIM2_MAXIMUM): New macro.
81717         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81718         instead of the old practice of delim2==0.  All callers changed.
81719         Return -1 on overflow, instead of returning junk.
81720         Do not set *linesize unless allocation succeeds.
81721         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81722         that we include sys/types.h.
81723         * lib/getnline.h: Likewise.
81724         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81725         (getndelim2): Reorder arguments.
81726         * lib/getnline.c (getnline, getndelim):
81727         Don't discard the NMAX argument.
81728         (getnline): Invoke getndelim, to avoid code duplication.
81729         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81730         of (size_t) -1 by callers of the getnline family.
81731
81732 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81733
81734         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81735         Check for gettimeofday.
81736         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81737         Check for settimeofday, stime.
81738
81739 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81740
81741         * lib/nanosleep.c (suspended): Change its type from int to
81742         sig_atomic_t volatile.
81743         (first_call): Make it private to rpl_nanosleep, and have it
81744         be zero initially as that's a bit faster.
81745         (my_usleep): Round up fractional times instead of truncating them,
81746         as this is the usual meaning for 'sleep'.
81747
81748         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81749         doesn't work.
81750         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81751         (ENOSYS): Define if not defined.
81752         (settime): Fall back on stime if it exists and settimeofday fails.
81753         But don't bother with fallbacks if a method fails with errno == EPERM.
81754
81755 2004-05-11  Jim Meyering  <jim@meyering.net>
81756
81757         Prior to this change, the save_cwd caller required read access to the
81758         current directory on most systems (ones with the fchdir function).
81759
81760         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81761         fails, try write-only, and finally, resort to using xgetcwd.
81762
81763 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81764
81765         * lib/obstack.c, obstack.h: Import changes from libc.
81766
81767 2004-04-28  Bruno Haible  <bruno@clisp.org>
81768
81769         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81770         also implicitly appends .exe to executables.
81771         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81772         accepts Windows pathnames.
81773         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81774         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81775         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81776         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81777         Reported by Derek Robert Price <derek@ximbiot.com>.
81778
81779 2004-04-21  Karl Berry  <karl@gnu.org>
81780
81781         * config/srclist.txt (localcharset.c): break sync.
81782
81783 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81784
81785         * m4/host-os.m4: Add a copyright notice.
81786
81787 2004-04-20  Jim Meyering  <jim@meyering.net>
81788
81789         Change UTILS_ to gl_ in AC_DEFINE'd names.
81790         Change utils_- and jm_-prefixed variables, too.
81791         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81792         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81793         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81794
81795         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81796         Don't emit trailing blanks.
81797         Also rename jm_-prefixed variables to have gl_ prefix.
81798
81799         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81800         Also rename jm_-prefixed variables to have gl_ prefix.
81801
81802         * m4/jm-macros.m4: Reflect the renamings.
81803         * m4/prereq.m4: Likewise.
81804
81805 2004-04-20  Jim Meyering  <jim@meyering.net>
81806
81807         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81808         memory.
81809
81810 2004-04-20  Jim Meyering  <jim@meyering.net>
81811             Bruno Haible  <bruno@clisp.org>
81812
81813         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81814         memory when realloc fails.
81815
81816 2004-04-19  Jim Meyering  <jim@meyering.net>
81817
81818         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81819         now that readutmp.c may call `free (0)'.
81820
81821 2004-04-19  Bruno Haible  <bruno@clisp.org>
81822
81823         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81824         * m4/inttypes_h.m4: Likewise.
81825         * m4/stdint_h.m4: Likewise.
81826         * m4/intmax_t.m4: Likewise.
81827         * m4/uintmax_t.m4: Likewise.
81828
81829 2004-04-18  Jim Meyering  <jim@meyering.net>
81830
81831         * m4/prereq.m4: Don't forbid jm_ prefix.
81832
81833         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81834         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81835         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81836         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81837         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81838         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81839         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81840         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81841         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81842         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81843         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81844         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81845         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81846         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81847         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81848         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81849         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81850         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81851         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81852
81853 2004-04-18  Jim Meyering  <jim@meyering.net>
81854
81855         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81856         failure, don't leak memory and do call END_UTMP_ENT.
81857
81858 2004-04-16  Jim Meyering  <jim@meyering.net>
81859
81860         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81861         coreutils' stat program.
81862         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81863
81864 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81865
81866         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81867         C89.
81868         (CHAR_BIT): Remove, since we assume C89.
81869         Include <stdint.h> if available, as per current Autoconf CVS advice.
81870
81871 2004-03-31  Jim Meyering  <jim@meyering.net>
81872
81873         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81874         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81875         * m4/xalloc.m4: Likewise.
81876
81877 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81878
81879         Merge from coreutils.
81880
81881         * m4/inttostr.m4: New file.
81882         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81883         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81884         Require gl_CLOCK_TIME.
81885         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81886
81887 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81888
81889         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81890         not bool, to be more consistent with Unix conventions.
81891         Suggested by Bruno Haible.
81892
81893         Merge from coreutils.
81894
81895         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81896         * lib/umaxtostr.c: New files.
81897
81898         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81899         the usual <time.h> dance.
81900         (get_date): Change signature to support fractional time stamps.
81901         All callers changed.
81902         * lib/getdate.y: Include "getdate.h" first, as we can now
81903         assume C89 and don't need to worry about 'const'.
81904         Similarly, include "unlocked-io.h" near start, not in middle.
81905         Include <limits.h>.
81906         (textint.value): Use long int rather than int.
81907         (textint.digits): Use size_t rather than int.
81908         (BILLION, LOG10_BILLION): New constants.
81909         (parser_control): New member rel_ns.  Members day_ordinal,
81910         time_zone, month, day, hour, minutes, rel_year, rel_month,
81911         rel_day, rel_hour, rel_minutes, rel_seconds
81912         are now long int, not int.  Member seconds is now struct timespec,
81913         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81914         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81915         not int.
81916         (%union.intval): Now long int, not int.
81917         New member timespec.
81918         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81919         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81920         (spec): Now is a timespec or an item list.
81921         (timespec, items): New nonterminals.
81922         (time, rel, relunit, number, get_date):
81923         Add support for fractional seconds.
81924         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81925         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81926         (to_hour): First arg is now long int, not int.
81927         (to_year): Returns long int, not int.
81928         Don't treat year -70 like 70.
81929         (tm_diff): Returns long int, not int.
81930         (lookup_word): Use bool instead of int when appropriate.
81931         (yylex): Use size_t for count, not int.
81932         Detect overflow when parsing large integer constants.
81933         Add support for fractions.
81934         (get_date): Make pointers 'const' if possible.
81935         Use more-portable code to detect integer overflow.
81936         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81937         Don't use ctime; it's not reliable if the year has >4 digits.
81938
81939         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81940         This is for compatibility with BSD.
81941
81942         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81943         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81944         From coreutils' system.h.
81945
81946         * lib/userspec.c: Don't include "posixver.h".
81947         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81948         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81949         compatible extension.  Simplify code by removing a boolean int
81950         that was always nonzero if a string was nonnull.
81951
81952 2004-03-30  Jim Meyering  <jim@meyering.net>
81953
81954         Merge from coreutils.
81955
81956         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81957         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81958         on some systems one must include <grp.h> before it.
81959         Reported by Christian Krackowizer.
81960
81961 2004-03-30  Jim Meyering  <jim@meyering.net>
81962
81963         Merge from coreutils.
81964
81965         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81966
81967         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81968         an empty input stream.
81969
81970         * lib/readtokens.c: Include <stdbool.h>.
81971         (readtoken): Use `size_t' rather than int/long.
81972         All callers adjusted.
81973         Use `bool' rather than `int' where appropriate.
81974         Use memset rather than an explicit loop.
81975         Use x2nrealloc rather than xrealloc.
81976         Allow the use of `\0' as a delimiter.
81977         (readtokens): Likewise.
81978         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81979
81980 2004-03-30  Jim Meyering  <jim@meyering.net>
81981
81982         * m4/realloc.m4: Remove file, since now it does no more than
81983         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81984         the `configure.ac' section of module/realloc.
81985         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81986
81987 2004-03-30  Bruno Haible  <bruno@clisp.org>
81988
81989         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81990         nonnull.
81991
81992 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81993
81994         Merge changes to getloadavg.c from coreutils and Emacs.
81995
81996         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81997         Define to an expression, not to the empty string.
81998         Include cloexec.h and xalloc.h.
81999         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
82000         Use set_cloexec_flag rather than rolling our own.
82001         * lib/cloexec.c, lib/cloexec.h: New files.
82002
82003 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82004
82005         * m4/cloexec.m4: New file.
82006
82007 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82008
82009         * lib/getopt.h: Sync with libc CVS.
82010
82011 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82012             Bruno Haible  <bruno@clisp.org>
82013
82014         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
82015         mbswidth.
82016
82017 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82018             Bruno Haible  <bruno@clisp.org>
82019
82020         * lib/mbswidth.h: Include <wchar.h> only if
82021         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
82022         <wchar.h>.
82023         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
82024
82025 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82026
82027         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
82028         Sync with libc CVS.
82029         * lib/getopt_int.h: New file, also synced from libc.
82030
82031 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82032
82033         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
82034         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
82035         Bring back getopt.c, getopt.h, getopt1.c.
82036
82037 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82038
82039         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82040         All uses changed.  Check for sa_sigaction member; this fixes
82041         a bug first reported by Jason Andrade in
82042         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82043
82044 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82045
82046         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82047         '#if' expressions.  Unlike the code it replaces, it does not
82048         depend on (defined _SC_PAGESIZE).  However, it does depend on
82049         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82050         first reported by Jason Andrade in
82051         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82052
82053 2004-02-25  Simon Josefsson  <jas@extundo.com>
82054
82055         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82056
82057 2004-02-25  Simon Josefsson  <jas@extundo.com>
82058
82059         * lib/strdup.h: New file.
82060         * lib/strdup.c: Include it.
82061         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82062         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82063
82064 2004-02-23  Karl Berry  <karl@gnu.org>
82065
82066         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82067         (from fencepost.gnu.org:/gd/gnuorg).
82068
82069 2004-02-23  Karl Berry  <karl@gnu.org>
82070
82071         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82072         * config/srclist.txt: add maintain/standards documents.
82073
82074 2004-02-18  Bruno Haible  <bruno@clisp.org>
82075
82076         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82077         Reported by Derek Robert Price <derek@ximbiot.com>.
82078
82079 2004-02-16  Karl Berry  <karl@gnu.org>
82080
82081         * config/mkinstalldirs, install-sh: update from automake.
82082
82083 2004-02-06  Karl Berry  <karl@gnu.org>
82084
82085         * m4/po.m4: update from gettext 0.14.1.
82086
82087 2004-02-06  Karl Berry  <karl@gnu.org>
82088
82089         * lib/config.charset: update from gettext 0.14.1.
82090
82091 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82092
82093         Add comments and code, prompted by suggestions from Bruno Haible
82094         for sh-quote.
82095         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82096         describing the enum quoting_style values.
82097         * lib/quotearg.c (quotearg_alloc): New function.
82098         (quotearg_buffer_restyled): Treat lone { and } as special.
82099         Treat = as special.  Work around bug with older shells
82100         that "see" a '\' that is really the 2nd byte of a multibyte char.
82101         Quote empty string with shell_quoting_style.
82102
82103 2004-02-03  Bruno Haible  <bruno@clisp.org>
82104
82105         * m4/pipe.m4: New file, from GNU gettext.
82106
82107 2004-02-03  Bruno Haible  <bruno@clisp.org>
82108
82109         * lib/pipe.h: New file, from GNU gettext.
82110         * lib/pipe.c: New file, from GNU gettext.
82111
82112 2004-01-27  Bruno Haible  <bruno@clisp.org>
82113
82114         * m4/execute.m4: New file, from GNU gettext.
82115
82116 2004-01-27  Bruno Haible  <bruno@clisp.org>
82117
82118         * lib/execute.h: New file, from GNU gettext.
82119         * lib/execute.c: New file, from GNU gettext.
82120         * lib/w32spawn.h: New file, from GNU gettext.
82121
82122 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82123
82124         Merge from diffutils.
82125
82126         * lib/file-type.c (file_type): Add typed memory objects.
82127         * lib/file-type.h (S_TYPEISTMO): New macro.
82128
82129         * lib/c-stack.h (c_stack_action): Remove argv argument.
82130         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82131         (die): Don't calculate message unless segv_action returns.
82132         (get_stack_location, min_address_from_argv, max_address_from_argv,
82133         volatile stack_base, volatile_stack_size): Remove.
82134         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82135         that every segmentation violation is a stack overflow.  (Ouch!)
82136         See Debian bug 136249 (still outstanding) for more info about why
82137         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82138
82139 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82140
82141         Exit-status fix from coreutils.
82142
82143         Use exit_failure consistently in place of EXIT_FAILURE,
82144         so that program exit statuses are consistent on failure.
82145
82146         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82147         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82148         * lib/argmatch.h: Comment fix to match the above.
82149         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82150         Now a macro referring to exit_failure, instead of a separate
82151         variable.  Include "exitfail.h" to get it.
82152         * lib/xstrtol.h: Include "exitfail.h".
82153         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82154
82155         * lib/long-options.c (parse_long_options): Use prototype
82156         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82157         for clarity.
82158
82159 2004-01-21  Jim Meyering  <jim@meyering.net>
82160
82161         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82162         so as not to conflict with a different-sized __mktime_internal
82163         function in GNU libc.
82164         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82165         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82166
82167 2004-01-20  Karl Berry  <karl@gnu.org>
82168
82169         * config/config.guess: update from config.
82170
82171         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82172
82173 2004-01-20  Bruno Haible  <bruno@clisp.org>
82174
82175         Safer stack allocation.
82176         * lib/setenv.c: Include allocsa.h.
82177         (alloca): Remove fallback definition.
82178         (freea): Remove macro.
82179         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82180         instead of freea.
82181
82182 2004-01-20  Bruno Haible  <bruno@clisp.org>
82183
82184         * m4/eealloc.m4: New file, from GNU gettext.
82185
82186 2004-01-20  Bruno Haible  <bruno@clisp.org>
82187
82188         * m4/allocsa.m4: New file, from GNU gettext.
82189
82190 2004-01-20  Bruno Haible  <bruno@clisp.org>
82191
82192         * lib/xallocsa.h: New file, from GNU gettext.
82193         * lib/xallocsa.c: New file, from GNU gettext.
82194
82195 2004-01-20  Bruno Haible  <bruno@clisp.org>
82196
82197         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82198
82199 2004-01-20  Bruno Haible  <bruno@clisp.org>
82200
82201         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82202         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82203         specially.
82204
82205 2004-01-20  Bruno Haible  <bruno@clisp.org>
82206
82207         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82208         patch.
82209
82210 2004-01-20  Bruno Haible  <bruno@clisp.org>
82211
82212         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82213
82214 2004-01-20  Bruno Haible  <bruno@clisp.org>
82215
82216         * lib/eealloc.h: New file.
82217
82218 2004-01-20  Bruno Haible  <bruno@clisp.org>
82219
82220         * lib/binary-io.h: Avoid warnings on Cygwin.
82221
82222 2004-01-20  Bruno Haible  <bruno@clisp.org>
82223
82224         * lib/allocsa.h: New file, from GNU gettext.
82225         * lib/allocsa.c: New file, from GNU gettext.
82226
82227 2004-01-18  Karl Berry  <karl@gnu.org>
82228
82229         * doc/gpl.texi, doc/lgpl.texi: new files.
82230
82231 2004-01-18  Karl Berry  <karl@gnu.org>
82232
82233         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82234         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82235
82236 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82237
82238         Merge from coreutils.
82239
82240         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82241         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82242         (gl_DEFAULT_POSIX2_VERSION): Move
82243         the documentation from 'configure' into 'config.hin',
82244         so that 'configure --help' isn't burdened by it and
82245         we don't have to worry about its formatting there.
82246         Reword the documentation so that it's more succinct
82247         and can be run together into a single paragraph.
82248         * m4/same.m4 (gl_SAME): Check for pathconf.
82249
82250 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82251
82252         Merge from coreutils.
82253
82254         * lib/posixver.c: Include posixver.h.
82255
82256         * lib/same.c: Include <stdbool.h>, <limits.h>.
82257         (_POSIX_NAME_MAX): Define if not defined.
82258         (MIN): New macro.
82259         (same_name): If file names are silently truncated, report
82260         that the file names are the same if they are the same after
82261         the silent truncation.
82262
82263         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82264         conversion function.
82265         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82266         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82267         longer needed.
82268
82269 2004-01-15  Jim Meyering  <jim@meyering.net>
82270
82271         Merge from coreutils.
82272
82273         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82274         if no library is required.
82275         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82276         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82277         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82278         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82279         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82280         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82281         value, $ac_cv_search_crypt, if it's "none required".
82282         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82283         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82284         not gl_FUNC_GETLOADAVG.
82285         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82286         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82287
82288 2004-01-15  Jim Meyering  <jim@meyering.net>
82289
82290         Merge from coreutils.
82291
82292         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82293         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82294         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82295
82296         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82297         optional configure-time default.
82298
82299         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82300
82301         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82302
82303 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82304
82305         Merge from coreutils.
82306
82307         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82308         value, $ac_cv_search_nanosleep, if it's "none required".
82309
82310 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82311
82312         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82313         with like-named macro in fnmatch.c.
82314         (EXT): Use an internal constant instead.
82315
82316         Merge fnmatch patches from glibc.
82317         * lib/fnmatch.c (mbsinit): Remove define.
82318         Add libc_hidden_ver (__fnmatch, fnmatch).
82319         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82320         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82321
82322 2004-01-14  Karl Berry  <karl@gnu.org>
82323
82324         * config/install-sh: update from automake.
82325
82326 2004-01-13  Karl Berry  <karl@gnu.org>
82327
82328         * config/install-sh: update from automake.
82329
82330 2004-01-09  Karl Berry  <karl@gnu.org>
82331
82332         * config/install-sh: update from automake.
82333
82334 2004-01-05  Karl Berry  <karl@gnu.org>
82335
82336         * config/config.{sub,guess}: update from config.
82337
82338 2003-12-31  Karl Berry  <karl@gnu.org>
82339
82340         * config/depcomp: update from automake.
82341
82342 2003-12-14  Karl Berry  <karl@gnu.org>
82343
82344         * lib/config.charset: update from gettext-runtime.
82345
82346 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82347
82348         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82349         Bug reported by Alfred M. Szmidt.
82350
82351 2003-12-03  Bruno Haible  <bruno@clisp.org>
82352
82353         * m4/gettext.m4: Upgrade from gettext-0.13.
82354         * m4/po.m4: Upgrade from gettext-0.13.
82355         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82356         * m4/intmax.m4: New file, from gettext-0.13.
82357         * m4/printf-posix.m4: New file, from gettext-0.13.
82358
82359 2003-11-29  Karl Berry  <karl@gnu.org>
82360
82361         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82362
82363 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82364             Bruno Haible  <bruno@clisp.org>
82365
82366         * lib/printf-parse.h: Don't include sys/types.h.
82367         (ARG_NONE): New macro.
82368         (char_directive): Change type of *arg_index fields to size_t.
82369         * lib/printf-parse.c: Don't include sys/types.h.
82370         (SSIZE_MAX): Remove macro.
82371         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82372         Remove unnecessary overflow check.
82373         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82374         fields.
82375
82376 2003-11-25  Bruno Haible  <bruno@clisp.org>
82377
82378         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82379
82380 2003-11-25  Bruno Haible  <bruno@clisp.org>
82381
82382         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82383         gt_TYPE_SSIZE_T.
82384
82385 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82386
82387         * modules/alloca: Remove dependency on xalloc.
82388
82389 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82390
82391         * lib/alloca.c: Remove dependency on xalloc module.
82392         (xalloc_die): Remove.
82393         (memory_full) [!defined emacs]: New macro.
82394         [!defined emacs]: Don't include xalloc.h.
82395         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82396         address arithmetic overflows.  Change datatypes a bit to avoid
82397         unnecessary casts.
82398
82399 2003-11-22  Jim Meyering  <jim@meyering.net>
82400
82401         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82402         s/size/size_t/.
82403
82404 2003-11-21  Karl Berry  <karl@gnu.org>
82405
82406         * config/config.{sub,guess}: update from config.
82407
82408 2003-11-18  Karl Berry  <karl@gnu.org>
82409
82410         * config/config.{sub,guess}: update from config.
82411
82412         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82413
82414 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82415
82416         * README: Mention that S+T cannot overflow if S is the size of
82417         an existing object and T is sufficiently small.
82418
82419 2003-11-17  Jim Meyering  <jim@meyering.net>
82420
82421         On systems without utime and without a utimes function capable of
82422         dealing with a NULL struct utimbuf* argument, this utime replacement
82423         could -- in unusual circumstances -- leak a file descriptor.
82424         * lib/utime.c: Include <unistd.h> and <errno.h>.
82425         (utime_null): Be sure to close `fd' and to preserve errno.
82426         Reported by Geoff Collyer via Arnold Robbins.
82427
82428 2003-11-17  Bruno Haible  <bruno@clisp.org>
82429
82430         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82431         (Depends-on): Add xsize.
82432
82433 2003-11-17  Bruno Haible  <bruno@clisp.org>
82434
82435         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82436
82437 2003-11-17  Bruno Haible  <bruno@clisp.org>
82438
82439         * lib/vasnprintf.c (alloca): Remove fallback definition.
82440         (freea): Remove definition.
82441         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82442         Reported by Paul Eggert.
82443
82444 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82445             Bruno Haible  <bruno@clisp.org>
82446
82447         Protect against address arithmetic overflow.
82448         * lib/printf-args.h: Include stddef.h.
82449         (arguments): Change type of field 'count' to size_t.
82450         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82451         'unsigned int' where appropriate.
82452         * lib/printf-parse.h: Include sys/types.h.
82453         (char_directive): Change type of *arg_index fields to ssize_t.
82454         (char_directives): Change type of fields 'count', max_*_length to
82455         size_t.
82456         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82457         (SSIZE_MAX): Define fallback value.
82458         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82459         instead of 'int' where appropriate. Check a_allocated, d_allocated
82460         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82461         * lib/vasnprintf.c: Include xsize.h.
82462         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82463         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82464         overflow. Avoid wraparound when converting a width or precision from
82465         decimal to binary.
82466
82467 2003-11-16  Bruno Haible  <bruno@clisp.org>
82468
82469         Update from GNU gettext.
82470         * lib/printf-parse.c: Generalize to it can be compiled for wide
82471         strings.
82472         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82473         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82474         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82475         SNPRINTF): New macros.
82476         Don't include <alloca.h> if the file is used inside libintl.
82477         (local_wcslen): New function, for Solaris 2.5.1.
82478         (VASNPRINTF): Use it instead of wcslen.
82479
82480 2003-11-16  Bruno Haible  <bruno@clisp.org>
82481
82482         * lib/xsize.h (xmax): New function.
82483         (xsum, xsum3, xsum4): Declare as "pure" functions.
82484
82485 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82486
82487         * modules/xalloc (Files): Undo latest change, since xalloc.h
82488         no longer needs SIZE_MAX or PTRDIFF_MAX.
82489
82490 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82491
82492         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82493         gl_PTRDIFF_MAX.
82494
82495 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82496
82497         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82498         "return", to pacify some unknown compiler.  Problem reported
82499         by Joerg Schilling.
82500
82501 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82502
82503         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82504         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82505         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82506         heuristic is just as accurate as far as we know, and it removes a
82507         dependency on size_max.m4 and ptrdiff_max.m4.
82508
82509 2003-11-11  Bruno Haible  <bruno@clisp.org>
82510
82511         * modules/xsize (Files): Add m4/size_max.m4.
82512         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82513
82514 2003-11-11  Bruno Haible  <bruno@clisp.org>
82515
82516         * m4/size_max.m4: New file.
82517         * m4/ptrdiff_max.m4: New file.
82518         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82519         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82520         (gl_XALLOC): Invoke it.
82521
82522 2003-11-11  Bruno Haible  <bruno@clisp.org>
82523
82524         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82525         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82526         defined.
82527
82528 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82529
82530         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82531         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82532         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82533         From Bruno Haible.
82534         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82535         not (size_t) -1, since it's defined here.
82536
82537 2003-11-09  Karl Berry  <karl@gnu.org>
82538
82539         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82540
82541 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82542
82543         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82544         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82545         Reject sizes of exactly SIZE_MAX bytes.
82546         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82547         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82548
82549 2003-11-05  Bruno Haible  <bruno@clisp.org>
82550
82551         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82552         SIZE_MAX defined in <limits.h> on Solaris.
82553
82554 2003-11-04  Jim Meyering  <jim@meyering.net>
82555
82556         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82557         variable names, rather than @VAR@.
82558         * modules/poll: Likewise.
82559
82560 2003-11-04  Bruno Haible  <bruno@clisp.org>
82561
82562         * modules/xsize: New file.
82563         * modules/linebreak: Depend on xsize.
82564         * MODULES.html.sh (func_all_modules): Add xsize.
82565
82566 2003-11-04  Bruno Haible  <bruno@clisp.org>
82567
82568         * m4/xsize.m4: New file.
82569
82570 2003-11-04  Bruno Haible  <bruno@clisp.org>
82571
82572         * lib/xsize.h: New file.
82573         * lib/linebreak.c: Include xsize.h.
82574         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82575         argument for overflow.
82576         Suggested by Paul Eggert.
82577
82578 2003-11-03  Karl Berry  <karl@gnu.org>
82579
82580         * config/config.{guess,sub}: update from config.
82581
82582 2003-11-03  Jim Meyering  <jim@meyering.net>
82583
82584         * modules/userspec (lib_SOURCES): Add userspec.h.
82585         (Include): Add "userspec.h".
82586         Improve description.
82587
82588 2003-11-03  Jim Meyering  <jim@meyering.net>
82589
82590         * lib/userspec.c: Include "userspec.h".
82591         * lib/userspec.h: New file.
82592
82593 2003-11-03  Bruno Haible  <bruno@clisp.org>
82594
82595         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82596
82597 2003-11-03  Bruno Haible  <bruno@clisp.org>
82598
82599         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82600         available, to avoid (extremely rare) race condition.
82601         Suggested by Paul Eggert.
82602
82603 2003-11-02  Karl Berry  <karl@gnu.org>
82604
82605         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82606
82607 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82608
82609         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82610         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82611         (read_filesystem_list): Set and use me_type_malloced.
82612         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82613         whatever the type happens to be), for brevity and consistency.
82614         Check for size calculation overflow on Alphas running OSF/1.
82615
82616 2003-10-31  Jim Meyering  <jim@meyering.net>
82617
82618         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82619
82620         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82621
82622 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82623             Bruno Haible  <bruno@clisp.org>
82624
82625         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82626         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82627
82628 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82629
82630         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82631         netbsd*-gnu*.  Suggested by Robert Millan.
82632
82633 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82634
82635         * modules/group-member: Depend on stdbool.
82636
82637 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82638
82639         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82640
82641 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82642
82643         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82644         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82645         after the 'gnu' in these cases.  This fixes some bugs in the
82646         previous change, and is based on suggestions by Robert Millan.
82647
82648 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82649
82650         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82651         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82652         no longer needed.
82653         * lib/quotearg.c (quotearg_n_options): Use it.
82654         * lib/group-member.c: Include <stdbool.h>.
82655         (free_group_info): Arg is now const *; don't free arg.
82656         (get_group_info): Now returns bool and accepts struct group_info *,
82657         rather than returning a malloc'ed struct group_info *.
82658         All uses changed.  Check for overflow in internal size calculation.
82659
82660         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82661         rather than xmalloc/xrealloc.
82662         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82663         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82664         conformance bug: the old code used a pointer after freeing the
82665         storage that it addressed.
82666         * lib/hash.c (hash_initialize): Simplify the code by using
82667         xalloc_oversized rather than doing it by hand.
82668         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82669         the buffer preserved.  Use free and xmalloc instead.
82670         * lib/quotearg.c (quotearg_n_options): Likewise.
82671         Use a simpler test for size overflow.  Don't use xalloc_oversized
82672         because unsigned int might be wider than size_t (!); this suggests
82673         that we should switch from unsigned int to size_t for slot numbers.
82674
82675 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82676
82677         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82678         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82679         NetBSD kernels.  Requested by Richard Stallman.
82680
82681 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82682
82683         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82684         to allocate the returned structure.  Do not allocate a subarray,
82685         as x2nrealloc will do that.
82686         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82687         instead of xnrealloc.
82688         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82689
82690 2003-10-27  Bruno Haible  <bruno@clisp.org>
82691
82692         * lib/stdbool_.h: Better support for BeOS.
82693
82694 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82695
82696         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82697         now uses inline.
82698
82699 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82700
82701         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82702         callers that want to do their own size-overflow checking.  Include
82703         <stdbool.h>, since xalloc_oversized returns bool.
82704         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82705         to use xalloc_oversized.
82706
82707         Add two functions x2realloc, x2nrealloc, for programs that grow
82708         arrays dynamically by doubling their sizes.
82709         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82710         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82711         New functions.
82712
82713         Port to C99 semantics for 'inline' of external functions.
82714         Bug reported by Bruno Haible.
82715         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82716         with the old contents of xnmalloc.
82717         (xnmalloc, xmalloc): Use it.
82718         (xnrealloc_inline): New static inline function,
82719         with the old contents of xnrealloc.
82720         (xnrealloc, xrealloc): Use it.
82721
82722         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82723         that.
82724
82725 2003-10-26  Karl Berry  <karl@gnu.org>
82726
82727         * config/srclist.txt (COPYING.DOC): no longer available from
82728         /gd/gnuorg; don't know where the ultimate source is.
82729
82730 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82731
82732         Fix several address-calculation bugs in the hash modules,
82733         plus some minor code cleanup.
82734
82735         * lib/hash.h: Include <stdbool.h>, for bool.
82736         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82737         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82738         hash_get_n_entries, hash_get_max_bucket_length,
82739         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82740         hash_rehash): Use size_t rather than unsigned.
82741         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82742         hash_get_n_buckets_used, hash_get_n_entries,
82743         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82744         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82745         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82746         Likewise.
82747         (SIZE_MAX): Define if not defined.
82748         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82749         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82750         hash_print):
82751         Use const * when possible.
82752         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82753         (check_tuning): Fix bug: if tuning parameters were very close to
82754         0 or 1, rounding errors could have caused subscript violations.
82755         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82756         (hash_initialize): Add 'fail:' label
82757         to free table and return NULL, and use it to simplify code.
82758         Use calloc rather than clearing the storage ourself.
82759         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82760         buffer size calculations.
82761         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82762         Include <stddef.h>, for size_t.
82763         * lib/hash-pjw.c (hash_pjw): Likewise.
82764         Switch to method described by Bruno Haible.
82765         Include <limits.h>, for CHAR_BIT.
82766         (SIZE_BITS): New macro.
82767
82768 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82769
82770         * m4/getline.m4 (AM_FUNC_GETLINE):
82771         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82772         hosts.  Problem reported by Derek Robert Price in
82773         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82774         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82775         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82776
82777 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82778
82779         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82780         ceiling the allocation at NMAX bytes rather than silently
82781         discarding input bytes before NMAX is reached.  This makes
82782         a difference only if NMAX exceeds SIZE_MAX / 2.
82783
82784         * lib/obstack.c: Merge from glibc.
82785         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82786         Add libc_hidden_def (_obstack_newchunk).
82787         (_obstack_free) [! defined _LIBC]: Remove.
82788         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82789         a clone of the function body.
82790         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82791         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82792
82793         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82794         glibc.
82795         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82796         arg to memcpy.
82797
82798         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82799         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82800         Don't use lvalue casts, as GCC plans to remove support for them
82801         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82802         was also present in the non-GCC version, indicating that this
82803         code had always been buggy and had never been widely used.
82804         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82805         Use the fast variant of each macro, rather than copying the
82806         definiens of the fast variant; that way, we'll be more likely to
82807         catch future bugs in the fast variants.
82808
82809 2003-10-20  Bruno Haible  <bruno@clisp.org>
82810
82811         * modules/wait-process: New file.
82812         * MODULES.html.sh (func_all_modules): Add wait-process.
82813
82814 2003-10-20  Bruno Haible  <bruno@clisp.org>
82815
82816         * m4/wait-process.m4: New file.
82817
82818 2003-10-20  Bruno Haible  <bruno@clisp.org>
82819
82820         * lib/wait-process.h: New file, from GNU gettext.
82821         * lib/wait-process.c: New file, from GNU gettext.
82822
82823 2003-10-19  Jim Meyering  <jim@meyering.net>
82824
82825         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82826         HPUX 10.20.
82827
82828 2003-10-18  Karl Berry  <karl@gnu.org>
82829
82830         * config/config.guess: update from config.
82831
82832 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82833
82834         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82835         (getgroups): First arg is int, not size_t.
82836         Don't let 'free' mangle errno.
82837
82838 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82839
82840         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82841
82842 2003-10-16  Karl Berry  <karl@gnu.org>
82843
82844         * config/config.{guess,sub}: update from config.
82845
82846 2003-10-16  Jim Meyering  <jim@meyering.net>
82847
82848         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82849         memcpy.
82850
82851 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82852
82853         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82854         (SIZE_MAX): Remove.
82855         (new_exclude, add_exclude_file): Initial size no longer needs to
82856         be a power of 2.
82857         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82858         our own address arithmetic overflow checking.
82859
82860         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82861         (fnmatch): Do not alloca more than 2000 wide characters;
82862         instead, use malloc for large buffers.
82863         Check for address arithmetic overflow, and return -1
82864         with errno set to ENOMEM in that case.
82865         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82866         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82867         instead, return -1.  Check for address arithmetic overflow.
82868
82869 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82870
82871         Handle invalid suffixes and overflow independently, so that
82872         callers can treat them independently as needed.  Fix some bugs in
82873         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82874         suffix for a human-readable blocksize.  The major caller-visible
82875         change is the addition of a new
82876         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82877         that both overflow and suffix chars were found.
82878
82879         * lib/human.c (humblock): Don't check separately for invalid suffix
82880         char; that is xstrtoumax's job (now that its bug is fixed).
82881         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82882         INTMAX_MAX]: New macros.
82883         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82884         TYPE_MAXIMUM): New macros.
82885         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82886         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82887         if overflow occurs, as it's what __strtol does and it's more useful
82888         in practice.
82889         (__xstrtol): If __strtol reports some error other than ERANGE,
82890         reflect it to the caller as LONGINT_INVALID.  If it reports
82891         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82892         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82893         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82894         value.
82895         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82896         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82897         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82898         [defined UINTMAX_MAX]: New macros.
82899
82900 2003-10-14  Bruno Haible  <bruno@clisp.org>
82901
82902         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82903
82904 2003-10-14  Bruno Haible  <bruno@clisp.org>
82905
82906         * m4/sig_atomic_t: New file, from GNU gettext.
82907         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82908
82909 2003-10-14  Bruno Haible  <bruno@clisp.org>
82910
82911         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82912         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82913         Also use volatile where needed.
82914
82915 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82916
82917         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82918         Change maintainer from Bruno Haible to 'all'.
82919
82920 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82921
82922         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82923
82924 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82925
82926         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82927         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82928         and define in terms of the other primitives.
82929         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82930         (SIZE_MAX): Define if not already defined.
82931         (array_size_overflow): New function.
82932         (xalloc_die): Abort instead of exiting if 'error' returns.
82933         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82934         (xmalloc, xrealloc): Use them.
82935         (xcalloc): Check for address arithmetic overflow.
82936         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82937         a bit faster than strcpy.
82938
82939 2003-10-10  Simon Josefsson  <jas@extundo.com>
82940
82941         * modules/argp (Depends-on): Add restrict and strcase.
82942
82943 2003-10-10  Simon Josefsson  <jas@extundo.com>
82944
82945         * m4/argp.m4: Add AC_C_INLINE.
82946
82947 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82948
82949         Merge getpass from libc, plus a few fixes.
82950
82951         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82952         Include <stdbool.h>.
82953         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82954         __fsetlocking to empty.
82955         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82956         do include <bits/libc-lock.h>.
82957         Do not include <fcntl.h>; not needed.
82958         [_LIBC]: Include <wchar.h>.
82959         (NOTCANCEL_MODE): New macro.
82960         (flockfile, funlockfile) [_LIBC]: New macros.
82961         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82962         [!_LIBC]: New macros.
82963         (call_fclose): New function.
82964         (getpass): Use it.  Save tty stream separately; this simplifies the
82965         code and makes it more reliable if stdin happens to equal stdout.
82966         Invoke __fsetlocking on tty.
82967         Handle thread cancellation if needed.
82968         Namespace cleanup (use __tcgetattr, __getline).
82969         Use bool for Booleans.
82970         [USE_IN_LIBIO]: Handle wide streams.
82971         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82972         stream might go where.
82973
82974         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82975         doesn't have to include <stdio.h> before us.
82976         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82977         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82978         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82979         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82980         if not declared, so that we can use getpass.c code from libc without
82981         rewriting it.
82982         (flockfile, ftrylockfile, funlockfile): New macros.
82983
82984 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82985
82986         * modules/getpass: Depend on stdbool.
82987
82988 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82989
82990         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82991
82992 2003-10-07  Karl Berry  <karl@gnu.org>
82993
82994         * config/config.{guess,sub}: update from config.
82995
82996 2003-10-06  Jim Meyering  <jim@meyering.net>
82997             Bruno Haible  <bruno@clisp.org>
82998
82999         This lets translators provide better translations for the
83000         "Written by ..." part of --version output.
83001         * lib/version-etc.h: Include stdarg.h.
83002         (version_etc_copyright): Declare as readonly.
83003         (version_etc): Make this function variadic with a NULL-terminated list
83004         of author name strings.
83005         (version_etc_va): New declaration.
83006         * lib/version-etc.c: Include stdarg.h, stdlib.h.
83007         (version_etc_copyright): Declare as readonly.
83008         (version_etc_va): New function. Provide a different translatable string
83009         for each possible number of authors < 10. Abbreviate when there are 10
83010         authors or more.
83011         (version_etc): Make this function variadic. Call version_etc_va.
83012         Suggestion from Gary V. Vaughan.
83013
83014         * lib/long-options.h (parse_long_options): Change prototype: the
83015         authors string is moved to the end and becomes variadic.
83016         * lib/long-options.c: Include stdarg.h.
83017         (parse_long_options): Make this function variadic, too.
83018         Call version_etc_va, not version_etc.
83019
83020 2003-10-06  Bruno Haible  <bruno@clisp.org>
83021
83022         * modules/version-etc-2: Remove file.
83023         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
83024
83025 2003-10-06  Bruno Haible  <bruno@clisp.org>
83026
83027         * modules/fatal-signal: New file.
83028         * MODULES.html.sh (func_all_modules): Add fatal-signal.
83029
83030 2003-10-06  Bruno Haible  <bruno@clisp.org>
83031
83032         * m4/fatal-signal.m4: New file.
83033         * m4/signalblocking.m4: New file, from GNU gettext.
83034
83035 2003-10-06  Bruno Haible  <bruno@clisp.org>
83036
83037         * lib/version-etc-2.h: Remove file.
83038         * lib/version-etc-2.c: Remove file.
83039
83040 2003-10-06  Bruno Haible  <bruno@clisp.org>
83041
83042         * lib/fatal-signal.h: New file, from GNU gettext.
83043         * lib/fatal-signal.c: New file, from GNU gettext.
83044
83045 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83046
83047         * README: Rework advice for preventing empty .o files.
83048         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83049         not <sys/types.h>.
83050
83051 2003-10-04  Karl Berry  <karl@gnu.org>
83052
83053         * lib/argp*: update from libc.
83054
83055 2003-10-04  Karl Berry  <karl@gnu.org>
83056
83057         * config/config.{guess,sub}: update from config.
83058
83059 2003-10-02  Bruno Haible  <bruno@clisp.org>
83060
83061         * modules/lchown (Include): Add lchown.h.
83062         * modules/time_r (Include): Use "..." syntax.
83063         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83064
83065 2003-10-01  Simon Josefsson  <jas@extundo.com>
83066
83067         * MODULES.html.sh (func_all_modules): Move gethostname from section
83068         'based on' to section 'lacking' POSIX:2001.
83069
83070 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83071
83072         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83073         to output mode on the same stream.
83074
83075 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83076
83077         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83078         Fix arg typo in previous patch.
83079
83080 2003-09-28  Jim Meyering  <jim@meyering.net>
83081
83082         * lib/error.c: Correct cpp indentation.
83083
83084 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83085
83086         * modules/free: New file.
83087
83088 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83089
83090         * m4/free.m4: New file.
83091
83092 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83093
83094         * lib/minmax.h (MIN, MAX)
83095         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83096         Omit the special code that used __typeof__, since we worry that
83097         it could be more trouble than it's worth.  See:
83098         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83099         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83100
83101         * lib/free.c: New file.
83102
83103 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83104
83105         Trivial fixes to Makefile.am parts of module listings.
83106         * modules/strstr: Append strstr.h to lib_SOURCES.
83107         * modules/strcase: Likewise, for strcase.h.
83108
83109 2003-09-27  Karl Berry  <karl@gnu.org>
83110
83111         * config/mkinstalldirs: update from automake.
83112
83113 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83114
83115         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83116         (error_tail): Do not loop, reallocating temporary buffer, since
83117         the output cannot contain more wide characters than the input
83118         contains bytes, the size must be big enough already.  This avoids
83119         one potential size overflow calculation.  Check for size overflow
83120         when calculating temporary buffer size.  Free temporary buffer
83121         when done, if it was allocated with malloc; this plugs a memory
83122         leak.  Remove casts from void * to pointers, that are no longer
83123         needed now that we're assuming C89 or better.
83124
83125         Merge error changes from glibc.
83126
83127         * lib/error.c, error.h: Update copyright notice header to match glibc.
83128         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83129         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83130         Disable cancellation while printing error.
83131         * lib/error.h: Prepend __ to parameter names.
83132
83133 2003-09-26  Jim Meyering  <jim@meyering.net>
83134
83135         * lib/error.c (error_tail): Move some declarations
83136         into inner scope where the local variables are used.
83137
83138 2003-09-26  Bruno Haible  <bruno@clisp.org>
83139
83140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83141         stpncpy().
83142         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83143
83144 2003-09-26  Bruno Haible  <bruno@clisp.org>
83145
83146         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83147         (stpncpy): Define as alias for gnu_stpncpy.
83148         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83149
83150 2003-09-25  Simon Josefsson  <jas@extundo.com>
83151
83152         * lib/xgetdomainname.h: New file.
83153         * lib/xgetdomainname.c: New file.
83154
83155 2003-09-25  Simon Josefsson  <jas@extundo.com>
83156             Bruno Haible  <bruno@clisp.org>
83157
83158         * modules/getdomainname: New file.
83159         * modules/xgetdomainname: New file.
83160         * MODULES.html.sh (func_all_modules): Add getdomainname,
83161         xgetdomainname.
83162
83163 2003-09-25  Simon Josefsson  <jas@extundo.com>
83164             Bruno Haible  <bruno@clisp.org>
83165
83166         * m4/getdomainname.m4: New file.
83167
83168 2003-09-25  Simon Josefsson  <jas@extundo.com>
83169             Bruno Haible  <bruno@clisp.org>
83170
83171         * lib/getdomainname.h: New file.
83172         * lib/getdomainname.c: New file.
83173
83174 2003-09-25  Karl Berry  <karl@gnu.org>
83175
83176         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83177
83178 2003-09-25  Karl Berry  <karl@gnu.org>
83179
83180         * config/install-sh: update from automake.
83181
83182 2003-09-25  Bruno Haible  <bruno@clisp.org>
83183
83184         * modules/version-etc-2: New file, from modules/version-etc with
83185         modifications.
83186         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83187
83188 2003-09-25  Bruno Haible  <bruno@clisp.org>
83189
83190         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83191         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83192
83193 2003-09-24  Simon Josefsson  <jas@extundo.com>
83194
83195         * modules/xgethostname: Add xgethostname.h.
83196
83197 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83198
83199         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83200         the buffer associated with the argument.  Bug reported by
83201         Simon Josefsson.
83202
83203 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83204
83205         * README: Document assumptions that 'int' is at least 32 bits
83206         wide, that integer arithmetic is 2's complement without overflow,
83207         that there are no holes in integer values, that adding sizes of
83208         two nonoverlapping objects can't overflow, and that all-bits-zero
83209         yields scalar zero.  Fix spelling and capitalization typos.
83210
83211 2003-09-19  Karl Berry  <karl@gnu.org>
83212
83213         * lib/argp.h: update from libc.
83214
83215 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83216
83217         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83218         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83219         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83220
83221 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83222
83223         * gnulib-tool: Use "test -h", not "test -L", for portability
83224         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83225         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83226         (sed_extract_prog): Issue s commands one-by-one, rather than
83227         using \| in one s command.
83228
83229 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83230
83231         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83232         input error, instead of returning NULL the next time we are called
83233         (and therefore losing track of errno).
83234
83235 2003-09-16  Bruno Haible  <bruno@clisp.org>
83236
83237         * gnulib-tool (func_create_testdir): Warn about duplicated
83238         dependencies.
83239
83240 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83241
83242         * modules/argmatch, modules/fatal, modules/obstack,
83243         modules/xalloc, modules/xgethostname: Sort dependencies by
83244         importance, not alphabetically.
83245
83246 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83247
83248         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83249         fails, so that the caller gets the proper errno.
83250
83251         * lib/readutmp.c (read_utmp): Likewise.
83252         Check for fstat error.  Close stream and free storage
83253         when failing.
83254
83255 2003-09-14  Karl Berry  <karl@gnu.org>
83256
83257         * config/srclist.txt (strdup.c): disable for c89 changes.
83258
83259 2003-09-14  Jim Meyering  <jim@meyering.net>
83260
83261         * lib/getloadavg.c: Correct cpp indentation.
83262         * lib/strdup.c: Likewise.
83263         * lib/vasnprintf.c: Likewise.
83264
83265 2003-09-14  Bruno Haible  <bruno@clisp.org>
83266
83267         * modules/fwriteerror: New file.
83268         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83269
83270 2003-09-14  Bruno Haible  <bruno@clisp.org>
83271
83272         * lib/fwriteerror.h: New file.
83273         * lib/fwriteerror.c: New file.
83274
83275 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83276
83277         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83278         modules/xgethostname, modules/xalloc: Depend on exit.
83279
83280 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83281
83282         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83283
83284         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83285         and AC_MINIX, too, so that their extensions are available.
83286
83287         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83288         This macro has been superseded by gl_BACKUPFILE.
83289
83290         More patches to assume C89 or better.
83291
83292         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83293
83294         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83295         unconditionally.
83296         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83297         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83298         Include <string.h>, <stdlib.h> unconditionally.
83299         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83300         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83301         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83302         headers or for string.h.
83303         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83304         or strtoul.
83305
83306         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83307         headers.
83308         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83309         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83310         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83311         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83313         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83314         memcpy, memset.
83315         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83316         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83317         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83318         strtol.
83319         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83320         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83321         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83322         strtoul.
83323
83324 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83325
83326         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83327         * lib/obstack.c [!defined _LIBC]: Likewise.
83328         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83329         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83330         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83331
83332         More changes to assume C89 or better.
83333
83334         * lib/error.c (error_tail): Assume vprintf.
83335
83336         * lib/argmatch.c (getenv): Remove decl.
83337         * lib/progreloc.c (get_full_program_name): Define via prototype.
83338         * lib/setenv.c (clearenv): Likewise.
83339         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83340         needed.
83341         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83342         (malloc, memcpy): Remove decls.
83343         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83344         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83345         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83346         (memcpy): Remove macro.
83347         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83348         (__P): Remove.  All uses removed.
83349         (PTR): Remove.  All uses changed to void *.
83350         (CHAR_BIT, NULL): Remove.
83351         (spaces, zeros, memset_space, memset_zero)
83352         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83353         Remove.
83354         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83355         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83356         Define with prototype.
83357         Remove now-unnecessary prototype decl.
83358         (extra_args_spec): Assume ANSI C.  All uses changed.
83359         (extra_args_spec_iso): Remove.
83360         (my_strftime, emacs_strftimeu): Define via prototype.
83361         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83362         unconditionally.
83363         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83364         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83365         (strtoul, strtol): Remove decls.
83366         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83367         LONG_MAX): Remove.
83368         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83369         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83370         (LOCALE_PARAM_PROTO): New macro.
83371         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83372         (INTERNAL (strtol), strtol): Define with a prototype.
83373         (PARAMS): Remove.  All uses removed.
83374         * lib/tempname.c: Include <string.h> unconditionally.
83375         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83376         * lib/xgethostname.c (main): Define with a prototype.
83377         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83378         Include <stdlib.h> unconditionally.
83379         (calloc, malloc, realloc, free): Remove decls.
83380         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83381         Include <stdlib.h> unconditionally.  Sort include file names.
83382         (strtod): Remove.
83383         (xstrtod): Define with a prototype.
83384         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83385         (strtol, strtoul): Remove decls.
83386
83387 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83388
83389         More patches to assume C89 or better.
83390         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83391         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83392         string.h, memchr, STDC_HEADERS.
83393
83394 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83395
83396         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83397         Include <stdlib.h>, <string.h> unconditionally.
83398         Remove now-unnecessary cast to char *.
83399         * lib/strnlen.c: Include <string.h> unconditionally.
83400         * lib/yesno.c (yesno): Define with a prototype.
83401
83402 2003-09-11  Bruno Haible  <bruno@clisp.org>
83403
83404         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83405
83406 2003-09-10  Jim Meyering  <jim@meyering.net>
83407
83408         * lib/error.c: Correct indentation of cpp directives.
83409
83410 2003-09-10  Bruno Haible  <bruno@clisp.org>
83411
83412         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83413         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83414         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83415         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83416         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83417         <stdlib.h> and <string.h> checks.
83418         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83419         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83420
83421 2003-09-10  Bruno Haible  <bruno@clisp.org>
83422
83423         * lib/strcspn.c: Include <string.h> unconditionally.
83424         * lib/strpbrk.c: Include <string.h> unconditionally.
83425         * lib/strstr.c: Include <string.h> unconditionally.
83426         * lib/unicodeio.c: Include <string.h> unconditionally.
83427         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83428         * lib/unsetenv.c: Likewise.
83429         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83430         * lib/yesno.c: Include <stdlib.h> unconditionally.
83431         (rpmatch): Add prototype.
83432
83433 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83434
83435         More patches to assume C89 or better.
83436         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83437         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83438         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83439         or for string.h.
83440         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83441         stdlib.h.
83442         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83443         C headers.
83444         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83445         string.h.
83446         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83447         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83448         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83449         or for string.h.
83450         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83451         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83452         C headers.
83453         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83454         memcpy.
83455         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83456         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83457         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83458         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83459         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83460         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83461         string.h, free.
83462         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83463         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83464         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83465         C headers, or for string.h.
83466         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83467         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83468         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83469         headers, memory.h, stdlib.h, string.h, strings.h.
83470         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83471         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83472         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83473         strchr.
83474         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83475         headers, memory.h, string.h.
83476         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83477         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83478         free.
83479         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83480         headers.
83481         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83482         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83483         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83484         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83485         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83486
83487 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83488
83489         More K&R removal.
83490
83491         * lib/acosl.c (main): Use a prototype.
83492         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83493         tanl.c: Likewise.
83494
83495         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83496
83497         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83498         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83499         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83500         with a prototype.
83501         * lib/getopt.c (const): Remove macro.
83502         Include <string.h> unconditionally.
83503         (my_index): Remove; all uses changed to strchr.
83504         (strlen): Remove decl.
83505         (exchange): Remove forward decl; no longer needed.
83506         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83507         Define with prototype.
83508         * lib/getopt1.c (const): Remove macro.
83509         (getopt_long, getopt_long_only, main): Define with prototype.
83510
83511         * lib/getugroups.c: Include <string.h> unconditionally.
83512
83513         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83514         (getusershell, setusershell, endusershell, readname, main):
83515         Define with prototypes.
83516
83517         * lib/group-member.c: Include group-member.h first.
83518         Include <stdlib.h> unconditionally.
83519
83520         * lib/hard-locale.c: Include hard-locale.h first.
83521         Include <stdlib.h>, <string.h> unconditionally.
83522
83523         * lib/hash.c (free, malloc): Remove decls.
83524         Include <stdlib.h> unconditionally.
83525
83526         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83527         (getenv): Do not declare.
83528
83529         * lib/idcache.c: Include <string.h> unconditionally.
83530
83531         * lib/long-options.c: Include long-options.h first, to test interface.
83532         Include <stdlib.h> unconditionally.
83533
83534         * lib/makepath.c: Include makepath.h first, to test interface.
83535         Include <stdlib.h> and <string.h> unconditionally.
83536
83537         * lib/linebuffer.c: Include <stdlib.h>.
83538         (free): Remove decl.
83539
83540         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83541         stddef.h. rpl_malloc returns void *, not char *.
83542         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83543         prototype.
83544
83545         * lib/md5.h: Include <limits.h> unconditionally.
83546         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83547         (__P): Remove; all uses removed.
83548         * lib/md5.c: Include "md5.h" first.
83549         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83550         md5_buffer, md5_process_bytes, md5_process_block):
83551         Define with prototypes.
83552         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83553         * lib/sha.c: Include "sha.h" first.
83554         Include <stdlib.h>, <string.h> unconditionally.
83555
83556         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83557         * lib/memcmp.c (__ptr_t): Likewise.
83558         * lib/memrchr.c (__ptr_t): Likewise.
83559         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83560         Include <string.h> unconditionally.
83561         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83562         * lib/memchr.c: Include <stdlib.h> unconditionally.
83563         * lib/memchr.c (LONG_MAX): Remove.
83564         * lib/memrchr.c (LONG_MAX): Likewise.
83565         * lib/memchr.c (__memchr): Define via a prototype.
83566         * lib/memrchr.c (__memrchr): Likewise.
83567         * lib/memcmp.c (__P): Remove, and remove all uses.
83568         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83569         Remove forward decls; no longer needed.
83570         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83571         Use types required by C89 in prototype.
83572
83573         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83574         * lib/savedir.c: Likewise.
83575         * lib/mkdir.c (free): Remove decl.
83576         * lib/rmdir.c (rmdir): Define with a prototype.
83577         * lib/savedir.c: Include savedir.h first, to test interface.
83578
83579         * lib/mktime.c (STDC_HEADERS): Remove.
83580         Include <stdlib.h>, <string.h> unconditionally.
83581
83582         * lib/modechange.c: Include <stdlib.h> unconditionally.
83583         (malloc): Remove decl.
83584
83585         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83586         (free): Remove decl.
83587
83588         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83589         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83590         (This type really should be intptr_t, but that's a C99ism.)
83591         (_obstack_memcpy): Remove: all uses changed to memcpy.
83592         Include <string.h> unconditionally.
83593         (struct obstack): Assume __STDC__ for types of members
83594         chunkfun, freefun, extra_arg.
83595         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83596         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83597         obstack_begin, obstack_specify_allocation,
83598         obstack_specify_allocation_with_arg, obstack_chunkfun,
83599         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83600         Remove unprototyped decls and the macros that use them.
83601         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83602         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83603         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83604         (defined __STDC__ && __STDC__)]:
83605         Remove nonprototyped code.
83606         Include <stdlib.h> unconditionally.
83607         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83608         _obstack_allocated_p, _obstack_free, obstack_free,
83609         _obstack_memory_used, print_and_abort):
83610         Define using prototypes.
83611         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83612         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83613         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83614         obstack_next_free, obstack_object_size, obstack_room) [0]:
83615         Remove unused, unprototyped code.
83616
83617         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83618
83619         * lib/physmem.c (physmem_total, physmem_available, main): Define
83620         with prototypes.
83621
83622         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83623         (main): Define with a prototype.
83624
83625         * lib/posixver.c (getenv): Remove decl.
83626
83627         * lib/putenv.c (malloc): Returns void *, not char *.
83628         Include <string.h> unconditionally.
83629         (strchr, memcpy, NULL): Do not define.
83630
83631         * lib/readtokens.c: Include readtokens.h first, to test interface.
83632         Include <stdlib.h>, <string.h> unconditionally.
83633         (init_tokenbuffer): Define with a prototype.
83634
83635         * lib/regex.c (PARAMS): Remove.  All uses removed.
83636         All uses of _RE_ARGS removed, too.
83637         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83638         unconditionally.
83639         (bzero): Assume memset exists.
83640         (memcmp, memcpy, NULL): Remove.
83641         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83642         char, or assignments to local vars of type signed char.
83643         (init_syntax_once, PREFIX(extract_number_and_incr),
83644         PREFIX(print_partial_compiled_pattern),
83645         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83646         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83647         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83648         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83649         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83650         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83651         wcs_compile_range, byte_compile_range, truncate_wchar,
83652         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83653         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83654         count_mbs_length, wcs_re_match_2_internal,
83655         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83656         PREFIX(alt_match_null_string_p),
83657         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83658         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83659         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83660         now-unnecessary declaration, if any.
83661         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83662         regcomp, regexec):
83663         Remove now-unnecessary casts among pointer types.
83664         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83665
83666         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83667         (free): Remove decl.
83668
83669         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83670
83671         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83672         (free): Remove decl.
83673
83674         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83675         * lib/xgetcwd.c: Likewise.
83676
83677         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83678         (free): Remove decl.
83679
83680         * lib/strchrnul.c (strchrnul): Define with a prototype.
83681         Fix bug: c_in was not converted to char before searching.
83682
83683         The following changes are not K&R related:
83684
83685         * lib/group-member.h: Include <sys/types.h>, so that this file is
83686         self-contained.
83687         * lib/makepath.h: Likewise.
83688
83689         * lib/getusershell.c (readname, default_index, line_size, readname):
83690         Use size_t, not int, for sizes.
83691         (readname): If the size overflows, report an error instead of
83692         looping forever.
83693
83694 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83695
83696         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83697         libc.
83698
83699 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83700
83701         * README: New section: portability guidelines.
83702
83703 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83704
83705         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83706         C89 spec.
83707
83708 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83709
83710         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83711
83712 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83713
83714         Assume C89 or better; remove K&R cruft.
83715         A few of these changes were first proposed by Derek Robert Price
83716         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83717
83718         * lib/addext.c: Include <string.h> unconditionally.
83719         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83720         Don't declare getenv or malloc.
83721
83722         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83723         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83724         (NULL): Remove.
83725         (find_stack_direction, alloca): Use prototypes.
83726
83727         * lib/atexit.c (atexit): Define using a prototype.
83728
83729         * lib/basename.c, dirname.c, stripslash.c:
83730         Include <string.h> unconditionally.
83731
83732         * lib/bcopy.c: Include <stddef.h>.
83733         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83734
83735         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83736
83737         * lib/error.h (error, error_at_line, error_print_progname)
83738         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83739         * lib/error.c: Include error.h first, to check interface.
83740         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83741         (VA_START): Remove; all uses changeed to va_start.
83742         (exit, strerror): Remove decls.
83743         (error_print_progname): Prototype uncondionally.
83744         Don't include <errno.h>; no longer needed.
83745         (private_strerror): Remove.
83746         (error_tail): Always define.
83747         (error, error_at_line): Assume C89 or better; always use prototypes.
83748         * lib/fatal.c: Include "fatal.h" first, to test interface.
83749         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83750         (VA_START): Remove; all uses changed to va_start.
83751         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83752         this case.
83753         (exit): Remove decl.
83754         (fatal): Prototype unconditionally.  Assume va_start works.
83755         Abort at end, to pacify gcc.
83756
83757         * lib/euidaccess.c (main): Define with a prototype.
83758
83759         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83760
83761         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83762
83763         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83764         prototypes.
83765         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83766         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83767         (getenv): Remove decl.
83768         (fnmatch): Define using a prototype.
83769         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83770         (FCT): Define using a prototype.
83771
83772         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83773
83774         * lib/gethostname.c: Include <stddef.h>.
83775         (gethostname): Define with prototype.  Length is size_t, not int.
83776
83777 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83778
83779         Assume C89 or better; remove K&R cruft.
83780         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83781         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83782         string.h, getenv, malloc.
83783         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83784         headers.
83785         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83786         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83787         do not check for strerror.
83788         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83789         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83790         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83791         do not check for doprnt or vprintf.
83792         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83793         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83794
83795 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83796
83797         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83798         getversion.c should have been removed then, but was accidentally
83799         preserved.
83800
83801         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83802         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83803
83804 2003-09-08  Karl Berry  <karl@gnu.org>
83805
83806         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83807                 config, forget about prep.
83808
83809         * config/depcomp, missing: update from automake.
83810
83811 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83812
83813         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83814         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83815
83816 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83817
83818         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83819         copy_tm_result.  Bug reported by Simon Josefsson in
83820         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83821
83822 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83823
83824         * m4/time_r.m4: New file.
83825         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83826         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83827         is. Check for timegm declaration.
83828         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83829         Do not check for gmtime_r.
83830         Replace mktime if __mktime_internal does not exist and if mktime
83831         hasn't been replaced already.
83832
83833 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83834
83835         * lib/time_r.c, lib/time_r.h: New files.
83836
83837         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83838         __localtime_r.
83839         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83840         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83841
83842         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83843         __gmtime_r.
83844         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83845         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83846         Include <time_r.h>.
83847
83848         * lib/timegm.c: Switch to glibc implementation, with the following
83849         changes:
83850         [defined HAVE_CONFIG_H]: Include <config.h>.
83851         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83852         (__mktime_internal) [!defined _LIBC]: New decl.
83853         (__gmtime_r) [!defined _LIBC]: New macro and function.
83854         (timegm): Use a prototype, since gnulib assumes C89.
83855         Do not bother declaring tmp to be const, as it's not really usefu.
83856         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83857         (timegm): Declare only if HAVE_DECL_TIMEGM.
83858
83859 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83860
83861         * MODULES.html.sh (func_all_modules): Add time_r.
83862         * modules/time_r: New file.
83863         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83864         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83865
83866 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83867
83868         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83869         Bug reported by Lute Kamstra in
83870         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83871
83872         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83873         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83874         course with correspondingly smaller numbers for tomorrow and
83875         yesterday.  From Tadayoshi Funaba.  Originally installed into
83876         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83877         coreutils merge?).
83878
83879 2003-08-31  Simon Josefsson  <jas@extundo.com>
83880
83881         * modules/timegm: New file.
83882         * MODULES.html.sh (func_all_modules): Add timegm.
83883
83884 2003-08-31  Simon Josefsson  <jas@extundo.com>
83885
83886         * m4/timegm.m4: New file.
83887
83888 2003-08-31  Simon Josefsson  <jas@extundo.com>
83889
83890         * lib/timegm.h: New file.
83891         * lib/timegm.c: New file.  Based on
83892         wget-1.8.2/src/http.c:mktime_from_utc.
83893
83894 2003-08-31  Karl Berry  <karl@gnu.org>
83895
83896         * lib/argp.h: update from libc.
83897
83898 2003-08-28  Bruno Haible  <bruno@clisp.org>
83899
83900         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83901         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83902         followed by '#define fnmatch fnmatch_posix' gives an error.
83903
83904 2003-08-28  Bruno Haible  <bruno@clisp.org>
83905
83906         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83907         warning on QNX, which defines O_BINARY to 000000.
83908
83909 2003-08-27  Jim Meyering  <jim@meyering.net>
83910
83911         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83912         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83913         would fail after 32.  Reported by Danny Levinson.  Details here:
83914         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83915
83916 2003-08-24  Bruno Haible  <bruno@clisp.org>
83917
83918         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83919         MSVC7 <stdio.h> is included later.
83920
83921 2003-08-22  Simon Josefsson  <jas@extundo.com>
83922
83923         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83924
83925 2003-08-20  Karl Berry  <karl@gnu.org>
83926
83927         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83928
83929 2003-08-20  Bruno Haible  <bruno@clisp.org>
83930
83931         * modules/progname: New file.
83932         * MODULES.html.sh (func_all_modules): Add progname.
83933
83934 2003-08-20  Bruno Haible  <bruno@clisp.org>
83935
83936         * lib/progname.h: New file, from GNU gettext.
83937         * lib/progname.c: New file, from GNU gettext.
83938         * lib/progreloc.c: New file, from GNU gettext.
83939
83940 2003-08-19  Jim Meyering  <jim@meyering.net>
83941
83942         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83943         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83944
83945 2003-08-19  Bruno Haible  <bruno@clisp.org>
83946
83947         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83948         more.
83949
83950 2003-08-19  Bruno Haible  <bruno@clisp.org>
83951
83952         * lib/xstrdup.c: Assume <string.h> exists.
83953
83954 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83955
83956         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83957         in makefile rules.
83958
83959 2003-08-18  Jim Meyering  <jim@meyering.net>
83960
83961         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83962         * m4/lib-ld.m4: Likewise.
83963
83964 2003-08-18  Jim Meyering  <jim@meyering.net>
83965
83966         * lib/setenv.h: Indent nested cpp directive.
83967         * lib/vasnprintf.c: Remove trailing blanks.
83968
83969 2003-08-17  Simon Josefsson  <jas@extundo.com>
83970
83971         * modules/xstrndup: New file.
83972         * MODULES.html.sh (func_all_modules): Add xstrndup.
83973
83974 2003-08-17  Simon Josefsson  <jas@extundo.com>
83975
83976         * modules/argp: Fix autoconf macro name. Add more dependencies.
83977
83978 2003-08-17  Simon Josefsson  <jas@extundo.com>
83979
83980         * m4/xstrndup.m4: New file.
83981
83982 2003-08-17  Simon Josefsson  <jas@extundo.com>
83983
83984         * m4/argp.m4: New file.
83985
83986 2003-08-17  Simon Josefsson  <jas@extundo.com>
83987             Bruno Haible  <bruno@clisp.org>
83988
83989         * lib/xstrndup.h: New file.
83990         * lib/xstrndup.c: New file.
83991
83992 2003-08-17  Bruno Haible  <bruno@clisp.org>
83993
83994         * modules/strndup (Files, Include): Add lib/strndup.h.
83995
83996 2003-08-17  Bruno Haible  <bruno@clisp.org>
83997
83998         * modules/euidaccess (Files): Add lib/euidaccess.h.
83999
84000 2003-08-17  Bruno Haible  <bruno@clisp.org>
84001
84002         * lib/strndup.h: New file.
84003
84004 2003-08-17  Bruno Haible  <bruno@clisp.org>
84005
84006         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
84007         like AC_GNU_SOURCE.
84008         * modules/extensions (configure.ac): Comment out the invocation of
84009         gl_USE_SYSTEM_EXTENSIONS.
84010
84011 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84012
84013         Merges from coreutils, etc.
84014         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
84015         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
84016         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
84017         fixing a typo.
84018         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
84019         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
84020
84021 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84022
84023         Document merge from coreutils.
84024         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
84025         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
84026         * modules/utime: Add m4/utimes-null.m4.
84027
84028 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84029
84030         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
84031         space, undoing this 2003-08-12 change:
84032         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84033
84034 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84035
84036         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
84037         strtoul.c from libc, undoing this 2003-08-12 change:
84038         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84039
84040 2003-08-16  Jim Meyering  <jim@meyering.net>
84041
84042         Merges from coreutils.
84043         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84044         prefix.  Adjust cache variables similarly.  Create 500 rather than
84045         just 300 files, to exercise bug on Darwin6.5, too.
84046         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84047         $missing_dir.
84048         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84049         AM_SYS_POSIX_TERMIOS.
84050         Reported by mkc@mathdogs.com.
84051         Also change use of $am_cv_sys_posix_termios
84052         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84053         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84054         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84055         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84056         in /proc/mounts until it finds one with matching device number.  This
84057         is unnecessary when the FILE argument *is* a mount point.  No stat call
84058         is necessary in that case.  So, disable the statvfs-testing code on
84059         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
84060         as RedHat bug# 84846.
84061         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84062         to 1MB, so as not to render systems with no stack size limit (e.g.,
84063         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84064         Include <unistd.h>.  On some systems,
84065         it is required for the definition of _SC_PAGESIZE.
84066
84067 2003-08-16  Jim Meyering  <jim@meyering.net>
84068
84069         Merge from coreutils.
84070         * lib/xstrtoimax.c: #else #if -> #elif.
84071         * lib/xstrtoumax.c: Likewise.
84072
84073 2003-08-16  Jim Meyering  <jim@meyering.net>
84074
84075         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84076         * m4/utimes.m4: Removed.
84077         * m4/utimes-null.m4: Renamed from utimes.m4.
84078
84079         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84080         to 1MB, so as not to render systems with no stack size limit (e.g.,
84081         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84082         Include <unistd.h>.  On some systems,
84083         it is required for the definition of _SC_PAGESIZE.
84084
84085 2003-08-16  Jim Meyering  <jim@meyering.net>
84086         and Paul Eggert  <eggert@cs.ucla.edu>
84087
84088         Merges from coreutils, etc.
84089
84090         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84091         using the latest version from cvs.  This avoids problems with #line
84092         directives using a vendor (Sun) compiler.
84093         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84094         Don't set GETGROUPS_LIB here; now it's
84095         done via getgroups.m4's wrapper function.
84096         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84097         rather than just in sh-util/configure.in, so that the
84098         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84099         same.
84100         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84101         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84102         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84103         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84104         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84105         Remove code that is now done by the newly-required macros.
84106         Append $(EXEEXT) to DF_PROG.
84107         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84108         Do not invoke or require the following here,
84109         since prereq.m4 or some gnulib .m4 now does this for us:
84110         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84111         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84112         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84113         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84114         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84115         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84116         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84117         AC_FUNC_OBSTACK.
84118         Do not replace the following functions, as this is now the job
84119         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84120         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84121         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84122         atexit getpass, strdup, getpagesize.
84123         Replace 'raise'.
84124         Do not check for the following functions, as this is now the job
84125         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84126         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84127         setregid.
84128         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84129         Check for sys/sysctl.h.
84130         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84131         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84132         of checking for ssize_t ourselves.
84133
84134         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84135         Require every macro that gnulib/modules/* suggests for us.
84136         (jm_PREREQ_ADDEXT): New macro.
84137         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84138         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84139
84140         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84141         (gl_PHYSMEM): Use it.
84142         Also check for `table' function.
84143         Check for new headers and functions.
84144         Add check for sys/sysmp.h.
84145         With suggestions from Kaveh Ghazi.
84146         Ignore headers that are present but cannot be compiled.  This
84147         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84148         C 5.4.
84149
84150 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84151
84152         Document merge from coreutils.
84153         * modules/userspec: Depend on posixver.
84154         * modules/strftime: Depend on tzset.
84155
84156 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84157
84158         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84159         rather than tab, after '#' in shell-script copyright notices.
84160         Suggested by Bruno Haible.
84161
84162 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84163
84164         * config/srclist-update: Use three spaces, rather than tab, after '#'
84165         in shell-script copyright notices.  Suggested by Bruno Haible.
84166         Remove unnecessary parenthesization in regular expression.
84167
84168 2003-08-15  Jim Meyering  <jim@meyering.net>
84169
84170         Merge from coreutils.
84171         * lib/xgethostname.c: Include <stdlib.h>.
84172         (xghostname): Don't exit for anything other than memory-related
84173         failure; just return NULL.
84174         * lib/userspec.c: Include "posixver.h".
84175         (parse_user_spec): Accept `.' as a separator only
84176         in pre-POSIX-200112 mode.
84177         * lib/strtoimax.c: Use #elif rather than #else #if.
84178         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84179         Remove function, now that we can rely on a working tzset function.
84180         [!_LIBC]: Ensure that the required autoconf test has been run.
84181         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84182         Use underlying_strftime for %r.
84183         * lib/sha.c: Merge in some clean-up and optimization changes from
84184         glibc.
84185         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84186         Ensure that it is a multiple of 64.
84187         Rearrange loop exit tests so as to avoid performing an
84188         additional fread after encountering an error or EOF.
84189         * lib/realloc.c: Update copyright date.
84190
84191 2003-08-15  Jim Meyering  <jim@meyering.net>
84192         and Paul Eggert  <eggert@twinsun.com>
84193
84194         Merge from coreutils.
84195         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84196         member but strut utmpx does not.  Needed for AIX 4.3.3.
84197         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84198
84199 2003-08-15  Jim Meyering  <jim@meyering.net>
84200         and Paul Eggert  <eggert@cs.ucla.edu>
84201
84202         Merges from coreutils, etc.
84203         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84204         Require gl_FUNC_TZSET_CLOBBER.
84205         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84206         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84207         members.
84208
84209 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84210
84211         Help the merge from coreutils.
84212         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84213         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84214         * m4/tzset.m4: Use it too.
84215
84216 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84217
84218         * modules/tzset: New file.
84219
84220 2003-08-14  Jim Meyering  <jim@meyering.net>
84221
84222         Merges from coreutils.
84223         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84224         variable names, rather than @FNMATCH_H@.
84225         * modules/alloca: Likewise for $(ALLOCA_H).
84226
84227         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84228         the three copies of the literal target, `fnmatch.h'.
84229         * modules/alloca (alloca.h): Likewise.
84230
84231 2003-08-14  Jim Meyering  <jim@meyering.net>
84232
84233         Merge from coreutils.
84234         * m4/tzset.m4: New file.
84235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84236         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84237         otherwise, AIX 5.1 systems would end up using the latter.
84238         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84239         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84240         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84241         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84242
84243 2003-08-14  Jim Meyering  <jim@meyering.net>
84244
84245         Merge from coreutils.
84246         * lib/obstack.h: Whitespace changes.
84247         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84248         and xcalloc return values.
84249         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84250         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84251         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84252         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84253         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84254         error from mntctl.
84255         Use mntctl's return value to drive the entry-processing loop, since
84256         we can't rely on the value of the vmt_length member in the last
84257         entry.  On some systems doing so could result in exhausting
84258         virtual memory.  Based in part on a patch from Mike Jetzer.
84259
84260 2003-08-14  Jim Meyering  <jim@meyering.net>
84261         and Paul Eggert  <eggert@twinsun.com>
84262
84263         Merges from coreutils, plus other fixes.
84264         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84265         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84266         for credits and details.  Thanks to Kaveh Ghazi for helping
84267         to keep these files in sync.
84268         (ARRAY_SIZE): Define it.
84269         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84270         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84271         (memcasecmp): Don't assume size_t fits in unsigned int.
84272         Remove casts and duplicate code.
84273         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84274         (memcpy): Remove definition.
84275         Merge in some clean-up and optimization changes from glibc.
84276         [BLOCKSIZE]: Move definition to top of file.
84277         Ensure that it is a multiple of 64.
84278         Rearrange loop exit tests so as to avoid performing an
84279         additional fread after encountering an error or EOF.
84280         * lib/md5.h (md5_uintptr): Define.
84281         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84282         return to the initial working directory.  Preserve errno
84283         for caller.
84284         * lib/idcache.c: Include "xalloc.h".
84285         (xmalloc, xrealloc): Remove decls.
84286         (getuser): Remove casts no longer required in C89.
84287         * lib/human.c: Include stdio.h, for sprintf.
84288         * lib/group-member.c: Include "xalloc.h".
84289         (xmalloc, xrealloc): Remove decls.
84290         (get_group_info): Remove casts no longer required in C89.
84291         * lib/getusershell.c (readname): Remove casts no longer required in
84292         C89.
84293         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84294         * lib/getline.c: Whitespace fix, from coreutils.
84295
84296 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84297
84298         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84299         Check for isascii.
84300
84301         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84302         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84303         Undo previous (whitespace-only) change.
84304
84305 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84306
84307         * lib/exclude.c: Include <ctype.h>
84308         (IN_CTYPE_DOMAIN): New macro.
84309         (is_space): New fn.
84310         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84311         and empty lines.
84312
84313         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84314         Undo previous (whitespace-only) change.
84315
84316 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84317
84318         * config/srclist-update: Change update back to the old behavior,
84319         leaving whitespace alone.  Use one 'sed' command rather than a
84320         pipeline.
84321         (fixlicense): Now a variable, not a function.
84322         (remove_trailing_blanks): Remove.
84323         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84324         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84325         Undo previous (whitespace-only) change.
84326
84327 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84328
84329         Merge from coreutils.
84330         * modules/euidaccess: Add lib_SOURCES, include for new
84331         file euidaccess.h
84332
84333 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84334
84335         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84336         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84337         Normalize leading white space and remove trailing white space.
84338
84339         Merge from coreutils
84340         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84341
84342         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84343         0.12.1.  These files are now being upgraded automatically by
84344         ../config/srclist-update.
84345
84346 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84347
84348         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84349         Normalize leading white space and remove trailing white space.
84350         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84351         notice, as per ../config/srclist-update.
84352
84353         Merge from coreutils.
84354         * lib/euidaccess.h: New file.
84355         * lib/euidaccess.c: Include it.
84356         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84357         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84358         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84359
84360 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84361
84362         * config/srclist-update: Add copyright notice.
84363         (remove_id_lines, remove_trailing_blanks): New constants.
84364         (fixfile): Use them to normalize spacing a bit in copied files.
84365         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84366         Normalize leading white space and remove trailing white space.
84367
84368         * config/texinfo.tex: Sync with texinfo.
84369
84370         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84371         strtoul.c from libc, to merge coreutils whitespace changes.
84372
84373         * config/srclist.txt: Get the following m4 files from gettext:
84374         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84375         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84376         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84377         wint_t.m4.
84378
84379 2003-08-12  Karl Berry  <karl@gnu.org>
84380
84381         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84382         been made.
84383
84384 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84385
84386         * modules/gnu-source, m4/gnu-source.m4:
84387         Remove; we're assuming Autoconf 2.54 or later now.
84388         Suggested by Bruno Haible.
84389         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84390
84391 2003-08-11  Bruno Haible  <bruno@clisp.org>
84392
84393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84394
84395 2003-08-11  Bruno Haible  <bruno@clisp.org>
84396
84397         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84398         (vasnprintf): Use it instead of wcslen.
84399
84400 2003-08-11  Bruno Haible  <bruno@clisp.org>
84401
84402         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84403         value to ensure that _Bool promotes to int. Use #define for _Bool when
84404         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84405
84406 2003-08-10  Karl Berry  <karl@gnu.org>
84407
84408         * lib/regex.h: update from libc (whitespace fix).
84409
84410 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84411
84412         Merge some files from coreutils.  These changes were
84413         originally made by Jim Meyering.
84414         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84415         many older Unixes require this.
84416         * lib/alloca.c (alloca): Remove cast to argument of free;
84417         no longer needed in C89.
84418         * lib/alloca_.h, regex.h: Fix white space to match
84419         what GNU indent does.
84420
84421 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84422
84423         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84424         apparently Emacs's Unicode mode got confused before my 2003-08-05
84425         checkin.
84426
84427 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84428
84429         * m4/extensions.m4: New file.
84430         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84431         Require gl_USE_SYSTEM_EXTENSIONS.
84432         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84433         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84434
84435 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84436
84437         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84438         * modules/extensions, modules/gnu-source: New files.
84439         * modules/timespec, modules/unlocked-io: Depend on extensions.
84440
84441 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84442
84443         * modules/restrict: New file.
84444         * MODULES.html.sh (func_all_modules): Add restrict.
84445         * modules/regex: Depend on restrict.
84446
84447 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84448
84449         * m4/restrict.m4: New file.
84450         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84451
84452 2003-08-07  Bruno Haible  <bruno@clisp.org>
84453
84454         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84455         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84456
84457 2003-08-07  Bruno Haible  <bruno@clisp.org>
84458
84459         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84460         makes the module 'getndelim2' compatible with the module 'getline'.
84461
84462 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84463
84464         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84465         byte with "\201" to avoid glitches when editing that source file
84466         with multi-gnome-terminal.
84467
84468 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84469
84470         * lib/bumpalloc.h: Remove.
84471
84472 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84473
84474         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84475         * modules/bumpalloc: Remove.
84476
84477 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84478
84479         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84480         GNU coding style.
84481
84482         Merge from coreutils.
84483         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84484         1. From glibc.
84485         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84486         from Karl Berry, implemented by Jim Meyering.
84487         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84488         from Dmitry V. Levin.
84489         Remove anachronistic cast of xrealloc.
84490         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84491         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84492         type. Otherwise, it wouldn't compile with at least /bin/cc on
84493         ymp-cray-unicos9.0.2.X.
84494         Combine two mostly-identical uses of alloca into one.
84495         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84496
84497 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84498
84499         [From Emacs.]
84500
84501         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84502         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84503         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84504         obsolete NLIST_NAME_UNION.
84505         [__GNU__]: Undef BSD and FSCALE.
84506         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84507
84508 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84509
84510         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84511         an enum type, so that it's guaranteed to promote to int.  See:
84512         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84513
84514 2003-08-03  Karl Berry  <karl@gnu.org>
84515
84516         * config/depcomp: update from automake.
84517
84518 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84519
84520         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84521         (strerror): Don't assume that a printable int fits in 14 bytes.
84522
84523 2003-07-31  Bruno Haible  <bruno@clisp.org>
84524
84525         * modules/getpass-gnu: New file.
84526         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84527
84528 2003-07-31  Bruno Haible  <bruno@clisp.org>
84529
84530         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84531
84532 2003-07-24  Karl Berry  <karl@gnu.org>
84533
84534         * config/missing: update from automake.
84535
84536 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84537             Bruno Haible  <bruno@clisp.org>
84538
84539         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84540         * lib/getline.c (getline, getdelim): Likewise.
84541         Remove _GNU_SOURCE define; now it's defined in config.h through
84542         m4/getline.m4.
84543
84544 2003-07-23  Karl Berry  <karl@gnu.org>
84545
84546         * config/config.sub: update from prep.
84547
84548 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84549
84550         * modules/xalloc (Depends-on): Add exitfail.
84551         * modules/xmemcoll: Likewise.
84552
84553 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84554
84555         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84556         over-parenthesization in macros.
84557
84558         Sync with coreutils.
84559
84560         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84561         required by C99.
84562
84563         Use `exit_failure' for xalloc and xmemcoll instead of their own
84564         private exit-failure variables.
84565         * lib/xalloc.h (xalloc_exit_failure): Remove.
84566         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84567         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84568         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84569         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84570         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84571
84572 2003-07-20  Jim Meyering  <jim@meyering.net>
84573
84574         * modules/closeout (Depends-on): Add exitfail.
84575         Suggestion from Bruno Haible.
84576
84577 2003-07-19  Karl Berry  <karl@gnu.org>
84578
84579         * config/config.sub: update from prep.
84580
84581 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84582
84583         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84584         Remove.
84585         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84586         to test that it can stand by itself.  Include "exitfail.h".
84587         Clients should set exit_failure instead.
84588         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84589
84590 2003-07-18  Bruno Haible  <bruno@clisp.org>
84591
84592         * modules/getndelim2: New file.
84593         * modules/getline: Share files with module getndelim2.
84594         * modules/getnline: Depend on getndelim2 instead of sharing files with
84595         it. Add getnline.c to lib_SOURCES.
84596         * MODULES.html.sh (func_all_modules): Add getndelim2.
84597
84598 2003-07-18  Bruno Haible  <bruno@clisp.org>
84599
84600         * m4/getndelim2.m4: New file.
84601         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84602         invoke gl_PREREQ_GETNDELIM2.
84603         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84604         gl_PREREQ_GETNDELIM2.
84605         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84606         gl_GETNDELIM2.
84607
84608 2003-07-18  Bruno Haible  <bruno@clisp.org>
84609
84610         * lib/getndelim2.h: New file.
84611         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84612         getndelim2.h.
84613         (getndelim2): Make non-static. Change return type to ssize_t.
84614         * lib/getline.h: Change argument names.
84615         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84616         * lib/getnline.c: Include getndelim2.h.
84617
84618 2003-07-18  Andreas Schwab  <schwab@suse.de>
84619
84620         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84621
84622 2003-07-17  Karl Berry  <karl@gnu.org>
84623
84624         * config/config.sub: update from prep.
84625
84626 2003-07-17  Bruno Haible  <bruno@clisp.org>
84627
84628         * modules/getnline: New file.
84629         * modules/getline: Add lib/getndelim2.c to source file list.
84630         * MODULES.html.sh (func_all_modules): Add getnline.
84631
84632 2003-07-17  Bruno Haible  <bruno@clisp.org>
84633
84634         * m4/getnline.m4: New file.
84635
84636 2003-07-17  Bruno Haible  <bruno@clisp.org>
84637
84638         * m4/Makefile.am.in: Remove file.
84639         * m4/Makefile.am: Remove file.
84640         * m4/Makefile.in: Remove file.
84641
84642 2003-07-17  Bruno Haible  <bruno@clisp.org>
84643
84644         * lib/getnline.h: New file.
84645         * lib/getnline.c: New file.
84646         * lib/getndelim2.c: New file, extracted from getline.c.
84647         (getndelim2): Renamed from getdelim2, with added nmax argument.
84648         * lib/getline.c: Include getndelim2.c.
84649         (getdelim2): Moved out to getndelim2.c.
84650         (getline, getdelim): Update.
84651
84652 2003-07-17  Bruno Haible  <bruno@clisp.org>
84653
84654         * lib/Makefile.am: Remove file.
84655         * lib/Makefile.in: Remove file.
84656
84657 2003-07-17  Bruno Haible  <bruno@clisp.org>
84658
84659         * configure.in: Remove file.
84660         * Makefile.in: Remove file.
84661
84662 2003-07-17  Bruno Haible  <bruno@clisp.org>
84663
84664         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84665
84666 2003-07-16  Karl Berry  <karl@gnu.org>
84667
84668         * config/srclist-update: was running fixlicense twice, which caused
84669                 texinfo.tex to be nullified for some reason.  Simplify,
84670                 $gplsrc is no longer needed as far as I can see?
84671
84672 2003-07-16  Jim Meyering  <jim@meyering.net>
84673
84674         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84675
84676 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84677
84678         * config/srclist.txt: Get the following files from gettext-runtime/intl
84679         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84680         ref-del.sin.  From Bruno Haible.
84681         * config/srclist-update (fixfile): Change grep pattern again, since the
84682         previous fix didn't work (there was another trailing $).  Use
84683         '[$]' to escape the $s.
84684
84685 2003-07-15  Karl Berry  <karl@gnu.org>
84686
84687         * lib/vasnprintf.c: update from gettext.
84688
84689 2003-07-15  Karl Berry  <karl@gnu.org>
84690
84691         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84692         gets expanded when surrounded by '$'.
84693
84694 2003-07-15  Jim Meyering  <jim@meyering.net>
84695
84696         * modules/save-cwd: Don't depend on error.  From Derek Price.
84697
84698 2003-07-15  Jim Meyering  <jim@meyering.net>
84699
84700         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84701
84702 2003-07-14  Simon Josefsson  <jas@extundo.com>
84703
84704         * modules/mempcpy: New file.
84705         * MODULES.html.sh (func_all_modules): Add mempcpy.
84706
84707 2003-07-14  Simon Josefsson  <jas@extundo.com>
84708
84709         * m4/mempcpy.m4: New file.
84710
84711 2003-07-14  Simon Josefsson  <jas@extundo.com>
84712
84713         * lib/mempcpy.h: New file.
84714         * lib/mempcpy.c: New file.
84715
84716 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84717
84718         * modules/getdate, modules/posixtm: Depend on mktime.
84719
84720 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84721
84722         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84723         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84724         unicodeio.c, unicodeio.h, unlocked-io.h:
84725         Switch from LGPL to GPL.
84726
84727 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84728
84729         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84730         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84731         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84732         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84733         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84734         updated automatically by ../config/srclist-update.  This changes
84735         their license from LPGL to GPL.
84736
84737 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84738
84739         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84740         assumed to refer to the root of the most recent stable gettext version.
84741         * config/srclistvars.sh: Add defaults for eggert.
84742         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84743         Match "This program" as well as "The program".  This is needed
84744         for gettext.
84745
84746 2003-07-14  Jim Meyering  <jim@meyering.net>
84747
84748         Don't emit diagnostics.  Let callers do that.
84749         * lib/save-cwd.c: Don't include "error.h".
84750         (save_cwd): Don't call error.  Ensure that errno is valid
84751         when returning nonzero.
84752
84753         * lib/save-cwd.h (restore_cwd): Update prototype.
84754         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84755         Simplify.  Don't call error upon failure.  Let callers do that.
84756         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84757         when auditing is enabled.  But don't bother updating the #if.
84758
84759 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84760
84761         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84762         it breaks C++ compilation.
84763         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84764
84765 2003-07-10  Simon Josefsson  <jas@extundo.com>
84766
84767         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84768
84769 2003-07-10  Jim Meyering  <jim@meyering.net>
84770
84771         * m4/clock_time.m4: Remove trailing blank.
84772         * m4/intmax_t.m4: Likewise.
84773
84774 2003-07-10  Jim Meyering  <jim@meyering.net>
84775
84776         * lib/vasnprintf.c: Remove trailing blanks.
84777         Make cpp indentation consistent.
84778
84779 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84780
84781         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84782         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84783         Switch from LGPL to GPL.
84784
84785 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84786
84787         * config/srclist.txt: Sort sublists.  Add
84788         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84789         that differ from gnulib for one reason or another; we'd like this list
84790         to be smaller but for now let's document what we have.
84791
84792 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84793
84794         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84795         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84796         and sweeter "eval x=$x".
84797         * config/srclist.txt: Get lib/argp* from glibc.
84798
84799 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84800
84801         * lib/mktime.c: Fix some boundary cases and remove need for floating
84802         point.
84803
84804         Issue a compile-time diagnostic if time_t is floating point, or if
84805         two's complement arithmetic is not in effect, or if arithmetic
84806         right shift does not propagate the sign.  These assumptions were
84807         all in the original code but they weren't checked.
84808
84809         (TIME_T_MIDPOINT, verify): New macros.
84810         (__isleap): Remove; it has integer overflow problems.
84811         (leapyear): New function, without those problems.
84812         (ydhms_tm_diff): Remove; splitting into two parts.
84813         (ydhms_diff): New function, containing the arithmetic part of
84814         the old ydhms_tm_diff function.  Issue a compile-time
84815         diagnostic if we are not using C99 integer division.
84816         Avoid casts when possible.
84817         (guess_time_tm): New function, containing the checking part of
84818         the old ydhms_tm_diff function.  Return the new value, rather than
84819         the difference between it and the old.  Accept a new argument T
84820         so that *T specifies the old value.  Check for overflow in the result.
84821
84822         (__mktime_internal): Use a time_t offset, not a long int offset.
84823         This undoes the 2003-06-04 change, which is no longer needed now
84824         that we have better overflow checking.
84825         (localtime_offset): Likewise.
84826
84827         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84828         and long are 64-bit but int is only 32-bit.
84829         (ydhms_diff): Use long int to store year1 and yday1.
84830         Issue a compile-time diagnostic if long int is not wide enough.
84831
84832         (__mktime_internal): Use long int to store adjusted year and yday.
84833         Use plain C rather than preprocessor commands, if that doesn't
84834         affect efficiency.
84835         Check for overflow (and try to repair) after each probe
84836         rather than checking only at the very end.  This avoids some bugs
84837         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84838         does not equal GMT offset at maximum time).
84839         Use integer to check for overflow rather than floating point; this
84840         is more portable to non-IEEE hosts, and is a tad faster.
84841         When we detect that we are oscillating between two values,
84842         don't check whether tm_isdst has the requested value, since
84843         we already know the answer.  When tm_isdst has the wrong value,
84844         use a different heuristic to find the right one, based on the
84845         extreme values actually observed in practice in tz2003a,
84846         rather than the (overly optimistic) "previous 3 calendar quarters".
84847
84848         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84849         "T const" to accommodate glibc style.
84850         (check_result): Use less-confusing report format.  "long" -> "long int.
84851         (main): Likewise.
84852         Don't loop if the iteration overflows time_t.
84853         Allow a negative step in the iteration.
84854
84855 2003-07-06  Karl Berry  <karl@gnu.org>
84856
84857         * config/depcomp: update from automake.
84858         * config/config.sub: update from prep.
84859
84860 2003-07-03  Karl Berry  <karl@gnu.org>
84861
84862         * config/config.guess: update from prep.
84863
84864 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84865
84866         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84867         xreadlink.c now includes it unconditionally.
84868
84869 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84870
84871         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84872         having it depend on HAVE_SYS_TYPES_H.
84873
84874 2003-07-01  Bruno Haible  <bruno@clisp.org>
84875
84876         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84877         <sys/types.h> should be sufficient.
84878         Reported by Paul Eggert.
84879
84880 2003-06-26  Karl Berry  <karl@gnu.org>
84881
84882         * config/depcomp: update from automake.
84883
84884 2003-06-26  Bruno Haible  <bruno@clisp.org>
84885
84886         * modules/human: Depend on module stdbool.
84887
84888 2003-06-25  Bruno Haible  <bruno@clisp.org>
84889
84890         * modules/readlink: New file.
84891         * modules/xreadlink: Depend on it.
84892         * MODULES.html.sh (func_all_modules): Add readlink.
84893
84894 2003-06-25  Bruno Haible  <bruno@clisp.org>
84895
84896         * m4/readlink.m4: New file.
84897
84898 2003-06-25  Bruno Haible  <bruno@clisp.org>
84899
84900         * lib/readlink.c: New file.
84901
84902 2003-06-22  Karl Berry  <karl@gnu.org>
84903
84904         * config/srclist.txt: update mkinstalldirs from automake.
84905         * config/mkinstalldirs: update.
84906
84907 2003-06-22  Bruno Haible  <bruno@clisp.org>
84908
84909         Portability to mingw32.
84910         * m4/ssize_t.m4: New file, from GNU gettext.
84911         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84912         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84913
84914 2003-06-22  Bruno Haible  <bruno@clisp.org>
84915
84916         * modules/safe-read: Add m4/ssize_t.m4.
84917         * modules/xreadlink: Add m4/ssize_t.m4.
84918
84919 2003-06-20  Bruno Haible  <bruno@clisp.org>
84920
84921         Assume C89, so PARAMS isn't needed.
84922         * lib/unicodeio.h (PARAMS): Remove.
84923         * lib/unicodeio.c: Don't use PARAMS.
84924
84925 2003-06-18  Karl Berry  <karl@gnu.org>
84926
84927         * config/config.{guess,sub}: update from prep.
84928
84929 2003-06-18  Jim Meyering  <jim@meyering.net>
84930
84931         Merge changes from coreutils.
84932         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84933         Remove explicit declarations of xmalloc and realloc.
84934         Include xalloc.h.
84935         (read_utmp): Remove anachronistic cast of xmalloc.
84936
84937 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84938
84939         Assume C89, so PARAMS isn't needed.
84940         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84941         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84942         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84943         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84944         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84945         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84946         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84947         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84948         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84949         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84950         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84951         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84952         no longer needed. Anyway, config.h should always be included before any
84953         other file.
84954
84955 2003-06-11  Simon Josefsson  <jas@extundo.com>
84956
84957         * modules/sysexits: New file.
84958         * MODULES.html.sh (func_all_modules): Add sysexits.
84959
84960 2003-06-11  Simon Josefsson  <jas@extundo.com>
84961
84962         * lib/sysexit_.h: New file.
84963
84964 2003-06-11  Derek Price  <derek@ximbiot.com>
84965
84966         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84967         necessary.
84968
84969 2003-06-11  Bruno Haible  <bruno@clisp.org>
84970
84971         * m4/sysexits.m4: New file.
84972
84973 2003-06-10  Simon Josefsson  <jas@extundo.com>
84974
84975         * lib/argp.h: New file, from glibc.
84976         * lib/argp-ba.c: New file, from glibc.
84977         * lib/argp-eexst.c: New file, from glibc.
84978         * lib/argp-fmtstream.c: New file, from glibc.
84979         * lib/argp-fmtstream.h: New file, from glibc.
84980         * lib/argp-fs-xinl.c: New file, from glibc.
84981         * lib/argp-help.c: New file, from glibc.
84982         * lib/argp-namefrob.h: New file, from glibc.
84983         * lib/argp-parse.c: New file, from glibc.
84984         * lib/argp-pv.c: New file, from glibc.
84985         * lib/argp-pvh.c: New file, from glibc.
84986         * lib/argp-xinl.c: New file, from glibc.
84987
84988 2003-06-10  Simon Josefsson  <jas@extundo.com>
84989
84990         * modules/strchrnul: New file.
84991
84992 2003-06-10  Simon Josefsson  <jas@extundo.com>
84993
84994         * modules/argp: New file.
84995
84996 2003-06-10  Simon Josefsson  <jas@extundo.com>
84997
84998         * m4/strchrnul.m4: New file.
84999
85000 2003-06-10  Simon Josefsson  <jas@extundo.com>
85001
85002         * lib/strchrnul.h: New file.
85003         * lib/strchrnul.c: New file.
85004
85005 2003-06-10  Bruno Haible  <bruno@clisp.org>
85006
85007         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
85008
85009 2003-06-07  Karl Berry  <karl@gnu.org>
85010
85011         * config/config.{guess,sub}: update from prep.
85012
85013 2003-06-07  Jim Meyering  <jim@meyering.net>
85014
85015         * modules/strtod: Use $(...) notation, not @...@ for
85016         AC_REPLACE'd variables.
85017         * modules/localcharset: Likewise.
85018
85019 2003-06-07  Jim Meyering  <jim@meyering.net>
85020
85021         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
85022         in place of my name in the copyright comment.
85023         Remove definition and uses of __P.
85024
85025         From coreutils.
85026         * lib/stat.c: Don't declare xmalloc explicitly.
85027         Instead, include "xalloc.h".
85028         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
85029         xrealloc, and xcalloc return values.
85030         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
85031         Improve comment.
85032         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
85033
85034 2003-06-07  Bruno Haible  <bruno@clisp.org>
85035
85036         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
85037         avoid AC_CONFIG_LINKS.
85038         * modules/fnmatch (Makefile.am): Use explicit creation rule for
85039         fnmatch.h, to avoid AC_CONFIG_LINKS.
85040         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85041
85042 2003-06-07  Bruno Haible  <bruno@clisp.org>
85043
85044         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85045         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85046         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85047         directory.
85048         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85049         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85050         directory.
85051
85052 2003-06-06  Jim Meyering  <jim@meyering.net>
85053
85054         Merge from coreutils.
85055         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85056         Consolidate declarations and initializations of *_base* locals.
85057
85058         Merge from coreutils.
85059         This avoids a core dump on systems without GNU putenv,
85060         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
85061         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85062         (unsetenv): New static function, from GNU libc.
85063         (rpl_putenv): Use it.
85064
85065         * lib/modechange.c: Remove trailing blanks.
85066
85067         Merge from coreutils.
85068         * lib/fsusage.c: Remove declaration of statfs.
85069         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85070
85071         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85072
85073 2003-06-06  Jim Meyering  <jim@meyering.net>
85074
85075         * lib/stdbool_.h: Renamed from stdbool.h.in.
85076
85077 2003-06-06  Jim Meyering  <jim@meyering.net>
85078             Bruno Haible  <bruno@clisp.org>
85079
85080         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85081         Adjust Makefile.am snippet not to redirect directly to target.
85082         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85083
85084 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85085
85086         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85087         mismatch, look in future quarters as well as past.  This fixes a
85088         bug when processing fall-backwards gaps immediately after a long
85089         period of daylight-saving time.
85090
85091         * lib/mktime.c: Assume freestanding C89 or better.
85092         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85093         (__P): Remove; not used.
85094         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85095         (mktime, not_equal_tm, print_tm, check_result,
85096         main): Use prototypes.  Use const * where appropriate.
85097         (main): Fix typo in testing code that uncovered by above changes.
85098         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85099
85100 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85101
85102         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85103         locale.h, localeconv.  This merges changes from coreutils.
85104
85105         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85106         It can be removed after the next Autoconf is released.
85107         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85108         needed.
85109
85110 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85111
85112         * lib/mktime.c: Fix Debian bug 177940
85113         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85114         (localtime_offset): Now long int, not time_t, because we want it
85115         to be guaranteed to be signed.  All uses changed.
85116         (__mktime_internal): If overflow would occur when adding offset,
85117         don't add it.
85118
85119         Merge 'human' changes from coreutils.  Rewrite to support
85120         locale-specific notations like thousands separators.
85121         * lib/human.c: Simplify authorship notice.
85122         Include human.h immediately after config.h.
85123         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85124         <limits.h>: Do not include, since human.h does.
85125         (SIZE_MAX, UINTMAX_MAX): New macros.
85126         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85127         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85128         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85129         (power_letter): Renamed from suffixes.
85130         (generate_suffix_backwards): Remove.
85131         (adjust_value): Now takes int style (because of human.h changes)
85132         and long double value (for greater precision on some platforms).
85133         (group_number): New function.
85134         (human_readable): Use it.  Use integer options, not enum.
85135         Put the options before the sizes in the arg list.
85136         Support all the new options.
85137         The old human_readable function has been removed;
85138         use inttostr.h instead.
85139         (human_readable, default_block_size, humblock):
85140         Use uintmax_t, not int, for block sizes.
85141         (human_readable_inexact, block_size_types): Remove.
85142         (block_size_opts): New constant.
85143         (human_options): Renamed from human_block_size, with new signature
85144         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85145         * lib/human.h: Add copyright and authorship notice.
85146         Include <limits.h> and <stdbool.h> unconditionally.
85147         (PARAMS): Remove.  All uses removed.
85148         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85149         (enum human_inexact_style): Remove tag; now a nameless enum.
85150         (human_floor, human_ceiling, human_round_to_even): Now have
85151         values 2, 0, 1 rather than -1, 1, 0.
85152         (human_group_digits, human_suppress_point_zero, human_autoscale,
85153         human_base_1024, human_SI, human_B): New constants.
85154         (human_readable_inexact, human_block_size): Remove.
85155         (human_readable): Size args are now uintmax_t, not int.
85156         (human_options): New decl.
85157
85158         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85159         unnecessary now that we assume C89 or better.  This change
85160         imported from coreutils.
85161
85162         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85163         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85164         in the 2003-05-30 sync from glibc.
85165
85166         .h files should stand alone, but we shouldn't include <sys/types.h>
85167         if we can get away with just <stddef.h>.
85168
85169         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85170         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85171         rather than <sys/types.h>, as we merely need size_t.
85172         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85173         to get size_t.
85174         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85175         Include <stdio.h>, to get FILE.
85176         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85177         memcasecmp.h has included <stddef.h> and all we need is size_t.
85178         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85179         our interface, instead of including <sys/types.h>
85180
85181 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85182
85183         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85184         now, as glibc mktime is buggy on non-glibc systems.
85185
85186 2003-06-03  Karl Berry  <karl@gnu.org>
85187
85188         * config/config.sub: update from prep.
85189
85190 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85191
85192         [from coreutils]
85193         Fix some minor time-related bugs with POSIX time arguments.
85194         Some valid time stamps were being rejected (notably -1, and
85195         time stamps before 1900 on 64-bit hosts).  And some invalid
85196         time stamps were being accepted, e.g. September 31.
85197
85198         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85199         that we can return (time_t) -1 successfully.
85200         * lib/posixtm.c: Likewise.
85201         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85202         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85203         (t): Remove static var.
85204         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85205         of static var.  All uses changed.
85206         (year): Do not reject years before 1900; they can occur with
85207         64-bit time_t.
85208         (posix_time_parse): Do not check for out-of-range components;
85209         that is now the caller's responsibility, since our checks were
85210         only approximations.
85211         (posixtime): Use mktime to check for out-of-range components,
85212         since it knows them exactly.
85213         If mktime returns (time_t) -1, check whether an error actually occurred
85214         by invoking localtime on -1.
85215         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85216         posixtime failures better.
85217         Improve the test data (in comments only).
85218
85219 2003-06-02  Karl Berry  <karl@gnu.org>
85220
85221         * config/mkinstalldirs (version): new variable.
85222         (--version): new option.
85223         (usage): improve message.
85224
85225 2003-05-30  Karl Berry  <karl@gnu.org>
85226
85227         * lib/mktime.c: update from libc.
85228
85229 2003-05-30  Bruno Haible  <bruno@clisp.org>
85230
85231         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85232         * config/config.rpath: Upgrade to gettext-0.12.1.
85233
85234 2003-05-30  Bruno Haible  <bruno@clisp.org>
85235
85236         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85237         * m4/nls.m4: New file, from gettext-0.12.1.
85238         * m4/po.m4: New file, from gettext-0.12.1.
85239         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85240
85241 2003-05-30  Bruno Haible  <bruno@clisp.org>
85242
85243         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85244         * lib/localcharset.h: Likewise.
85245         * lib/localcharset.c: Likewise.
85246
85247 2003-05-29  Karl Berry  <karl@gnu.org>
85248
85249         * config/config.rpath: update from gettext.
85250
85251 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85252
85253         Assume the headers required for C89 freestanding compilers.
85254         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85255         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85256         * m4/human.m4 (gl_HUMAN): Likewise.
85257         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85258         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85259         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85260         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85261         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85262         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85263
85264 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85265
85266         Assume the headers required for C89 freestanding compilers.
85267         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85268         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85269         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85270         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85271         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85272         define, since <limits.h> is guaranteed to do that.
85273         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85274         * lib/exclude.c: Include <stdbool.h> unconditionally.
85275         * lib/tempname.c: Include <stddef.h> unconditionally.
85276         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85277         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85278         <stddef.h> does that.
85279         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85280         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85281         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85282         needed.
85283         * lib/xstrtol.c: Likewise.
85284         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85285         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85286
85287         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85288         warnings on some platforms.
85289
85290         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85291         arbitrarily.
85292
85293 2003-05-26  Jim Meyering  <jim@meyering.net>
85294
85295         Merge in a change from coreutils:
85296         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85297         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85298         that condition, rather than `-1' which is slightly misleading.
85299         Change the name of the cache variable to have the gl_ prefix.
85300         Prompted by a patch from Richard Dawe for DJGPP.
85301
85302 2003-05-24  Karl Berry  <karl@gnu.org>
85303
85304         * config/config.guess: update from prep.
85305
85306 2003-05-22  Karl Berry  <karl@gnu.org>
85307
85308         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85309
85310 2003-05-20  Karl Berry  <karl@gnu.org>
85311
85312         * config/config.guess: update from prep.
85313
85314 2003-05-18  Karl Berry  <karl@gnu.org>
85315
85316         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85317         might actually be set by the user.
85318
85319         * config/depcomp, install-sh, mdate-sh: update from automake.
85320
85321 2003-05-17  Bruno Haible  <bruno@clisp.org>
85322
85323         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85324         invalid expansion for AC_EGREP_CPP.
85325         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85326         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85327         Suggested by Akim Demaille <akim@epita.fr> in
85328         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85329
85330 2003-05-12  Jim Meyering  <jim@meyering.net>
85331
85332         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85333         the space-padded-by-default conversion specifiers, %e, %k, %l.
85334
85335 2003-05-12  Bruno Haible  <bruno@clisp.org>
85336
85337         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85338         the string is longer than 4 KB.
85339
85340 2003-05-11  Karl Berry  <karl@gnu.org>
85341
85342         * config/config.{guess,sub}: update from prep.
85343
85344 2003-05-09  Bruno Haible  <bruno@clisp.org>
85345
85346         * modules/error: Add m4/strerror_r.m4 to file list.
85347
85348 2003-05-03  Bruno Haible  <bruno@clisp.org>
85349
85350         Upgrade to Unicode-4.0.
85351         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85352         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85353         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85354         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85355         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85356         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85357         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85358         Change width of U+E0100..U+E01EF from 1 to 0.
85359
85360 2003-04-25  Jim Meyering  <jim@meyering.net>
85361
85362         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85363         of type size_t, not int.
85364
85365 2003-04-25  Bruno Haible  <bruno@clisp.org>
85366
85367         * lib/copy-file.c: Include <stddef.h>, for size_t.
85368
85369 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85370
85371         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85372         code which expansion is under static control.  Patch imported from
85373         Akim Demaille's patch to Bison; see
85374         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85375
85376 2003-04-14  Bruno Haible  <bruno@clisp.org>
85377
85378         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85379
85380 2003-04-11  Jim Meyering  <jim@meyering.net>
85381
85382         Merge changes from Coreutils.
85383
85384         2003-03-22  Jim Meyering  <jim@meyering.net>
85385
85386         * lib/strftime.c (widen): Cast alloca return value to proper type.
85387
85388         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85389
85390         From GNU libc.
85391         * lib/strftime.c (my_strftime): Handle very large width
85392         specifications for numeric values correctly.  Improve checks for
85393         overflow.
85394
85395         2003-01-19  Jim Meyering  <jim@meyering.net>
85396
85397         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85398         definitions.
85399         (nl_get_alt_digit) [! defined my_strftime]: Define.
85400         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85401         _nl_get_alt_digit and _nl_get_walt_digit.
85402
85403         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85404         libc. These changes have no effect outside of _LIBC.
85405
85406 2003-04-10  Bruno Haible  <bruno@clisp.org>
85407
85408         * modules/findprog: New file.
85409         * MODULES.html.sh (func_all_modules): Add it.
85410
85411 2003-04-10  Bruno Haible  <bruno@clisp.org>
85412
85413         * m4/findprog.m4: New file.
85414         * m4/eaccess.m4: New file.
85415
85416 2003-04-10  Bruno Haible  <bruno@clisp.org>
85417
85418         * lib/findprog.h: New file, from GNU gettext.
85419         * lib/findprog.c: New file, from GNU gettext.
85420
85421 2003-04-05  Jim Meyering  <jim@meyering.net>
85422
85423         Merge changes from Coreutils.
85424
85425         * lib/exclude.h (PARAMS): Remove definition and uses.
85426         * lib/exclude.c: Remove uses of `PARAMS'.
85427
85428         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85429         Add test-cases for DOS filenames. Declare program_name.
85430         (main): Set up program_name.  Patch by Rich Dawe.
85431
85432         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85433         error from mntctl.
85434         Use mntctl's return value to drive the entry-processing loop, since
85435         we can't rely on the value of the vmt_length member in the last
85436         entry.  On some systems doing so could result in exhausting
85437         virtual memory.  Based in part on a patch from Mike Jetzer.
85438
85439 2003-04-04  Bruno Haible  <bruno@clisp.org>
85440
85441         * modules/linebreak: New file.
85442         * MODULES.html.sh (func_all_modules): Add it.
85443
85444 2003-04-04  Bruno Haible  <bruno@clisp.org>
85445
85446         * m4/linebreak.m4: New file.
85447
85448 2003-04-04  Bruno Haible  <bruno@clisp.org>
85449
85450         * lib/linebreak.h: New file, from GNU gettext.
85451         * lib/linebreak.c: New file, from GNU gettext with slight
85452         modifications.
85453         * lib/lbrkprop.h: New file, from GNU gettext.
85454
85455 2003-04-03  Bruno Haible  <bruno@clisp.org>
85456
85457         * modules/utf8-ucs4: New file.
85458         * modules/utf16-ucs4: New file.
85459         * modules/ucs4-utf8: New file.
85460         * modules/ucs4-utf16: New file.
85461         * MODULES.html.sh (func_all_modules): Add them.
85462
85463 2003-04-03  Bruno Haible  <bruno@clisp.org>
85464
85465         * m4/utf-ucs4.m4: New file.
85466         * m4/ucs4-utf.m4: New file.
85467
85468 2003-04-03  Bruno Haible  <bruno@clisp.org>
85469
85470         * lib/utf8-ucs4.h: New file, from GNU gettext.
85471         * lib/utf16-ucs4.h: New file, from GNU gettext.
85472         * lib/ucs4-utf8.h: New file, from GNU gettext.
85473         * lib/ucs4-utf16.h: New file, from GNU gettext.
85474
85475 2003-04-02  Bruno Haible  <bruno@clisp.org>
85476
85477         * modules/binary-io: New file.
85478         * MODULES.html.sh (func_all_modules): Add it.
85479
85480 2003-04-02  Bruno Haible  <bruno@clisp.org>
85481
85482         * lib/binary-io.h: New file, from GNU gettext.
85483
85484 2003-04-01  Bruno Haible  <bruno@clisp.org>
85485
85486         * modules/pathname: New file.
85487         * MODULES.html.sh (func_all_modules): Add it.
85488
85489 2003-04-01  Bruno Haible  <bruno@clisp.org>
85490
85491         * lib/pathname.h: New file, from GNU gettext.
85492         * lib/concatpath.c: New file, from GNU gettext.
85493
85494 2003-03-30  Bruno Haible  <bruno@clisp.org>
85495
85496         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85497
85498 2003-03-30  Bruno Haible  <bruno@clisp.org>
85499
85500         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85501         function chown() doesn't exist.
85502
85503 2003-03-28  Bruno Haible  <bruno@clisp.org>
85504
85505         * modules/copy-file: New file.
85506         * MODULES.html.sh (func_all_modules): Add it.
85507
85508 2003-03-28  Bruno Haible  <bruno@clisp.org>
85509
85510         * m4/copy-file.m4: New file.
85511
85512 2003-03-28  Bruno Haible  <bruno@clisp.org>
85513
85514         * lib/copy-file.h: New file, from GNU gettext.
85515         * lib/copy-file.c: New file, from GNU gettext.
85516
85517 2003-03-18  Jim Meyering  <jim@meyering.net>
85518
85519         * lib/quote.c (quote_n): Fix typo in comment.
85520
85521 2003-03-18  Bruno Haible  <bruno@clisp.org>
85522
85523         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85524         checking.
85525         * m4/onceonly_2_57.m4: Likewise.
85526
85527 2003-03-17  Bruno Haible  <bruno@clisp.org>
85528
85529         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85530         (m4_quote): Remove macro.
85531         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85532
85533 2003-03-14  Jim Meyering  <jim@meyering.net>
85534
85535         Merge changes from Coreutils.
85536         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85537         to be const, in order to avoid warnings.
85538         (obstack_room): Likewise.
85539         (obstack_empty_p): Likewise.
85540
85541 2003-03-14  Bruno Haible  <bruno@clisp.org>
85542
85543         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85544         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85545
85546 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85547
85548         Merge changes from Bison.
85549         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85550         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85551         when compiling Bison 1.875's `bitset bset = obstack_alloc
85552         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85553         * lib/hash.c: Include <stdbool.h> unconditionally.
85554
85555 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85556
85557         * m4/onceonly.m4 (m4_quote): New macro.
85558         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85559         Quote AC_FOREACH variable-expansions properly.
85560
85561 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85562
85563         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85564
85565 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85566
85567         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85568         Reported by Bruce Becker; see:
85569         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85570
85571 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85572             Bruno Haible  <bruno@clisp.org>
85573
85574         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85575         Reported by John Hughes, see
85576         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85577
85578 2003-02-20  Bruno Haible  <bruno@clisp.org>
85579
85580         * MODULES.html.sh (func_all_modules): Add poll.
85581
85582 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85583
85584         * modules/poll: New file.
85585
85586 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85587
85588         * lib/poll_.h: New file.
85589         * lib/poll.c: New file.
85590
85591 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85592
85593         * m4/poll.m4: New file.
85594
85595 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85596
85597         * modules/mathl: New file.
85598
85599 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85600
85601         * lib/mathl.h: New file.
85602         * lib/acosl.c: New file.
85603         * lib/asinl.c: New file.
85604         * lib/atanl.c: New file.
85605         * lib/ceill.c: New file.
85606         * lib/cosl.c: New file.
85607         * lib/expl.c: New file.
85608         * lib/floorl.c: New file.
85609         * lib/frexpl.c: New file.
85610         * lib/ldexpl.c: New file.
85611         * lib/logl.c: New file.
85612         * lib/sincosl.c: New file.
85613         * lib/sinl.c: New file.
85614         * lib/sqrtl.c: New file.
85615         * lib/tanl.c: New file.
85616         * lib/trigl.c: New file.
85617         * lib/trigl.h: New file.
85618
85619 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85620
85621         * m4/mathl.m4: New file.
85622
85623 2003-02-18  Bruno Haible  <bruno@clisp.org>
85624
85625         * MODULES.html.sh (func_all_modules): Add mathl.
85626
85627 2003-02-17  Bruno Haible  <bruno@clisp.org>
85628
85629         * modules/mkdtemp: New module.
85630         * MODULES.html.sh (func_all_modules): Add it.
85631
85632 2003-02-17  Bruno Haible  <bruno@clisp.org>
85633
85634         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85635
85636 2003-02-17  Bruno Haible  <bruno@clisp.org>
85637
85638         * lib/mkdtemp.h: New file, from GNU gettext.
85639         * lib/mkdtemp.c: New file, from GNU gettext.
85640
85641 2003-02-02  Jim Meyering  <jim@meyering.net>
85642
85643         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85644         e.g. glibc-2.2.93.
85645
85646 2003-01-31  Bruno Haible  <bruno@clisp.org>
85647
85648         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85649         'rpl_rename'.
85650         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85651         'rpl_strnlen'.
85652         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85653         'rpl_strtod'.
85654         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85655         'rpl_utime'.
85656
85657 2003-01-31  Bruno Haible  <bruno@clisp.org>
85658
85659         * lib/rename.c: #undef rename before defining rpl_rename.
85660         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85661
85662 2003-01-30  Bruno Haible  <bruno@clisp.org>
85663
85664         * modules/vasnprintf, modules/vasprintf: New modules.
85665         * MODULES.html.sh (func_all_modules): Add them.
85666
85667 2003-01-30  Bruno Haible  <bruno@clisp.org>
85668
85669         * m4/signed.m4: New file, from GNU gettext.
85670         * m4/longdouble.m4: New file, from GNU gettext.
85671         * m4/wchar_t.m4: New file, from GNU gettext.
85672         * m4/wint_t.m4: New file, from GNU gettext.
85673         * m4/vasnprintf.m4: New file.
85674         * m4/vasprintf.m4: New file.
85675
85676 2003-01-30  Bruno Haible  <bruno@clisp.org>
85677
85678         * lib/printf-args.h: New file, from GNU gettext.
85679         * lib/printf-args.c: New file, from GNU gettext.
85680         * lib/printf-parse.h: New file, from GNU gettext.
85681         * lib/printf-parse.c: New file, from GNU gettext.
85682         * lib/vasnprintf.h: New file, from GNU gettext.
85683         * lib/vasnprintf.c: New file, from GNU gettext.
85684         * lib/asnprintf.c: New file, from GNU gettext.
85685         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85686         * lib/vasprintf.c: New file, from GNU gettext.
85687         * lib/asprintf.c: New file, from GNU gettext.
85688
85689 2003-01-29  Bruno Haible  <bruno@clisp.org>
85690
85691         * modules/stpncpy: New module.
85692         * MODULES.html.sh (func_all_modules): Add it.
85693
85694 2003-01-29  Bruno Haible  <bruno@clisp.org>
85695
85696         * m4/stpncpy.m4: New file.
85697
85698 2003-01-29  Bruno Haible  <bruno@clisp.org>
85699
85700         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85701         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85702
85703 2003-01-28  Bruno Haible  <bruno@clisp.org>
85704
85705         * modules/c-ctype: New module.
85706         * MODULES.html.sh (func_all_modules): Add it.
85707
85708 2003-01-28  Bruno Haible  <bruno@clisp.org>
85709
85710         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85711         Paul Eggert.
85712         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85713         Paul Eggert.
85714
85715 2003-01-27  Bruno Haible  <bruno@clisp.org>
85716
85717         * modules/xsetenv: New module.
85718         * MODULES.html.sh (func_all_modules): Add it.
85719
85720 2003-01-27  Bruno Haible  <bruno@clisp.org>
85721
85722         * lib/xsetenv.h: New file, from GNU gettext.
85723         * lib/xsetenv.c: New file, from GNU gettext.
85724
85725 2003-01-23  Jim Meyering  <jim@meyering.net>
85726
85727         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85728         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85729
85730 2003-01-23  Bruno Haible  <bruno@clisp.org>
85731
85732         * modules/minmax: New module.
85733         * MODULES.html.sh (func_all_modules): Add it.
85734
85735 2003-01-23  Bruno Haible  <bruno@clisp.org>
85736
85737         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85738         Eggert.
85739
85740 2003-01-22  Bruno Haible  <bruno@clisp.org>
85741
85742         * modules/exit: New module.
85743         * MODULES.html.sh (func_all_modules): Add it.
85744
85745 2003-01-22  Bruno Haible  <bruno@clisp.org>
85746
85747         * lib/exit.h: New file, from GNU gettext.
85748
85749 2003-01-19  Bruno Haible  <bruno@clisp.org>
85750
85751         * gnulib-tool: Recognize option --extract-maintainer.
85752         (func_get_maintainer): New function.
85753         * modules/*: Add Maintainer entry.
85754
85755 2003-01-16  Jim Meyering  <jim@meyering.net>
85756
85757         * m4/regex.m4: The `regex' struct is both input and output.
85758         Initialize it before each use.  Patch by Tim Waugh.
85759
85760 2003-01-16  Bruno Haible  <bruno@clisp.org>
85761
85762         * MODULES.html.sh: Add a table of contents. Add the module name as
85763         leftmost column. Add hyperlinks.
85764
85765 2003-01-15  Bruno Haible  <bruno@clisp.org>
85766
85767         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85768
85769 2003-01-15  Bruno Haible  <bruno@clisp.org>
85770
85771         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85772         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85773         suffix.
85774
85775 2003-01-15  Bruno Haible  <bruno@clisp.org>
85776
85777         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85778
85779 2003-01-15  Bruno Haible  <bruno@clisp.org>
85780
85781         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85782         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85783
85784 2003-01-14  Jim Meyering  <jim@meyering.net>
85785
85786         * lib/same.c (same_name): Tweak a comment.
85787
85788 2003-01-14  Bruno Haible  <bruno@clisp.org>
85789
85790         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85791         when a string comparison is sufficient.
85792
85793 2003-01-14  Bruno Haible  <bruno@clisp.org>
85794
85795         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85796         'unsigned int'.
85797
85798 2003-01-14  Bruno Haible  <bruno@clisp.org>
85799
85800         * lib/hash-pjw.c: Add comment about low quality of this function.
85801
85802 2003-01-13  Bruno Haible  <bruno@clisp.org>
85803
85804         * modules/stpcpy: Distribute lib/stpcpy.h.
85805         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85806
85807 2003-01-13  Bruno Haible  <bruno@clisp.org>
85808
85809         * modules/*: Add a description.
85810         * modules/strpbrk: Fix Makefile.am snippet.
85811         * modules/strtoimax: Fix dependencies.
85812         * modules/strtoumax: Likewise.
85813
85814 2003-01-13  Bruno Haible  <bruno@clisp.org>
85815
85816         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85817         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85818         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85819
85820 2003-01-13  Bruno Haible  <bruno@clisp.org>
85821
85822         * gnulib-tool (func_create_testdir): Store config/* files in the main
85823         directory.
85824         * config.rpath: Move to ...
85825         * config/config.rpath: ... here.
85826         * modules/gettext: Contains config/config.rpath, not config.rpath.
85827         * modules/iconv: Likewise.
85828
85829 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85830
85831         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85832         to avoid collisions with libcurses and libreadline.
85833
85834         * m4/getstr.m4: Remove.
85835         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85836
85837 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85838
85839         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85840         to avoid collisions with libcurses and libreadline.
85841
85842         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85843         * lib/getstr.h, getstr.c: Remove.
85844         * lib/getline.c: Include "getline.h", to check interface.
85845         Move body of old getstr.c here: this defines MIN_CHUNK and
85846         declares getdelim2, which is renamed from getstr.
85847         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85848
85849         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85850         All uses changed.
85851         * lib/linebuffer.h: Likewise.
85852         (readline): Remove backward-compatibility macro.
85853
85854 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85855
85856         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85857         to avoid collisions with libcurses and libreadline.
85858         * getstr: Remove.
85859         * MODULES.html.sh: Remove getstr.
85860         * modules/getline: Depend on unlocked-io, not getstr.
85861
85862 2003-01-12  Jim Meyering  <jim@meyering.net>
85863
85864         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85865
85866 2003-01-10  Bruno Haible  <bruno@clisp.org>
85867
85868         * modules/alloca: Change Makefile.am requirements. Simplify Include
85869         requirements. Add lib/alloca_.h to file list.
85870
85871 2003-01-10  Bruno Haible  <bruno@clisp.org>
85872
85873         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85874
85875 2003-01-10  Bruno Haible  <bruno@clisp.org>
85876
85877         * lib/alloca_.h: New file.
85878         * lib/getdate.y: Unconditionally include alloca.h.
85879         * lib/makepath.c: Likewise.
85880         * lib/setenv.c: Likewise.
85881         * lib/userspec.c: Likewise.
85882
85883 2003-01-09  Karl Berry  <karl@gnu.org>
85884
85885         * MODULES.html.sh: include `dirname $0` in PATH, to find
85886         gnulib-tool.
85887
85888 2003-01-09  Bruno Haible  <bruno@clisp.org>
85889
85890         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85891         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85892
85893 2003-01-09  Bruno Haible  <bruno@clisp.org>
85894
85895         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85896
85897 2003-01-09  Bruno Haible  <bruno@clisp.org>
85898
85899         * lib/stdbool.h.in: New file.
85900
85901 2003-01-09  Bruno Haible  <bruno@clisp.org>
85902
85903         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85904         * MODULES.html.sh: Likewise.
85905
85906 2003-01-08  Jim Meyering  <jim@meyering.net>
85907
85908         * lib/full-write.c: Undefine and define-away `const' after inclusion
85909         of errno.h, not before.  Suggestion from Bruno Haible.
85910
85911 2003-01-08  Bruno Haible  <bruno@clisp.org>
85912
85913         * modules/full-read: Depend on full-write.
85914
85915 2003-01-08  Bruno Haible  <bruno@clisp.org>
85916
85917         * lib/safe-read.c: Include specification header first, to ensure its
85918         selfcontainedness.
85919         * lib/full-write.c: Likewise.
85920
85921 2003-01-07  Jim Meyering  <jim@meyering.net>
85922
85923         * lib/full-write.c: Rework so that it may serve to define full_read,
85924         too.
85925         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85926
85927 2003-01-07  Bruno Haible  <bruno@clisp.org>
85928
85929         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85930         <inttypes.h>.
85931         * lib/xstrtol.h: Likewise.
85932         * lib/xstrtoimax.c: Likewise.
85933         * lib/xstrtoumax.c: Likewise.
85934         * lib/human.h: Likewise.
85935
85936         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85937         on systems that have <inttypes.h> but not <stdint.h>.
85938
85939 2003-01-07  Bruno Haible  <bruno@clisp.org>
85940
85941         * MODULES.html.sh: Add copyright notice.
85942         (missed_files): Omit CVS directory entries.
85943         (func_module): Make it work with sed-3.02.
85944         * MODULES.txt: Remove file.
85945
85946 2003-01-06  Jim Meyering  <jim@meyering.net>
85947
85948         * lib/version-etc.c: Update year in translatable copyright string.
85949
85950 2003-01-03  Karl Berry  <karl@gnu.org>
85951
85952         * config/config.{guess,sub}: update from prep.
85953
85954 2003-01-02  Karl Berry  <karl@gnu.org>
85955
85956         * doc/COPYING.DOC: belatedly updated to 1.2.
85957
85958 2003-01-01  Karl Berry  <karl@gnu.org>
85959
85960         * gnulib-tool (func_verify_module): report module name $module in
85961         error message, not $1.
85962         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85963         be created, only if it doesn't exist.
85964         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85965
85966 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85967
85968         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85969
85970 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85971
85972         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85973         memcmp if strcoll doesn't work.
85974
85975 2002-12-31  Bruno Haible  <bruno@clisp.org>
85976
85977         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85978         nonempty.
85979
85980 2002-12-31  Bruno Haible  <bruno@clisp.org>
85981
85982         * lib/memcoll.c (STRCOLL): New macro.
85983         (memcoll): Use it.
85984
85985 2002-12-31  Bruno Haible  <bruno@clisp.org>
85986
85987         * lib/localcharset.h: New file.
85988         * lib/localcharset.c: Include it.
85989         * lib/unicodeio.c: Likewise.
85990
85991 2002-12-31  Bruno Haible  <bruno@clisp.org>
85992
85993         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85994         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85995
85996 2002-12-31  Bruno Haible  <bruno@clisp.org>
85997
85998         * lib/getline.h: Include <stddef.h>, for size_t.
85999
86000         * lib/unicodeio.h: Include <stddef.h>, for size_t.
86001         * lib/unicodeio.c: Don't include <stddef.h>.
86002
86003 2002-12-31  Bruno Haible  <bruno@clisp.org>
86004
86005         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
86006         HAVE_TM_ZONE.
86007
86008 2002-12-24  Karl Berry  <karl@gnu.org>
86009
86010         * config/config.guess: update from prep.
86011
86012 2002-12-24  Bruno Haible  <bruno@clisp.org>
86013
86014         General infrasructure.
86015         * m4/README: Rewritten.
86016         * m4/onceonly.m4: New file.
86017         * m4/onceonly_2_57.m4: New file.
86018
86019         Module atexit.
86020         * m4/atexit.m4: New file.
86021
86022         Module strtod.
86023         * m4/strtod.m4: New file.
86024
86025         Module strtol.
86026         * m4/strtol.m4: New file.
86027
86028         Module strtoul.
86029         * m4/strtoul.m4: New file.
86030
86031         Module memchr.
86032         * m4/memchr.m4: New file.
86033
86034         Module memcmp.
86035         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
86036         (jm_FUNC_MEMCMP): Invoke it.
86037
86038         Module memcpy.
86039         * m4/memcpy.m4: New file.
86040
86041         Module memmove.
86042         * m4/memmove.m4: New file.
86043
86044         Module memset.
86045         * m4/memset.m4: New file.
86046
86047         Module strcspn.
86048         * m4/strcspn.m4: New file.
86049
86050         Module strpbrk.
86051         * m4/strpbrk.m4: New file.
86052
86053         Module strstr.
86054         * m4/strstr.m4: New file.
86055
86056         Module strerror.
86057         * m4/strerror.m4: New file.
86058
86059         Module mktime.
86060         * m4/mktime.m4: Renamed from jm-mktime.m4.
86061         (gl_PREREQ_MKTIME): New macro.
86062         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86063
86064         Module malloc.
86065         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86066         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86067         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86068
86069         Module realloc.
86070         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86071         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86072         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86073
86074         Module strftime.
86075         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86076         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86077         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86078         gl_TM_GMTOFF.
86079         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86080
86081         Module xalloc.
86082         * m4/xalloc.m4: New file.
86083
86084         Module alloca.
86085         * m4/alloca.m4: New file.
86086
86087         Module putenv.
86088         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86089         (jm_FUNC_PUTENV): Invoke it.
86090
86091         Module setenv.
86092         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86093         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86094         when invoked twice.
86095         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86096         gt_FUNC_SETENV.
86097
86098         Module memrchr.
86099         * m4/memrchr.m4: New file.
86100
86101         Module stpcpy.
86102         * m4/stpcpy.m4: New file.
86103
86104         Module strcase.
86105         * m4/strcase.m4: New file.
86106
86107         Module strdup.
86108         * m4/strdup.m4: New file.
86109
86110         Module strnlen.
86111         * m4/strnlen.m4: New file.
86112
86113         Module strndup.
86114         * m4/strndup.m4: New file.
86115
86116         Module xstrtod.
86117         * m4/xstrtod.m4: New file.
86118
86119         Module xstrtol.
86120         * m4/xstrtol.m4: New file.
86121
86122         Module getdate.
86123         * m4/getdate.m4: New file.
86124
86125         Module unlocked-io.
86126         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86127         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86128         * m4/jm-glibc-io.m4n: Remove file.
86129
86130         Module long-options.
86131         * m4/long-options.m4: New file.
86132
86133         Module md5.
86134         * m4/md5.m4: New file.
86135
86136         Module sha.
86137         * m4/sha.m4: New file.
86138
86139         Module getstr.
86140         * m4/getstr.m4: New file.
86141
86142         Module getline.
86143         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86144         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86145         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86146         simply getline. Infoke gl_PREREQ_GETLINE.
86147
86148         Module obstack.
86149         * m4/obstack.m4: New file.
86150
86151         Module hash.
86152         * m4/hash.m4: New file.
86153
86154         Module readtokens.
86155         * m4/readtokens.m4: New file.
86156
86157         Module strverscmp.
86158         * m4/strverscmp.m4: New file.
86159
86160         Module stdbool.
86161         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86162         OSF/1.
86163
86164         Module strtoll.
86165         * m4/strtoll.m4: New file.
86166
86167         Module strtoull.
86168         * m4/strtoull.m4: New file.
86169
86170         Module strtoimax.
86171         * m4/strtoimax.m4: New file.
86172
86173         Module strtoumax.
86174         * m4/strtoumax.m4: New file.
86175
86176         Module xstrtoimax.
86177         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86178         jm_AC_PREREQ_XSTRTOIMAX.
86179         Moved the strtol prerequisites to strtol.m4.
86180         Moved the strtoll prerequisites to strtoll.m4.
86181         Moved the strtoimax prerequisites to strtoimax.m4.
86182
86183         Module xstrtoumax.
86184         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86185         jm_AC_PREREQ_XSTRTOUMAX.
86186         Moved the strtoul prerequisites to strtoul.m4.
86187         Moved the strtoull prerequisites to strtoull.m4.
86188         Moved the strtoumax prerequisites to strtoumax.m4.
86189
86190         Module chown.
86191         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86192         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86193
86194         Module dup2.
86195         * m4/dup2.m4: New file.
86196
86197         Module ftruncate.
86198         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86199         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86200
86201         Module getgroups.
86202         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86203         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86204
86205         Module gettimeofday.
86206         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86207         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86208         gl_PREREQ_GETTIMEOFDAY.
86209
86210         Module mkdir.
86211         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86212         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86213
86214         Module mkstemp.
86215         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86216         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86217         jm_AC_TYPE_UINTMAX_T.
86218         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86219
86220         Module stat.
86221         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86222         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86223
86224         Module lstat.
86225         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86226         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86227
86228         Module timespec.
86229         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86230         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86231         * m4/st_mtim.m4: Indentation.
86232
86233         Module nanosleep.
86234         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86235         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86236         gl_PREREQ_NANOSLEEP.
86237
86238         Module regex.
86239         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86240         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86241         (gl_REGEX): New macro.
86242
86243         Module rename.
86244         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86245         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86246
86247         Module rmdir.
86248         * m4/rmdir.m4: New file.
86249
86250         Module utime.
86251         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86252         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86253         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86254
86255         Module dirname.
86256         * m4/dirname.m4: New file.
86257
86258         Module getopt.
86259         * m4/getopt.m4: New file.
86260
86261         Module unistd-safer.
86262         * m4/unistd-safer.m4: New file.
86263
86264         Module fnmatch.
86265         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86266         declaration.
86267         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86268         (gl_FUNC_FNMATCH_POSIX): New macro.
86269         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86270         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86271         simply fnmatch.
86272
86273         Module exclude.
86274         * m4/exclude.m4: New file.
86275
86276         Module human.
86277         * m4/human.m4: New file.
86278
86279         Module acl.
86280         * m4/acl.m4: Nop.
86281
86282         Module backupfile.
86283         * m4/backupfile.m4: New file.
86284         * m4/d-ino.m4: Indentation.
86285
86286         Module fsusage.
86287         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86288         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86289         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86290
86291         Module dirfd.
86292         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86293         requirements.
86294
86295         Module euidaccess.
86296         * m4/euidaccess.m4: New file.
86297
86298         Module file-type.
86299         * m4/file-type.m4: New file.
86300
86301         Module fileblocks.
86302         * m4/fileblocks.m4: New file.
86303
86304         Module filemode.
86305         * m4/filemode.m4: New file.
86306
86307         Module isdir.
86308         * m4/isdir.m4: New file.
86309
86310         Module lchown.
86311         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86312         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86313
86314         Module makepath.
86315         * m4/makepath.m4: New file.
86316
86317         Module modechange.
86318         * m4/modechange.m4: New file.
86319
86320         Module mountlist.
86321         * m4/mountlist.m4: New file.
86322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86323         Indentation.
86324
86325         Module path-concat.
86326         * m4/path-concat.m4: New file.
86327
86328         Module pathmax.
86329         * m4/pathmax.m4: New file.
86330
86331         Module same.
86332         * m4/same.m4: New file.
86333
86334         Module save-cwd.
86335         * m4/save-cwd.m4: New file.
86336
86337         Module savedir.
86338         * m4/savedir.m4: New file.
86339
86340         Module xgetcwd.
86341         * m4/xgetcwd.m4: New file.
86342         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86343
86344         Module xreadlink.
86345         * m4/xreadlink.m4: New file.
86346
86347         Module safe-read.
86348         * m4/safe-read.m4: New file.
86349
86350         Module safe-write.
86351         * m4/safe-write.m4: New file.
86352
86353         Module closeout.
86354         * m4/closeout.m4: New file.
86355
86356         Module stdio-safer.
86357         * m4/stdio-safer.m4: New file.
86358
86359         Module getpass.
86360         * m4/getpass.m4: New file.
86361
86362         Module getugroups.
86363         * m4/getugroups.m4: New file.
86364
86365         Module group-member.
86366         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86367         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86368
86369         Module idcache.
86370         * m4/idcache.m4: New file.
86371
86372         Module userspec.
86373         * m4/userspec.m4: New file.
86374
86375         Module gettime.
86376         * m4/clock_time.m4: New file.
86377         * m4/gettime.m4: New file.
86378
86379         Module settime.
86380         * m4/settime.m4: New file.
86381
86382         Module posixtm.
86383         * m4/posixtm.m4: New file.
86384
86385         Module gethostname.
86386         * m4/gethostname.m4: New file.
86387
86388         Module canon-host.
86389         * m4/canon-host.m4: New file.
86390
86391         Module gettext.
86392         * m4/codeset.m4: New file, from gettext-0.11.5.
86393         * m4/gettext.m4: New file, from gettext-0.11.5.
86394         * m4/glibc21.m4: New file, from gettext-0.11.5.
86395         * m4/iconv.m4: New file, from gettext-0.11.5.
86396         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86397         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86398         * m4/inttypes.m4: New file, from gettext-0.11.5.
86399         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86400         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86401         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86402         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86403         * m4/lib-link.m4: New file, from gettext-0.11.5.
86404         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86405         * m4/progtest.m4: New file, from gettext-0.11.5.
86406         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86407         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86408         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86409
86410         Module localcharset.
86411         * m4/localcharset.m4: New file.
86412
86413         Module hard-locale.
86414         * m4/hard-locale.m4: New file.
86415
86416         Module mbswidth.
86417         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86418         onceonly macros.
86419         * m4/mbrtowc.m4: Add comment.
86420
86421         Module memcasecmp.
86422         * m4/memcasecmp.m4: New file.
86423
86424         Module memcoll.
86425         * m4/memcoll.m4: New file.
86426
86427         Module unicodeio.
86428         * m4/unicodeio.m4: New file.
86429
86430         Module rpmatch.
86431         * m4/rpmatch.m4: New file.
86432
86433         Module yesno.
86434         * m4/yesno.m4: New file.
86435
86436         Module exitfail.
86437         * m4/exitfail.m4: New file.
86438
86439         Module c-stack.
86440         * m4/c-stack.m4 (gl_C_STACK): New macro.
86441         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86442
86443         Module error.
86444         * m4/error.m4 (gl_ERROR): New macro.
86445         (jm_PREREQ_ERROR): Use onceonly macros.
86446
86447         Module fatal.
86448         * m4/fatal.m4: New file.
86449
86450         Module getloadavg.
86451         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86452         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86453
86454         Module getpagesize.
86455         * m4/getpagesize.m4: New file.
86456
86457         Module getusershell.
86458         * m4/getusershell.m4: New file.
86459
86460         Module physmem.
86461         * m4/physmem.m4: New file.
86462
86463         Module posixver.
86464         * m4/posixver.m4: New file.
86465
86466         Module quotearg.
86467         * m4/quotearg.m4: New file.
86468
86469         Module quote.
86470         * m4/quote.m4: New file.
86471
86472         Module readutmp.
86473         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86474
86475         Module sig2str.
86476         * m4/sig2str.m4: New file.
86477
86478         Other.
86479         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86480         ulonglong.m4.
86481         * m4/intmax_t.m4: New file.
86482         * m4/d-type.m4: Indentation.
86483         * m4/jm-macros.m4: Update.
86484         * m4/prereq.m4 (jm_PREREQ): Update.
86485         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86486         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86487         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86488         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86489         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86490         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86491         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86492         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86493         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86494         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86495         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86496         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86497         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86498         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86499         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86500         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86501         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86502         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86503         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86504
86505 2002-12-24  Bruno Haible  <bruno@clisp.org>
86506
86507         * MODULES.txt: Update according to m4/ changes.
86508
86509         Module gettext.
86510         * config.rpath: New file, from gettext-0.11.5.
86511
86512         * modules/*: New module descriptions.
86513         * gnulib-tool: New file.
86514         * MODULES.html.sh: New file.
86515
86516 2002-12-21  Karl Berry  <karl@gnu.org>
86517
86518         * doc/fdl.texi: update to version 1.2.
86519
86520 2002-12-19  Karl Berry  <karl@gnu.org>
86521
86522         * config/config.guess: update from prep.
86523
86524 2002-12-18  Bruno Haible  <bruno@clisp.org>
86525
86526         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86527         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86528
86529 2002-12-17  Bruno Haible  <bruno@clisp.org>
86530
86531         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86532         stdlib.h, string.h.
86533
86534 2002-12-17  Bruno Haible  <bruno@clisp.org>
86535
86536         * lib/canon-host.c (strdup): Remove unused declaration.
86537
86538         * lib/fsusage.c: Include full_read.h.
86539         (get_fs_usage): Use full_read instead of safe_read.
86540
86541         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86542
86543 2002-12-12  Karl Berry  <karl@gnu.org>
86544
86545         * config/config.guess: update from prep.
86546
86547 2002-12-11  Bruno Haible  <bruno@clisp.org>
86548
86549         * m4/setenv.m4: New file, from gettext-0.11.5.
86550
86551 2002-12-11  Bruno Haible  <bruno@clisp.org>
86552
86553         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86554         not unsetenv().
86555         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86556         modifications:
86557
86558         2002-12-11  Bruno Haible  <bruno@clisp.org>
86559
86560                 * setenv.c (alloca): Fall back to malloc.
86561                 (freea): New macro.
86562                 (setenv): Use freea() to free memory allocated with alloca().
86563
86564         2002-11-13  Bruno Haible  <bruno@clisp.org>
86565
86566                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86567                 function declarations.
86568                 * unsetenv.c (unsetenv): Likewise.
86569
86570         2002-03-04  Bruno Haible  <bruno@clisp.org>
86571
86572                 Portability to AIX 4.3.3.
86573                 * unsetenv.c: New file, extracted from setenv.c.
86574                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86575
86576         2001-12-20  Bruno Haible  <bruno@clisp.org>
86577
86578                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86579                 use malloc instead. For SunOS 4.
86580
86581         2001-12-11  Bruno Haible  <bruno@clisp.org>
86582
86583                 * setenv.c: Declare alloca.
86584                 (compar_fn_t): New typedef.
86585                 (KNOWN_VALUE, STORE_VALUE): Use it.
86586
86587         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86588         setenv.h.
86589
86590 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86591
86592         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86593         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86594         Choose values that are less likely to collide with system fnmatch
86595         options.
86596         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86597         defined (e.g., a pure POSIX system).
86598         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86599         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86600
86601 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86602
86603         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86604         a pain in practice to deal with generated m4 files.  This change
86605         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86606
86607         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86608         and jm-glibc-io.m4, as they are no longer a special case.
86609         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86610         kludge and the auto-generation stuff.  Check only whether the
86611         functions are declared, not whether they exist, since older hosts
86612         that don't declare the functions can't use the optimization anyway.
86613
86614 2002-12-06  Jim Meyering  <jim@meyering.net>
86615
86616         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86617
86618         Merge in changes from libc's misc/error.c, in preparation
86619         for the merge of gnulib's changes back into libc.
86620
86621         * lib/error.c (_): Define only if not already defined.
86622         Move definition to follow all #include directives.
86623         Include unlocked-io.h only if !_LIBC.
86624         [_LIBC]: Include <libio/libioP.h>.
86625         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86626         (fflush): Tweak definition to use INTUSE.
86627         (putc): Define.
86628
86629 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86630
86631         * lib/alloca.c [defined emacs]: Include "lisp.h".
86632         (xalloc_die) [defined emacs]: New macro.
86633         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86634         [! defined emacs]: Include <xalloc.h>.
86635         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86636         (pointer): Typedef to POINTER_TYPE *.
86637         (malloc): Remove decl; we now always use xmalloc.
86638         (alloca): Use old-style definition, since Emacs needs this.
86639         Check for arithmetic overflow when computing combined size.
86640
86641 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86642
86643         Do not generate unlocked-io.h automatically, since it's easier to
86644         maintain it by hand.
86645
86646         * lib/unlocked-io.h: New file, from GNU diffutils,
86647         but with proper copyright notice and attribution.
86648         * lib/gen-uio: Remove.
86649         * lib/Makefile.am: Add copyright notice.
86650         (libfetish_a_SOURCES): Add unlocked-io.h.
86651         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86652         (DISTCLEANFILES, io_functions): Remove macros.
86653         (EXTRA_DIST): Remove gen_uio.
86654         (unlocked-io.h): Remove rule.
86655
86656 2002-12-04  Jim Meyering  <jim@meyering.net>
86657
86658         Reflect the fact that stat.c and lstat.c are no longer generated.
86659         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86660         (DISTCLEANFILES): Likewise.
86661         (EXTRA_DIST): Likewise.
86662         (all_local): Don't depend on stat.c or lstat.c.
86663         (stat.c, lstat.c): Remove rules.
86664         (EXTRA_DIST): Remove xstat.in.
86665
86666         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86667         * lib/stat.c: New file.  Contents mostly from xstat.in.
86668         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86669         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86670
86671         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86672         too.
86673         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86674
86675 2002-12-03  Jim Meyering  <jim@meyering.net>
86676
86677         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86678         but not semantics, to minimize the differences between these two files.
86679         (safe_read): Change comment to mention SAFE_READ_ERROR.
86680
86681         * lib/safe-read.c (IS_EINTR): Define.
86682         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86683
86684 2002-12-02  Jim Meyering  <jim@meyering.net>
86685
86686         * lib/safe-read.c (EINTR): Define.
86687         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86688         (INT_MAX): Provide fallback.
86689         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86690
86691         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86692
86693 2002-12-02  Bruno Haible  <bruno@clisp.org>
86694
86695         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86696         Define, taken from safe-read.c.
86697         (INT_MAX): Provide fallback.
86698         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86699         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86700
86701         * lib/safe-read.c (EINTR): Remove definition.
86702         (safe_read): Don't use EINTR if it is absent.
86703
86704 2002-12-01  Jim Meyering  <jim@meyering.net>
86705
86706         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86707         zero.
86708         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86709
86710 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86711
86712         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86713         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86714         with `if (! (value < limit)) abort ();', for readability.
86715
86716 2002-11-26  Karl Berry  <karl@gnu.org>
86717
86718         * lib/strdup.c: copy from libc again, with jim's ok.
86719         * lib/.cppi-disable: re-add strdup.c
86720
86721 2002-11-25  Karl Berry  <karl@gnu.org>
86722
86723         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86724         instead of "strtol.c".
86725
86726 2002-11-25  Karl Berry  <karl@gnu.org>
86727
86728         * config/install-sh: update from automake for variable quoting, $0 in
86729         error msgs, etc.
86730
86731         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86732         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86733         entry.
86734
86735 2002-11-25  Jim Meyering  <jim@meyering.net>
86736
86737         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86738
86739 2002-11-24  Karl Berry  <karl@gnu.org>
86740
86741         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86742         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86743
86744 2002-11-24  Jim Meyering  <jim@meyering.net>
86745
86746         Update from coreutils:
86747
86748         * lib/mktime.c: Merge in changes from libc.
86749
86750         Avoid a link-time failure on some Linux systems.
86751         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86752         (otherwise).
86753         (__mon_yday): Declare with the STATIC attribute.
86754         (__mktime_internal): Likewise.
86755         Based on a report from Greg Schafer.
86756
86757 2002-11-23  Jim Meyering  <jim@meyering.net>
86758
86759         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86760         Use `unsigned', not `int', as type of index.
86761
86762         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86763
86764         * lib/fsusage.c: Remove unneeded parentheses around operands of
86765         `defined'.
86766
86767 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86768
86769         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86770         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86771         so that we can be included first.
86772         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86773         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86774         No need to include stddef.h or sys/types.h any more.
86775         Surround local include files with "", not "<>".
86776         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86777         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86778         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86779         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86780         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86781         (ISPRINT): Remove; no longer needed now that we assume C89.
86782
86783         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86784         Preserve errno.
86785
86786         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86787         quotearg_char): Use SIZE_MAX rather than
86788         (size_t) -1 when we are talking about "infinity".
86789
86790         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86791
86792 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86793
86794         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86795         hint that one should use `if (! x) abort ();' rather than `assert
86796         (x);', and anyway it's one less thing to worry about configuring.
86797         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86798         hash_rehash, hash_insert): Use abort rather than assert.
86799
86800 2002-11-22  Bruno Haible  <bruno@clisp.org>
86801
86802         * lib/safe-read.h: Assume C89. Add comments.
86803         (safe_read): Change return type to size_t.
86804         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86805         byte counts > SSIZE_MAX correctly.
86806         * lib/safe-write.h: New file.
86807         * lib/safe-write.c: New file.
86808         * lib/full-read.h: New file.
86809         * lib/full-read.c: New file.
86810         * lib/full-write.h: Assume C89. Add comments.
86811         * lib/full-write.c: Include safe-write.h.
86812         (full_write): Rewritten to use safe_write.
86813         Suggested by Jim Meyering and Paul Eggert.
86814
86815 2002-11-21  Jim Meyering  <jim@meyering.net>
86816
86817         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86818
86819         Merge in changes from the coreutils.
86820
86821         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86822         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86823         <stdint.h>.
86824         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86825         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86826         int.  Work more efficiently if X is the same width as uintmax_t.
86827         Do not compare X to -1, to avoid bogus compiler warning.
86828         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86829         Don't assume that f_frsize and f_bsize are the same type.
86830
86831         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86832         warning on FreeBSD.
86833
86834         * lib/makepath.c (make_path): Restore umask *before* creating the final
86835         component.
86836         (make_path): Minor reformatting.
86837
86838         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86839         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86840         HAVE_MALLOC/HAVE_REALLOC.
86841
86842         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86843         dummy ones.  At least on GNU/Linux systems, `auto' means something
86844         else.
86845         From Michael Stone.
86846
86847 2002-11-21  Bruno Haible  <bruno@clisp.org>
86848
86849         Remove case insensitive option matching.
86850         * lib/argmatch.h (argcasematch): Remove declaration.
86851         (ARGCASEMATCH): Remove macro.
86852         (__xargmatch_internal): Remove case_sensitive argument.
86853         (XARGMATCH): Update.
86854         (XARGCASEMATCH): Remove macro.
86855         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86856         case_sensitive argument.
86857         (argcasematch): Remove function.
86858         (__xargmatch_internal): Remove case_sensitive argument.
86859         (main): Use XARGMATCH instead of XARGCASEMATCH.
86860
86861         * lib/xmalloc.c: Change compile-time error message. Add comment about
86862         required autoconf version.
86863
86864 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86865
86866         Merge argmatch cleanups from Bison.  Assume C89.
86867
86868         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86869         Include stdlib.h, for EXIT_FAILURE.
86870         Always include <string.h>, since we assume C89.
86871         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86872         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86873         Include <stddef.h> instead, since it's all we need for size_t.
86874         (PARAMS): Remove.  All uses removed.
86875         (ARRAY_CARDINALITY): Do not bother to #undef.
86876         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86877         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86878         Remove unnecessary parentheses.
86879         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86880         Insert necessary parentheses.
86881         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86882         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86883
86884 2002-11-19  Bruno Haible  <bruno@clisp.org>
86885
86886         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86887         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86888
86889         * lib/mbswidth.h (PARAMS): Remove macro.
86890         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86891         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86892
86893         * lib/gcd.h (PARAMS): Remove macro.
86894         (gcd): Use ANSI C function declarations.
86895         * lib/gcd.c (gcd): Likewise.
86896
86897 2002-11-15  Bruno Haible  <bruno@clisp.org>
86898
86899         * lib/strcspn.c: Include <stddef.h>.
86900         (strcspn): Use ANSI C function declaration. Change return type to
86901         size_t. Use NULL.
86902         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86903         (strpbrk): Use NULL.
86904         * lib/strpbrk.h (PARAMS): Remove macro.
86905         (strpbrk): Use ANSI C function declaration.
86906         * lib/strstr.c: Don't include <sys/types.h>.
86907         * lib/strstr.h (PARAMS): Remove macro.
86908         (strstr): Use ANSI C function declarations.
86909
86910 2002-11-14  Karl Berry  <karl@gnu.org>
86911
86912         * config/mkinstalldirs: `do' on separate line, instead of
86913         `for var; do'.
86914
86915 2002-11-06  Bruno Haible  <bruno@clisp.org>
86916
86917         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86918         * lib/gcd.c (gcd): Likewise.
86919
86920 2002-11-05  Bruno Haible  <bruno@clisp.org>
86921
86922         * lib/gcd.h: New file, from gettext-0.11.5.
86923         * lib/gcd.c: New file, from gettext-0.11.5.
86924
86925 2002-11-05  Bruno Haible  <bruno@clisp.org>
86926
86927         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86928         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86929         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86930         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86931
86932         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86933         <libintl.h>.
86934         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86935         <libintl.h>.
86936
86937         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86938         * lib/human.c: Include gettext.h instead of <libintl.h>.
86939         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86940         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86941         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86942         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86943         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86944         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86945         (textdomain): Remove definition.
86946         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86947
86948         * lib/long-options.c: Remove include of <libintl.h> and definition of
86949         _.
86950         * lib/same.c: Remove include of <libintl.h> and definition of _.
86951
86952 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86953
86954         * lib/config.charset: A few additions for Solaris.
86955
86956 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86957
86958         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86959         * lib/localcharset.c (locale_charset): Declare as extern "C".
86960
86961 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86962
86963         * lib/config.charset: msdos in uk_UA uses CP1125.
86964
86965 2002-11-04  Bruno Haible  <bruno@clisp.org>
86966
86967         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86968         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86969         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86970         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86971         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86972
86973 2002-11-04  Bruno Haible  <bruno@clisp.org>
86974
86975         * lib/localcharset.c (locale_charset): Don't return an empty string.
86976
86977 2002-11-04  Bruno Haible  <bruno@clisp.org>
86978
86979         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86980         aliases.
86981
86982 2002-11-04  Bruno Haible  <bruno@clisp.org>
86983
86984         * lib/config.charset: Update for newest glibc. Add canonical names
86985         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86986
86987 2002-11-04  Bruno Haible  <bruno@clisp.org>
86988
86989         * lib/config.charset: Add support for NetBSD.
86990
86991 2002-11-04  Bruno Haible  <bruno@clisp.org>
86992
86993         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86994
86995 2002-11-01  Bruno Haible  <bruno@clisp.org>
86996
86997         * configure.in: Add AC_CONFIG_AUX_DIR call.
86998         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86999         test/Makefile.
87000         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
87001
87002 2002-09-28  Karl Berry  <karl@gnu.org>
87003
87004         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
87005         installed automake until the next release, since changes have been
87006         made.
87007
87008 2002-09-25  Karl Berry  <karl@gnu.org>
87009
87010         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
87011         * lib/getopt*: copy from libc/posix.
87012         * lib/gettext.h: copy from gettext.
87013         * lib/.cppi-disable: add strdup.c, gettext.h.
87014
87015 2002-09-25  Karl Berry  <karl@gnu.org>
87016
87017         * config/srclist.txt: enable gettext.h check.
87018         * config/config.{guess,sub}: update from prep.
87019         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
87020                 from automake 1.6.3.
87021         See srclist*.
87022
87023 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
87024
87025         * regex.c (PATFETCH): Remove the translating fetch.
87026         (PATFETCH_RAW): Rename to PATFETCH.
87027         (set_image_of_range): New fun.
87028         (SET_RANGE_TABLE_WORK_AREA): Use it.
87029         (regex_compile): Don't translate the pattern chars so eagerly.
87030         Only do it when inserting an `exactn' bytecode or when handling
87031         a char-range.
87032         (mutually_exclusive_p): Avoid empty statement.
87033
87034 2002-07-06  Jim Meyering  <meyering@lucent.com>
87035
87036         * m4/README: Don't mention Makefile.am.in.
87037         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
87038
87039 2002-07-01  Jim Meyering  <meyering@lucent.com>
87040
87041         * lib/c-stack.c: Include sys/time.h.
87042         From Volker Borchert.
87043
87044 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87045
87046         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87047
87048 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87049
87050         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87051         New macro.  Use it uniformly instead of
87052         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87053         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87054         reported by Vin Shelton.
87055
87056 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87057
87058         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
87059         Do not assume SA_SIGINFO behavior.
87060         Bug reported by Jim Meyering on NetBSD 1.5.2.
87061
87062 2002-06-22  Jim Meyering  <meyering@lucent.com>
87063
87064         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87065         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87066
87067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87068         now that configure.ac uses AC_GNU_SOURCE.
87069         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87070         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87071
87072         Update to latest tools.  Suggestions from Paul Eggert.
87073         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87074         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87075         * m4/fnmatch.m4: Likewise.
87076         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87077         to AC_HEADER_STDBOOL
87078
87079 2002-06-22  Jim Meyering  <meyering@lucent.com>
87080
87081         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87082         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87083
87084 2002-06-22  Jim Meyering  <meyering@lucent.com>
87085
87086         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87087
87088         * lib/exitfail.c, exitfail.h: Likewise.
87089         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87090
87091         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87092         of fnmatch.h.
87093         (EXTRA_DIST): Add fnmatch_loop.c.
87094         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87095
87096         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87097         * lib/fnmatch.c: Update from diffutils-2.8.2.
87098         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87099         * lib/fnmatch.h: Remove file.
87100
87101 2002-06-21  Jim Meyering  <meyering@lucent.com>
87102
87103         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87104         * m4/mbrtowc.m4: Likewise.
87105
87106         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87107         * m4/mbswidth.m4: Reflect name change:
87108         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87109         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87110
87111         * m4/lib-link.m4: Update from gettext-0.11.2.
87112         * m4/gettext.m4: Likewise.
87113
87114         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87115         From Alfred M. Szmidt.
87116
87117 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87118
87119         * lib/file-type.h: Report an error if neither S_ISREG nor
87120         S_IFREG is defined, instead of using a test specific to glibc
87121         2.2.  This should be safe, since POSIX requires S_ISREG and
87122         Unix Version 7 had S_IFREG.  We don't need to check for
87123         <sys/types.h> since we don't use any symbols that it defines.
87124
87125 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87126
87127         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87128         $@-t, so that each temporary file name is unique and valid in the first
87129         8 characters, for operation under DOS.
87130
87131 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87132
87133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87134
87135 2002-06-15  Jim Meyering  <meyering@lucent.com>
87136
87137         Work even with DJGPP 2.03, which lacks support for symlinks.
87138         From Richard Dawe.
87139         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87140         is defined.
87141         * lib/lchown.c (S_ISLNK): Likewise.
87142
87143 2002-06-15  Jim Meyering  <meyering@lucent.com>
87144
87145         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87146         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87147         have been included before this file.
87148
87149 2002-06-14  Jim Meyering  <meyering@lucent.com>
87150
87151         * lib/file-type.h: Use the version from diffutils-2.8.2.
87152         * lib/file-type.c: Likewise.
87153
87154 2002-06-07  Jim Meyering  <meyering@lucent.com>
87155
87156         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87157         They're needed at least for NetBSD 1.5.2.
87158         ($statxfs_includes): Include those same headers.
87159         ($statxfs_includes): Include sys/vfs.h if available.
87160         ($statxfs_includes): Likewise for sys/statvfs.h.
87161         Check for the following members in both structs statfs and statvfs:
87162         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87163
87164 2002-06-01  Jim Meyering  <meyering@lucent.com>
87165
87166         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87167         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87168
87169 2002-05-28  Jim Meyering  <meyering@lucent.com>
87170
87171         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87172         Reported by Volker Borchert.
87173
87174 2002-05-27  Jim Meyering  <meyering@lucent.com>
87175
87176         Fix a problem seen only on nonconforming systems whereby ls.c's
87177         use of localtime, and then of gettimeofday would cause trouble:
87178         the localtime call used to initialize rpl_gettimeofday's save
87179         mechanism would clobber ls's current local time information so
87180         that in any long listing the first file would always be listed
87181         with date 1970-01-01.  Analysis by Volker Borchert.
87182
87183         * lib/gettimeofday.c (localtime): Undefine.
87184         (rpl_localtime): New function.
87185
87186 2002-05-27  Jim Meyering  <meyering@lucent.com>
87187
87188         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87189         localtime.
87190
87191         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87192         use the replacement function; it wouldn't resolve at link time.
87193         Reported by Volker Borchert.
87194
87195 2002-05-22  Jim Meyering  <meyering@lucent.com>
87196
87197         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87198         file-type.h.
87199         * lib/file-type.h: New file.
87200         * lib/file-type.c (file_type): New file/function.  Extracted from
87201         diffutils.
87202
87203 2002-04-30  Jim Meyering  <meyering@lucent.com>
87204
87205         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87206
87207 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87208
87209         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87210
87211 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87212
87213         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87214         Do not check for alloca.h (no longer used) or stdbool.h (was never
87215         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87216
87217 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87218
87219         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87220
87221 2002-04-29  Jim Meyering  <meyering@lucent.com>
87222
87223         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87224         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87225         Use AC_FUNC_STRNLEN here instead.
87226
87227         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87228         With autoconf-2.53a, it's part of AC_PROG_CC.
87229
87230 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87231
87232         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87233         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87234
87235 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87236
87237         * lib/sig2str.h, lib/sig2str.c: New files.
87238         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87239
87240 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87241
87242         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87243         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87244         of 127, since 64 is the largest conceivable number for ancient
87245         nonstandard hosts.
87246         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87247
87248 2002-04-28  Jim Meyering  <meyering@lucent.com>
87249
87250         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87251
87252 2002-04-24  Jim Meyering  <meyering@lucent.com>
87253
87254         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87255         (jm_PREREQ): Use it.
87256
87257         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87258         mach/mach.h fcntl.h.
87259         Check for this function: setlocale.
87260
87261 2002-04-24  Jim Meyering  <meyering@lucent.com>
87262
87263         * lib/gettext.h: New file, from Gettext.
87264         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87265         (libfetish_a_SOURCES): Add gettext.h.
87266
87267 2002-04-16  Jim Meyering  <meyering@lucent.com>
87268
87269         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87270         ut_pid, ut_id, ut_exit.
87271
87272 2002-04-16  Jim Meyering  <meyering@lucent.com>
87273
87274         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87275         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87276         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87277
87278 2002-04-12  Jim Meyering  <meyering@lucent.com>
87279
87280         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87281         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87282         existence of the getmntinfo function.  Needed for Darwin 5.3.
87283
87284         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87285         This is necessary at least on Darwin 5.3.
87286
87287         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87288         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87289         strnlen.o in the library, and that makes some versions of ranlib
87290         object.
87291
87292 2002-04-12  Jim Meyering  <meyering@lucent.com>
87293
87294         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87295
87296 2002-04-09  Jim Meyering  <meyering@lucent.com>
87297
87298         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87299         to be more precise.  Rather than saying we're checking whether the
87300         function `works', say what we're testing.
87301         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87302         Reported by Bruno Haible.
87303
87304 2002-03-10  Jim Meyering  <meyering@lucent.com>
87305
87306         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87307         Suggestion from Santiago Vila.
87308
87309 2002-03-08  Jim Meyering  <meyering@lucent.com>
87310
87311         * lib/rename.c: Mention that this wrapper is needed also on
87312         mips-dec-ultrix4.4 systems.
87313
87314 2002-03-02  Jim Meyering  <meyering@lucent.com>
87315
87316         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87317         not HAVE_CLOCK_SETTIME.
87318
87319 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87320
87321         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87322         Check for clock_settime.
87323
87324 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87325
87326         * lib/nanosleep.h: Rename to....
87327         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87328
87329         * lib/gettime.c: New file.
87330         * lib/settime.c: New file.
87331         * lib/stime.c: Remove.
87332
87333         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87334         timespec.h.  Remove nanosleep.h.
87335
87336 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87337
87338         * m4/acl.m4: New file.
87339         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87340         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87341
87342 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87343
87344         * lib/acl.c, lib/acl.h: New files.
87345         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87346
87347 2002-02-24  Jim Meyering  <meyering@lucent.com>
87348
87349         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87350         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87351         cause trouble.  Reported by Nelson Beebe.
87352
87353 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87354
87355         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87356         compilers that don't know that xalloc_die never returns.
87357
87358 2002-02-20  Jim Meyering  <meyering@lucent.com>
87359
87360         * lib/getdate.c: Regenerate using bison-1.33.
87361
87362 2002-02-17  Jim Meyering  <meyering@lucent.com>
87363
87364         * config/config.guess (main): Don't use `head -1'; it's no longer
87365         portable. Use `sed 1q' instead.
87366
87367 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87368
87369         * m4/codeset.m4: Upgrade to gettext-0.11.
87370         * m4/gettext.m4: Upgrade to gettext-0.11.
87371         * m4/glibc21.m4: Upgrade to gettext-0.11.
87372         * m4/iconv.m4: Upgrade to gettext-0.11.
87373         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87374         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87375         * m4/lib-ld.m4: New file, from gettext-0.11.
87376         * m4/lib-link.m4: New file, from gettext-0.11.
87377         * m4/lib-prefix.m4: New file, from gettext-0.11.
87378         * m4/progtest.m4: Upgrade to gettext-0.11.
87379
87380 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87381
87382         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87383         (jm_PREREQ): Use it.
87384
87385 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87386
87387         * lib/posixver.c, lib/posixver.h: New files.
87388         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87389
87390 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87391             Bruno Haible  <bruno@clisp.org>
87392
87393         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87394         (fwrite_success_callback): New declaration.
87395         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87396         print_unicode_char. Call failure callback instead of error.
87397         (fwrite_success_callback): New function.
87398         (exit_failure_callback): New function.
87399         (fallback_failure_callback): New function.
87400         (print_unicode_char): Call unicode_to_mb.
87401
87402 2002-01-26  Jim Meyering  <meyering@lucent.com>
87403
87404         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87405         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87406
87407 2002-01-26  Jim Meyering  <meyering@lucent.com>
87408
87409         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87410
87411 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87412
87413         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87414
87415 2002-01-22  Jim Meyering  <meyering@lucent.com>
87416
87417         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87418         Otherwise, some versions of automake would omit the rule that makes
87419         Makefile from Makefile.in.
87420
87421 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87422
87423         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87424         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87425         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87426         (memcoll): Set errno to zero if there is no error.
87427
87428         * lib/quotearg.c (quotearg_buffer_restyled):
87429         Fix bug with quoting buffers containing NUL when backslashing escapes.
87430         This bug was exposed by the other changes in this patch.
87431         (quotearg_n_options): New arg ARGSIZE.
87432         All callers changed.
87433         (quoting_options_from_style): New function.
87434         (quotearg_n_style): Use it.
87435         (quotearg_n_style_mem): New function.
87436
87437         * lib/quotearg.h (quotearg_n_style_mem): New function.
87438
87439 2002-01-19  Jim Meyering  <meyering@lucent.com>
87440
87441         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87442         Remove useless quotes: DF_PROG="df".
87443         * m4/strnlen.m4: New file.
87444
87445 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87446
87447         * lib/backupfile.c (ISDIGIT): Comment fix.
87448         * lib/getdate.y (ISDIGIT): Likewise.
87449         * lib/posixtm.c (ISDIGIT, year): Likewise.
87450         * lib/strverscmp.c (ISDIGIT): Likewise.
87451         * lib/userspec.c (ISDIGIT): Likewise.
87452
87453 2002-01-16  Jim Meyering  <meyering@lucent.com>
87454
87455         * lib/getdate.y: Add three semicolons, each just before a closing
87456         brace. Bison (as of version 1.31) no longer papers over that mistake.
87457
87458 2002-01-05  Jim Meyering  <meyering@lucent.com>
87459
87460         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87461
87462 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87463
87464         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87465         not silently exit merely because the output buffer happens to
87466         have nothing pending.
87467
87468 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87469
87470         See the big note in ../ChangeLog.
87471         * lib/human.c (suffixes): Prefer K to k for 1024.
87472         (generate_suffix_backwards): New function.
87473         (human_readable_inexact): Use it.
87474         * lib/xstrtol.c (__xstrtol): If there is no number but there
87475         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87476         Accept 'K' as well as 'k'.
87477
87478 2001-12-15  Jim Meyering  <meyering@lucent.com>
87479
87480         * lib/regex.h (__restrict_arr): Update from libc.
87481
87482         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87483         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87484         (STREQ): Define.
87485
87486 2001-12-14  Jim Meyering  <meyering@lucent.com>
87487
87488         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87489         Suggestion from Bruno Haible.
87490
87491 2001-12-10  Jim Meyering  <meyering@lucent.com>
87492
87493         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87494         xrealloc, Instead, include "xalloc.h".
87495         (initbuffer): Don't cast xmalloc return value to char*.
87496         (readline): Reword comment.
87497         Don't cast xrealloc return value to char*
87498         Return NULL, not 0.
87499
87500 2001-12-09  Jim Meyering  <meyering@lucent.com>
87501
87502         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87503         about `signed and unsigned type in conditional expression'.
87504         * lib/posixtm.c (posix_time_parse): Likewise.
87505
87506         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87507
87508         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87509         to avoid a pedantic warning.
87510
87511         * lib/getstr.c: Don't include assert.h.
87512         (getstr): Remove warning-evoking assertions.
87513         Return -1 if offset parameter is out of bounds.
87514         Change the type of a local from int to size_t.
87515
87516         * lib/strftime.c (my_strftime_localtime_r): Include this function
87517         definition in the `#if ! HAVE_TM_GMTOFF' block.
87518
87519         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87520         Include xalloc.h instead.
87521
87522 2001-12-02  Jim Meyering  <meyering@lucent.com>
87523
87524         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87525         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87526         included.
87527
87528         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87529         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87530
87531 2001-11-30  Akim Demaille  <akim@epita.fr>
87532
87533         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87534         before being defined.
87535
87536 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87537
87538         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87539         First arg is int, not unsigned.
87540         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87541         (SIZE_MAX, UINT_MAX): New macros.
87542         (quotearg_n_options): Abort if N is negative.
87543         Avoid overflow check on hosts where size_t is 64 bits and int
87544         is 32 bits, as overflow is impossible there.
87545         Fix off-by-one typo that caused unnecessary reallocation.
87546
87547 2001-11-27  Jim Meyering  <meyering@lucent.com>
87548
87549         * lib/tempname.c: Merge with version from libc.
87550         * lib/regex.c: Likewise.
87551
87552         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87553         systems for which STDC_HEADERS is 0, it was not included, resulting in
87554         a warning about an integer-to-pointer conversion problem with getenv.
87555         Reported by Volker Borchert.
87556
87557 2001-11-26  Jim Meyering  <meyering@lucent.com>
87558
87559         * lib/gtod.h: Remove file.
87560         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87561         * lib/gettimeofday.c: Don't include gtod.h.
87562         (GTOD_init): Remove function.
87563         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87564         Suggestion from Volker Borchert.
87565
87566 2001-11-23  Jim Meyering  <meyering@lucent.com>
87567
87568         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87569         it.
87570         * lib/hash.c (struct hash_table): Define it here instead.
87571
87572 2001-11-22  Jim Meyering  <meyering@lucent.com>
87573
87574         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87575
87576 2001-11-20  Jim Meyering  <meyering@lucent.com>
87577
87578         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87579         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87580
87581 2001-11-19  Jim Meyering  <meyering@lucent.com>
87582
87583         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87584         directory.  Use "conftestXXXXXX" as the template.
87585         Suggestion from Paul Eggert.
87586
87587         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87588         immediately, so the test doesn't mistakenly hit the max-open-files
87589         limit.
87590
87591 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87592
87593         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87594         (TEMPORARIES): New macro.
87595         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87596         removes an artificial limitation (e.g. HP-UX 10.20, where
87597         TMP_MAX is 17576).
87598
87599 2001-11-18  Jim Meyering  <meyering@lucent.com>
87600
87601         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87602
87603 2001-11-18  Jim Meyering  <meyering@lucent.com>
87604
87605         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87606         on SunOS 4.
87607
87608         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87609         files will be created before anything else.
87610
87611 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87612
87613         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87614         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87615
87616 2001-11-17  Jim Meyering  <meyering@lucent.com>
87617
87618         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87619         Prompted by a report from Bob Proulx.
87620
87621         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87622         Instead, require UTILS_FUNC_MKSTEMP.
87623
87624 2001-11-17  Jim Meyering  <meyering@lucent.com>
87625
87626         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87627         Now, that's done as part of AC_FUNC_STRTOD.
87628
87629 2001-11-17  Jim Meyering  <meyering@lucent.com>
87630
87631         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87632         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87633         rather than group writable.  Patch by Juan F. Codagnone.
87634
87635         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87636         xrealloc, Instead, include "xalloc.h".
87637
87638         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87639         Remove explicit declarations of xmalloc, xrealloc,
87640         and xstrdup.  Instead, include "xalloc.h".
87641
87642         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87643         unlocked-io.h.
87644         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87645         Likewise.
87646         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87647
87648         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87649         Reported by Padraig Brady.
87650
87651         * lib/mkstemp.c: #undef mkstemp.
87652         Include config.h.
87653         (rpl_mkstemp): Rename from mkstemp.
87654         Protoize.
87655
87656 2001-11-16  Jim Meyering  <meyering@lucent.com>
87657
87658         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87659         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87660         determine the amount of total physical memory, use pstat_getstatic.
87661         HPUX-11 doesn't define _SC_PHYS_PAGES.
87662         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87663         If sysconf couldn't be used to determine the amount of available
87664         physical memory, use both pstat_getstatic and pstat_getdynamic.
87665         Based on a patch from Bob Proulx.
87666
87667 2001-11-10  Jim Meyering  <meyering@lucent.com>
87668
87669         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87670         (jm_PREREQ): Use it.
87671
87672 2001-11-09  Jim Meyering  <meyering@lucent.com>
87673
87674         * m4/jm-macros.m4: Require autoconf-2.52f.
87675         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87676         Use these AC_-prefixed names, not the AM_-prefixed ones.
87677
87678         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87679
87680 2001-11-05  Jim Meyering  <meyering@lucent.com>
87681
87682         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87683
87684 2001-11-04  Jim Meyering  <meyering@lucent.com>
87685
87686         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87687         $DEFS.
87688
87689 2001-11-03  Jim Meyering  <meyering@lucent.com>
87690
87691         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87692         of AC_DEFUN.
87693
87694         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87695         know the name of the variable in the macro definition.
87696
87697 2001-11-03  Jim Meyering  <meyering@lucent.com>
87698
87699         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87700         in argmatch_to_argument call.
87701
87702         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87703         argument.
87704
87705         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87706         e.g., a fault due to an attempt to free a NULL pointer.
87707
87708 2001-11-01  Jim Meyering  <meyering@lucent.com>
87709
87710         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87711         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87712
87713 2001-11-01  Jim Meyering  <meyering@lucent.com>
87714
87715         * lib/dirfd.c, lib/dirfd.h: New files.
87716         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87717
87718         * lib/hash.c (hash_print) [TESTING]: Clean up.
87719
87720 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87721
87722         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87723         to avoid a warning if -Wall.
87724
87725 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87726
87727         * README: New file
87728         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87729         (per RMS's instructions, this is now the canonical source)
87730         * lgpl/, gpl/: New directories.
87731
87732 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87733
87734         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87735
87736 2001-10-21  Jim Meyering  <meyering@lucent.com>
87737
87738         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87739         this code would end up calling gettext even in packages built
87740         with --disable-nls.
87741         * lib/getopt.c (_): Likewise.
87742         * lib/regex.c (_): Likewise.
87743
87744 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87745
87746         * m4/error.m4 (jm_PREREQ_ERROR):
87747         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87748         AC_FUNC_STRERROR_R does that.
87749         Check for strerror declaration.
87750
87751         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87752         are supposed to have them these days.
87753         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87754         Merge changes from latest Autoconf CVS.
87755         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87756         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87757         POSIX decided to standardize on the int flavor of strerror_r.
87758
87759 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87760
87761         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87762         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87763         Use strerror_r that is only a macro, even if it is not a function.
87764         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87765         (private_strerror): Use prototypes, not old-style function definition.
87766         (print_errno_message): New function.
87767         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87768         char*-flavored one.
87769         (error_tail, error, error_at_line): Use it.
87770
87771 2001-10-11  Jim Meyering  <meyering@lucent.com>
87772
87773         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87774         and quote_n (1, ... to avoid clobbering a buffer.
87775
87776 2001-10-05  Jim Meyering  <meyering@lucent.com>
87777
87778         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87779         hash-pjw.h.
87780         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87781         * lib/hash-pjw.h: New file.
87782
87783 2001-09-30  Jim Meyering  <meyering@lucent.com>
87784
87785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87786         `struct fsstat' has the `f_fstypename' member.
87787         Use that to define FS_TYPE, which is now used to make
87788         the getfsstat link test tighter.
87789
87790 2001-09-30  Jim Meyering  <meyering@lucent.com>
87791
87792         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87793         Include <sys/ucred.h>, for Apple Darwin.
87794         Include sys/mount.h and sys/fs_types.h only if available.
87795         (FS_TYPE): Define.
87796         (read_filesystem_list): Use FS_TYPE.
87797
87798 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87799
87800         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87801         a boolean context.
87802
87803 2001-09-29  Jim Meyering  <meyering@lucent.com>
87804
87805         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87806         [one-argument getmntent function]): Include stdio.h before mntent.h.
87807         SunOS 4.1.x needs it for the declaration of `FILE'.
87808         Patch by Volker Borchert.
87809
87810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87811         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87812         sys/fs_types.h, and make the link-test for getfsstat guard #include
87813         directives with appropriate #if HAVE_*_H tests so that we can
87814         detect getfsstat on Apple Darwin1.3.7 systems.
87815         Reported by Nelson Beebe.
87816         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87817
87818 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87819
87820         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87821         #defines strtoimax.  Also treat the other strto* functions
87822         like strtoimax.
87823
87824         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87825         Check for strtoul and strtoumax,
87826         as those declarations are made even in the signed case.
87827         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87828         Likewise, for strtol and strtoimax.
87829
87830 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87831
87832         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87833         #defines strtoimax.  Also treat the other strto* functions
87834         like strtoimax.
87835
87836         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87837         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87838         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87839
87840 2001-09-26  Jim Meyering  <meyering@lucent.com>
87841
87842         Most macros in unlocked-io.h had the wrong number of arguments.
87843         * lib/gen-uio: New script.
87844         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87845         * lib/unlocked-io.hin: Remove file.
87846         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87847         rather than trying to embed it here.
87848         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87849         Reported by Padraig Brady.
87850
87851 2001-09-25  Volker Borchert  <bt@teknon.de>
87852
87853         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87854         `result'.
87855
87856 2001-09-24  Jim Meyering  <meyering@lucent.com>
87857
87858         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87859
87860 2001-09-23  Jim Meyering  <meyering@lucent.com>
87861
87862         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87863         instead of the mere test for existence of mntent.h.  The latter
87864         would get a false-positive on AIX 3.4 systems.
87865         In the outer getmntent if-block, don't die if neither of the getmntent
87866         tests succeeds.  Instead, just fall through and continue with the
87867         remaining tests.
87868
87869 2001-09-23  Jim Meyering  <meyering@lucent.com>
87870
87871         * lib/mountlist.c: Remove useless parentheses in #if directives.
87872         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87873         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87874
87875 2001-09-22  Jim Meyering  <meyering@lucent.com>
87876
87877         * m4/gettext.m4: New file.  From gettext.
87878         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87879         * m4/progtest.m4: Likewise
87880         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87881         * m4/glibc21.m4: Likewise.
87882
87883         * m4/libintl.m4: Remove.  No longer used.
87884
87885 2001-09-22  Jim Meyering  <meyering@lucent.com>
87886
87887         * lib/localcharset.c: Update from latest gettext.
87888         * lib/config.charset: Likewise.
87889
87890 2001-09-20  Jim Meyering  <meyering@lucent.com>
87891
87892         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87893         strtoimax.
87894         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87895         strtoumax.
87896
87897 2001-09-20  Jim Meyering  <meyering@lucent.com>
87898
87899         * lib/xstrtol.c (strtoimax): Guard declaration with
87900         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87901         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87902         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87903         (strtoumax): Likewise, for completeness (it wasn't necessary).
87904
87905 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87906
87907         * lib/strtoimax.c (HAVE_LONG_LONG):
87908         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87909         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87910         to work around bug in IBM C compiler.
87911
87912 2001-09-17  Jim Meyering  <meyering@lucent.com>
87913
87914         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87915         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87916         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87917         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87918         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87919         whenever the right hand side need not be expanded by the shell.
87920
87921 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87922
87923         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87924         library.  It's not correct, as some older glibcs are buggy.
87925         fnmatch wasn't fixed until glibc 2.2.
87926
87927         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87928         special shell magic here.
87929
87930 2001-09-16  Jim Meyering  <meyering@lucent.com>
87931
87932         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87933         * m4/jm-macros.m4: Require it.
87934
87935 2001-09-16  Jim Meyering  <meyering@lucent.com>
87936
87937         * lib/mkdir.c: New file.
87938
87939 2001-09-15  Jim Meyering  <meyering@lucent.com>
87940
87941         * m4/jm-macros.m4: Check for help2man.
87942
87943 2001-09-11  Jim Meyering  <meyering@lucent.com>
87944
87945         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87946         The body, by Paul Eggert, was moved here from configure.in.
87947         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87948
87949 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87950
87951         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87952         (jm_PREREQ): Use it.
87953
87954 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87955
87956         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87957         Use ssize_t, not int, to store result of readlink.
87958         Check for ssize_t overflow as well as size_t overflow,
87959         as POSIX says the result of readlink is implementation-defined
87960         when ssize_t overflows.
87961         Remove unnecessary cast to char*.
87962         Use free+malloc instead of realloc, as the storage doesn't need
87963         to be preserved and it's clearer and can be more efficient that way.
87964         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87965         * lib/xreadlink.h (xreadlink): Update prototype.
87966
87967 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87968
87969         * lib/xgetcwd.c: Revert some of the previous change; intead,
87970         fix the HAVE_GETCWD_NULL code to behave more like the
87971         !HAVE_GETCWD_NULL code used to.
87972
87973         Include "xalloc.h".
87974         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87975         invoke xalloc_die.
87976
87977 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87978
87979         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87980         sys/param.h, as pathmax.h includes them.
87981
87982 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87983
87984         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87985         (jm_PREREQ_XGETCWD): New macro.
87986
87987         * m4/getcwd.m4: New file.
87988
87989 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87990
87991         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87992         like the HAVE_GETCWD_NULL code.
87993         Include pathmax.h if not HAVE_GETCWD.
87994         Do not include xalloc.h.
87995         (INITIAL_BUFFER_SIZE): New symbol.
87996         Do not use xmalloc / xrealloc, since the caller is responsible for
87997         handling errors.  Preserve errno around `free' during failure.
87998         Do not overrun buffer when using getwd.
87999
88000 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88001
88002         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
88003         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
88004         getcwd (NULL, 0).
88005
88006 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88007
88008         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
88009         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
88010         spotted by Jim Meyering.
88011
88012 2001-09-03  Jim Meyering  <meyering@lucent.com>
88013
88014         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
88015         failure.
88016
88017 2001-09-02  Jim Meyering  <meyering@lucent.com>
88018
88019         * lib/error.c: Update from GNU libc.
88020
88021 2001-09-01  Jim Meyering  <meyering@lucent.com>
88022
88023         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
88024         Used by df.
88025
88026 2001-09-01  Jim Meyering  <meyering@lucent.com>
88027
88028         * lib/xreadlink.c: New file.
88029         * lib/xreadlink.h: New file.
88030         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
88031         xreadlink.h.
88032
88033         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
88034         doesn't conflict with sparc Solaris 7's definition in
88035         /usr/include/sys/int_types.h.
88036
88037         * lib/exclude.c: Use `""', not `<>' to #include non-system header
88038         files.
88039         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88040         and strncasecmp as r-values.  Unixware didn't have declarations.
88041
88042 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88043
88044         * lib/xstrtol.h: Add copyright notice.
88045         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88046         LONGINT_INVALID_SUFFIX_CHAR.
88047
88048 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88049
88050         * lib/xstrtol.c (strtoimax): New decl.
88051
88052 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88053
88054         * lib/xgetcwd.c: Don't include pathmax.h.
88055         Include stdlib.h and unistd.h if available.
88056         Include xalloc.h.
88057         (xmalloc, xstrdup, free): Remove decls.
88058         (xgetcwd): Don't assume sizes fit in unsigned.
88059         Check for overflow when computing sizes.
88060         Simplify reallocation code.
88061
88062 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88063
88064         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88065         a directory's st_size can have an arbitrary value, so the old
88066         usage could waste an arbitrary amount of memory.  All uses
88067         changed.
88068         * lib/savedir.h: Update prototype.
88069
88070 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88071
88072         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88073
88074         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88075         old strtoimax.c.
88076
88077         Also, make the following further changes to make this file's
88078         configuration more similar to that of strtol.c:
88079         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88080         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88081         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88082         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88083         changed to signed values.
88084
88085         And make the following changes as well:
88086         Fix copyright notice, as 1999 was missing.
88087         (verify): New macro.
88088         (strtoimax): Check sizes at compile-time, not run-time.
88089         Prefer strtol to strtoll if both work.
88090         (main): Remove; it was not that useful and was a pain to maintain.
88091
88092         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88093
88094 2001-08-31  Jim Meyering  <meyering@lucent.com>
88095
88096         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88097         Use an initial, malloc'd, buffer of length 128 rather than
88098         a statically allocated one of length 1024.
88099
88100 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88101
88102         Simplify code, partly by assuming autoconf 2.52 semantics.
88103
88104         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88105
88106         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88107         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88108         All uses removed.
88109         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88110         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88111         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88112         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88113         jm_AC_HEADER_INTTYPES_H.
88114         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88115
88116         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88117
88118         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88119         Quote first arg of AC_DEFUN.
88120         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88121         since they are needed to parse the include file even if we need
88122         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88123         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88124         but with opposite signedness.
88125
88126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88127
88128         Merge 'exclude' changes from tar 1.13.22.
88129         This fixes one or two unlikely storage allocation overflow bugs,
88130         but doesn't change user-visible behavior otherwise.
88131
88132 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88133
88134         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88135         (jm_PREREQ_EXCLUDE): New macro.
88136
88137 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88138
88139         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88140         tm to be declared.
88141
88142 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88143
88144         * lib/hash.c: Remove '2001' from copyright notice.
88145
88146 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88147
88148         * lib/full-write.h: New file.
88149         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88150         * lib/full-write.c: Correct credits, as cccp.c no longer
88151         exists and anyway it was so heavily changed from the old cccp
88152         code as to be unrecognizable.  Include full-write.h.
88153         (full_write): Return size_t, with short writes meaning failure.
88154         All callers changed.  This fixes a bug with large buffers
88155         on 64-bit hosts.
88156         * lib/utime.c: Include full-write.h.
88157
88158 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88159
88160         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88161         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88162         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88163         Include if available.
88164         (<xalloc.h>): Include
88165         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88166         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88167         collide with FNM macros.
88168         (struct patopts): New struct.
88169         (struct exclude): Use it, as exclude patterns now come with options.
88170         (new_exclude): Support above changes.
88171         (new_exclude, add_exclude_file):
88172         Initial size must now be a power of two to simplify overflow checking.
88173         (free_exclude, fnmatch_no_wildcards): New function.
88174         (excluded_filename): No longer requires options arg, as the options
88175         are determined by add_exclude.  Now returns bool, not int.
88176         (excluded_filename, add_exclude):
88177         Add support for the fancy new exclusion options.
88178         (add_exclude, add_exclude_file): Now takes int options arg.
88179         Check for arithmetic overflow when computing sizes.
88180         (add_exclude_file): xrealloc might modify errno, so don't
88181         realloc until after errno might be used.
88182
88183         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88184         New macros.
88185         (free_exclude): New decl.
88186         (add_exclude, add_exclude_file): Now takes int options arg.
88187         (excluded_filename): No longer requires options arg, as the options
88188         are determined by add_exclude.  Now returns bool, not int.
88189
88190 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88191
88192         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88193
88194 2001-08-27  Jim Meyering  <meyering@lucent.com>
88195
88196         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88197
88198         * lib/version-etc.c (N_): Remove definition.
88199         Revert most of last change.
88200         Instead, simply don't mark the `Copyright...' string for translation.
88201         Based on advice from Paul Eggert.
88202
88203         * lib/strtoxmax.c: Tweak comment.
88204
88205 2001-08-26  Jim Meyering  <meyering@lucent.com>
88206
88207         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88208
88209         * m4/xstrtoimax.m4: New file.
88210         * m4/xstrtoumax.m4: Add comments explaining why we
88211         AC_REPLACE_FUNCS(strtol).
88212
88213 2001-08-26  Jim Meyering  <meyering@lucent.com>
88214
88215         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88216         of copyright with `%s' so translators don't get an untranslated
88217         message in 2002.
88218         (COPYRIGHT_YEAR): Define.
88219         (version_etc): Use fprintf rather than fputs.
88220         Suggestion from Ulrich Drepper.
88221
88222         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88223
88224         * lib/strtoll.c: New file, from GNU libc.
88225         * lib/xstrtoimax.c: New file.
88226
88227         * lib/xstrtol.h: Add xstrtoimax.
88228         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88229         * lib/strtoimax.c: New file.  Likewise, but first define
88230         STRTOUXMAX_SIGNED.
88231
88232         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88233         ...
88234         * lib/strtoxmax.c: ... then renamed to this.
88235
88236 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88237
88238         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88239         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88240         (jm_AC_TYPE_INTMAX_T): New macro.
88241         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88242
88243         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88244
88245         * m4/longlong.m4: Renamed from ulonglong.m4.
88246         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88247         * m4/uintmax_t.m4: Removed.
88248
88249 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88250
88251         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88252         Port to Solaris 8, where 'sed' requires a space after the 'r'
88253         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88254         Redirect output to $tmp just once.
88255
88256 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88257
88258         * lib/addext.c (<errno.h>): Include.
88259         (errno): Declare if not defined.
88260         (addext): Work correctly when pathconf returns -1 and leaves
88261         errno alone because there is no limit.  Also, work even if
88262         pathconf returns a value greater than SIZE_MAX.
88263
88264 2001-08-12  Jim Meyering  <meyering@lucent.com>
88265
88266         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88267         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88268         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88269         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88270         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88271         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88272         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88273         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88274         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88275         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88276         utime.m4, utimes.m4, xstrtoumax.m4:
88277         Quote the first argument in each use of AC_DEFUN.
88278
88279 2001-08-12  Jim Meyering  <meyering@lucent.com>
88280
88281         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88282         Simply `return getcwd (NULL, 0);'.
88283         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88284         Use 1300 as initial value for length, not PATH_MAX.
88285
88286         * lib/pathmax.h: Clean up cpp syntax.
88287
88288 2001-08-12  Jim Meyering  <meyering@lucent.com>
88289
88290         * lib/gettimeofday.c: New file.
88291         * lib/gtod.h: New file.
88292         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88293
88294 2001-08-05  Jim Meyering  <meyering@lucent.com>
88295
88296         * m4/jm-macros.m4: Require autoconf-2.52.
88297
88298 2001-08-04  Jim Meyering  <meyering@lucent.com>
88299
88300         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88301         stmt, to get in sync with glibc.
88302
88303 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88304
88305         The following changes are from gettext 0.10.39 as maintained by
88306         Bruno Haible.
88307
88308         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88309         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88310         with inverted sense.  All uses changed.
88311
88312         * lib/mbswidth.c: Don't include <limits.h>.
88313         Include <stdlib.h> and <string.h> unconditionally.
88314         (iswcntrl, mbsinit, ISCNTRL): New macros.
88315         (mbsnwidth): Use K&R style function declarations.
88316         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88317         can optimize it when MB_CUR_MAX == 1.
88318         The width of control characters is zero, not 1.
88319
88320 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88321
88322         The following changes are from gettext 0.10.39 as maintained by
88323         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88324
88325         * m4/codeset.m4: Upgrade to serial AM1.
88326         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88327         all uses changed.  Quote first arg of AC_DEFUN.
88328         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88329
88330         * m4/iconv.m4: Upgrade to serial AM2.
88331         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88332         Add --with-libconv-prefix.
88333         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88334         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88335         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88336         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88337         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88338
88339         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88340         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88341         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88342         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88343         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88344         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88345         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88346         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88347         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88348
88349         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88350         string.h any more.
88351
88352         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88353         not the default value.
88354
88355         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88356         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88357         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88358         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88359         Also check for iswcntrl, used for wcwidth fallback.
88360         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88361         to Autoconf 2.13.
88362
88363 2001-08-03  Jim Meyering  <meyering@lucent.com>
88364
88365         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88366         as it was in the original.  Reported by Paul Eggert.
88367
88368 2001-07-16  Jim Meyering  <meyering@lucent.com>
88369
88370         * m4/gettimeofday.m4: New file.
88371         Prompted by a report from Bernhard Baehr.
88372
88373 2001-07-15  Jim Meyering  <meyering@lucent.com>
88374
88375         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88376         stuff. Now it's in ../Makefile.cfg.
88377
88378 2001-07-15  Jim Meyering  <meyering@lucent.com>
88379
88380         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88381         (BUILT_SOURCES): Add unlocked-io.h.
88382         (io_functions): Define.
88383         (unlocked-io.h): New rule.
88384         (DISTCLEANFILES): Add unlocked-io.h.
88385         (all-local): Depend on unlocked-io.h, to ensure it is created.
88386
88387         * lib/unlocked-io.hin: New file
88388
88389         * lib/regex.c: Update from glibc.
88390
88391 2001-07-05  Jim Meyering  <meyering@lucent.com>
88392
88393         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88394         recommendation.
88395         (libfetish_a_SOURCES): Put all .h files here instead.
88396         Remove a thus-exposed (better checks in automake) duplicate and
88397         two unnecessary .h files.
88398
88399 2001-07-04  Jim Meyering  <meyering@lucent.com>
88400
88401         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88402         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88403         distcheck failure.
88404
88405 2001-07-02  Jim Meyering  <meyering@lucent.com>
88406
88407         The following changes were prompted by suggestions from Bruno Haible.
88408
88409         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88410         is now generated.
88411         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88412         definition of EXTRA_DIST.
88413         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88414         ensure that the generated file is created/updated whenever the list
88415         of $(unlocked_functions) is changed.
88416         (jm-glibc-io.m4): New rule.
88417         (unlocked-io.h): New rule -- currently unused.
88418
88419 2001-06-24  Jim Meyering  <meyering@lucent.com>
88420
88421         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88422         unmatched right bracket, rather than kludging it with an extra,
88423         falsely-matching quote in a comment.  Patch by Akim Demaille.
88424
88425 2001-06-11  Jim Meyering  <meyering@lucent.com>
88426
88427         * lib/regex.c: Update from GNU libc.
88428
88429 2001-05-27  Jim Meyering  <meyering@lucent.com>
88430
88431         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88432         Check for ut_type in struct utmp.
88433
88434 2001-05-27  Jim Meyering  <meyering@lucent.com>
88435
88436         * lib/readutmp.h (UT_TYPE): Define.
88437
88438 2001-05-24  Jim Meyering  <meyering@lucent.com>
88439
88440         * lib/argmatch.c: Include "quote.h".
88441         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88442         quote function.  Reported by Göran Uddeborg.
88443
88444 2001-05-22  Jim Meyering  <meyering@lucent.com>
88445
88446         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88447         now that we use the package-supplied version unconditionally.
88448         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88449
88450 2001-05-21  Jim Meyering  <meyering@lucent.com>
88451
88452         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88453         shell syntax errors.
88454
88455 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88456
88457         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88458
88459 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88460
88461         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88462         Don't bother to check library strftime, since
88463         we'll be using our own my_strftime function anyway.
88464         Define my_strftime instead of strftime.
88465
88466 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88467
88468         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88469         which is not yet declared.
88470
88471 2001-05-15  Jim Meyering  <meyering@lucent.com>
88472
88473         * m4/regex.m4: Use proper quoting so brackets appear in the test
88474         program.
88475         Reported by, and with help from, Bruno Haible.
88476
88477 2001-05-13  Jim Meyering  <meyering@lucent.com>
88478
88479         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88480         undefined.
88481
88482 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88483
88484         dirname code cleanup.  base_name now behaves more compatibly
88485         with POSIX basename when given file names that have trailing
88486         slashes, and similarly for dir_name.  Add new primitives
88487         base_len and dir_len.  Put the directory-name-related decls
88488         into dirname.h.
88489
88490         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88491         * lib/backupfile.c (base_name): Likewise.
88492         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88493         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88494         * lib/makepath.c (strip_trailing_slashes): Likewise.
88495         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88496         ISSLASH): Likewise.
88497         * lib/rename.c (strip_trailing_slashes): Likewise.
88498         * lib/same.c (base_name): Likewise.
88499         * lib/stripslash.c (ISSLASH): Likewise.
88500
88501         * lib/addext.c: Include <dirname.h> after size_t is defined.
88502         * lib/backupfile.c: Likewise.
88503
88504         * lib/addext.c (addext): Use base_len to trim redundant
88505         trailing slashes instead of doing it ourselves.
88506         But do not trim the last slash if it is not redundant.
88507
88508         * lib/backupfile.c (find_backup_file_name,
88509         max_backup_version): Use base_len instead of rolling it ourselves.
88510         Handle the case of "" and (on DOS) "C:" correctly.
88511
88512         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88513         needed. Include <string.h>, <dirname.h>.
88514         (base_name): Allow file names ending in slashes, other than names
88515         that are all slashes.  In this case, return the basename followed
88516         by the slashes.  This is more general, and can be used in places
88517         where the original base_name purposely had an assertion failure.
88518         (base_len): New function.
88519
88520         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88521         Do not include <assert.h>; no longer needed.
88522         Include xalloc.h.
88523         (memrchr): Remove decl.
88524         (dir_name_r): Remove.
88525         (dir_len): Renamed from dirlen.  All callers changed.
88526         Rewrite in terms of base_name, for simplicity and consistency.
88527         (dir_name): Never return NULL.  All callers changed.
88528         Do not include <stdlib.h> in test program; no longer needed.
88529         return 0; is fine for test program.
88530
88531         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88532         New macros.
88533         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88534
88535         * lib/path-concat.c (path_concat): Use base_len to compute
88536         base length, not strlen; this means we cannot rely on memcpy
88537         to null-terminate.
88538
88539         * lib/same.c (STREQ): Remove.
88540         (same_name): Handle the case where the basename ends in trailing '/'.
88541
88542         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88543         a slash was stripped.  Do not strip the last slash after a
88544         file system prefix.
88545
88546 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88547
88548         * lib/Makefile.am (libfetish_a_SOURCES):
88549         Add strftime.c, since we now compile it on all hosts.
88550
88551         * lib/strftime.c (my_strftime):
88552         Define to nstrftime if emacs, but only if my_strftime is not defined.
88553         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88554         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88555         Add one more extra argument: a nanoseconds value.
88556         All uses changed.
88557         (ns): New macro.
88558         (my_strftime function): Add %N format.
88559         (emacs_strftimeu): Renamed from emacs_strftime,
88560         with extra ut argument.
88561
88562 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88563
88564         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88565
88566 2001-04-21  Jim Meyering  <meyering@lucent.com>
88567
88568         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88569         doesn't interfere.
88570
88571 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88572
88573         * m4/ftruncate.m4: Check for chsize.
88574         Link with ftruncate.o unconditionally if ftruncate is missing.
88575         This was required when cross-compiling to i586-mingw32msvc.
88576
88577 2001-04-08  Jim Meyering  <meyering@lucent.com>
88578
88579         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88580         recomputed; that's necessary when the offset spans a DST transition.
88581         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88582
88583 2001-04-02  Jim Meyering  <meyering@lucent.com>
88584
88585         * lib/regex.h, regex.c: Update from GNU libc.
88586
88587 2001-03-24  Jim Meyering  <meyering@lucent.com>
88588
88589         * m4/jm-macros.m4: Require autoconf-2.49d.
88590
88591 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88592
88593         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88594
88595 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88596
88597         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88598
88599 2001-03-17  Jim Meyering  <meyering@lucent.com>
88600
88601         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88602         now that the version in autoconf is equivalent.
88603         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88604
88605         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88606         Suggestion from Akim Demaille.
88607
88608         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88609         (jm_PREREQ_TEMPNAME): New function.
88610
88611 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88612
88613         * lib/tempname.c (uint64_t): Define to uintmax_t if
88614         not defined, and if UINT64_MAX is not defined.
88615         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88616         Reported by John David Anglin.
88617
88618 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88619
88620         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88621         resolve alias if codeset is empty.
88622         * lib/config.charset (BeOS): Use wildcard syntax.
88623
88624 2001-03-13  Jim Meyering  <meyering@lucent.com>
88625
88626         * lib/path-concat.c (path_concat)
88627         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88628         concatenating e.g., `C:' and `foo'.
88629         From Bruno Haible.
88630
88631 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88632
88633         * lib/localcharset.c (locale_charset): Don't use
88634         setlocale(LC_CTYPE,NULL). Don't return NULL.
88635         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88636
88637 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88638
88639         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88640         support for DOS/DJGPP.
88641
88642 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88643
88644         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88645         lacks mkstemp.  Compile our own tempname.c if we compile our own
88646         mkstemp.c, as mkstemp relies on tempname.
88647
88648 2001-03-01  Jim Meyering  <meyering@lucent.com>
88649
88650         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88651         AH_VERBATIM really does output its argument verbatim.
88652
88653 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88654
88655         * lib/Makefile.am (libfetish_a_SOURCES):
88656         Add dup-safer.c, fopen-safer.c.
88657         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88658
88659         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88660         * lib/unistd-safer.h: New files.
88661
88662 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88663
88664         The mkstemp replacement is taken from glibc 2.2.2, with some
88665         portability fixes for use outside glibc, as follows:
88666
88667         * lib/tempname.c (struct_stat64): New macro.
88668         (direxists, __gen_tempname): Use it.
88669         This avoids a portability problem with Solaris 8.
88670
88671         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88672         (<stddef.h>, <stdint.h>, <string.h>):
88673         Include only if STDC_HEADERS || _LIBC.
88674         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88675         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88676         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88677         (__set_errno): Define this macro if <errno.h> doesn't.
88678         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88679         Define these macros if <stdio.h> doesn't.
88680         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88681         Define these macros if <sys/stat.h>
88682         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88683         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88684         __xstat64): Define if not _LIBC.
88685         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88686         (__gen_tempname): Invoke gettimeofday only if
88687         HAVE_GETTIMEOFDAY || _LIBC;
88688         otherwise, fall back on plain "time".
88689         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88690
88691         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88692
88693         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88694
88695 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88696
88697         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88698
88699 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88700
88701         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88702         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88703         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88704         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88705
88706 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88707
88708         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88709         Remove workaround macros for hosts that have mbrtowc but not
88710         mbstate_t, as we now insist on proper declarations for both
88711         before using mbrtowc.
88712
88713 2001-02-17  Jim Meyering  <meyering@lucent.com>
88714
88715         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88716         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88717         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88718         UnixWare 7.1.1.
88719
88720         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88721         rather than AC_CACHE_VAL.
88722
88723 2001-02-17  Jim Meyering  <meyering@lucent.com>
88724
88725         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88726         around included file name.
88727
88728         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88729
88730         * lib/strftime.c: Update from GNU libc (the only changes were to
88731         comments).
88732
88733 2001-02-17  Jim Meyering  <meyering@lucent.com>
88734
88735         * lib/regex.c: Update from libc.
88736
88737 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88738
88739         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88740         clash.
88741
88742 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88743
88744         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88745         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88746         Reported by Mark Hounschell via Paul Eggert.
88747
88748 2001-02-07  Jim Meyering  <meyering@lucent.com>
88749
88750         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88751
88752 2001-02-05  Jim Meyering  <meyering@lucent.com>
88753
88754         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88755         it includes the patch required for `large file' support with at least
88756         HP-UX's 10.20 /bin/cc.
88757
88758 2001-02-03  Jim Meyering  <meyering@lucent.com>
88759
88760         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88761         AS_IF, now that it works once again (mysteriously).
88762         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88763
88764 2001-01-30  Jim Meyering  <meyering@lucent.com>
88765
88766         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88767         * m4/chown.m4: Rename conftestchown to conftest.chown.
88768         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88769         s/conftestdir2/conftest.d2/.
88770         * m4/utimes.m4: s/conftestdata/conftest.data/
88771         Inspired by Pavel Roskin's change in autoconf.
88772
88773 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88774
88775         * lib/config.charset: Update for FreeBSD 4.2.
88776
88777 2001-01-27  Jim Meyering  <meyering@lucent.com>
88778
88779         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88780         a use of AS_IF.
88781         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88782
88783 2001-01-26  Jim Meyering  <meyering@lucent.com>
88784
88785         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88786         quotearg.c includes it.
88787
88788 2001-01-26  Jim Meyering  <meyering@lucent.com>
88789
88790         * lib/quotearg.c: Include stddef.h.
88791         * lib/quote.c: Include stddef.h.
88792         Reported by Axel Kittenberger.
88793
88794         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88795         line in double quotes so that it evokes a better diagnostic.
88796         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88797         Reported by Axel Kittenberger.
88798
88799 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88800
88801         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88802         as if it was a `charset'.
88803
88804 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88805
88806         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88807         has const.
88808
88809 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88810
88811         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88812         to avoid a warning.  Add back 'const' to inptr.
88813
88814 2001-01-20  Jim Meyering  <meyering@lucent.com>
88815
88816         Be sure that headers are checked before used in code compiled
88817         for the type checks.
88818         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88819         In place of that, invoke jm_CHECK_ALL_TYPES.
88820         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88821         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88822         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88823         The check for ssize_t was mistakenly run before the test for unistd.h.
88824
88825         The configure-time check for stdbool.h was missing.
88826         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88827         (jm_PREREQ_HASH): New function.
88828
88829 2001-01-17  Jim Meyering  <meyering@lucent.com>
88830
88831         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88832         for autoconf-2.49c.
88833         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88834
88835 2001-01-16  Jim Meyering  <meyering@lucent.com>
88836
88837         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88838         From Bruno Haible.
88839
88840 2001-01-14  Jim Meyering  <meyering@lucent.com>
88841
88842         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88843         foo and bar.  Create conftestdir/ in the script, not in the C code.
88844         Remove directories in the script, not in the C code.
88845         Remove conftestdir{,2} before trying to create the directory.
88846         Make the entire configure script fail if the mkdir fails.
88847
88848 2001-01-14  Jim Meyering  <meyering@lucent.com>
88849
88850         * lib/rename.c: New file.  From Volker Borchert.
88851         Include stdlib.h, string.h or strings.h, and xalloc.h.
88852         Use strip_trailing_slashes rather than open-coding it.
88853
88854 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88855
88856         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88857
88858 2001-01-03  Jim Meyering  <meyering@lucent.com>
88859
88860         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88861         of local `inptr' to avoid warning with some system declarations of
88862         iconv.
88863
88864 2001-01-02  Volker Borchert  <bt@teknon.de>
88865
88866         * m4/rename.m4: New file.
88867         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88868
88869 2001-01-01  Jim Meyering  <meyering@lucent.com>
88870
88871         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88872         even on systems with utmpx.h.  It's necessary for the declaration of
88873         utmp's ut_user member.  Reported by Andreas Jaeger.
88874
88875         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88876         available. They are required for the declarations of getgrgid and
88877         getpwuid resp.
88878         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88879         Reported by Andreas Jaeger.
88880
88881 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88882
88883         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88884         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88885         so `make install' also works in VPATH builds.
88886
88887 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88888
88889         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88890         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88891         can be used in subdirectories.
88892
88893 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88894
88895         * lib/modechange.c: Do not assume that mode_t uses the
88896         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88897         the other-execute bit of FOO even if S_IXOTH != 1.
88898
88899         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88900         WOTH, XOTH, ALLM): New macros.
88901         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88902          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88903         Use them.
88904         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88905         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88906         (mode_compile):
88907         No need to use uintmax_t; unsigned long is long enough.
88908         Don't bother to get suffix since we don't use it.
88909
88910 2000-12-26  Jim Meyering  <meyering@lucent.com>
88911
88912         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88913         better with autoheader.
88914
88915 2000-12-24  Jim Meyering  <meyering@lucent.com>
88916
88917         * lib/hash.c (is_prime): Return explicit boolean values.
88918         (hash_get_first): Return NULL to appease Irix5.6's 89.
88919         Reported by Nelson Beebe.
88920
88921 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88922
88923         * lib/localcharset.c (locale_charset): Add support for Win32.
88924
88925 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88926
88927         * lib/physmem.h, lib/physmem.c: New files.
88928
88929         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88930         (noinst_HEADERS): Add physmem.h.
88931
88932         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88933         't' for compatibility with Solaris 8 sort.
88934
88935 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88936
88937         * lib/config.charset: Add support for BeOS.
88938
88939 2000-12-17  Jim Meyering  <meyering@lucent.com>
88940
88941         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88942         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88943
88944 2000-12-16  Jim Meyering  <meyering@lucent.com>
88945
88946         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88947         N and M) would have treated it like `chown N:N FILE'.
88948
88949         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88950
88951 2000-12-16  Jim Meyering  <meyering@lucent.com>
88952
88953         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88954         SHELLS_FILE to a file name that's useful on djgpp systems.
88955         Include stdlib.h.
88956         (ADDITIONAL_DEFAULT_SHELLS): Define.
88957         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88958         Based mostly on a patch from Prashant TR.
88959
88960 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88961
88962         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88963         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88964         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88965
88966 2000-12-08  Andreas Schwab  <schwab@suse.de>
88967
88968         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88969         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88970
88971 2000-12-07  Jim Meyering  <meyering@lucent.com>
88972
88973         * lib/stripslash.c (ISSLASH): Define.
88974         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88975         `/'.
88976         From Prashant TR.
88977
88978         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88979         (dir_name_r): Declare this function as static.
88980         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88981         manifest itself on a name containing a mix of slashes and
88982         backslashes.
88983         Make this function work with names starting with a DOS-style
88984         drive letter and colon prefix.
88985         (dir_name): Append `.' if necessary.
88986         Based mostly on patches from Prashant TR and Eli Zaretskii.
88987
88988         * lib/dirname.h (dir_name_r): Remove prototype.
88989
88990 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88991
88992         * m4/off_t-format.m4: Remove this file.
88993         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88994
88995 2000-12-06  Jim Meyering  <meyering@lucent.com>
88996
88997         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88998         replacement strtoull, we may well need the replacement strtoul, too.
88999         Check for declarations of strtoul and strtoull.
89000         Check for strtol.  Mainly as a cue to cause automake to include
89001         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
89002         Check for limits.h -- strtol.c needs it.
89003
89004 2000-12-05  Jim Meyering  <meyering@lucent.com>
89005
89006         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
89007
89008 2000-12-04  Jim Meyering  <meyering@lucent.com>
89009
89010         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
89011         Also include memory.h, stdlib.h, unistd.h if appropriate.
89012         Reported by Andreas Jaeger (conflicting declaration of malloc).
89013
89014 2000-12-02  Jim Meyering  <meyering@lucent.com>
89015
89016         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
89017         * m4/jm-macros.m4 (jm_MACROS): require it.
89018
89019 2000-12-02  Jim Meyering  <meyering@lucent.com>
89020
89021         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
89022
89023 2000-12-01  Paul Eggert  <eggert@twinsun.com>
89024
89025         * lib/memrchr.c: Include <config.h> before any system include file.
89026
89027 2000-11-30  Jim Meyering  <meyering@lucent.com>
89028
89029         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
89030
89031 2000-11-30  Jim Meyering  <meyering@lucent.com>
89032
89033         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
89034
89035 2000-11-29  Paul Eggert  <eggert@twinsun.com>
89036
89037         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
89038
89039 2000-11-26  Jim Meyering  <meyering@lucent.com>
89040
89041         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89042
89043 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89044
89045         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89046         size of (size_t) -1; it's not portable.
89047
89048 2000-11-17  Jim Meyering  <meyering@lucent.com>
89049
89050         * lib/strstr.c: Update from GNU libc.
89051
89052 2000-11-17  Akim Demaille  <akim@epita.fr>
89053
89054         * lib/obstack.h: Formatting changes.
89055         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89056         prevent type checking.
89057         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
89058         cast the value to (void *): assigning a `foo *' to a `void *'
89059         variable is valid.
89060         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
89061
89062 2000-11-16  Jim Meyering  <meyering@lucent.com>
89063
89064         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89065
89066 2000-11-11  Jim Meyering  <meyering@lucent.com>
89067
89068         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89069
89070 2000-11-10  Jim Meyering  <meyering@lucent.com>
89071
89072         * lib/obstack.h: Update from GNU libc.
89073         * lib/obstack.c: Likewise.
89074
89075 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89076
89077         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89078
89079 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89080
89081         * lib/getusershell.c (setusershell): Use rewind rather than
89082         fseek/fseeko, to avoid configuration hassles with fseeko.
89083         Don't bother opening SHELLS_FILE if shellstream is NULL;
89084         it's not necessary.
89085
89086 2000-11-05  Jim Meyering  <meyering@lucent.com>
89087
89088         * lib/makepath.h (make_dir): Declare.
89089         * lib/makepath.c (make_dir): Remove `static' attribute.
89090         Tweak a comment.
89091
89092 2000-11-04  Jim Meyering  <meyering@lucent.com>
89093
89094         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89095
89096 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89097
89098         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89099         last one in a bucket, advance to the next bucket.
89100
89101 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89102
89103         * lib/fnmatch.c: Do not comment out all the code if we are using
89104         the GNU C library, because in some cases we are replacing buggy
89105         code in the GNU C library itself.
89106
89107 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89108
89109         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89110         (regex_compile): Catch bogus \(\1\).
89111
89112 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89113
89114         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89115         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89116         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89117
89118 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89119
89120         * lib/error.h, getline.h, modechange.h:
89121         Remove "2000" from Copyright line, as the file hasn't been
89122         changed this year other than in the copyright notice.
89123
89124         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89125         was changed this year.
89126
89127 2000-10-29  Jim Meyering  <meyering@lucent.com>
89128
89129         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89130         renaming.
89131         * m4/ls-mntd-fs.m4: Likewise
89132
89133 2000-10-29  Jim Meyering  <meyering@lucent.com>
89134
89135         * lib/xstat.in: Fix grammar in comment.
89136
89137 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89138
89139         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89140         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89141         doesn't define __restrict_arr.
89142
89143 2000-10-28  Jim Meyering  <meyering@lucent.com>
89144
89145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89146         (jm_PREREQ_MEMCHR): New function.
89147
89148 2000-10-28  Jim Meyering  <meyering@lucent.com>
89149
89150         * lib/memchr.c: Update from libc.
89151         Adjust for portability:
89152         [HAVE_STDLIB_H]: Include stdlib.h.
89153         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89154         Undef __memchr, too.
89155         [!weak_alias]: Define __memchr to memchr.
89156
89157         * lib/regex.c: Update from libc.
89158         * lib/regex.h: Likewise.
89159         * lib/getopt1.c: Likewise.
89160         * lib/memcmp.c: Likewise.
89161
89162         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89163         Avoid using fseek, when possible -- it's broken by design.
89164         Patch by Ulrich Drepper.
89165
89166 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89167
89168         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89169         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89170         Giving in to popular pressure to shut up the compiler with casts.
89171
89172 2000-10-26  Jim Meyering  <meyering@lucent.com>
89173
89174         * lib/strftime.c: Update from libc.
89175
89176 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89177
89178         * regex.c: More `unsigned char' -> `re_char' changes.
89179         Also change several `int' into `re_wchar_t'.
89180         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89181         (PUSH_FAILURE_POINTER): Don't cast any more.
89182         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89183         We want GCC to complain, since this piece of code makes
89184         re_match non-reentrant, which *should* be fixed.
89185         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89186         (EXTEND_BUFFER): Use RETALLOC.
89187         (SET_LIST_BIT): Don't cast.
89188         (re_wchar_t): New type.
89189         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89190         that those two functions will always properly return.
89191         (IMMEDIATE_QUIT_CHECK): Cast to void.
89192         (analyse_first): Use recursion rather than an explicit stack.
89193         (re_compile_fastmap): Can't fail anymore.
89194         (re_search_2): Don't check re_compile_fastmap for failure.
89195         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89196         Now also sets the new value (passed in a new argument).
89197         (re_match_2_internal): Use it.
89198         Also, use a new var `reg' of type size_t when looping through regs
89199         rather than reuse the inappropriate `mcnt'.
89200
89201 2000-10-25  Jim Meyering  <meyering@lucent.com>
89202
89203         * lib/obstack.c: Update from libc.
89204
89205 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89206
89207         * regex.c (regex_compile): Change the way of handling a range from
89208         a char less than 256 to a char not less than 256.
89209
89210 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89211
89212         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89213         NT-Emacs only.
89214         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89215         so that re_search functions only quit when callers expect them to.
89216
89217 2000-10-23  Jim Meyering  <meyering@lucent.com>
89218
89219         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89220         wrong.  That set_locale call must not have any side effects.
89221         From Paul Eggert.
89222
89223 2000-10-22  Jim Meyering  <meyering@lucent.com>
89224
89225         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89226         [CYCLIC]: Remove now-unused definition.
89227
89228         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89229         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89230         Suggestion from Ulrich Drepper.
89231
89232 2000-10-21  Jim Meyering  <meyering@lucent.com>
89233
89234         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89235         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89236         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89237
89238 2000-10-21  Jim Meyering  <meyering@lucent.com>
89239
89240         * lib/dirname.c (memrchr): Declare if necessary.
89241         (dir_name): Remove the restriction that there be no
89242         trailing slashes.  Now, this code skips past them, effectively
89243         ignoring them.
89244         [TEST_DIRNAME] (main): New unit tests.
89245
89246         * lib/memrchr.c: New file from GNU libc.
89247         Undef __memrchr, too.
89248         [!weak_alias]: Define __memrchr to memrchr.
89249         Guard weak_alias use with `#ifdef weak_alias'.
89250
89251 2000-10-21  Jim Meyering  <meyering@lucent.com>
89252
89253         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89254         (dir_name): Use dir_name_r.
89255         * lib/dirname.h (dir_name_r): Declare it.
89256
89257 2000-10-17  Jim Meyering  <meyering@lucent.com>
89258
89259         * lib/quote.h (PARAMS): Define and use.
89260         Reported by Akim Demaille.
89261
89262         * lib/getopt.c: Update from libc.
89263
89264 2000-10-16  Jim Meyering  <meyering@lucent.com>
89265
89266         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89267         setlocale.
89268         From Jan Fedak.
89269
89270 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89271
89272         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89273
89274 2000-09-25  Jim Meyering  <meyering@lucent.com>
89275
89276         * lib/md5.h (rol): Define (from GnuPG).
89277
89278         * lib/sha.c: Give credit (GnuPG) where due.
89279         (M): Use rol rather than open-coding it.
89280         Add a FIXME comment.
89281
89282 2000-09-21  Jim Meyering  <meyering@lucent.com>
89283
89284         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89285         Reported by Michael Stone.
89286
89287 2000-09-20  Jim Meyering  <meyering@lucent.com>
89288
89289         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89290         (noinst_HEADERS): Add sha.h.
89291         Based on code from Scott G. Miller and from GnuPG.
89292
89293 2000-09-18  Jim Meyering  <meyering@lucent.com>
89294
89295         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89296         LIBS. Otherwise, everyone ends up linking with -lelf for some
89297         configurations.
89298         Reported by Mike Stone.
89299
89300 2000-09-15  Jim Meyering  <meyering@lucent.com>
89301
89302         * lib/regex.c: Update from libc.
89303
89304 2000-09-10  Jim Meyering  <meyering@lucent.com>
89305
89306         * lib/getopt.c (_getopt_internal): Update from glibc.
89307
89308 2000-09-09  Jim Meyering  <meyering@lucent.com>
89309
89310         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89311         think it should be used as a general replacement for isascii.
89312         * lib/fnmatch.c: Likewise.
89313         * lib/mbswidth.c: Likewise
89314         * lib/regex.c: Likewise.
89315
89316         Don't use atoi.
89317         * lib/userspec.c: Include sys/param.h and limits.h.
89318         Include xstrtol.h.
89319         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89320         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89321         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89322         UID, GID.  Check range.
89323
89324 2000-09-06  Jim Meyering  <meyering@lucent.com>
89325
89326         * lib/getopt.c (_getopt_internal): Update from glibc.
89327
89328 2000-08-30  Jim Meyering  <meyering@lucent.com>
89329
89330         * lib/strftime.c: Merge in changes from GNU libc.
89331
89332 2000-08-26  Jim Meyering  <meyering@lucent.com>
89333
89334         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89335         * m4/fpending.m4: New file.
89336
89337 2000-08-26  Jim Meyering  <meyering@lucent.com>
89338
89339         * lib/closeout.c: Include "__fpending.h".
89340         (close_stdout_status): Return right away if there's nothing to flush.
89341
89342         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89343         * lib/__fpending.c: New file.
89344         * lib/__fpending.h: New file.
89345
89346 2000-08-20  Jim Meyering  <meyering@lucent.com>
89347
89348         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89349         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89350         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89351
89352 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89353
89354         Improve fileutils installation on systems where running
89355         programs (like install) can't be unlinked.
89356         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89357         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89358
89359 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89360
89361         Standardize on "memory exhausted" instead of "Memory exhausted"
89362         or "virtual memory exhausted".
89363         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89364         "virtual memory exhausted".
89365         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89366         our own message.
89367         * lib/userspec.c (parse_user_spec): Likewise.
89368         * lib/bumpalloc.h: comment fix
89369         * lib/same.c, userspec.c: Include xalloc.h.
89370
89371         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89372         not char *const and pointing to a constant array.
89373         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89374         (xrealloc): Comment fix.
89375
89376         * lib/userspec.c (parse_user_spec):
89377         Don't translate a message until just before returning,
89378         to avoid unnecessary translation.
89379
89380 2000-08-07  Jim Meyering  <meyering@lucent.com>
89381
89382         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89383         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89384         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89385         getgroups.c, gethostname.c, getopt.h, group-member.c,
89386         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89387         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89388         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89389         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89390         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89391         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89392         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89393         yesno.c: Back out Copyright date changes for each file with no change
89394         this year.  This eases coordination with other programs using the same
89395         source code modules.  From Paul Eggert.
89396
89397 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89398
89399         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89400         not char, for compatibility with glibc 2.1.3 strftime.c.
89401
89402 2000-08-03  Greg McGary  <greg@mcgary.org>
89403
89404         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89405         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89406         (EXTEND_BUFFER): Use them.
89407
89408 2000-08-01  Jim Meyering  <meyering@lucent.com>
89409
89410         * lib/dirname.c (ISSLASH): Define.
89411         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89412         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89413         both `\' and `/' may be use as path separators.
89414         Based on a patch from Prashant TR.
89415
89416 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89417
89418         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89419         slot vector a constant, since it might get modified.
89420
89421 2000-07-31  Jim Meyering  <meyering@lucent.com>
89422
89423         * lib/xmalloc.c: Use `virtual memory exhausted', not
89424         `Memory exhausted'.
89425         * lib/obstack.c (print_and_abort): Likewise.
89426
89427 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89428
89429         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89430         buffer, so that the caller can always quote one small
89431         component of a "memory exhausted" message in slot 0.
89432         From a suggestion by Jim Meyering.
89433
89434 2000-07-30  Jim Meyering  <meyering@lucent.com>
89435
89436         * lib/makepath.c (make_path): Quote the other instance, too.
89437
89438         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89439         (STATIC_BUF_SIZE): Define.
89440         (quotearg_n_options): Use only statically allocated storage when
89441         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89442         than STATIC_BUF_SIZE.
89443
89444 2000-07-29  Jim Meyering  <meyering@lucent.com>
89445
89446         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89447         * lib/dirname.c (dir_name): Likewise.
89448
89449         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89450         `/'.
89451
89452         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89453         (dir_name): Assert that there are no trailing slashes.
89454
89455 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89456
89457         * lib/mbswidth.h (mbswidth): Add a flags argument.
89458         (mbswidth): New declaration.
89459         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89460         * lib/mbswidth.c (mbswidth): Add a flags argument.
89461         (mbsnwidth): New function.
89462
89463 2000-07-24  Jim Meyering  <meyering@lucent.com>
89464
89465         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89466
89467 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89468
89469         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89470
89471 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89472
89473         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89474         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89475         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89476         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89477         invoke multibyte primitives.
89478
89479 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89480
89481         * lib/quotearg.c:
89482         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89483         so that mbstate_t is always defined.
89484
89485         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89486         be 1 in at least one GCC installation, and this configuration
89487         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89488         performance on hosts that have mbrtowc but have only unibyte
89489         locales, but I assume these hosts are rare.
89490
89491 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89492
89493         * lib/mbswidth.c (_XOPEN_SOURCE):
89494         Don't define; this causes problems on Solaris 7.
89495         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89496
89497 2000-07-23  Jim Meyering  <meyering@lucent.com>
89498
89499         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89500         too: getgrgid, getpwuid, getuid.
89501
89502 2000-07-23  Jim Meyering  <meyering@lucent.com>
89503
89504         * lib/basename.c (base_name): Add an assertion.
89505
89506 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89507
89508         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89509         shadow its mbsinit function.
89510
89511 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89512
89513         * lib/mbswidth.h: New file.
89514         * lib/mbswidth.c: New file.
89515         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89516         (noinst_HEADERS): Add mbswidth.h.
89517
89518 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89519
89520         * lib/config.charset: Add support for FreeBSD. Improve support for
89521         HP-UX and IRIX 6.
89522
89523 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89524
89525         * m4/mbswidth.m4: New file.
89526         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89527
89528 2000-07-15  Jim Meyering  <meyering@lucent.com>
89529
89530         * lib/makepath.c: Include quote.h.
89531         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89532         corresponding argument in a `quote (...)' call.
89533         Give better diagnostics.
89534
89535         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89536         (noinst_HEADERS): Add quote.h.
89537
89538         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89539         from tar's src/misc.c.
89540         * lib/quote.h: New file.  Prototypes for same.
89541
89542 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89543
89544         From a suggestion by Bruno Haible.
89545         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89546         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89547         to decide whether to define the BeOS workaround macro;
89548         this adjusts to the change to AC_MBSTATE_T.
89549
89550 2000-07-14  Jim Meyering  <meyering@lucent.com>
89551
89552         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89553         jm_AC_TYPE_UINTMAX_T.
89554
89555 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89556
89557         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89558
89559         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89560         quotearg_buffer_restyled): Add support for
89561         clocale_quoting_style.  Undo previous change to
89562         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89563         and "{RIGHT QUOTATION MARK}" msgids.
89564
89565 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89566
89567         From a suggestion by Bruno Haible.
89568         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89569         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89570         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89571         and mbstate_t, to a single-part test that simply defines mbstate_t.
89572         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89573         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89574
89575 2000-07-10  Jim Meyering  <meyering@lucent.com>
89576
89577         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89578
89579         * m4/gnu-source.m4: Output to confdefs.h directly.
89580         Suggestion from Akim Demaille.
89581
89582 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89583
89584         The old behavior of quoting `like this' doesn't look good with
89585         newer, ISO-style fonts.  See:
89586         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89587
89588         Instead, quote "like this" by default.  Let the translator
89589         tailor the locale-specific quoting behavior by providing
89590         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89591
89592         * lib/quotearg.c (N_): New macro.
89593         (gettext_default): New function.
89594         (quotearg_buffer_restyled): Use
89595         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89596         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89597
89598 2000-07-09  Jim Meyering  <meyering@lucent.com>
89599
89600         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89601         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89602
89603         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89604         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89605
89606 2000-07-09  Jim Meyering  <meyering@lucent.com>
89607
89608         * lib/Most files: Update copyright dates to include 2000.
89609
89610 2000-07-08  Jim Meyering  <meyering@lucent.com>
89611
89612         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89613         if not defined.
89614         (xgethostname): Remove now-unnecessary #ifdef.
89615         Move declaration of `err' into loop where it's used.
89616
89617 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89618         and Bruno Haible  <haible@clisp.cons.org>
89619
89620         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89621         only if the test for an object-type mbstate_t fails.  This
89622         prevents us from mistakenly reporting that mbstate_t is a
89623         system object type after we "#define mbstate_t int" to work
89624         around its lack.
89625
89626 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89627         and Bruno Haible  <haible@clisp.cons.org>
89628
89629         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89630
89631 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89632
89633         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89634         to strerror_r.
89635         Include <ctype.h> for use of isalpha.
89636
89637 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89638
89639         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89640         by allocating a larger buffer. Test the gethostname return value for
89641         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89642         returns an error and ENAMETOOLONG isn't defined.
89643
89644 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89645
89646         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89647         dimension.
89648
89649 2000-07-04  Jim Meyering  <meyering@lucent.com>
89650
89651         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89652         of the deprecated AC_CHECKING.
89653
89654 2000-07-04  Jim Meyering  <meyering@lucent.com>
89655
89656         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89657         Reported by Bruno Haible.
89658
89659 2000-07-04  Jim Meyering  <meyering@lucent.com>
89660
89661         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89662         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89663         lacks mbrtowc.
89664
89665 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89666
89667         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89668         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89669
89670 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89671         and Bruno Haible  <haible@clisp.cons.org>
89672
89673         * lib/quotearg.c (mbrtowc):
89674         Assign to *pwc, and return 1 only if result is nonzero.
89675         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89676
89677 2000-07-03  Jim Meyering  <meyering@lucent.com>
89678
89679         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89680
89681 2000-07-03  Jim Meyering  <meyering@lucent.com>
89682
89683         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89684         This is necessary to get a definition of e.g., UTMP_FILE on
89685         HP-UX 10.20.
89686         From Bob Proulx.
89687
89688 2000-07-02  Jim Meyering  <meyering@lucent.com>
89689
89690         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89691
89692         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89693         AC_LIBOBJ(function_name).
89694         * m4/chown.m4: Likewise.
89695         * m4/fnmatch.m4: Likewise.
89696         * m4/ftruncate.m4: Likewise.
89697         * m4/getgroups.m4: Likewise.
89698         * m4/getline.m4: Likewise.
89699         * m4/group-member.m4: Likewise.
89700         * m4/jm-macros.m4: Likewise.
89701         * m4/lstat.m4: Likewise.
89702         * m4/malloc.m4: Likewise.
89703         * m4/memcmp.m4: Likewise.
89704         * m4/nanosleep.m4: Likewise.
89705         * m4/putenv.m4: Likewise.
89706         * m4/realloc.m4: Likewise.
89707         * m4/regex.m4: Likewise.
89708         * m4/stat.m4: Likewise.
89709         * m4/strftime.m4: Likewise.
89710
89711 2000-07-02  Jim Meyering  <meyering@lucent.com>
89712
89713         * lib/quotearg.c (mbstate_t): Don't define here.
89714
89715 2000-07-02  Jim Meyering  <meyering@lucent.com>
89716
89717         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89718
89719 2000-07-01  Jim Meyering  <meyering@lucent.com>
89720
89721         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89722
89723 2000-07-01  Jim Meyering  <meyering@lucent.com>
89724
89725         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89726         problem.
89727
89728 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89729
89730         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89731         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89732
89733 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89734
89735         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89736         per change in ../m4/ls-mntd-fs.m4.
89737         (read_filesystem_list): Ignore symbolic links.
89738
89739 2000-06-29  Jim Meyering  <meyering@lucent.com>
89740
89741         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89742         for declaration of strcmp.
89743
89744         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89745
89746         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89747         Avoid warning by casting result to `char *' to remove `const'.
89748
89749 2000-06-28  Jim Meyering  <meyering@lucent.com>
89750
89751         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89752         included by quotearg.c, for which we perform this test.  From
89753         Bruno Haible.
89754
89755 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89756
89757         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89758         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89759         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89760
89761 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89762
89763         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89764
89765 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89766
89767         savedir now sets errno on failure and invokes xmalloc to get memory.
89768         Fix a couple of other minor bugs while we're at it.
89769
89770         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89771         (NAMLEN): Remove macro.
89772         (malloc, realloc): Remove decls.
89773         (stpcpy): Likewise.
89774         ("xalloc.h"): Include.
89775         (NAME_SIZE_DEFAULT): New macro.
89776         (savedir): Use xmalloc / xrealloc to allocate memory.
89777         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89778         Skip "" directory entries.
89779         Use strlen to calculate directory entry length, since the old method
89780         is rarely used these days and isn't worth supporting.
89781         Don't use a pointer after freeing it.
89782         Check for integer overflow when calculating allocation size.
89783         Use memcpy to copy entries, instead of stpcpy.
89784         Set errno properly when returning NULL.
89785         Check for readdir error.
89786
89787 2000-06-26  Jim Meyering  <meyering@lucent.com>
89788
89789         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89790
89791 2000-06-25  Jim Meyering  <meyering@lucent.com>
89792
89793         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89794         Linux header bug when _XOPEN_SOURCE is defined to 500.
89795
89796 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89797
89798         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89799         deficiency.
89800
89801 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89802
89803         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89804         Include xalloc.h.
89805         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89806
89807 2000-06-24  Jim Meyering  <meyering@lucent.com>
89808
89809         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89810         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89811         for which strerror does return char*, but which lacks a conveniently
89812         accessible declaration of the function.  If the compile-test says
89813         strerror_r doesn't work, then resort to a `run'-test that works on
89814         BeOS and segfaults on DEC Unix.
89815
89816 2000-06-24  Jim Meyering  <meyering@lucent.com>
89817
89818         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89819
89820 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89821
89822         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89823         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89824
89825 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89826
89827         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89828         (mbrtowc, mbstate_t): Define substitutes if
89829         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89830         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89831         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89832
89833 2000-06-23  Jim Meyering  <meyering@lucent.com>
89834
89835         * m4/afs.m4: Add missing AC_MSG_RESULT.
89836         Reported by Bruno Haible.
89837
89838         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89839         Suggestion from Bruno Haible.
89840
89841 2000-06-23  Jim Meyering  <meyering@lucent.com>
89842
89843         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89844
89845 2000-06-21  Jim Meyering  <meyering@lucent.com>
89846
89847         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89848
89849 2000-06-21  Jim Meyering  <meyering@lucent.com>
89850
89851         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89852         (noinst_HEADERS): Add getstr.h.
89853
89854         * lib/getline.c (getstr): Move into a separate file.
89855         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89856         the following changes: new parameter, delim2; both delim[12]
89857         parameters have type `int', not `char'.  The latter would lose
89858         with 8-bit delimiters.
89859         * lib/getstr.h: New file.
89860
89861 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89862
89863         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89864         than 1024, return a memory chunk of least possible size, instead
89865         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89866         Use free/xmalloc instead of xrealloc to avoid copying for very long
89867         paths.
89868
89869 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89870
89871         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89872         the empty string.
89873
89874 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89875
89876         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89877         address, not strdup.  Include <stdlib.h> and don't declare free().
89878
89879 2000-06-19  Jim Meyering  <meyering@lucent.com>
89880
89881         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89882
89883 2000-06-18  Jim Meyering  <meyering@lucent.com>
89884
89885         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89886
89887         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89888         `checking whether...' message to be consistent with that of the
89889         lstat test.
89890
89891 2000-06-18  Jim Meyering  <meyering@lucent.com>
89892
89893         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89894         Besides, these days every porting target provides a mkdir function.
89895
89896         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89897         needed. (this snippet comes from src/system.h).
89898
89899 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89900
89901         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89902
89903 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89904
89905         * lib/human.c (adjust_value): New function.
89906         (human_readable_inexact): Apply rounding style even when
89907         printing approximate values.
89908
89909 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89910
89911         * lib/human.c (human_readable_inexact): Allow an input block
89912         size that is not a multiple of the output block size, and vice versa.
89913         Reported by Piergiorgio Sartor.
89914
89915 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89916
89917         * lib/getdate.y (get_date): Apply relative times after time
89918         zone indicator, not before.  Reported by Todd A. Jacobs.
89919
89920 2000-06-13  Jim Meyering  <meyering@lucent.com>
89921
89922         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89923
89924         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89925
89926 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89927
89928         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89929
89930 2000-06-12  Jim Meyering  <meyering@lucent.com>
89931
89932         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89933         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89934         optional argument.
89935         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89936         the optional argument, `lib'.
89937
89938 2000-06-08  Jim Meyering  <meyering@lucent.com>
89939
89940         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89941
89942 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89943
89944         Rewrite largefile configuration so that we don't need to run
89945         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89946         AC_CANONICAL_HOST in configure.in -- jmm]
89947
89948         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89949         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89950         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89951         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89952         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89953         All uses changed.
89954         Instead of inspecting the output of getconf, try to compile the
89955         test program without and with the macro definition.
89956         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89957         for getconf.  Instead, check for the needed flags by compiling
89958         test programs.
89959
89960 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89961
89962         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89963
89964 2000-06-04  Jim Meyering  <meyering@lucent.com>
89965
89966         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89967         SunOS 4.1.4 for which gid_t is an unsigned type.
89968
89969 2000-06-03  Jim Meyering  <meyering@lucent.com>
89970
89971         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89972         now that autoconf requires that.
89973
89974         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89975         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89976         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89977
89978 2000-06-03  Jim Meyering  <meyering@lucent.com>
89979
89980         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89981
89982 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89983
89984         * m4/glibc21.m4: New file.
89985         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89986
89987 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89988
89989         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89990         newer, don't install charset.alias.
89991         * lib/config.charset: Change the Linux/glibc rules so they become empty
89992         on glibc-2.1 or newer.
89993
89994 2000-06-02  Jim Meyering  <meyering@lucent.com>
89995
89996         * lib/mountlist.c: Back out last change.  Instead, do this...
89997         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89998         me_dummy member using the same `ignore'-testing code.
89999         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
90000         fs_type strings.
90001         From Mark D. Roth.
90002
90003 2000-05-29  Jim Meyering  <meyering@lucent.com>
90004
90005         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
90006         mounts with the `ignore' attribute.  Based on a patch from
90007         Mark D. Roth.
90008
90009 2000-05-28  Jim Meyering  <meyering@lucent.com>
90010
90011         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
90012         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90013         * m4/stat.m4: Likewise.
90014         * m4/lstat.m4: Likewise.
90015         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
90016
90017         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
90018         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
90019
90020 2000-05-26  Jim Meyering  <meyering@lucent.com>
90021
90022         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
90023
90024 2000-05-24  Jim Meyering  <meyering@lucent.com>
90025
90026         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
90027         autoconf requires that.
90028         * m4/lib-check.m4: Likewise.
90029         * m4/jm-macros.m4: Likewise.
90030         * m4/strftime.m4: Likewise.
90031
90032         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
90033         AC_CHECK_DECLS, now that autoconf requires that.
90034
90035 2000-05-22  Jim Meyering  <meyering@lucent.com>
90036
90037         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90038         * m4/lstat.m4: Likewise.
90039
90040 2000-05-22  Jim Meyering  <meyering@lucent.com>
90041
90042         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90043
90044 2000-05-20  Jim Meyering  <meyering@lucent.com>
90045
90046         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90047         (jm_PREREQ): Use it.
90048
90049 2000-05-18  Jim Meyering  <meyering@lucent.com>
90050
90051         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90052         back, too, since it may have been modified by allocate_entry.
90053         (hash_delete): Rewrite to use neither the assignment operator
90054         nor the comma operator in an if-expression.
90055
90056 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90057
90058         * lib/closeout.c:
90059         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
90060         Remove; no longer needed.
90061         "quotearg.h": Add include.
90062         (file_name): Do not bother to explicitly initialize to NULL; it's less
90063         efficient on some hosts.
90064         (close_stdout_status): Remove test as to whether stdout was already
90065         closed; it breaks for the case "echo x | sort >&-".
90066         Quote file name colons.
90067         Do not assume that _("write error") lacks format strings.
90068
90069 2000-05-15  Jim Meyering  <meyering@lucent.com>
90070
90071         * lib/version-etc.c (version_etc_copyright): Update the copyright
90072         string used in all --version output.
90073
90074 2000-05-14  Jim Meyering  <meyering@lucent.com>
90075
90076         * lib/closeout.c (close_stdout_set_file_name): New function.
90077         (close_stdout_status): Use new file-scoped global.
90078         Return right away if fstat says the stdout file descriptor is invalid.
90079         * lib/closeout.h (close_stdout_set_file_name): Declare.
90080
90081 2000-05-10  Jim Meyering  <meyering@lucent.com>
90082
90083         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90084         (close_stdout_set_status): New function.
90085         * lib/closeout.h (close_stdout_set_status): Declare.
90086
90087 2000-05-09  Jim Meyering  <meyering@lucent.com>
90088
90089         * m4/gettext.m4: Rename this...
90090         * m4/libintl.m4: ...to this.
90091
90092 2000-05-08  Jim Meyering  <meyering@lucent.com>
90093
90094         * lib/long-options.c: Don't include closeout.h.
90095         (parse_long_options): Don't call close_stdout for --version.
90096
90097 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90098
90099         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90100         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90101         2.1.3 bug.  This avoids a clash when files like regex.c define
90102         _GNU_SOURCE.
90103
90104 2000-05-06  Jim Meyering  <meyering@lucent.com>
90105
90106         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90107         (AC_REPLACE_FUNCS): Add strnlen.
90108
90109         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90110         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90111
90112         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90113         AC_SEARCH_LIBS call for nanosleep.
90114         (LIB_NANOSLEEP): Set and AC_SUBST.
90115
90116 2000-05-06  Jim Meyering  <meyering@lucent.com>
90117
90118         * lib/strnlen.c: Undefine __strnlen and strnlen.
90119         [!weak_alias]: Define __strnlen to strnlen.
90120
90121         * lib/atexit.c: New file, from libiberty.
90122
90123 2000-05-06  Jim Meyering  <meyering@lucent.com>
90124
90125         * lib/closeout.c (close_stdout_status): Also check for errors on the
90126         stderr stream.
90127
90128 2000-05-05  Jim Meyering  <meyering@lucent.com>
90129
90130         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90131         AC_SEARCH_LIBS call for clock_gettime.
90132         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90133
90134         * m4/search-libs.m4: Update from autoconf.
90135
90136         su doesn't work on Solaris 2.6.
90137         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90138         <shadow.h>.  Reported by Dragos Harabor.
90139
90140 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90141
90142         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90143         memcpy instead of xmalloc, xrealloc, path_concat.
90144         (locale_charset): Treat empty environment variables as absent.
90145         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90146
90147 2000-05-04  Jim Meyering  <meyering@lucent.com>
90148
90149         * lib/getopt.c: Update from glibc.
90150         * lib/obstack.c: Likewise.
90151         * lib/obstack.h: Likewise.
90152         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90153         file
90154
90155         * lib/regex.h: Likewise.
90156         * lib/strndup.c: Likewise.
90157         * lib/strnlen.c: New file, from glibc.
90158
90159 2000-05-03  Jim Meyering  <meyering@lucent.com>
90160
90161         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90162
90163 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90164
90165         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90166         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90167         compile-time test, rather than inspecting host and OS, to
90168         decide whether to define _LARGEFILE_SOURCE.
90169
90170 2000-05-01  Jim Meyering  <meyering@lucent.com>
90171
90172         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90173
90174         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90175         Based on a patch from Bruno Haible.
90176
90177 2000-05-01  Jim Meyering  <meyering@lucent.com>
90178
90179         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90180
90181 2000-04-29  Jim Meyering  <meyering@lucent.com>
90182
90183         * lib/path-concat.c: Declare strdup only if it's not defined.
90184         * lib/canon-host.c: Likewise.
90185
90186 2000-04-28  Jim Meyering  <meyering@lucent.com>
90187
90188         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90189         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90190         is included first, then limits.h is included by locale.h by libintl.h.
90191         From John David Anglin.
90192
90193 2000-04-25  Jim Meyering  <meyering@lucent.com>
90194
90195         * lib/makepath.c (S_IRWXUGO): Define.
90196         (make_path): Always perform explicit chmod if MODE specifies any
90197         of the `special' permission bits.  Prompted by a bug report against
90198         install from Mate Wierdl and Joost van Baal.
90199
90200 2000-04-18  Jim Meyering  <meyering@lucent.com>
90201
90202         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90203         (jm_PREREQ): Use it.
90204
90205 2000-04-18  Jim Meyering  <meyering@lucent.com>
90206
90207         * lib/README: New file.
90208
90209         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90210         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90211
90212 2000-04-17  Jim Meyering  <meyering@lucent.com>
90213
90214         Get it right :-)
90215         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90216         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90217         Suggestion from Akim Demaille.
90218
90219 2000-04-17  Jim Meyering  <meyering@lucent.com>
90220
90221         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90222         the definition of it to rpl_strftime also defined-away the system's
90223         declaration.
90224
90225 2000-04-15  Jim Meyering  <meyering@lucent.com>
90226
90227         Use `C' to denote so-called `contiguous' files, the same way
90228         that tar does.
90229         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90230         (ftypelet): Use S_ISCTG.
90231         From Michael Deutschmann.
90232
90233 2000-04-14  Jim Meyering  <meyering@lucent.com>
90234
90235         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90236         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90237         clobbered.
90238
90239 2000-04-14  Jim Meyering  <meyering@lucent.com>
90240
90241         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90242
90243 2000-04-13  Jim Meyering  <meyering@lucent.com>
90244
90245         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90246         AH_VERBATIM to insert required #ifndef into config.h.in.
90247         Suggestion from Akim Demaille.
90248
90249 2000-04-12  Jim Meyering  <meyering@lucent.com>
90250
90251         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90252         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90253         Christian Krackowizer.
90254
90255         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90256         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90257         (AC_SYS_LARGEFILE): Require.
90258         (AM_C_PROTOTYPES): Require.
90259
90260 2000-04-08  Jim Meyering  <meyering@lucent.com>
90261
90262         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90263         names don't conflict.  Reported by Eli Zaretskii.
90264
90265 2000-04-07  Jim Meyering  <meyering@lucent.com>
90266
90267         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90268         sys/types.h, to work around system header problems on AIX 3.2.5.
90269         From Bruno Haible.
90270
90271 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90272
90273         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90274         bug.  Deal with the different error behavior of Irix iconv.
90275
90276 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90277
90278         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90279         IRIX if the installer said otherwise.
90280
90281 2000-04-05  Jim Meyering  <meyering@lucent.com>
90282
90283         Portability tweaks required for ultrix4.3.
90284         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90285         (jm_CHECK_DECLS): Add getutent to the list of functions.
90286         (_jm_DECL_HEADERS): Add utmpx.h.
90287         From John David Anglin.
90288
90289         * m4/strftime.m4: Back out the 2000-04-02 change.
90290         Instead of that change, simply undefine putenv in the test program.
90291
90292 2000-04-05  Jim Meyering  <meyering@lucent.com>
90293
90294         Portability tweaks required for ultrix4.3.
90295         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90296         getutent.
90297         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90298         * lib/canon-host.c: Declare strdup.
90299         * lib/path-concat.c: Likewise.
90300         From John David Anglin.
90301
90302 2000-04-04  Jim Meyering  <meyering@lucent.com>
90303
90304         Be more DOS 8.3-friendly.
90305         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90306         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90307         * lib/Makefile.am: Reflect renaming.
90308         Reported by Eli Zaretskii.
90309
90310         Use a temporary file name that won't clash with `charset.alias'
90311         in the DOS 8.3 name space.
90312         * lib/Makefile.am (charset_tmp): Define.
90313         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90314         (uninstall-local): Likewise.
90315         Reported by Eli Zaretskii.
90316
90317 2000-04-03  Jim Meyering  <meyering@lucent.com>
90318
90319         * m4/gettext.m4: Fix typo in comment.
90320
90321         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90322         textutils/configure.in).  Suggestion from Paul Eggert.
90323         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90324
90325 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90326
90327         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90328         variable in the shell rather than using putenv, which isn't
90329         portable.  This avoids the configure-time inter-test dependency
90330         on the potentially-renamed putenv function.
90331
90332 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90333
90334         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90335         before checking struct stat.st_blksize, so that
90336         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90337
90338 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90339
90340         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90341         since strftime.c uses HAVE_STRFTIME to decide whether to use
90342         the underlying strftime.
90343
90344 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90345
90346         * lib/time/strftime.c (my_strftime): Make sure we call the system
90347         strftime, not ourselves, when invoking the underlying strftime.
90348
90349 2000-03-24  Jim Meyering  <meyering@lucent.com>
90350
90351         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90352         (charset_alias): Define.
90353         (install-exec-local): Factor out common code.
90354         (uninstall-local): Split lines longer than 80.
90355         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90356         (SUFFIXES): Define.
90357         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90358         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90359
90360 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90361
90362         * lib/config.charset: Output a line containing "Packages using this
90363         file".
90364         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90365         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90366         ref-del.sed): New rules.
90367
90368 2000-03-17  Jim Meyering  <meyering@lucent.com>
90369
90370         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90371         Otherwise, include <strings.h>
90372
90373 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90374
90375         * lib/unicodeio.c (utf8_wctomb): New function.
90376         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90377         format instead of in UCS-4 with platform dependent endianness.
90378
90379 2000-03-10  Jim Meyering  <meyering@lucent.com>
90380
90381         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90382         From Marco Franzen.
90383
90384 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90385
90386         * lib/savedir.c (savedir): Work even if directory size is
90387         negative; this can happen with some screwy NFS configurations.
90388
90389 2000-03-06  Jim Meyering  <meyering@lucent.com>
90390
90391         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90392         if it's NULL (because we ran out of memory).  From Bruno Haible.
90393
90394 2000-03-05  Jim Meyering  <meyering@lucent.com>
90395
90396         * lib/localcharset.c ("path-concat.h"): Include.
90397         (get_charset_aliases): Use path_concat instead of ANSI string
90398         concatenation.
90399
90400         * lib/unicodeio.h (PARAMS): Define.
90401         Use it to guard prototype.
90402
90403 2000-03-04  Jim Meyering  <meyering@lucent.com>
90404
90405         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90406         for lib/localcharset.c.
90407
90408 2000-03-04  Jim Meyering  <meyering@lucent.com>
90409
90410         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90411         installing into it.
90412         (uninstall-local): Uncomment this rule so `make distcheck' works
90413         once again.
90414
90415         * lib/unicodeio.c (<errno.h>): Include it.
90416         (errno): Declare if not defined.
90417
90418         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90419
90420         * lib/config.charset: New version, incorporating remarks from a linux
90421         i18n mailing list.  From Bruno Haible.
90422
90423 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90424
90425         * m4/codeset.m4: New file.
90426         * m4/iconv.m4: New file.
90427         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90428
90429 2000-03-03  Jim Meyering  <meyering@lucent.com>
90430
90431         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90432
90433 2000-03-02  Jim Meyering  <meyering@lucent.com>
90434
90435         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90436         the messages come out on separate lines.
90437
90438         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90439         rather than jm_CHECK_DECLARATIONS.
90440         * m4/decl.m4: Remove now-unused file.
90441
90442         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90443         geteuid.
90444
90445 2000-03-02  Jim Meyering  <meyering@lucent.com>
90446
90447         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90448
90449 2000-03-01  Jim Meyering  <meyering@lucent.com>
90450
90451         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90452         * lib/unicodeio.c: Likewise.
90453
90454 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90455
90456         * lib/config.charset: New file.
90457         * lib/localcharset.c: New file.
90458         * lib/unicodeio.h, lib/unicodeio.c: New files.
90459         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90460         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90461         (noinst_HEADERS): Add unicodeio.h.
90462         (all-local, install-exec-local, charset.alias): New targets.
90463
90464 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90465
90466         * lib/quotearg.c (ALERT_CHAR): New macro.
90467         (quotearg_buffer_restyled): Use it.
90468
90469 2000-02-27  Jim Meyering  <meyering@lucent.com>
90470
90471         * m4/check-decl.m4: Add getenv to the list.
90472
90473 2000-02-27  Jim Meyering  <meyering@lucent.com>
90474
90475         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90476         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90477
90478         * lib/backupfile.c: Guard inclusion of stdlib.h with
90479         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90480         Declare malloc if needed.
90481
90482         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90483         `#ifndef HAVE_DECL..'
90484         now that autoconf always defines the HAVE_DECL_ symbols.
90485         * lib/human.c: Likewise.
90486         * lib/same.c: Likewise.
90487         * lib/strtoumax.c: Likewise.
90488
90489         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90490         declaration check was not run.
90491         * lib/hash.c: Likewise.
90492         * lib/human.c: Likewise.
90493         * lib/same.c: Likewise.
90494         * lib/strtoumax.c: Likewise.
90495
90496         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90497         `.', then first look up the entire `.'-containing string as a login
90498         name.
90499
90500 2000-02-23  Jim Meyering  <meyering@lucent.com>
90501
90502         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90503         in place of my hack.
90504
90505 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90506
90507         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90508         (textint): New typedef.
90509         (parser_control): Member year changed from int to textint.
90510         All uses changed.
90511         (YYSTYPE): Removed; replaced by %union with int and textint members.
90512         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90513         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90514         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90515         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90516         (date, number, to_year): Use width of number in digits, not its value,
90517         to determine whether it's a 2-digit year, or a 2-digit time.
90518         (yylex): Store number of digits of numeric tokens.
90519         Reported by John Kendall.
90520
90521         (parser_control): Changed from struct parser_control to typedef (for
90522         consistency).  All uses changed.
90523
90524         (tID): Removed; not used.
90525         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90526
90527 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90528
90529         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90530         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90531
90532 2000-02-12  Jim Meyering  <meyering@lucent.com>
90533
90534         * lib/userspec.c (ISDIGIT): Define it.
90535         (isdigit): Remove definition.
90536         (is_number): Use ISDIGIT, not isdigit.
90537         <libintl.h>: Include.
90538         (_ and N_): Define.
90539         (parse_user_spec): Mark translatable strings.
90540
90541 2000-02-10  Jim Meyering  <meyering@lucent.com>
90542
90543         With these changes, nanosleep.[ch] are finally enough like the other
90544         lib/* replacement files to compile on a few more losing systems.
90545
90546         * lib/nanosleep.h: Don't include config.h.
90547         Remove prototype from declaration of nanosleep.
90548         (PARAMS): Remove now-unneeded definition.
90549         * lib/nanosleep.c: #undef nanosleep.
90550         (rpl_nanosleep): Rename from nanosleep.
90551
90552 2000-02-10  Jim Meyering  <meyering@lucent.com>
90553
90554         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90555         gnu_nanosleep to rpl_nanosleep.
90556
90557 2000-02-09  Jim Meyering  <meyering@lucent.com>
90558
90559         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90560         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90561
90562 2000-02-08  Akim Demaille  <akim@epita.fr>
90563
90564         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90565         `[' and `]' and remove uses of `changequote'.
90566         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90567         (AC_SYS_LARGEFILE): Likewise.
90568         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90569         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90570         of changequote.
90571         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90572         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90573         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90574         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90575
90576 2000-02-05  Jim Meyering  <meyering@lucent.com>
90577
90578         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90579         Remove explicit use of AC_HEADER_TIME.  It is required by
90580         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90581         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90582         in autoconf whereby the expansion of the latter ended up preceding
90583         the expansion of its prerequisite, AC_HEADER_TIME.
90584         Reported by Volker Borchert.
90585
90586 2000-02-03  Jim Meyering  <meyering@lucent.com>
90587
90588         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90589
90590 2000-02-03  Jim Meyering  <meyering@lucent.com>
90591
90592         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90593         rather than with `#if HAVE_UTMPNAME'.
90594
90595 2000-02-02  Jim Meyering  <meyering@lucent.com>
90596
90597         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90598         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90599         Reported by Eli Zaretskii.
90600
90601 2000-02-01  Jim Meyering  <meyering@lucent.com>
90602
90603         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90604
90605 2000-01-31  Jim Meyering  <meyering@lucent.com>
90606
90607         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90608         functions.  Add the time.h and sys/time.h headers along with the
90609         AC_REQUIRE'ment of AC_HEADER_TIME.
90610
90611 2000-01-31  Jim Meyering  <meyering@lucent.com>
90612
90613         * lib/nanosleep.h (nanosleep): Guard declaration with
90614         `#if ! HAVE_DECL_NANOSLEEP'.
90615         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90616         the declaration in that vendor's sys/timers.h.
90617         Reported by Christian Krackowizer.
90618
90619         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90620         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90621         (ISPRINT): Likewise.
90622         Reported by Tom Tromey.
90623
90624 2000-01-30  Jim Meyering  <meyering@lucent.com>
90625
90626         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90627
90628         * m4/prereq.m4 (utmp_includes): Define.
90629         Check for ut_user and ut_name members in both struct utmpx
90630         and struct utmp.
90631
90632 2000-01-30  Jim Meyering  <meyering@lucent.com>
90633
90634         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90635         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90636         header files where only utmpx.ut_user is declared.
90637
90638         * lib/readutmp.h (UT_USER): Define.
90639
90640 2000-01-29  Jim Meyering  <meyering@lucent.com>
90641
90642         * m4/lib-check.m4: New file containing library-related checks from
90643         fileutils and sh-utils (textutils had none).
90644
90645 2000-01-28  Jim Meyering  <meyering@lucent.com>
90646
90647         * m4/perl.m4: Change format of warning message to look more like that
90648         from the missing script.  Suggestion from François Pinard.
90649
90650 2000-01-25  Jim Meyering  <meyering@lucent.com>
90651
90652         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90653         well as time.h in the compile check.
90654         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90655         Fix typo in cross-compiling case: s/yes/no/.
90656
90657 2000-01-23  Jim Meyering  <meyering@lucent.com>
90658
90659         * m4/jm-macros.m4: Move df-related tests here from
90660         fileutils/configure.in
90661
90662         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90663         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90664
90665         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90666         s/space/ac_fsusage_space/.
90667         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90668
90669         * m4/ftruncate.m4: New file (derived from part of
90670         fileutils/configure.in).
90671         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90672         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90673
90674         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90675         AC_SUBST these here, rather than just in sh-util/configure.in, so
90676         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90677         all the same.
90678         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90679         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90680         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90681         (AC_SUBST(POW_LIBM)): Likewise.
90682         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90683
90684 2000-01-23  Jim Meyering  <meyering@lucent.com>
90685
90686         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90687         obstack.c.
90688
90689 2000-01-22  Jim Meyering  <meyering@lucent.com>
90690
90691         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90692
90693         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90694
90695         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90696         configure.in
90697         (AC_CHECK_HEADERS): Likewise for sh-utils.
90698         (AC_CHECK_HEADERS): Likewise for textutils.
90699         Merge the three lists of headers.
90700
90701         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90702         from fileutils' configure.in.
90703
90704         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90705         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90706         check-decl.m4.
90707
90708         * m4/check-decl.m4: Use #if rather than #ifdef.
90709         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90710         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90711         (_jm_DECL_HEADERS): Define new function.
90712         (jm_CHECK_DECLARATIONS): Require it.
90713
90714 2000-01-22  Jim Meyering  <meyering@lucent.com>
90715
90716         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90717         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90718         Required for some AIX systems.  Reported by Christian Krackowizer.
90719         [TESTING] (main): New function.
90720
90721         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90722         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90723         letters.
90724
90725         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90726         iswprint.
90727
90728         * lib/strverscmp.c (ISDIGIT): Define.
90729         (strverscmp): Use ISDIGIT, not isdigit.
90730
90731 2000-01-19  Jim Meyering  <meyering@lucent.com>
90732
90733         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90734         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90735         defines `struct timespec' in <sys/time.h>
90736
90737         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90738         Thanks to Akim for explaining.
90739
90740 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90741
90742         * lib/nanosleep.c (nanosleep):
90743         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90744         POSIX.1 doesn't require SA_INTERRUPT and some systems
90745         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90746         it's been part of POSIX.1 since day 1 (in 1988).
90747
90748 2000-01-17  Jim Meyering  <meyering@lucent.com>
90749
90750         * lib/interlock: Remove unused file.  Reported by François Pinard.
90751
90752 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90753
90754         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90755         alert, backslash, formfeed, and vertical tab unnecessarily in
90756         shell quoting style.
90757
90758 2000-01-16  Jim Meyering  <meyering@lucent.com>
90759
90760         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90761         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90762         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90763         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90764
90765 2000-01-16  Jim Meyering  <meyering@lucent.com>
90766
90767         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90768         because the latter didn't work.
90769
90770 2000-01-15  Jim Meyering  <meyering@lucent.com>
90771
90772         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90773         (AC_REPLACE_FUNCS): Add memcpy and memset.
90774         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90775         Add strpbrk.
90776         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90777
90778 2000-01-12  Jim Meyering  <meyering@lucent.com>
90779
90780         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90781         (jm_PREREQ): Use it.
90782         (jm_PREREQ_READUTMP): New macro.
90783         (jm_PREREQ): Use it.
90784
90785 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90786
90787         Quote multibyte characters correctly.
90788         * m4/c-bs-a.m4: New file.
90789         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90790         (jm_PREREQ): Use it.
90791
90792 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90793
90794         * m4/uintmax_t.m4: Port to autoconf 2.13.
90795
90796 2000-01-08  Jim Meyering  <meyering@ascend.com>
90797
90798         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90799         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90800
90801 2000-01-04  Jim Meyering  <meyering@ascend.com>
90802
90803         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90804         jm_STRUCT_DIRENT_D_TYPE.
90805         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90806         jm_STRUCT_DIRENT_D_INO.
90807         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90808         jm_STRUCT_UTIMBUF.
90809         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90810         renamings.
90811         * m4/utime.m4: Likewise.
90812
90813         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90814         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90815
90816 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90817
90818         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90819         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90820
90821 2000-01-02  Jim Meyering  <meyering@ascend.com>
90822
90823         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90824         remember if this is necessary.
90825
90826 1999-12-26  Jim Meyering  <meyering@ascend.com>
90827
90828         * m4/jm-macros.m4: Use it here.
90829         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90830
90831 1999-12-23  Jim Meyering  <meyering@ascend.com>
90832
90833         * m4/jm-macros.m4: Check for clock_gettime (moved from
90834         fileutils/configure.in)
90835         Check for gettimeofday.
90836
90837 1999-12-20  Jim Meyering  <meyering@ascend.com>
90838
90839         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90840         autoconf-2.14a-1999-12-20.
90841
90842 1999-12-19  Jim Meyering  <meyering@ascend.com>
90843
90844         * m4/lstat-slash.m4: New file.
90845         * m4/jm-macros.m4: Use the new macro:
90846         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90847
90848 1999-12-07  Jim Meyering  <meyering@ascend.com>
90849
90850         * m4/perl.m4: Require that File::Compare be available, too.
90851         Too many systems seem to lack it.
90852
90853         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90854         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90855
90856 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90857
90858         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90859         problem with the QNX 4.25 shell, which doesn't propagate exit
90860         status of failed commands inside shell assignments.
90861
90862 1999-11-17  Jim Meyering  <meyering@ascend.com>
90863
90864         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90865
90866 1999-11-07  Jim Meyering  <meyering@ascend.com>
90867
90868         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90869
90870 1999-11-06  Jim Meyering  <meyering@ascend.com>
90871
90872         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90873         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90874
90875 1999-11-05  Jim Meyering  <meyering@ascend.com>
90876
90877         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90878         configure.in of textutils, fileutils, and sh-utils into this one
90879         (shared between those packages) file.
90880         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90881         AC_STRUCT_ST_BLKSIZE.
90882
90883 1999-11-03  Jim Meyering  <meyering@ascend.com>
90884
90885         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90886         of AC_CHECK_TYPE checks includes unistd.h.
90887         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90888         Suggestion from Akim Demaille.
90889
90890 1999-10-30  Jim Meyering  <meyering@ascend.com>
90891
90892         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90893         m4-quoted string.
90894         * m4/ls-mntd-fs.m4: Likewise.
90895         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90896         * m4/jm-winsz1.m4: Likewise.
90897
90898         * m4/const.m4: Remove file, since the fix made it into the experimental
90899         version of autoconf.
90900         * m4/mktime.m4: Likewise.
90901
90902         * m4/check-type.m4: Remove file, now that the latest version of
90903         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90904
90905         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90906         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90907         AC_CHECK_TYPE.
90908
90909 1999-10-04  Jim Meyering  <meyering@ascend.com>
90910
90911         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90912
90913 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90914
90915         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90916         2.95.1 bug with HP-UX 10.20.
90917
90918 1999-09-17  Jim Meyering  <meyering@ascend.com>
90919
90920         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90921         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90922         due to missing strdup (against sh-utils-2.0).
90923
90924 1999-08-29  Jim Meyering  <meyering@ascend.com>
90925
90926         * m4/jm-macros.m4: Require jm_BISON.
90927         * m4/bison.m4: New file.
90928
90929 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90930
90931         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90932         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90933
90934 1999-08-05  Jim Meyering  <meyering@ascend.com>
90935
90936         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90937         to avoid conflicts with `conftest' on 8+3 filesystems.
90938         Suggestion from Eli Zaretskii.
90939
90940 1999-08-04  Jim Meyering  <meyering@ascend.com>
90941
90942         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90943         fileutils and sh-utils (textutils's getline test was inadequate).
90944         (AM_FUNC_GETLINE): Run this test.
90945         (AC_CHECK_FUNCS): Check for getdelim.
90946         Reported by Bob Proulx.
90947
90948 1999-08-02  Jim Meyering  <meyering@ascend.com>
90949
90950         * m4/jm-macros.m4: Add a comment.
90951
90952 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90953
90954         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90955         <inttypes.h> defines strtoumax as a macro (and not as a
90956         function).
90957
90958 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90959
90960         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90961         that we can shift, multiply and divide unsigned long long
90962         values; Ultrix cc can't do it.
90963
90964 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90965
90966         * m4/mktime.m4: New file, which is a preview of what should appear
90967         in the next public autoconf release.
90968
90969 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90970
90971         * m4/lfs.m4: Remove this file.
90972         * m4/largefile.m4: New file.  It contains the old contents of
90973         lfs.m4, except that all names with prefix AC_LFS have been
90974         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90975         compatible with future autoconf versions.  Also, some minor m4
90976         quoting problems have been fixed.
90977
90978 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90979
90980         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90981         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90982         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90983         and simplify the shell code.
90984
90985 1999-08-01  Jim Meyering  <meyering@ascend.com>
90986
90987         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90988         m4.
90989
90990 1999-07-20  Jim Meyering  <meyering@ascend.com>
90991
90992         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90993
90994 1999-07-15  Jim Meyering  <meyering@ascend.com>
90995
90996         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90997
90998 1999-05-22  Jim Meyering  <meyering@ascend.com>
90999
91000         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
91001
91002 1999-05-20  Jim Meyering  <meyering@ascend.com>
91003
91004         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
91005         Add a colon after each `then' in case $4 is empty.
91006
91007 1999-05-16  Jim Meyering  <meyering@ascend.com>
91008
91009         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
91010
91011 1999-05-10  Jim Meyering  <meyering@ascend.com>
91012
91013         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
91014
91015         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
91016         AC_FUNC_MKTIME.
91017
91018 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91019
91020         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
91021
91022 1999-05-04  Paul Eggert  <eggert@twinsun.com>
91023
91024         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
91025         not CPPFLAGS, so that linking works correctly in IRIX.
91026
91027 1999-04-30  Paul Eggert  <eggert@twinsun.com>
91028
91029         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
91030
91031 1999-04-20  Paul Eggert  <eggert@twinsun.com>
91032
91033         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
91034         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
91035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
91036         jm_AC_TYPE_UNSIGNED_LONG_LONG.
91037         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
91038
91039         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91040
91041 1999-04-20  Jim Meyering  <meyering@ascend.com>
91042
91043         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91044         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91045         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91046
91047 1999-04-18  Jim Meyering  <meyering@ascend.com>
91048
91049         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91050         * m4/jm-macros.m4: Use it.
91051
91052 1999-04-06  Jim Meyering  <meyering@ascend.com>
91053
91054         * m4/strftime.m4: Remove test for %f.
91055
91056 1999-03-29  Jim Meyering  <meyering@ascend.com>
91057
91058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
91059         superset of the AC_TYPE_* checks in the textutils, fileutils,
91060         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
91061         AC_TYPE_PID_T.
91062
91063 1999-03-28  Jim Meyering  <meyering@ascend.com>
91064
91065         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91066         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91067         replaced e.g., in the *.sh files of the sh-utils.
91068
91069 1999-03-20  Jim Meyering  <meyering@ascend.com>
91070
91071         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91072         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91073         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91074
91075 1999-03-19  Jim Meyering  <meyering@ascend.com>
91076
91077         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91078
91079 1999-03-12  Jim Meyering  <meyering@ascend.com>
91080
91081         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91082
91083 1999-03-07  Jim Meyering  <meyering@ascend.com>
91084
91085         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91086         declared.
91087
91088 1999-02-17  Jim Meyering  <meyering@ascend.com>
91089
91090         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91091         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91092
91093 1999-02-07  Jim Meyering  <meyering@ascend.com>
91094
91095         * m4/group-member.m4: New file -- extracted from sh-utils'
91096         configure.in.
91097
91098         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91099         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91100
91101 1999-02-06  Jim Meyering  <meyering@ascend.com>
91102
91103         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91104         * m4/fnmatch.m4: Likewise.
91105         * m4/getgroups.m4: Likewise.
91106         * m4/lstat.m4: Likewise.
91107         * m4/malloc.m4: Likewise.
91108         * m4/putenv.m4: Likewise.
91109         * m4/realloc.m4: Likewise.
91110         * m4/regex.m4: Likewise.
91111         * m4/stat.m4: Likewise.
91112         * m4/strftime.m4: Likewise.
91113         Suggestion from Alain Magloire.
91114
91115         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91116         * m4/fnmatch.m4: Likewise.
91117         * m4/getgroups.m4: Likewise.
91118         * m4/getline.m4: Likewise.
91119         * m4/lstat.m4: Likewise.
91120         * m4/malloc.m4: Likewise.
91121         * m4/memcmp.m4: Likewise.
91122         * m4/putenv.m4: Likewise.
91123         * m4/realloc.m4: Likewise.
91124         * m4/regex.m4: Likewise.
91125         * m4/stat.m4: Likewise.
91126         * m4/strftime.m4: Likewise.
91127         Suggestion from Alain Magloire.
91128
91129         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91130         an argument.
91131
91132         * m4/regex.m4: Add a run-time Test for proper operation of
91133         re_compile_pattern.
91134
91135 1999-01-31  Jim Meyering  <meyering@ascend.com>
91136
91137         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91138
91139 1999-01-30  Jim Meyering  <meyering@ascend.com>
91140
91141         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91142
91143         * m4/jm-mktime.m4: Make this a wrapper around the official
91144         AM_FUNC_MKTIME rather than my private copy, now that the official one
91145         is up to date.
91146         * m4/mktime.m4: Remove file.
91147
91148         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91149         * m4/uptime.m4: Likewise.
91150         * m4/uintmax_t.m4: Likewise.
91151
91152 1999-01-28  Jim Meyering  <meyering@ascend.com>
91153
91154         * m4/jm-macros.m4: Use jm_AFS.
91155         * m4/afs.m4: New file (from fileutils' configure.in).
91156
91157         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91158         * m4/chown.m4: Likewise.
91159         * m4/d-ino.m4: Likewise.
91160         * m4/d-type.m4: Likewise.
91161         * m4/fnmatch.m4: Likewise.
91162         * m4/getgroups.m4: Likewise.
91163         * m4/gettext.m4: Likewise.
91164         * m4/jm-mktime.m4: Likewise.
91165         * m4/jm-winsz2.m4: Likewise.
91166         * m4/lcmessage.m4: Likewise.
91167         * m4/ls-mntd-fs.m4: Likewise.
91168         * m4/malloc.m4: Likewise.
91169         * m4/memcmp.m4: Likewise.
91170         * m4/putenv.m4: Likewise.
91171         * m4/realloc.m4: Likewise.
91172         * m4/st_mtim.m4: Likewise.
91173         * m4/strftime.m4: Likewise.
91174
91175 1999-01-16  Jim Meyering  <meyering@ascend.com>
91176
91177         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91178         (ARGMATCH_DIE_DECL): Define.
91179
91180 1999-01-12  Jim Meyering  <meyering@ascend.com>
91181
91182         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91183         Reported by Lars Hecking.
91184
91185 1999-01-10  Jim Meyering  <meyering@ascend.com>
91186
91187         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91188         gross kludge.
91189         * m4/inttypes_h.m4: Likewise.
91190         * m4/lstat.m4: Likewise.
91191         * m4/malloc.m4: Likewise.
91192         * m4/readdir.m4: Likewise.
91193         * m4/realloc.m4: Likewise.
91194         * m4/st_dm_mode.m4: Likewise.
91195         * m4/stat.m4: Likewise.
91196         * m4/utimbuf.m4: Likewise.
91197         * m4/utimes.m4: Likewise.
91198
91199         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91200         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91201         comments in config.h.in are meaningful.
91202
91203         * m4/jm-macros.m4: Require autoconf-2.13 here.
91204
91205         * m4/regex.m4: By default, don't use the included regex.c on systems
91206         with glibc 2.  Suggestion from Uli Drepper.
91207
91208 1999-01-02  Jim Meyering  <meyering@ascend.com>
91209
91210         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91211
91212 1998-12-18  Jim Meyering  <meyering@ascend.com>
91213
91214         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91215         Based on a suggestion from Lars Hecking.
91216
91217 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91218
91219         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91220
91221 1998-11-16  Jim Meyering  <meyering@ascend.com>
91222
91223         * m4/lfs.m4: Double-quote the `uname...` expression.
91224
91225 1998-11-14  Jim Meyering  <meyering@ascend.com>
91226
91227         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91228         * m4/stat.m4: Likewise.
91229
91230 1998-11-03  Jim Meyering  <meyering@ascend.com>
91231
91232         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91233         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91234
91235 1998-10-18  Jim Meyering  <meyering@ascend.com>
91236
91237         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91238
91239 1998-10-17  Jim Meyering  <meyering@ascend.com>
91240
91241         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91242         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91243         calls for those previously hard-coded headers.  Instead, take a new
91244         parameter.
91245         (jm_CHECK_DECLARATIONS): Reflect interface change.
91246         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91247         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91248
91249         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91250
91251 1998-10-14  Jim Meyering  <meyering@ascend.com>
91252
91253         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91254         instead of "TZ=America/Vancouver".  From Paul Eggert.
91255
91256 1998-10-11  Jim Meyering  <meyering@ascend.com>
91257
91258         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91259         This adds a test for a recently added compatibility fix for mktime.c.
91260         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91261
91262 1998-09-27  Jim Meyering  <meyering@ascend.com>
91263
91264         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91265
91266         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91267         ../configure.in, including a change from Gordon Matzigkeit to allow
91268         cross-compiling for the Hurd.
91269
91270         * m4/glibc.m4: New file/macro to test for the GNU C Library
91271         versions 1 and 2.  From Gordon Matzigkeit.
91272         Indent.
91273
91274 1998-09-21  Jim Meyering  <meyering@ascend.com>
91275
91276         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91277
91278 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91279
91280         Port nanosecond-resolution times to UnixWare 2.1.2 and
91281         pedantic Solaris 2.6.
91282
91283         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91284         AC_STRUCT_ST_MTIM.
91285         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91286         Generate name of ns member, instead of just 1 or undef.
91287         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91288
91289 1998-08-15  Jim Meyering  <meyering@ascend.com>
91290
91291         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91292         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91293         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91294         instead of jm_TYPE_SSIZE_T.
91295
91296 1998-08-12  Jim Meyering  <meyering@ascend.com>
91297
91298         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91299
91300 1998-08-02  Jim Meyering  <meyering@ascend.com>
91301
91302         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91303         in acconfig.h manually.
91304
91305 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91306
91307         * m4/st_mtim.m4: New file.
91308
91309 1998-07-28  Jim Meyering  <meyering@ascend.com>
91310
91311         * m4/utimes.m4: Undef stat.
91312
91313 1998-07-25  Jim Meyering  <meyering@ascend.com>
91314
91315         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91316         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91317
91318 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91319
91320         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91321         uid and gid actually remain unchanged.
91322
91323 1998-07-07  Jim Meyering  <meyering@ascend.com>
91324
91325         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91326
91327 1998-07-04  Jim Meyering  <meyering@ascend.com>
91328
91329         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91330         to prove that this macro can be used in packages without regex.c.
91331
91332 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91333
91334         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91335         is to be used.
91336
91337 1998-07-03  Jim Meyering  <meyering@ascend.com>
91338
91339         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91340
91341         * m4/gettext.m4: New file -- from gettext-0.10.35.
91342         * m4/lcmessage.m4: Likewise.
91343         * m4/progtest.m4: Likewise.
91344
91345         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91346         * m4/jm-macros.m4: Require the new macro.
91347
91348 1998-06-29  Jim Meyering  <meyering@ascend.com>
91349
91350         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91351         for the definition of NGROUPS (used in a system header included
91352         by sys/mount.h).
91353
91354 1998-06-28  Jim Meyering  <meyering@ascend.com>
91355
91356         * m4/ls-mntd-fs.m4: New file.
91357         * m4/fstypename.m4: New file.
91358
91359         * m4/jm-macros.m4: Require the new macro.
91360         * m4/jm-glibc-io.m4: New file.
91361
91362 1998-05-19  Jim Meyering  <meyering@ascend.com>
91363
91364         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91365         * m4/lchown.m4: New file.
91366
91367         * m4/Makefile.am.in: New file.
91368         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91369
91370 1998-05-14  Jim Meyering  <meyering@ascend.com>
91371
91372         * m4/Makefile.am (EXTRA_DIST): Add them.
91373         * m4/jm-macros.m4: New file.
91374         * m4/utimbuf.m4: New file.
91375
91376 1998-05-12  Jim Meyering  <meyering@ascend.com>
91377
91378         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91379
91380 1998-05-11  Jim Meyering  <meyering@ascend.com>
91381
91382         * m4/isc-posix.m4: New file.
91383
91384 1998-05-10  Jim Meyering  <meyering@ascend.com>
91385
91386         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91387
91388 1998-05-09  Jim Meyering  <meyering@ascend.com>
91389
91390         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91391         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91392         with automake.
91393
91394         * m4/ssize_t.m4: New file.
91395         * m4/mktime.m4: Remove file -- the new automake has this now.
91396
91397 1998-04-26  Jim Meyering  <meyering@ascend.com>
91398
91399         * m4/assert.m4: New file.
91400         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91401
91402 1998-04-05  Jim Meyering  <meyering@ascend.com>
91403
91404         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91405         (jm_PREREQ): Use it here.
91406
91407 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91408
91409         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91410         in acconfig.h.
91411
91412 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91413
91414         * m4/prereq.m4: New file.
91415         * m4/error.m4: New file.
91416         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91417
91418 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91419
91420         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91421         cache-check for the same variable -- that defeated the purpose of
91422         the test; the test program was never run.  This was a problem only
91423         on systems with losing getline functions -- HP-UX 10.20 is one.
91424         Reported by Bjorn Helgaas.
91425
91426 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91427
91428         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91429
91430 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91431
91432         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91433
91434         * m4/const.m4: New file.  Use an initializer in this declaration
91435         typedef int charset[2]; const charset x;
91436         Reported by Bob Glickstein.
91437
91438 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91439
91440         * m4/chown.m4: Fix reversed types on -1 args to chown.
91441         From Kaveh Ghazi.
91442
91443 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91444
91445         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91446         Add lseek and memchr.
91447
91448         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91449         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91450         have a 20-character limit on names.
91451
91452 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91453
91454         * m4/inttypes_h.m4: New file.
91455         * m4/uintmax_t.m4: New file.
91456         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91457
91458
91459         -----
91460
91461         Local Variables:
91462         coding: utf-8
91463         End:
91464
91465         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91466
91467         Copying and distribution of this file, with or without
91468         modification, are permitted provided the copyright notice
91469         and this notice are preserved.